/himalaya:triage - AI Email Triage
Classify inbox emails using Claude's reasoning via MCP prompts.
Usage
/himalaya:triage # Triage last 10 emails
/himalaya:triage 20 # Triage last 20
/himalaya:triage --folder Sent # Triage specific folder
When Invoked
- Call
list_emailsMCP tool to get recent envelopes - For each email, call
read_emailto get body - Use
triage_inboxMCP prompt to classify:- Actionable - requires response or action
- Informational - read but no action needed
- Skip - spam, newsletters, can ignore
- Display classified results
- Offer batch actions:
flag_email— mark as Flagged, Seen, etc.move_email— move to Archive, Trash, or custom folderdraft_reply— draft a reply to actionable emailscreate_action_item— extract todos from actionable emails
Output Format
📋 Triage Results (10 emails)
🔴 Actionable (3):
1. alice@... — Meeting tomorrow (needs RSVP)
2. boss@... — Q1 report due Friday
3. student@... — Question about assignment
🟡 Informational (4):
4. github@... — PR merged: feature/auth
5. newsletter@... — Weekly digest
...
⚪ Skip (3):
8. spam@... — ChatGPT for Excel
...
→ "Flag 8 as junk" to mark spam
→ "Read #2" for full email