Recipe Label and Archive Emails

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

32,385 stars 1,999 forksProductivity & Notes

Install

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

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

From the SKILL.md

# 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

1. Search for matching emails: `gws gmail users messages list --params '{"userId": "me", "q": "from:notifications@service.com"}' --format table`
2. Apply a label: `gws gmail users messages modify --params '{"userId": "me", "id": "MESSAGE_ID"}' --json '{"addLabelIds": ["LABEL_ID"]}'`
3. Archive (remove from inbox): `gws gmail users messages modify --params '{"userId": "me", "id": "MESSAGE_ID"}' --json '{"removeLabelIds": ["INBOX"]}'`
Read the full skill on GitHub

Details

Skill name
recipe-label-and-archive-emails
Path
skills/recipe-label-and-archive-emails/SKILL.md
License
Apache-2.0
Repo updated
3 November 2026

FAQ

What does the Recipe Label and Archive Emails skill do?

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

How do I install the Recipe Label and Archive Emails skill?

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

Is Recipe Label and Archive Emails 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.