recipe-label-and-archive-emails▌
googleworkspace/cli · updated Apr 8, 2026
Automatically label and archive Gmail messages matching custom search criteria.
- ›Requires the gws-gmail skill to execute Gmail API operations
- ›Three-step workflow: search for matching emails using query syntax, apply custom labels, and remove messages from inbox
- ›Supports flexible filtering through Gmail's query language (e.g., sender, subject, date ranges)
- ›Designed as a recipe template for building inbox automation workflows
1d:["$","div",null,{"className":"prose prose-invert max-w-none prose-headings:font-semibold prose-headings:tracking-tight prose-h1:text-4xl prose-h1:mb-2 prose-h2:text-2xl prose-h2:mb-2 prose-h3:text-lg prose-h3:mb-2 prose-p:text-muted-foreground prose-li:text-muted-foreground prose-code:bg-muted prose-code:text-foreground prose-code:px-1 prose-code:py-0.5 prose-code:rounded-sm prose-code:text-sm prose-code:before:content-none prose-code:after:content-none prose-pre:bg-muted prose-pre:text-foreground prose-pre:border prose-pre:border-border prose-pre:rounded-md [&_table]:!border-[color:var(--border)] [&_th]:!border-[color:var(--border)] [&_td]:!border-[color:var(--border)]","dangerouslySetInnerHTML":{"__html":"<h1>Label and Archive Gmail Threads</h1>\n<blockquote>\n<p><strong>PREREQUISITE:</strong> Load the following skills to execute this recipe: <code>gws-gmail</code></p>\n</blockquote>\n<p>Apply Gmail labels to matching messages and archive them to keep your inbox clean.</p>\n<h2>Steps</h2>\n<ol>\n<li>Search for matching emails: <code>gws gmail users messages list --params '{"userId": "me", "q": "from:notifications@service.com"}' --format table</code></li>\n<li>Apply a label: <code>gws gmail users messages modify --params '{"userId": "me", "id": "MESSAGE_ID"}' --json '{"addLabelIds": ["LABEL_ID"]}'</code></li>\n<li>Archive (remove from inbox): <code>gws gmail users messages modify --params '{"userId": "me", "id": "MESSAGE_ID"}' --json '{"removeLabelIds": ["INBOX"]}'</code></li>\n</ol>"}}]
Discussion
Product Hunt–style comments (not star reviews)- No comments yet — start the thread.
Ratings
4.7★★★★★39 reviews- ★★★★★Ganesh Mohane· Dec 20, 2024
Useful defaults in recipe-label-and-archive-emails — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
- ★★★★★Zaid Taylor· Dec 20, 2024
recipe-label-and-archive-emails has been reliable in day-to-day use. Documentation quality is above average for community skills.
- ★★★★★Sakshi Patil· Nov 11, 2024
recipe-label-and-archive-emails is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
- ★★★★★Amina Huang· Nov 11, 2024
recipe-label-and-archive-emails fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
- ★★★★★Yash Thakker· Nov 7, 2024
Registry listing for recipe-label-and-archive-emails matched our evaluation — installs cleanly and behaves as described in the markdown.
- ★★★★★Dhruvi Jain· Oct 26, 2024
recipe-label-and-archive-emails reduced setup friction for our internal harness; good balance of opinion and flexibility.
- ★★★★★Chaitanya Patil· Oct 2, 2024
Keeps context tight: recipe-label-and-archive-emails is the kind of skill you can hand to a new teammate without a long onboarding doc.
- ★★★★★Aisha Kapoor· Oct 2, 2024
We added recipe-label-and-archive-emails from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- ★★★★★Amelia Sanchez· Sep 17, 2024
recipe-label-and-archive-emails fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
- ★★★★★Yuki Sanchez· Sep 1, 2024
recipe-label-and-archive-emails has been reliable in day-to-day use. Documentation quality is above average for community skills.
showing 1-10 of 39