Recipe Label And Archive Emails

v1.0.12

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

0· 355·9 current·9 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for googleworkspace-bot/recipe-label-and-archive-emails.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Recipe Label And Archive Emails" (googleworkspace-bot/recipe-label-and-archive-emails) from ClawHub.
Skill page: https://clawhub.ai/googleworkspace-bot/recipe-label-and-archive-emails
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Required binaries: gws
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install recipe-label-and-archive-emails

ClawHub CLI

Package manager switcher

npx clawhub@latest install recipe-label-and-archive-emails
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
The skill declares a dependency on the 'gws' binary and the 'gws-gmail' skill, and its instructions use the gws gmail commands — this is exactly what a Gmail-label-and-archive recipe would need.
Instruction Scope
SKILL.md only instructs listing messages (with a Gmail query), adding label IDs, and removing the INBOX label to archive. It does not instruct reading unrelated files, exfiltrating data, or contacting external endpoints beyond the Gmail API via the gws tool. Placeholders (MESSAGE_ID, LABEL_ID) are expected and must be filled at runtime.
Install Mechanism
There is no install spec (instruction-only), so nothing is downloaded or written by the skill itself. This minimizes installation risk.
Credentials
The skill requests no environment variables or credentials itself. It relies on the existing 'gws' tool and its authorization to act on Gmail, which is appropriate for the described task — ensure the gws/gws-gmail credential scope is limited to Gmail operations.
Persistence & Privilege
always is false and the skill is user-invocable; it does not request persistent or system-wide privileges. Autonomous invocation is allowed by default (platform behavior) but is not combined here with unusual credential access.
Assessment
This recipe is coherent with its purpose, but before installing: (1) verify the 'gws' binary is from a trusted source and understand how it stores/uses your Gmail credentials (OAuth tokens); (2) confirm the OAuth scopes granted to gws/gws-gmail are appropriate and limited to the operations you expect; (3) test the commands on a small sample folder or use a safe query to avoid accidentally archiving important mail; and (4) remember the agent will be able to run gws commands when you invoke the skill, so only grant use to trusted agents or run manually if unsure.

Like a lobster shell, security has layers — review code before you run it.

Runtime requirements

Binsgws
latestvk97a8hbt7zvv6rdn0y8qz75q1583yk53
355downloads
0stars
13versions
Updated 3w ago
v1.0.12
MIT-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"]}'

Comments

Loading comments...