What problem does it solve? Manually polling a Gmail inbox for new messages is inefficient and error-prone. This Skill sets up Gmail push notifications through Google Cloud Pub/Sub and streams incoming emails as NDJSON, enabling real-time email-driven automation. ## Core Features & Use Cases - Real-Time Email Streaming: Watch a Gmail mailbox and receive new messages as NDJSON events via Pub/Sub push notifications. - Flexible Filtering and Output: Filter by Gmail label IDs, control message format (full, metadata, minimal, raw), and write each message to a separate JSON file with --output-dir. - Resource Lifecycle Management: Reuse existing Pub/Sub topics and subscriptions, or clean up created resources automatically on exit with --cleanup. - Use Case: Trigger a downstream pipeline whenever a new invoice arrives in your INBOX by running a one-shot watch with label filters and writing messages to a directory for processing. ## Quick Start Ask the assistant to watch your Gmail inbox for new messages in your GCP project and stream them as NDJSON, for example by running gws gmail +watch with your project ID.