gws-admin-reports
Google Workspace Admin SDK: Audit logs and usage reports.
Apply Gmail labels to matching messages and archive them to keep your inbox clean.
$ npx -y skills add googleworkspace/cli --skill recipe-label-and-archive-emails --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/recipe-label-and-archive-emailsContext preview
The summary Claude sees to decide when to auto-load this skill.
Apply Gmail labels to matching messages and archive them to keep your inbox clean.
name: recipe-label-and-archive-emails
description: "Apply Gmail labels to matching messages and archive them to keep your inbox clean."
metadata:
version: 0.22.5
openclaw:
category: "recipe"
domain: "productivity"
requires:
bins:
- gws
skills:
- gws-gmail> **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.
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"]}'`
Google Workspace CLI — one command-line tool for Drive, Gmail, Calendar, Sheets, Docs, Chat, Admin, and more. Dynamically built from Google Discovery Service. Includes AI agent skills.
Repo: googleworkspace/cli
Google Workspace Admin SDK: Audit logs and usage reports.
Google Calendar: Show upcoming events across all calendars.