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.md
Evolving (read AND update every run):
${WORKSPACE}/Email/blocklist.md
${WORKSPACE}/Email/tracker.md
Output:
${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_start
Collect 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.md
email-patterns.md
If 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.