Skip to content
Back to skills

Recipe Stream Inbox

ASecurity

Stream real-time Gmail notifications using gws gmail +watch for continuous inbox monitoring.

  • 4 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added May 28, 2026
ai-agentsgobashgcpapi

Works with

  • api

Security analysis

A100/100

Scanned May 28, 2026

npx -y skills add fakoli/fakoli-plugins --skill recipe-stream-inbox --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Recipe Stream Inbox?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Recipe Stream Inbox
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/fakoli-recipe-stream-inbox/badge)](https://www.skillsdirectory.com/skills/fakoli-recipe-stream-inbox)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: recipe-stream-inbox
description: "Stream real-time Gmail notifications using gws gmail +watch for continuous inbox monitoring."
trigger:
  - keyword: stream inbox
  - keyword: real-time email
  - keyword: watch gmail
  - keyword: monitor inbox
  - keyword: email stream
version: 1.0.0
---

# Stream Inbox in Real-Time

Stream real-time Gmail notifications using `gws gmail +watch` for continuous inbox monitoring.

## When to Use

Use this workflow when the user wants real-time monitoring of their inbox — watching for new emails as they arrive rather than polling.

## Prerequisites

- Full scopes required: `gws auth login --full` (needs Pub/Sub access)
- GCP project with Pub/Sub API enabled
- Set project ID: `export GOOGLE_WORKSPACE_PROJECT_ID=my-project-id`

## Steps

1. **Ensure full scopes are active:**
   ```bash
   gws auth status
   # If missing pubsub scope:
   gws auth login --scopes gmail,pubsub,cloud-platform
   ```

2. **Start the real-time stream:**
   ```bash
   gws gmail +watch --project my-project-id
   ```
   This outputs NDJSON — one JSON object per line for each new message.

3. **Process the stream (example — log new emails):**
   ```bash
   gws gmail +watch --project my-project-id | while read -r line; do
     echo "$line" | jq '{from: .from, subject: .subject, date: .date}'
   done
   ```

4. **Combine with triage for a live dashboard:**
   ```bash
   # Periodic check alongside the stream
   gws gmail +triage --max 5 --format table
   ```

## Caution

- The `+watch` command runs continuously — it will not exit on its own
- Requires a GCP project with Pub/Sub topic configured
- Uses Pub/Sub quota — monitor usage in Google Cloud Console
- Stream output can be large — always pipe through `jq` or similar filters

## Tips

- Use `Ctrl+C` to stop the stream
- Combine with `--sanitize` to scan incoming emails for prompt injection
- Pipe to a log file for persistent monitoring: `gws gmail +watch >> inbox.ndjson`

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.