From brain-os
Scans last 3 months of Gmail inbox history to generate gmail-rules.md with sender patterns, importance signals, and cleanup rules. Use for first-time Gmail automation setup or refreshing email rules.
npx claudepluginhub sonthanh/brain-os-pluginThis skill uses the workspace's default tool permissions.
**Vault path:** Read from `${CLAUDE_PLUGIN_ROOT}/brain-os.config.md`
Executes Gmail triage actions: archive, delete, label, star, unsubscribe inbox emails; drafts replies from vault reports; backfills calendar events. Use /gmail for cleanup or drafting.
Scans Gmail inbox for recent emails using time-based queries, classifies into three priority tiers, and drafts replies for urgent Tier 1 items.
Triages unread emails from Gmail or Outlook, scores importance (0-100) using sender recognition, urgency keywords, thread depth, and relevance, categorizes into Urgent/Important/Routine/Archive, and generates reply suggestions for priorities.
Share bugs, ideas, or general feedback.
Vault path: Read from ${CLAUDE_PLUGIN_ROOT}/brain-os.config.md
Scans your last 3 months of inbox to learn your email patterns and generates gmail-rules.md — the rules file that the Gmail triage system uses.
Scan inbox history via tsx ${CLAUDE_PLUGIN_ROOT}/skills/gmail-bootstrap/scripts/gmail-bootstrap.ts:
Analyze patterns:
Generate rules file at {vault}/business/intelligence/gmail-rules.md:
# Gmail Rules
<!-- Auto-generated by /gmail-bootstrap on YYYY-MM-DD -->
<!-- Edit freely — the triage system reads this file every run -->
## Always Important (save to vault + flag for reply)
- from:client@domain.com — replied 12 times
- from:investor@vc.com — replied 8 times, starred 3
## Important (read, but auto-archive if no action in 24h)
- from:team@company.com — read always, replied sometimes
## Informational (auto-archive)
- from:newsletter@substack.com — read occasionally, never replied
- from:updates@github.com — read 20%, never replied
## Auto-delete + Filter
- from:promo@spam.com — never opened across 15 emails
## Custom Rules
<!-- Add your own patterns below -->
/syncSafe to re-run anytime. Will regenerate the rules file but preserve the ## Custom Rules section that you edited manually.
Follow skill-spec.md § 11. Append to {vault}/daily/skill-outcomes/gmail-bootstrap.log:
{date} | gmail-bootstrap | bootstrap | ~/work/brain-os-plugin | business/intelligence/gmail-rules.md | commit:{hash} | {result}
result: pass if rules generated and saved, fail if API errors or scan incomplete