mcpbeat

Recipe Create Gmail Filter

googleworkspace/recipe-create-gmail-filter

Create a Gmail filter to automatically label, star, or categorize incoming messages.

259 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-create-gmail-filter

The instruction itself

2 sections, as written by the author

Create a Gmail Filter

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

Create a Gmail filter to automatically label, star, or categorize incoming messages.

Steps

  • List existing labels: gws gmail users labels list --params '{"userId": "me"}' --format table
  • Create a new label: gws gmail users labels create --params '{"userId": "me"}' --json '{"name": "Receipts"}'
  • Create a filter: gws gmail users settings filters create --params '{"userId": "me"}' --json '{"criteria": {"from": "[email protected]"}, "action": {"addLabelIds": ["LABEL_ID"], "removeLabelIds": ["INBOX"]}}'
  • Verify filter: gws gmail users settings filters list --params '{"userId": "me"}' --format table

How to use it

Copy the folder

Take googleworkspace/recipe-create-gmail-filter 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.