cleanup-cache
Clean system caches (npm, Homebrew, Yarn, browsers, Python/ML) to free disk space
Gmail: Watch for new emails and stream them as NDJSON.
$ npx -y skills add davila7/claude-code-templates --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/gws-gmail-watchContext preview
What this command does when you run it.
Gmail: Watch for new emails and stream them as NDJSON.
allowed-tools: Bash, Read, Write, Edit argument-hint: [resource] [method] [flags] description: Gmail: Watch for new emails and stream them as NDJSON.
Execute Google Workspace Gmail Watch operations: $ARGUMENTS
> **PREREQUISITE:** Read `../gws-shared/SKILL.md` for auth, global flags, and security rules. If missing, run `gws generate-skills` to create it.
Watch for new emails and stream them as NDJSON
gws gmail +watch
| Flag | Required | Default | Description | |------|----------|---------|-------------| | `--project` | — | — | GCP project ID for Pub/Sub resources | | `--subscription` | — | — | Existing Pub/Sub subscription name (skip setup) | | `--topic` | — | — | Existing Pub/Sub topic with Gmail push permission already granted | | `--label-ids` | — | — | Comma-separated Gmail label IDs to filter (e.g., INBOX,UNREAD) | | `--max-messages` | — | 10 | Max messages per pull batch | | `--poll-interval` | — | 5 | Seconds between pulls | | `--msg-format` | — | full | Gmail message format: full, metadata, minimal, raw | | `--once` | — | — | Pull once and exit | | `--cleanup` | — | — | Delete created Pub/Sub resources on exit | | `--output-dir` | — | — | Write each message to a separate JSON file in this directory |
gws gmail +watch --project my-gcp-project gws gmail +watch --project my-project --label-ids INBOX --once gws gmail +watch --subscription projects/p/subscriptions/my-sub gws gmail +watch --project my-project --cleanup --output-dir ./emails
# List available resources and methods gws gmail-watch --help # Inspect method schema before calling gws schema gmail-watch.<resource>.<method> # Execute command with arguments gws gmail-watch $ARGUMENTS
Execute the requested Gmail Watch operation: $ARGUMENTS
1. **Verify Prerequisites**
2. **Inspect Method Schema**
3. **Execute Operation**
4. **Error Handling**
---
**License**: Apache License 2.0 **Source**: [Google Workspace CLI](https://github.com/googleworkspace/cli) **Original Skill**: `gws-gmail-watch`
Ready-to-use configurations for Anthropic's Claude Code. A comprehensive collection of AI agents, custom commands, settings, hooks, external integrations (MCPs), and project templates to enhance your development workflow.
Repo: davila7/claude-code-templates
Clean system caches (npm, Homebrew, Yarn, browsers, Python/ML) to free disk space
Create an SEO-optimized blog article for a Claude Code component with AI-generated cover image