gws-gmail-watch
仓库创建 2026年3月3日最近提交 4 天前SkillHot 收录 20 天前
▸ 精选理由
适合事件驱动或 agent 实时响应场景。
▸ 风险提示
需要 Google 帐号授权并授予 Gmail API 权限。
这个 Skill 做什么
监听新邮件并以 NDJSON 实时输出,便于流式处理。
实时监听 Gmail 新邮件并把每条消息以 NDJSON 流式输出,方便后续流水线或实时处理消费。适合需要把邮件事件接入日志系统、处理队列或做实时告警的场景。特别之处是直接输出标准化的 NDJSON,便于和 stream 处理器或管道无缝对接。
▸ 展开 SKILL.md 英文原文
Gmail: Watch for new emails and stream them as NDJSON.
3.0w
Stars
1.8k
Forks
40
仓库内 Skill
+562
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/googleworkspace/cli/main/skills/gws-gmail-watch/SKILL.md或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/googleworkspace/cli/main/skills/gws-gmail-watch/SKILL.md"SKILL.MD 节选查看完整文件 ↗
# 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
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有