Agent skill · software engineering · googleworkspace
recipe-label-and-archive-emails
Apply Gmail labels to matching messages and archive them to keep your inbox clean.
Why this skill is useful
Adds 3 executable scripts for managing Gmail messages that aren't in public docs.
What it needs
Requires gws installed locally. About 1k tokens when loaded. Last updated 2026-08-01. 30,245 stars on the source repository.
What this skill does
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": "MESSAGEID"}' --json '{"addLabelIds": ["LABELID"]}' 3. Archive (remove from inbox): gws gmail users messages modify --params '{"userId": "me", "id": "MESSAGEID"}' --json '{"removeLabelIds": ["INBOX"]}'
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills googleworkspace/recipe-label-and-archive-emails