gws-gmail-watch
Monitor Gmail Messages with Pub/Sub
New Gmail messages are difficult to monitor continuously through manual checks. This skill streams incoming messages as NDJSON through Google Cloud Pub/Sub.
Install with my Agent
Copy this request to your Agent. It includes the canonical Skill page and manifest.
Review the Skillstore skill "gws-gmail-watch" from https://skillstore.io/skills/googleworkspace-gws-gmail-watch.md and its manifest at https://skillstore.io/api/skills/googleworkspace-gws-gmail-watch/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.Your Agent should still show its plan and request any confirmation required by the security policy.
Agent-readable resources
Use these links when an AI agent, crawler, or script needs clean context instead of reading the full page.
Test it
Using "gws-gmail-watch". Watch the INBOX label once in project mail-automation.
Expected outcome:
The watcher connects through the project, pulls one batch of inbox messages, emits each result as NDJSON, and exits.
Using "gws-gmail-watch". Use my existing subscription and store each full message in the emails directory.
Expected outcome:
The watcher uses the supplied subscription, streams full message records, and writes each message to a separate file in the selected directory.
Using "gws-gmail-watch". Watch continuously and clean up resources when stopped.
Expected outcome:
The watcher polls until interrupted, stops gracefully, and removes the Pub/Sub resources created for the session.
Security Audit
SafeAll 17 static findings are false positives caused by Markdown code formatting and fixed sibling documentation links. The reviewed skill contains no shell backtick execution, path traversal behavior, prompt injection, or malicious intent.
Risk Factors
โ๏ธ External commands (14)
๐ Filesystem access (3)
Share & cite this report
Share the versioned assessment report, neutral badge, embed card, and citations. Skillstore reports evidence without deciding whether this Skill is safe.
Copy report link
https://skillstore.io/skills/googleworkspace-gws-gmail-watch/audits/7?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown badge
[](https://skillstore.io/skills/googleworkspace-gws-gmail-watch?utm_source=security_passport_badge)HTML badge
<a href="https://skillstore.io/skills/googleworkspace-gws-gmail-watch?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/googleworkspace-gws-gmail-watch/security.svg" alt="Skillstore security assessment" loading="lazy"></a>Embed card
<iframe src="https://skillstore.io/embed/skills/googleworkspace-gws-gmail-watch.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>Academic citations (APA ยท BibTeX ยท CFF)
APA citation
googleworkspace. (2026). gws-gmail-watch security audit report (audit version 7) [Author version 0.23.0]. Skillstore. https://skillstore.io/skills/googleworkspace-gws-gmail-watch/audits/7BibTeX citation
@techreport{googleworkspace-googleworkspace-gws-gmail-watch-2026,
author = {googleworkspace},
title = {gws-gmail-watch security audit report (audit version 7)},
institution = {Skillstore},
year = {2026},
number = {7},
url = {https://skillstore.io/skills/googleworkspace-gws-gmail-watch/audits/7},
note = {Author version 0.23.0}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "gws-gmail-watch security audit report (audit version 7)"
version: "0.23.0"
type: report
authors:
- name: "googleworkspace"
date-released: "2026-08-05"
url: "https://skillstore.io/skills/googleworkspace-gws-gmail-watch/audits/7"
identifiers:
- type: other
value: "skillstore:googleworkspace-gws-gmail-watch:audit:7"
description: "Skillstore immutable audit report identifier"
Skillstore Score
Why this score Evidence Confidence: HighWhat You Can Build
Monitor an Operations Inbox
Stream new inbox messages into an event-processing workflow with controlled polling and batch sizes.
Test Gmail Automations
Pull one batch of labeled messages to verify an integration without running a continuous watcher.
Archive Incoming Messages
Write each watched message to a separate file for approved review or retention workflows.
Try These Prompts
Watch for new Gmail messages using my authenticated gws setup and stream the results as NDJSON.
Watch Gmail messages with the INBOX label in project [PROJECT_ID]. Pull one batch, then stop.
Watch Gmail through Pub/Sub subscription [SUBSCRIPTION_NAME]. Use metadata format, pull up to [COUNT] messages, and poll every [SECONDS] seconds.
Watch labeled Gmail messages in project [PROJECT_ID]. Write each message to [OUTPUT_DIRECTORY], then remove resources created by this session on exit.
Best Practices
- Use the narrowest Gmail labels and message format required for the workflow.
- Protect output files because full Gmail messages can contain sensitive information.
- Use an existing Pub/Sub subscription when resource lifecycle is managed elsewhere.
Avoid
- Do not enable cleanup when other workflows depend on the created Pub/Sub resources.
- Do not store full messages in a broadly accessible directory.
- Do not assume the watch remains active beyond seven days.
Frequently Asked Questions
What does this skill monitor?
Does it require a Google Cloud project?
Can I watch only selected messages?
Can it run only once?
Where can message data be stored?
How long does a Gmail watch last?
Developer Details
Author
googleworkspaceLicense
MIT
Author version
v0.23.0
Skillstore revision
r2
Ref
286d37c9c189ddd1aafd3548415fb031d1df79d5
Maintenance freshness
8/6/2026
Usage
5 downloads ยท 85 views
File structure
๐ SKILL.md