recipe-label-and-archive-emails
Originally fromgoogleworkspace/cli
Installation
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
- 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
More from wadewarren/gws-claude-plugin
gws-tasks
Google Tasks: Manage task lists and tasks.
14gws-workflow
Google Workflow: Cross-service productivity workflows.
13gws-gmail-triage
Gmail: Show unread inbox summary (sender, subject, date).
13persona-content-creator
Create, organize, and distribute content across Workspace.
13gws-gmail-forward
Gmail: Forward a message to new recipients.
12gws-calendar-agenda
Google Calendar: Show upcoming events across all calendars.
12