recipe-label-and-archive-emails
Apply Gmail labels to matching messages and archive them to keep your inbox clean.
Install
npx skills add https://github.com/googleworkspace/cli --skill recipe-label-and-archive-emailsSKILL.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
- Search for matching emails:
gws gmail users messages list --params '{"userId": "me", "q": "from:notifications@service.com"}' --format table - Apply a label:
gws gmail users messages modify --params '{"userId": "me", "id": "MESSAGE_ID"}' --json '{"addLabelIds": ["LABEL_ID"]}' - Archive (remove from inbox):
gws gmail users messages modify --params '{"userId": "me", "id": "MESSAGE_ID"}' --json '{"removeLabelIds": ["INBOX"]}'
Related skills
grill-memattpocock1.2MA relentless interview to sharpen a plan or design.grill-with-docsmattpocock1.1MA relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.triagemattpocock854KMove issues and external PRs through a state machine of triage roles, categorise, verify, grill if needed, and write agent-ready briefs.grillingmattpocock792KGrill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking, or uses any 'grill' trigger phrases.
