gws-gmail-watch
यह क्या करती है
यह कमांड आपके Gmail inbox को देखती है कि कोई नया email आया है या नहीं। कोई नया email आने पर, यह उसे formatted text (NDJSON) के रूप में आपको भेज देती है।
कब इस्तेमाल करें
- ✓जब आप चाहते हैं कि ज़रूरी email आते ही आपको पता चल जाए।
- ✓जब कोई ऐसा काम automate करना हो जो नए emails पर निर्भर हो (जैसे orders को process करना)।
- ✓किसी खास label वाले emails पर नज़र रखने के लिए।
Skill का लिंक
https://github.com/googleworkspace/cli/blob/main/skills/gws-gmail-watch/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे inbox में नए emails के लिए नज़र रखो और जब कोई email आए तो मुझे बता दो।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह एक Google Cloud service का इस्तेमाल करती है, ताकि नए Gmail messages की notifications मिल सकें। ये notifications फिर एक text format में आपको भेजी जाती हैं, जिसे दूसरे programs आसानी से पढ़ सकते हैं।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
gmail +watch
PREREQUISITE: Read
../gws-shared/SKILL.mdfor auth, global flags, and security rules. If missing, rungws generate-skillsto create it.
Watch for new emails and stream them as NDJSON
Usage
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
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 — Global flags and auth
- gws-gmail — All send, read, and manage email commands
अक्सर पूछे जाने वाले सवाल
मैं emails देखना कैसे बंद करूँ?
आप अपने keyboard पर Ctrl+C दबाकर कमांड को रोक सकते हैं।
जो emails आते हैं उनका क्या होता है?
वे formatted text (NDJSON) में आपको भेजे जाते हैं। अगर आप चाहें तो इन्हें files में save करने का setup भी कर सकते हैं।
क्या मुझे Google Cloud में कुछ setup करना होगा?
हाँ, इस service के काम करने के लिए आपको Google Cloud project बनाना पड़ सकता है। कमांड यह setup आपके लिए करने की कोशिश करती है, लेकिन कुछ और जानकारी मांग सकती है।
जानकारी
लोकप्रियता
- GitHub स्टार
- 32k
- रैंकिंग में स्थान
- #9173
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 6/10/2026
कमेंट
- …
इस repository की और skills
gws-admin-reports
32kआपके एजेंट को Google Workspace से गतिविधि रिपोर्ट लाने में मदद करता है। यह ऑडिट और उपयोग का डेटा इकट्ठा करता है।
gws-calendar-agenda
32kआपके एजेंट को सभी कैलेंडर में आने वाले इवेंट दिखाने में मदद करता है। अपना शेड्यूल व्यवस्थित करने और आने वाली चीज़ें जानने में उपयोगी है।
gws-calendar-insert
32kआपके एजेंट को Google Calendar में नए इवेंट बनाने देता है। अपॉइंटमेंट और मीटिंग तय करने के लिए उपयोगी है।
gws-calendar
32kआपके एजेंट को कैलेंडर और इवेंट मैनेज करने देता है। अपने काम और जीवन को व्यवस्थित करने के लिए उपयोगी है।
मिलती-जुलती skills
feishu-doc
394kयह आपके एजेंट को document टूल से Feishu क्लाउड दस्तावेज़ पढ़ने, बनाने और बदलने में मदद करती है, जिसमें टेक्स्ट, इमेज और टेबल शामिल हैं।
feishu-drive
394kयह आपके एजेंट को बॉट के साथ साझा किए गए Feishu क्लाउड फ़ोल्डर में फ़ाइलें देखने, व्यवस्थित करने और उन पर टिप्पणी करने देती है।
feishu-perm
394kयह आपके एजेंट को Feishu फ़ाइल तक किसकी पहुंच है, यह जांचने और बदलने देती है, और आपके अनुरोध के लिए सबसे छोटी अनुमति चुनती है।