mcpbeat

Recipe Label And Archive Emails

googleworkspace/recipe-label-and-archive-emails

Apply Gmail labels to matching messages and archive them to keep your inbox clean.

239 tokens
context cost
the whole folder, loaded on every use
1
files
instructions only
0
copies elsewhere
how many repositories repackaged it
30175
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/googleworkspace/cli --skill recipe-label-and-archive-emails

The instruction itself

2 sections, as written by the author

Label and Archive Gmail Threads

> PREREQUISITE: Load the following skills to execute this recipe: gws-gmail

Apply Gmail labels to matching messages and archive them to keep your inbox clean.

Steps

  • Search for matching emails: gws gmail users messages list --params '{"userId": "me", "q": "from:[email protected]"}' --format table
  • Apply a label: gws gmail users messages modify --params '{"userId": "me", "id": "MESSAGE_ID"}' --json '{"addLabelIds": ["LABEL_ID"]}'
  • Archive (remove from inbox): gws gmail users messages modify --params '{"userId": "me", "id": "MESSAGE_ID"}' --json '{"removeLabelIds": ["INBOX"]}'

How to use it

Copy the folder

Take googleworkspace/recipe-label-and-archive-emails from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.