Recipe Create Gmail Filter

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

32,385 stars 1,999 forksProductivity & Notes

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add googleworkspace/cli --skill recipe-create-gmail-filter
Manual install
git clone --depth 1 https://github.com/googleworkspace/cli.git /tmp/cli
mkdir -p ~/.claude/skills
cp -r /tmp/cli/skills/recipe-create-gmail-filter ~/.claude/skills/recipe-create-gmail-filter

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# 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

1. List existing labels: `gws gmail users labels list --params '{"userId": "me"}' --format table`
2. Create a new label: `gws gmail users labels create --params '{"userId": "me"}' --json '{"name": "Receipts"}'`
3. Create a filter: `gws gmail users settings filters create --params '{"userId": "me"}' --json '{"criteria": {"from": "receipts@example.com"}, "action": {"addLabelIds": ["LABEL_ID"], "removeLabelIds": ["INBOX"]}}'`
4. Verify filter: `gws gmail users settings filters list --params '{"userId": "me"}' --format table`
Read the full skill on GitHub

Details

Skill name
recipe-create-gmail-filter
Path
skills/recipe-create-gmail-filter/SKILL.md
License
Apache-2.0
Repo updated
3 November 2026

FAQ

What does the Recipe Create Gmail Filter skill do?

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

How do I install the Recipe Create Gmail Filter skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add googleworkspace/cli --skill recipe-create-gmail-filter. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Recipe Create Gmail Filter popular?

It lives in googleworkspace/cli, which has 32,385 GitHub stars and 1,999 forks, and is included in 2 curated skill lists.

Related skills

Browse the most popular Claude skills, all productivity & notes skills, or write your own with the skills generator.