gws-gmail-watch

Gmail: Watch for new emails and stream them as NDJSON.

25 stars

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

$curl -o ~/.claude/skills/gws-gmail-watch/SKILL.md --create-dirs "https://raw.githubusercontent.com/ComeOnOliver/skillshub/main/skills/googleworkspace/cli/gws-gmail-watch/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/gws-gmail-watch/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How gws-gmail-watch Compares

Feature / Agentgws-gmail-watchStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/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

25
from ComeOnOliver/skillshub

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

25
from ComeOnOliver/skillshub

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

25
from ComeOnOliver/skillshub

Subscribe to change notifications on a Google Drive file or folder.

recipe-create-gmail-filter

25
from ComeOnOliver/skillshub

Create a Gmail filter to automatically label, star, or categorize incoming messages.

gws-gmail-triage

25
from ComeOnOliver/skillshub

Gmail: Show unread inbox summary (sender, subject, date).

gws-gmail-send

25
from ComeOnOliver/skillshub

Gmail: Send an email.

gws-gmail-reply

25
from ComeOnOliver/skillshub

Gmail: Reply to a message (handles threading automatically).

gws-gmail-reply-all

25
from ComeOnOliver/skillshub

Gmail: Reply-all to a message (handles threading automatically).

gws-gmail-read

25
from ComeOnOliver/skillshub

Gmail: Read a message and extract its body or headers.

gws-gmail-forward

25
from ComeOnOliver/skillshub

Gmail: Forward a message to new recipients.

blogwatcher

25
from ComeOnOliver/skillshub

Track blog and RSS/Atom feed updates with the `blogwatcher` CLI.

gmail-automation

25
from ComeOnOliver/skillshub

Automate Gmail tasks via Rube MCP (Composio): send/reply, search, labels, drafts, attachments. Always search tools first for current schemas.