cleanup-cache
Clean system caches (npm, Homebrew, Yarn, browsers, Python/ML) to free disk space
Google Workspace Events: Subscribe to Workspace events 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-events-subscribeContext preview
What this command does when you run it.
Google Workspace Events: Subscribe to Workspace events and stream them as NDJSON.
allowed-tools: Bash, Read, Write, Edit argument-hint: [resource] [method] [flags] description: Google Workspace Events: Subscribe to Workspace events and stream them as NDJSON.
Execute Google Workspace Events Subscribe operations: $ARGUMENTS
> **PREREQUISITE:** Read `../gws-shared/SKILL.md` for auth, global flags, and security rules. If missing, run `gws generate-skills` to create it.
Subscribe to Workspace events and stream them as NDJSON
gws events +subscribe
| Flag | Required | Default | Description | |------|----------|---------|-------------| | `--target` | — | — | Workspace resource URI (e.g., //chat.googleapis.com/spaces/SPACE_ID) | | `--event-types` | — | — | Comma-separated CloudEvents types to subscribe to | | `--project` | — | — | GCP project ID for Pub/Sub resources | | `--subscription` | — | — | Existing Pub/Sub subscription name (skip setup) | | `--max-messages` | — | 10 | Max messages per pull batch (default: 10) | | `--poll-interval` | — | 5 | Seconds between pulls (default: 5) | | `--once` | — | — | Pull once and exit | | `--cleanup` | — | — | Delete created Pub/Sub resources on exit | | `--no-ack` | — | — | Don't auto-acknowledge messages | | `--output-dir` | — | — | Write each event to a separate JSON file in this directory |
gws events +subscribe --target '//chat.googleapis.com/spaces/SPACE' --event-types 'google.workspace.chat.message.v1.created' --project my-project gws events +subscribe --subscription projects/p/subscriptions/my-sub --once gws events +subscribe ... --cleanup --output-dir ./events
> [!CAUTION] > This is a **write** command — confirm with the user before executing.
# List available resources and methods gws events-subscribe --help # Inspect method schema before calling gws schema events-subscribe.<resource>.<method> # Execute command with arguments gws events-subscribe $ARGUMENTS
Execute the requested Events Subscribe 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-events-subscribe`
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