Inbox setup

From sinhoneyy/master-skills · View interactive version

Inbox setup is an AI agent skill from the GitHub repository sinhoneyy/master-skills. One-time setup skill that builds a personalized inbox triage knowledge base via interactive interview. Interviews the user about their email patterns, business context, reply style, and priorities using grill-me discipline (one question at a time, forcing format where possible, dependency-ordered, e

How to use this skill

Skill file

Inbox-Setup — Email Triage Onboarding

Paired with inbox-triage. This skill writes the 7-file knowledge base at ${WORKSPACE}/Email/ that inbox-triage reads on every run. The file contracts (names, sections, fields) MUST match between the two skills exactly. See CODE3.

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.

Invocation Triggers

Conduct Discipline

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 CODE0 for the 8-section discipline detail.

Knowledge Base Contract — Files To Produce

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 CODE1 for the full spec.

Stop Condition (Full Interview)

~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}.

Section 1: The Big Picture

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).

Section 2: Email Categories

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.

Section 3: Reply Style & Voice

Six grill-me questions plus the critical sample request:

S3.SAMPLES (the critical highest-quality input)

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.py to 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 CODE1 for the sample-extraction discipline.

Section 4: Evaluation Framework (Conditional)

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.

Section 5: Blocklist & Patterns

Three grill-me questions, one at a time:

Action: Generate blocklist.md (auto-maintained by triage thereafter).

Section 6: Current State

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.

Section 7: Report Preferences

Three grill-me questions, one at a time:

Action: Save these preferences into email-taxonomy.md under a "Report Preferences" section.

Section 8: Confirmation & Handoff

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.

Privacy Boundary

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-Run Behavior

Re-running on an existing setup:

  1. Detect ${WORKSPACE}/Email/
  2. For each existing file, ask per-file: replace / merge / skip
  3. Walk only the sections whose files the user chose to update
  4. Skip sections whose files the user kept

Error Handling

| 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 |

Portability

Tooling

| 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

Anti-Patterns To Reject


Version: 1.0.0

Source spec: CODE0

Build pattern: Path B (direct conversion). Paired with inbox-triage.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.