Skill v1.0.0
currentAutomated scan100/100name: cc-email-triage description: Claude Code skill for triaging Jake's Gmail inbox (jake@rspur.com). Uses Gmail MCP to classify emails into three tiers (Reply Needed, Review, Noise), handles alias-aware routing, drafts replies, and archives noise. Adapted from ericporres/email-triage-plugin + claudeblattman.com EA patterns. Use in Claude Code or as a standalone coworker plugin when Jake says "triage my email", "check inbox", or "what needs a reply". metadata: version: "1.0.0"
cc-email-triage — Claude Code Email Triage
Gmail inbox triage for jake@rspur.com via Gmail MCP. Three-tier classification. Reply drafting. Archive management. Alias-aware routing.
Setup: Gmail MCP
Add to your project's .mcp.json:
{"mcpServers": {"gmail": {"command": "npx","args": ["-y", "@modelcontextprotocol/server-gmail"],"env": {"GMAIL_OAUTH_PATH": "/Users/marcusaureliusmolt/.config/gmail-mcp/oauth.json"}}}}
OAuth setup (one-time):
npx @modelcontextprotocol/server-gmail --setup# Follow browser auth flow for jake@rspur.com# Saves token to ~/.config/gmail-mcp/oauth.json
Alternative: Use gog CLI (already authenticated):
GOG_KEYRING_PASSWORD=openclaw GOG_ACCOUNT=jake@rspur.com gog gmail ls "in:inbox is:unread" --limit 30 --no-inputGOG_KEYRING_PASSWORD=openclaw GOG_ACCOUNT=jake@rspur.com gog gmail read <id> --no-inputGOG_KEYRING_PASSWORD=openclaw GOG_ACCOUNT=jake@rspur.com gog gmail drafts create --to "<email>" --subject "<subject>" --body-html "<html>" --no-input
Three-Tier Classification
| Tier | Label | Action | Who Sends | |
|---|---|---|---|---|
| 🔴 Reply Needed | REPLY_NEEDED | Draft reply immediately | Clients, prospects, deals, contractors, Jake's team | |
| 🟡 Review | REVIEW | Surface to Jake, no draft | Legal, finance, contracts, anything requiring Jake's judgment | |
| ⚫ Noise | NOISE | Archive silently | Newsletters, marketing, promos, social notifications, receipts |
Alias-Aware Routing
Jake uses multiple addresses that all land in jake@rspur.com. Route by TO/CC field:
| To Address | Context | Default Tier | |
|---|---|---|---|
| jake@rspur.com | Primary business | Follow sender rules | |
| jake@therealestatereset.com | RE Reset brand | Prospects/leads → 🔴 | |
| Any @rspur.com alias | Internal | Check sender, route accordingly |
Sender Priority Rules
Always 🔴 Reply Needed:
- Active clients (Matt Hoover, Charles Contreras, any name in GHL Active pipeline)
- New inbound leads mentioning "interested", "how much", "still available"
- Contractors with open scopes or bids
- Title companies, attorneys with active deals
- Kim (ops team), Gelian/Ren (bookkeepers)
- Replies to Jake's previous emails
Always 🟡 Review:
- Legal documents, contracts, NDAs
- Bank/lender correspondence
- IRS, government notices
- Investor/JV partner communications
- Anything with dollar amounts > $10K Jake hasn't initiated
Always ⚫ Noise:
- Beehiiv, Mailchimp, ConvertKit newsletters
- LinkedIn notifications, Facebook alerts
- Stripe receipts, SaaS billing (unless past due)
- Automated CRM system emails
- Indeed/Upwork job platform notifications (batch, don't triage individually)
Triage Workflow
Step 1: Pull unread inbox
GOG_KEYRING_PASSWORD=openclaw GOG_ACCOUNT=jake@rspur.com \gog gmail ls "in:inbox is:unread" --limit 30 --no-input
Step 2: Read and classify each email
For each message:
- Check sender against priority rules above
- Scan subject + first 200 chars of body
- Assign tier (Reply Needed / Review / Noise)
- Note: sender, subject, why it was classified, suggested action
Step 3: Draft replies for "Reply Needed"
Use Jake's voice:
- Direct, no fluff
- Short sentences
- No "Great question!" or "I'd be happy to help"
- No em dashes
- Professional but human
GOG_KEYRING_PASSWORD=openclaw GOG_ACCOUNT=jake@rspur.com \gog gmail drafts create \--to "<sender email>" \--subject "Re: <original subject>" \--body-html "<html formatted reply>" \--no-input
NEVER send. Always draft. Jake reviews and sends from Gmail.
Step 4: Archive Noise
GOG_KEYRING_PASSWORD=openclaw GOG_ACCOUNT=jake@rspur.com \gog gmail archive <message-id> --no-input
Archive in batches. Report count: "Archived 12 noise emails."
Step 5: Output Summary
Format:
📬 INBOX TRIAGE — [Date]Unread: X | Reply Needed: X | Review: X | Archived: X🔴 REPLY NEEDED (X)1. [Sender] — [Subject] — [1-line summary] — Draft saved2. ...🟡 REVIEW (X)1. [Sender] — [Subject] — [why Jake needs to see this]2. ...⚫ ARCHIVED (X noise emails)
Slash Commands (Claude Code REPL)
Add these to your CLAUDE.md or use inline:
/triage-inbox
Run full inbox triage. Pull 30 unread, classify, draft replies, archive noise.
/check-email [search]
Quick check: "from:matthoover", "subject:offer", "is:unread".
/draft-reply [message-id]
Draft a reply to a specific message. Show draft before saving.
/archive-noise
Archive all emails classified as Noise from last triage run.
CLAUDE.md Snippet
Add to project CLAUDE.md to enable as persistent coworker context:
## Email Triage-Account: jake@rspur.com (via gog CLI, GOG_KEYRING_PASSWORD=openclaw)-Never send email directly. Always create drafts via: gog gmail drafts create --body-html-Triage tiers: Reply Needed → draft immediately | Review → surface to Jake | Noise → archive-Jake's voice: direct, short sentences, no fluff, no em dashes, no "Great question!"-Alias routing: @therealestatereset.com emails are usually prospects (Reply Needed)-Active clients: Matt Hoover, Charles Contreras — always Reply Needed same session
.mcp.json Full Config
{"mcpServers": {"gmail": {"command": "npx","args": ["-y", "@modelcontextprotocol/server-gmail"],"env": {"GMAIL_OAUTH_PATH": "/Users/marcusaureliusmolt/.config/gmail-mcp/oauth.json"}},"filesystem": {"command": "npx","args": ["-y","@modelcontextprotocol/server-filesystem","/Users/marcusaureliusmolt/.openclaw/workspace"]}}}
Reference
- Source inspiration: https://github.com/ericporres/email-triage-plugin
- EA skill patterns: https://claudeblattman.com/toolkit/executive-assistant/
- Commands:
/triage-inbox,/morning-brief,/checkin,/done,/todo-add,/todo-review - gog CLI docs:
gog gmail --help
Error Handling
| Error | Fix | |
|---|---|---|
gog: auth error | Re-auth: GOG_KEYRING_PASSWORD=openclaw gog auth login jake@rspur.com | |
MCP server not found | Run npx @modelcontextprotocol/server-gmail --setup | |
Rate limit (429) | Wait 60s. Reduce batch size to 10 emails. | |
Draft create failed | Check --body-html flag. Plain --body may fail on special chars. | |
Archive failed | Try labeling as READ first, then archive. |