gws-gmail-watch
Gmail: Watch for new emails and stream them as NDJSON.
Best use case
gws-gmail-watch is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Gmail: Watch for new emails and stream them as NDJSON.
Teams using gws-gmail-watch should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/gws-gmail-watch/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How gws-gmail-watch Compares
| Feature / Agent | gws-gmail-watch | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Gmail: Watch for new emails and stream them as NDJSON.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# gmail +watch > **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 ## Usage ```bash gws gmail +watch ``` ## Flags | 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 | ## Examples ```bash 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 ``` ## Tips - Gmail watch expires after 7 days — re-run to renew. - Without --cleanup, Pub/Sub resources persist for reconnection. - Press Ctrl-C to stop gracefully. ## See Also - [gws-shared](../gws-shared/SKILL.md) — Global flags and auth - [gws-gmail](../gws-gmail/SKILL.md) — All send, read, and manage email commands
Related Skills
cloudwatch-alarm-creator
Cloudwatch Alarm Creator - Auto-activating skill for AWS Skills. Triggers on: cloudwatch alarm creator, cloudwatch alarm creator Part of the AWS Skills skill category.
cloudwatch
AWS CloudWatch monitoring for logs, metrics, alarms, and dashboards. Use when setting up monitoring, creating alarms, querying logs with Insights, configuring metric filters, building dashboards, or troubleshooting application issues.
recipe-watch-drive-changes
Subscribe to change notifications on a Google Drive file or folder.
recipe-create-gmail-filter
Create a Gmail filter to automatically label, star, or categorize incoming messages.
gws-gmail-triage
Gmail: Show unread inbox summary (sender, subject, date).
gws-gmail-send
Gmail: Send an email.
gws-gmail-reply
Gmail: Reply to a message (handles threading automatically).
gws-gmail-reply-all
Gmail: Reply-all to a message (handles threading automatically).
gws-gmail-read
Gmail: Read a message and extract its body or headers.
gws-gmail-forward
Gmail: Forward a message to new recipients.
blogwatcher
Track blog and RSS/Atom feed updates with the `blogwatcher` CLI.
gmail-automation
Automate Gmail tasks via Rube MCP (Composio): send/reply, search, labels, drafts, attachments. Always search tools first for current schemas.