Recipe Label and Archive Emails
Apply Gmail labels to matching messages and archive them to keep your inbox clean.
Install
npx skills add googleworkspace/cli --skill recipe-label-and-archive-emailsgit 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-emailsPersonal 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"]}'`Details
- Skill name
recipe-label-and-archive-emails- Repository
- googleworkspace/cli
- 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
Gws Admin Reports
32kgoogleworkspace/cli
Google Workspace Admin SDK: Audit logs and usage reports.
Gws Classroom
32kgoogleworkspace/cli
Google Classroom: Manage classes, rosters, and coursework.
Gws Drive
32kgoogleworkspace/cli
Google Drive: Manage files, folders, and shared drives.
Recipe Organize Drive Folder
32kgoogleworkspace/cli
Create a Google Drive folder structure and move files into the right locations.
Recipe Forward Labeled Emails
32kgoogleworkspace/cli
Find Gmail messages with a specific label and forward them to another address.
Recipe Plan Weekly Schedule
32kgoogleworkspace/cli
Review your Google Calendar week, identify gaps, and add events to fill them.
Browse the most popular Claude skills, all productivity & notes skills, or write your own with the skills generator.