recipe-create-gmail-filter
Create a Gmail filter to automatically label, star, or categorize incoming messages.
npx skills add googleworkspace/cli --skill recipe-create-gmail-filter --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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`
- Steps
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 it?
Run `npx skills add googleworkspace/cli --skill recipe-create-gmail-filter --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From googleworkspace/cli, a repository with 30,193 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.