productivity/email/skills/inbox-triage/SKILL.md
Runs a full inbox triage using the knowledge base created by the 'inbox-setup' skill. Light-intake by design (most invocations skip questions and run with KB-default preferences); asks at most 2 grill-me override questions when invocation is outside normal cadence or includes category-skip intent. Searches recent emails, classifies them via the user's taxonomy, researches new senders, generates recommendations, drafts replies (NEVER sends), delivers a report in the user's preferred format, and updates the knowledge base with learnings. Designed to run on a recurring schedule (1-3x daily) or on demand. Triggers: 'triage my inbox', 'inbox triage', 'check my email', 'run email triage', 'process my inbox', 'what's new in my email', 'handle my email', 'email triage', or any variation where the user wants their inbox processed. Requires the inbox-setup skill to have been run first.
npx skillsauth add alirezarezvani/claude-skills inbox-triageInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Paired with
inbox-setup. This skill consumes the 7-file knowledge base thatinbox-setupwrites at${WORKSPACE}/Email/. The file contracts MUST match exactly. Seereferences/kb_file_contract.md— this is the mirror of the setup-side contract, viewed from the read side.
Run on a recurring schedule (1–3x daily) or on demand. Classify recent emails, research new senders, generate decision recommendations, draft replies (NEVER SEND), deliver a clean report, and update the knowledge base with what was learned this run.
Required reads at start (fail-fast if missing):
Core (required):
${WORKSPACE}/Email/email-taxonomy.md — classification + report preferences${WORKSPACE}/Email/email-patterns.md — voice, persona, templates, hard rulesOptional core (read if exists):
${WORKSPACE}/Email/evaluation-framework.md${WORKSPACE}/Email/rate-card.mdEvolving (read AND update every run):
${WORKSPACE}/Email/blocklist.md${WORKSPACE}/Email/tracker.mdOutput:
${WORKSPACE}/Email/triage-log/<YYYY-MM-DD>-<run-label>.md — per-run logIf any core required file is missing → halt, direct user to run inbox-setup first. Use scripts/kb_reader.py to perform the read + validation.
This skill creates drafts. It NEVER sends.
This is the safety property that makes the skill safe to run automatically. Stated multiple times in this skill body. Non-negotiable.
The scripts/draft_safety_validator.py enforces it post-run. Any send-shaped tool call in the action log fails validation. See references/drafts_only_safety.md for the full discipline canon.
Inbox-triage is light-intake by design — it runs on a recurring cadence with preferences pre-baked into the knowledge base from inbox-setup. The grill-me discipline here is asking ONLY the override questions that matter THIS run.
Override the default 9-hour search window? Pick: yes (specify hours) / no (use default).
Why I'm asking: If you're running on-demand outside your normal 2x/day cadence, you may want a wider window (24h after a long break) or narrower (2h for a quick check).
Skip if cadence is normal.
Skip any categories this run? E.g., "skip newsletters", "skip financial".
Why I'm asking: Sometimes you just want to scan opportunities or just want to clear active threads. Category skip narrows the run scope.
Skip if user gave no category-skip signal.
Stop condition: Max 2 questions. Default invocations skip both questions and run with KB-default preferences. The skill is optimized for fast recurring execution; intake is the exception, not the norm.
Compute via current date math. Default lookback: 9 hours (works for 2x/day cadence with slight overlap so emails between runs aren't missed).
Use scripts/search_window_calculator.py --cadence <CADENCE> --now <ISO>:
now = current_datetime
window_start = now - 9_hours (default for 2x-daily)
run_label = "Morning" if now.hour < 12 else "Afternoon" if now.hour < 17 else "Evening"
Cadence-to-default-window mapping (override via Q1):
| Cadence (from email-taxonomy.md S1.Q5) | Default window | |---|---| | once daily | 26h | | 2x daily | 9h | | 3x daily | 6h | | on-demand only | 24h (asks Q1) |
Two queries (provider-agnostic adapter pattern):
window_startCollect for each email: sender, subject, date, snippet, thread ID, labels.
Provider adapter mapping:
| Provider | Tool | |---|---| | Gmail | Gmail MCP | | Outlook / Microsoft 365 | Outlook MCP | | IMAP (Fastmail, ProtonMail, etc.) | IMAP MCP if available; halt otherwise | | (no email tool available) | Halt with clear message: "No email tool registered for this session." |
Apply the taxonomy from email-taxonomy.md. For lowest-priority category (newsletters / automation / spam): skip thread reads entirely — context cost not worth it. For everything else: read full thread.
For senders not in tracker / blocklist / prior logs:
blocklist.md → if matched, auto-skiptracker.md → if known thread, note existing contextSkip research entirely for: known senders (in tracker), internal email, automated notifications, obvious low-priority.
For decision-required emails, apply the framework from evaluation-framework.md. Categorize:
| Category | When | Output | |---|---|---| | TAKE IT | Meets criteria | Recommend engaging; draft reply (Step 6) | | WORTH CONSIDERING | Has potential, needs user judgment | Surface key context; draft for user to edit | | PASS | Doesn't meet criteria | Brief "why" (1–3 sentences); draft polite decline | | FLAG FOR REVIEW | Unusual; needs direct user decision | Surface fully; NO draft (user decides response shape) |
Each: brief "why", relevant context, pricing/timeline comparison if applicable.
Skip Step 5 entirely if no evaluation-framework.md exists.
See references/triage_decision_framework.md for the framework canon.
For every reasonable reply candidate, create a draft using email-patterns.md voice rules.
Draft for: opportunity responses (TAKE IT / WORTH / PASS), active conversations needing reply, action items, important personal emails.
Do NOT draft for:
Mechanics:
to, subject (Re: [original])The draft body MUST honor:
email-patterns.mdemail-patterns.mdIf evaluation-framework.md exists, draft tone matches recommendation:
Honor user's preference from email-taxonomy.md "Report Preferences" section. Default: email draft to self with HTML.
Subject: Inbox Triage — [Day], [Month Date] ([Run Label])
Sections (in order):
**Sender** — one-sentence summary + recommendation.Formatting (if HTML):
<style>)blocklist.md (append new):
tracker.md (append + update):
Learning patterns to observe over runs:
After 5+ runs, suggest KB improvements to user (e.g., "You always decline emails from X — add as auto-skip?").
Save to ${WORKSPACE}/Email/triage-log/[YYYY-MM-DD]-[run-label].md:
The log is the audit trail for scripts/draft_safety_validator.py to scan for send operations post-run.
Even with zero new emails:
tracker.md for items due today or overdueSkip Steps 3–6 entirely on empty inbox.
| Situation | Behavior |
|---|---|
| KB files missing | Halt; direct user to run inbox-setup |
| Email tool unavailable | Halt with clear message about required tool |
| Web search unavailable for sender research | Skip research step; note senders not researched |
| Draft creation fails | Skip that draft; note in log; report continues |
| Report delivery fails | Save report to file as fallback; notify user |
| User has 100+ new emails | Stay within reasonable limits; flag volume; offer to focus on priority categories only |
| Sender appears in both blocklist and tracker | Tracker wins (active conversation); note inconsistency in log |
| Script | Role |
|---|---|
| scripts/kb_reader.py | Reads + validates the 7-file KB. Returns parsed structure. Halts with explicit error if required files missing. |
| scripts/search_window_calculator.py | Computes window_start from cadence + current time. Returns run_label. Honors Q1 override. |
| scripts/draft_safety_validator.py | Post-run scan of the action log for any send-shaped tool call. FAILs if detected. The deterministic enforcement of the NEVER-SEND rule. |
references/kb_file_contract.md — canonical 7-file contract (read perspective; mirrors inbox-setup/references/kb_file_contract.md)references/triage_decision_framework.md — TAKE IT / WORTH / PASS / FLAG taxonomyreferences/drafts_only_safety.md — the NEVER-SEND discipline canonVersion: 1.0.0
Source spec: megaprompts/07-inbox-triage-megaprompt.md
Build pattern: Path B (direct conversion). Paired with inbox-setup.
tools
Code review automation for TypeScript, JavaScript, Python, Go, Swift, Kotlin, C#, .NET, Java, C, C++, Rust, Ruby, PHP, and Dart/Flutter. Analyzes PRs for complexity and risk, checks code quality for SOLID violations and code smells, generates review reports. Use when reviewing pull requests, analyzing code quality, identifying issues, generating review checklists.
tools
Use when planning, funding, scoping, or synthesizing enterprise research across workstreams — clinical study design, R&D program finance, market sizing/surveys, or product/user research. Triggers on "design this clinical study", "what sample size", "R&D budget", "burn rate", "capitalize or expense", "TAM SAM SOM", "market sizing", "survey design", "segment the market", "plan user interviews", "usability test", "synthesize research insights". Forks context to route to one of four Research-Operations sub-skills (clinical-research, research-finance, market-research, product-research) and returns a digest. Distinct from ra-qm-team (regulatory submission), finance (corporate close/valuation), research/grants (funding discovery), product-team (persona/journey/live experiments), and marketing-skill (campaign analytics).
development
Use when managing the money for an internal R&D program or portfolio — building a multi-period program budget with the F&A (indirect) split, tracking burn rate and runway against value-inflection milestones, or routing R&D cost items to a capitalize-vs-expense determination. Every budget output surfaces its assumptions block; capitalize-vs-expense is decision-support only and routes to a named finance owner — it never books an entry or decides accounting treatment. Distinct from finance/financial-analysis (corporate DCF, close, valuation) and research/grants (funding discovery — this manages money already won).
development
Use when planning and synthesizing product/user research as a method-and-repository discipline — selecting the right method for the goal (generative interviews vs usability test vs concept test vs validation), computing method-based saturation/sample size with an explicit confidence level, or synthesizing coded observations into insights while flagging single-source anecdotes. Never fabricates user insight; an insight requires recurrence across independent participants. Distinct from product-team/ux-researcher-designer (persona/journey artifacts), product-discovery (discovery-sprint planning), and experiment-designer (live A/B) — this is the research-ops method + insight-repository layer.