googleworkspace/cli · Official

recipe-label-and-archive-emails

Apply Gmail labels to matching messages and archive them to keep your inbox clean.

All-time #819 Trending #1756 Hot #406 First seen Mar 4, 2026
8-week activity · all time api

Installation

$ npx skills add googleworkspace/cli --skill recipe-label-and-archive-emails

Summary

  • 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

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Security audits

Partner security reviews for this skill.

agent-trust-hub SAFE

Analyzed Apr 1, 2026

This skill is a recipe for managing Gmail emails using the googleworkspace 'gws' tool. It includes instructions for listing, labeling, and archiving messages. No security issues were detected.

snyk LOW

Analyzed Apr 1, 2026

No issues detected.

socket Score 0.9000 · 0 alerts

Analyzed Apr 1, 2026

  • license 1
  • maintenance 1
  • quality 0.9
  • supply chain 1
  • vulnerability 1

0 alerts

Also in this package

Other skills from googleworkspace/cli · top by installs.

npx skills add googleworkspace/cli

Browse all from googleworkspace/cli

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 30.8K
License LICENSE
Default branch main
Open issues 129
Status Active

Skill metadata

Parsed from SKILL.md frontmatter.

Version0.22.5
Declared agents clawdbot
More metadata
version
0.22.5
openclaw
{"category":"recipe","domain":"productivity","requires":{"bins":["gws"],"skills":["gws-gmail"]}}

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 959 B
  • docs SUMMARY.md 121 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 27,500 installs

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:[email protected]"}' --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": "MESSAGE_ID"}' --json '{"removeLabelIds": ["INBOX"]}'