Paired with
inbox-triage. This skill writes the 7-file knowledge base at${WORKSPACE}/Email/thatinbox-triagereads on every run. The file contracts (names, sections, fields) MUST match between the two skills exactly. Seereferences/kb_file_contract.md.
Run once (or re-run when business/priorities change). Interview the user about their email patterns, business context, reply style, and priorities. Generate the structured knowledge base in ${WORKSPACE}/Email/ that captures everything inbox-triage needs to process the inbox effectively.
Do NOT generate all files at once. Walk through the 8 sections one at a time. Each section commits its file(s) before moving on. Partial completion (e.g., user drops off mid-interview) still produces a usable partial KB.
Grill-me discipline applies throughout:
See references/grill_me_section_walk.md for the 8-section discipline detail.
Exactly these files at ${WORKSPACE}/Email/:
| File | Purpose | Required? |
|---|---|---|
email-taxonomy.md |
Classification system + report preferences | Yes |
email-patterns.md |
Reply voice, tone, templates, hard rules | Yes |
evaluation-framework.md |
Decision tree for opportunity emails | Only if user receives pitches/opportunities |
rate-card.md |
Pricing, terms, negotiation posture | Only if user has pricing |
blocklist.md |
Auto-skip senders + learned decline patterns | Yes (seeded, grows over time) |
tracker.md |
Active follow-ups, overdue items, deadlines | Yes (starts mostly empty) |
triage-log/ |
Directory for per-run logs | Yes (created empty) |
The contract is identical to what inbox-triage expects — see references/kb_file_contract.md for the full spec.
~25–31 questions total across the 8 sections (depending on skip-logic). Hard ceiling: 35 questions including all sub-clarifications. Section 4 (Evaluation Framework) is skipped entirely when Section 1 surfaced no opportunity-email category, dropping the total by 6 questions and the rate-card file. After Section 8's confirmation + handoff message, intake is closed — never re-open it. To change preferences later, the user re-runs the skill (which detects existing files and asks per-file: replace / merge / skip). The grill-me one-at-a-time rule applies across section boundaries: do NOT batch questions even when moving from S{n} to S{n+1}.
Six grill-me questions, one at a time:
Action: Build mental model. Do NOT write files yet. Note whether opportunity emails are a category (drives S4 skip-logic).
Propose 5–7 categories based on Section 1 — pre-recommend a subset, not the whole template menu:
Then three forcing questions, one at a time:
Action: Generate email-taxonomy.md with categories, signals (for each: trigger phrases / sender patterns / subject markers), and default actions per category.
Six grill-me questions plus the critical sample request:
Paste 3–5 real sent emails from your inbox.
Why I'm asking: Self-description of voice is unreliable. Real samples are the best signal — I'll analyze them for voice patterns that supplement everything above. Use
scripts/voice_sample_analyzer.pyto extract patterns deterministically.
If user runs a business: also ask about media kits, rate sheets, standard pitches, repeated replies.
Action: Generate email-patterns.md with tone description (with do/don't examples), persona rules, templates, signatures, hard rules. See references/voice_calibration.md for the sample-extraction discipline.
Skip-logic: only run this section if Section 1 surfaced opportunity emails as a meaningful inbox category. Otherwise jump straight to Section 5.
Six grill-me questions, one at a time:
Action: Generate evaluation-framework.md (decision tree + recommendation categories + VIP list) AND rate-card.md if pricing exists.
Three grill-me questions, one at a time:
Action: Generate blocklist.md (auto-maintained by triage thereafter).
Three grill-me questions, one at a time:
Action: Generate tracker.md with active follow-ups table, overdue section, resolved section (empty), update log (empty). Also create empty triage-log/ directory.
Three grill-me questions, one at a time:
Action: Save these preferences into email-taxonomy.md under a "Report Preferences" section.
List every file created with one-sentence summary. Then:
Your triage system is ready. Run the inbox-triage skill to process your inbox. First runs need oversight — system learns from your edits and overrides.
Remind: re-run this setup anytime business/pricing/priorities change.
Run scripts/kb_validator.py --workspace ${WORKSPACE} to confirm the 7-file contract is satisfied before final handoff.
Never persist passwords, full account numbers, SSNs, or other sensitive credentials in knowledge base files. If the user volunteers such info during the interview, acknowledge it but don't store it; the relevant KB file gets [stored separately by user] in its place.
Re-running on an existing setup:
${WORKSPACE}/Email/
| Situation | Behavior |
|---|---|
| Workspace inaccessible | Stop. Tell user where files would go and ask for permission/path |
| User refuses to share samples | Use self-description; flag in patterns file that calibration may need iteration |
| User says "skip this" mid-interview | Honor it; flag the gap in the file as [needs follow-up] |
| Sensitive info volunteered | Acknowledge but don't persist; note in file as [stored separately by user] |
| Re-run on existing setup | Detect existing files; ask user per-file: replace, merge, skip |
| User has no pricing / opportunities | Skip Section 4 entirely; don't create empty files |
| Script | Role |
|---|---|
scripts/kb_validator.py |
Validates the 7-file KB output (required files present, conditional files only if their sections ran, headers + structure correct). |
scripts/section_progress_tracker.py |
JSON-backed walk state at ~/.inbox_setup_sessions/<session>.json. Tracks active section, answered questions, committed files. |
scripts/voice_sample_analyzer.py |
Extracts voice patterns from pasted sent-email samples — opening phrases, sign-offs, length distribution, register markers. |
references/kb_file_contract.md — the canonical 7-file contract (write perspective; mirror lives in inbox-triage/references/)references/grill_me_section_walk.md — 8-section discipline, skip-logic, commit-per-sectionreferences/voice_calibration.md — sample-based voice extraction theory + anti-patternsrate-card.md or evaluation-framework.md when they don't applyVersion: 1.0.0
Source spec: megaprompts/06-inbox-setup-megaprompt.md
Build pattern: Path B (direct conversion). Paired with inbox-triage.