recipe-label-and-archive-emails
Apply Gmail labels to matching messages and archive them to keep your inbox clean.
Works with
---
name: recipe-label-and-archive-emails
description: Apply Gmail labels to matching messages and archive them to keep your inbox clean.
license: Apache-2.0
---
# 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"]}'`More General & Other skills
find-skills
vercel-labs/skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
grill-me
mattpocock/skills
A relentless interview to sharpen a plan or design.
grill-with-docs
mattpocock/skills
A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.

