Streams incoming Gmail messages as NDJSON using Google Cloud Pub/Sub, which is useful for building email automation workflows or monitoring specific inboxes. Sets up the necessary Pub/Sub topic and subscription automatically, handles Gmail's push notifications, and lets you filter by label IDs like INBOX or UNREAD. The watch expires after 7 days so you'll need to re-run it periodically. Works well for feeding email data into scripts or dashboards, though you'll need a GCP project with billing enabled since it creates Pub/Sub resources.
npx skills add https://github.com/googleworkspace/cli --skill gws-gmail-watch