[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M755Q1XSTAS57PR6VQPPKCS3":3,"skill-same:01M755Q1XSTAS57PR6VQPPKCS3":76},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":13,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":33,"install":34,"resources":47},"01M755Q1XSTAS57PR6VQPPKCS3","inbox-triage",null,"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.","ASoudy\u002FAGS","ASoudy","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F40639702?v=4","01M74G5NTCW8MWDNRTAF303PA1","01M74G5NTZXSE6T0GZR5BCB6V0",0,"MIT","https:\u002F\u002Fgithub.com\u002FASoudy\u002FAGS\u002Fblob\u002Fmain\u002Fclaude_skills_libraries\u002Fnginity-skills-library\u002Fproductivity\u002Femail\u002Fskills\u002Finbox-triage\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: inbox-triage\ndescription: \"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.\"\nlicense: MIT\nmetadata:\n  source_spec: \"megaprompts\u002F07-inbox-triage-megaprompt.md\"\n  build_pattern: \"Path B (direct conversion)\"\n  paired_with: \"inbox-setup (consumes the 7-file KB it produces)\"\n  version: 1.0.0\n---\n\n# Inbox-Triage — Recurring Email Triage\n\n> **Paired with `inbox-setup`.** This skill consumes the 7-file knowledge base that `inbox-setup` writes at `${WORKSPACE}\u002FEmail\u002F`. The file contracts MUST match exactly. See [`references\u002Fkb_file_contract.md`](references\u002Fkb_file_contract.md) — this is the mirror of the setup-side contract, viewed from the read side.\n\nRun 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.\n\n## Invocation Triggers\n\n- \"triage my inbox\"\n- \"inbox triage\"\n- \"check my email\"\n- \"run email triage\"\n- \"process my inbox\"\n- \"what's new in my email\"\n- \"handle my email\"\n- \"email triage\"\n\n## Prerequisites\n\nRequired reads at start (fail-fast if missing):\n\n**Core (required):**\n- `${WORKSPACE}\u002FEmail\u002Femail-taxonomy.md` — classification + report preferences\n- `${WORKSPACE}\u002FEmail\u002Femail-patterns.md` — voice, persona, templates, hard rules\n\n**Optional core (read if exists):**\n- `${WORKSPACE}\u002FEmail\u002Fevaluation-framework.md`\n- `${WORKSPACE}\u002FEmail\u002Frate-card.md`\n\n**Evolving (read AND update every run):**\n- `${WORKSPACE}\u002FEmail\u002Fblocklist.md`\n- `${WORKSPACE}\u002FEmail\u002Ftracker.md`\n\n**Output:**\n- `${WORKSPACE}\u002FEmail\u002Ftriage-log\u002F\u003CYYYY-MM-DD>-\u003Crun-label>.md` — per-run log\n\nIf any core required file is missing → **halt**, direct user to run `inbox-setup` first. Use `scripts\u002Fkb_reader.py` to perform the read + validation.\n\n## DRAFTS ONLY — Never Send\n\n> **This skill creates drafts. It NEVER sends.**\n\nThis is the safety property that makes the skill safe to run automatically. Stated multiple times in this skill body. Non-negotiable.\n\nThe `scripts\u002Fdraft_safety_validator.py` enforces it post-run. Any send-shaped tool call in the action log fails validation. See [`references\u002Fdrafts_only_safety.md`](references\u002Fdrafts_only_safety.md) for the full discipline canon.\n\n## Step 0: Grill-Me Intake (Light — 0–2 Optional Override Questions)\n\nInbox-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.\n\n### Q1 (optional, asked only when on-demand run is outside normal cadence)\n\n> **Override the default 9-hour search window? Pick: yes (specify hours) \u002F no (use default).**\n>\n> *Why I'm asking:* If you're running on-demand outside your normal 2x\u002Fday cadence, you may want a wider window (24h after a long break) or narrower (2h for a quick check).\n\nSkip if cadence is normal.\n\n### Q2 (optional, asked only when user invokes with category-skip intent)\n\n> **Skip any categories this run? E.g., \"skip newsletters\", \"skip financial\".**\n>\n> *Why I'm asking:* Sometimes you just want to scan opportunities or just want to clear active threads. Category skip narrows the run scope.\n\nSkip if user gave no category-skip signal.\n\n**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.\n\n## Step 1: Determine Search Window\n\nCompute via current date math. Default lookback: **9 hours** (works for 2x\u002Fday cadence with slight overlap so emails between runs aren't missed).\n\nUse `scripts\u002Fsearch_window_calculator.py --cadence \u003CCADENCE> --now \u003CISO>`:\n\n```\nnow = current_datetime\nwindow_start = now - 9_hours   (default for 2x-daily)\nrun_label = \"Morning\" if now.hour \u003C 12 else \"Afternoon\" if now.hour \u003C 17 else \"Evening\"\n```\n\nCadence-to-default-window mapping (override via Q1):\n\n| Cadence (from email-taxonomy.md S1.Q5) | Default window |\n|---|---|\n| once daily | 26h |\n| 2x daily | 9h |\n| 3x daily | 6h |\n| on-demand only | 24h (asks Q1) |\n\n## Step 2: Email Search\n\nTwo queries (provider-agnostic adapter pattern):\n\n- **Primary:** Inbox + sent after `window_start`\n- **Secondary:** Starred unread (catch flagged items missed in primary)\n\nCollect for each email: sender, subject, date, snippet, thread ID, labels.\n\nProvider adapter mapping:\n\n| Provider | Tool |\n|---|---|\n| Gmail | Gmail MCP |\n| Outlook \u002F Microsoft 365 | Outlook MCP |\n| IMAP (Fastmail, ProtonMail, etc.) | IMAP MCP if available; halt otherwise |\n| (no email tool available) | Halt with clear message: \"No email tool registered for this session.\" |\n\n## Step 3: Classification\n\nApply the taxonomy from `email-taxonomy.md`. For **lowest-priority** category (newsletters \u002F automation \u002F spam): skip thread reads entirely — context cost not worth it. For everything else: read full thread.\n\n## Step 4: Sender Research\n\nFor senders not in tracker \u002F blocklist \u002F prior logs:\n\n1. Check `blocklist.md` → if matched, auto-skip\n2. Check `tracker.md` → if known thread, note existing context\n3. For opportunity senders (per evaluation framework): web search for company legitimacy, social presence, intermediary status\n\n**Skip research entirely** for: known senders (in tracker), internal email, automated notifications, obvious low-priority.\n\n## Step 5: Recommendations\n\nFor decision-required emails, apply the framework from `evaluation-framework.md`. Categorize:\n\n| Category | When | Output |\n|---|---|---|\n| **TAKE IT** | Meets criteria | Recommend engaging; draft reply (Step 6) |\n| **WORTH CONSIDERING** | Has potential, needs user judgment | Surface key context; draft for user to edit |\n| **PASS** | Doesn't meet criteria | Brief \"why\" (1–3 sentences); draft polite decline |\n| **FLAG FOR REVIEW** | Unusual; needs direct user decision | Surface fully; NO draft (user decides response shape) |\n\nEach: brief \"why\", relevant context, pricing\u002Ftimeline comparison if applicable.\n\n**Skip Step 5 entirely if no `evaluation-framework.md` exists.**\n\nSee [`references\u002Ftriage_decision_framework.md`](references\u002Ftriage_decision_framework.md) for the framework canon.\n\n## Step 6: Drafts\n\nFor every reasonable reply candidate, create a draft using `email-patterns.md` voice rules.\n\n**Draft for:** opportunity responses (TAKE IT \u002F WORTH \u002F PASS), active conversations needing reply, action items, important personal emails.\n\n**Do NOT draft for:**\n- Clearly no-response emails (newsletters, automation, FYI)\n- Threads where user already replied\n- Blocked senders (unless new info changes the calculus)\n\n**Mechanics:**\n\n- Draft only in the existing thread when possible (preserves context)\n- Set `to`, `subject` (`Re: [original]`)\n- **NEVER call any send operation. Only create drafts.**\n\nThe draft body MUST honor:\n- Voice register from `email-patterns.md`\n- Forbidden tokens (S3.Q2 pet peeves)\n- Sign-off patterns\n- Persona context\n- Hard rules (S3.Q6 — non-negotiable)\n- Reply length per `email-patterns.md`\n\nIf `evaluation-framework.md` exists, draft tone matches recommendation:\n- TAKE IT → engaged + concrete next step\n- WORTH → curious + 1-2 clarifying questions\n- PASS → polite decline + brief reason (no hedging promises)\n- FLAG → NO draft\n\n## Step 7: Report Delivery\n\nHonor user's preference from `email-taxonomy.md` \"Report Preferences\" section. Default: email draft to self with HTML.\n\n**Subject:** `Inbox Triage — [Day], [Month Date] ([Run Label])`\n\n**Sections (in order):**\n\n1. **Overview** — 2–3 sentences. What happened? Anything urgent?\n2. **Stats** — Counts: processed, drafts created, action needed, skipped.\n3. **Action Needed** — Overdue items, decisions, drafts to review, deadlines.\n4. **Quick Reference** — One line per email, alphabetical by sender. `**Sender** — one-sentence summary + recommendation`.\n5. **Detailed Cards** — Opportunities, active threads, flags. Each: sender \u002F subject \u002F category, recommendation + reasoning, key context. **NO draft text previews** (drafts are already in email client for user to read there).\n6. **Footer** — Generation timestamp + KB update summary.\n\n**Formatting (if HTML):**\n\n- **Inline CSS only** (Gmail strips `\u003Cstyle>`)\n- Color-coded by recommendation:\n  - green → TAKE IT\n  - amber → WORTH CONSIDERING\n  - red → PASS\n  - purple → FLAG FOR REVIEW\n  - blue → active conversation\n\n## Step 8: Knowledge Base Update\n\n**`blocklist.md`** (append new):\n\n- New declined senders + reason + date\n- New decline patterns from observed behavior (e.g., \"all emails containing 'looking for backend engineers' from gmail addresses → cold recruiter pattern\")\n- Remove entries if user has overridden them (user replied to a \"blocked\" sender → unblock)\n\n**`tracker.md`** (append + update):\n\n- New follow-ups for emails needing future action\n- Update existing follow-ups (deadline changed, status changed)\n- Mark resolved items complete\n- Flag overdue items\n- Remove resolved items older than 30 days\n- Add entry to update log\n\n**Learning patterns to observe over runs:**\n\n- Drafts sent as-is vs. edited vs. deleted → tone calibration signal\n- PASS recommendations user overrides → framework adjustment signal\n- Engaged vs. ignored emails → taxonomy refinement signal\n- New decline patterns → blocklist additions\n\nAfter 5+ runs, suggest KB improvements to user (e.g., \"You always decline emails from X — add as auto-skip?\").\n\n## Step 9: Internal Log\n\nSave to `${WORKSPACE}\u002FEmail\u002Ftriage-log\u002F[YYYY-MM-DD]-[run-label].md`:\n\n- Emails processed with classifications\n- Recommendations made\n- Drafts created (with IDs \u002F thread refs)\n- KB updates made\n- Follow-ups added \u002F resolved\n- Notable observations (patterns surfaced, edge cases handled)\n\nThe log is the audit trail for `scripts\u002Fdraft_safety_validator.py` to scan for send operations post-run.\n\n## Step 10: Empty Inbox Handling\n\nEven with zero new emails:\n\n1. Check `tracker.md` for items due today or overdue\n2. Generate minimal report: \"No new actionable emails since last run\"\n3. Flag any overdue items\n4. Escalate per tracker rules\n\nSkip Steps 3–6 entirely on empty inbox.\n\n## Critical Rules (Stated Multiple Times)\n\n1. **DRAFTS ONLY — NEVER SEND.** Non-negotiable. Stated again here.\n2. **Privacy.** No passwords \u002F credentials in KB. Reference threads by ID for sensitive content.\n3. **Accuracy over speed.** When unsure, flag for review. A wrong auto-draft is worse than no draft.\n4. **Respect the KB.** Documented preferences are source of truth. Don't override with judgment.\n5. **Transparency.** Note every KB change in the triage log.\n6. **First runs need oversight.** Document this expectation for the user.\n\n## Error Handling\n\n| Situation | Behavior |\n|---|---|\n| KB files missing | Halt; direct user to run `inbox-setup` |\n| Email tool unavailable | Halt with clear message about required tool |\n| Web search unavailable for sender research | Skip research step; note senders not researched |\n| Draft creation fails | Skip that draft; note in log; report continues |\n| Report delivery fails | Save report to file as fallback; notify user |\n| User has 100+ new emails | Stay within reasonable limits; flag volume; offer to focus on priority categories only |\n| Sender appears in both blocklist and tracker | Tracker wins (active conversation); note inconsistency in log |\n\n## Portability\n\n- **Claude Code CLI:** Native — uses Gmail \u002F Outlook MCP, file tools for KB, web search for research.\n- **Claude.ai web:** Works when email MCP connector is connected (Gmail MCP available). Skill must check tool availability before assuming. If no email tool: halt with clear message.\n\n## Tooling\n\n| Script | Role |\n|---|---|\n| `scripts\u002Fkb_reader.py` | Reads + validates the 7-file KB. Returns parsed structure. Halts with explicit error if required files missing. |\n| `scripts\u002Fsearch_window_calculator.py` | Computes `window_start` from cadence + current time. Returns `run_label`. Honors Q1 override. |\n| `scripts\u002Fdraft_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. |\n\n## References\n\n- [`references\u002Fkb_file_contract.md`](references\u002Fkb_file_contract.md) — canonical 7-file contract (read perspective; mirrors `inbox-setup\u002Freferences\u002Fkb_file_contract.md`)\n- [`references\u002Ftriage_decision_framework.md`](references\u002Ftriage_decision_framework.md) — TAKE IT \u002F WORTH \u002F PASS \u002F FLAG taxonomy\n- [`references\u002Fdrafts_only_safety.md`](references\u002Fdrafts_only_safety.md) — the NEVER-SEND discipline canon\n\n## Anti-Patterns To Reject\n\n- **Sending emails** (drafts only — non-negotiable)\n- Operating without knowledge base files\n- Storing passwords \u002F credentials in KB\n- Skipping the learning loop (KB updates) at end of run\n- Overriding user's documented preferences with own judgment\n- Reading lowest-priority threads (waste of context)\n- Including draft text previews in report (drafts are already in email client)\n- Provider lock-in without adapter pattern\n- Silently failing on missing tools\n\n---\n\n**Version:** 1.0.0\n**Source spec:** [`megaprompts\u002F07-inbox-triage-megaprompt.md`](..\u002F..\u002F..\u002F..\u002Fmegaprompts\u002F07-inbox-triage-megaprompt.md)\n**Build pattern:** Path B (direct conversion). Paired with `inbox-setup`.\n","# Inbox-Triage — Recurring Email Triage\n\n> **Paired with `inbox-setup`.** This skill consumes the 7-file knowledge base that `inbox-setup` writes at `${WORKSPACE}\u002FEmail\u002F`. The file contracts MUST match exactly. See [`references\u002Fkb_file_contract.md`](references\u002Fkb_file_contract.md) — this is the mirror of the setup-side contract, viewed from the read side.\n\nRun 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.\n\n## Invocation Triggers\n\n- \"triage my inbox\"\n- \"inbox triage\"\n- \"check my email\"\n- \"run email triage\"\n- \"process my inbox\"\n- \"what's new in my email\"\n- \"handle my email\"\n- \"email triage\"\n\n## Prerequisites\n\nRequired reads at start (fail-fast if missing):\n\n**Core (required):**\n- `${WORKSPACE}\u002FEmail\u002Femail-taxonomy.md` — classification + report preferences\n- `${WORKSPACE}\u002FEmail\u002Femail-patterns.md` — voice, persona, templates, hard rules\n\n**Optional core (read if exists):**\n- `${WORKSPACE}\u002FEmail\u002Fevaluation-framework.md`\n- `${WORKSPACE}\u002FEmail\u002Frate-card.md`\n\n**Evolving (read AND update every run):**\n- `${WORKSPACE}\u002FEmail\u002Fblocklist.md`\n- `${WORKSPACE}\u002FEmail\u002Ftracker.md`\n\n**Output:**\n- `${WORKSPACE}\u002FEmail\u002Ftriage-log\u002F\u003CYYYY-MM-DD>-\u003Crun-label>.md` — per-run log\n\nIf any core required file is missing → **halt**, direct user to run `inbox-setup` first. Use `scripts\u002Fkb_reader.py` to perform the read + validation.\n\n## DRAFTS ONLY — Never Send\n\n> **This skill creates drafts. It NEVER sends.**\n\nThis is the safety property that makes the skill safe to run automatically. Stated multiple times in this skill body. Non-negotiable.\n\nThe `scripts\u002Fdraft_safety_validator.py` enforces it post-run. Any send-shaped tool call in the action log fails validation. See [`references\u002Fdrafts_only_safety.md`](references\u002Fdrafts_only_safety.md) for the full discipline canon.\n\n## Step 0: Grill-Me Intake (Light — 0–2 Optional Override Questions)\n\nInbox-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.\n\n### Q1 (optional, asked only when on-demand run is outside normal cadence)\n\n> **Override the default 9-hour search window? Pick: yes (specify hours) \u002F no (use default).**\n>\n> *Why I'm asking:* If you're running on-demand outside your normal 2x\u002Fday cadence, you may want a wider window (24h after a long break) or narrower (2h for a quick check).\n\nSkip if cadence is normal.\n\n### Q2 (optional, asked only when user invokes with category-skip intent)\n\n> **Skip any categories this run? E.g., \"skip newsletters\", \"skip financial\".**\n>\n> *Why I'm asking:* Sometimes you just want to scan opportunities or just want to clear active threads. Category skip narrows the run scope.\n\nSkip if user gave no category-skip signal.\n\n**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.\n\n## Step 1: Determine Search Window\n\nCompute via current date math. Default lookback: **9 hours** (works for 2x\u002Fday cadence with slight overlap so emails between runs aren't missed).\n\nUse `scripts\u002Fsearch_window_calculator.py --cadence \u003CCADENCE> --now \u003CISO>`:\n\n```\nnow = current_datetime\nwindow_start = now - 9_hours   (default for 2x-daily)\nrun_label = \"Morning\" if now.hour \u003C 12 else \"Afternoon\" if now.hour \u003C 17 else \"Evening\"\n```\n\nCadence-to-default-window mapping (override via Q1):\n\n| Cadence (from email-taxonomy.md S1.Q5) | Default window |\n|---|---|\n| once daily | 26h |\n| 2x daily | 9h |\n| 3x daily | 6h |\n| on-demand only | 24h (asks Q1) |\n\n## Step 2: Email Search\n\nTwo queries (provider-agnostic adapter pattern):\n\n- **Primary:** Inbox + sent after `window_start`\n- **Secondary:** Starred unread (catch flagged items missed in primary)\n\nCollect for each email: sender, subject, date, snippet, thread ID, labels.\n\nProvider adapter mapping:\n\n| Provider | Tool |\n|---|---|\n| Gmail | Gmail MCP |\n| Outlook \u002F Microsoft 365 | Outlook MCP |\n| IMAP (Fastmail, ProtonMail, etc.) | IMAP MCP if available; halt otherwise |\n| (no email tool available) | Halt with clear message: \"No email tool registered for this session.\" |\n\n## Step 3: Classification\n\nApply the taxonomy from `email-taxonomy.md`. For **lowest-priority** category (newsletters \u002F automation \u002F spam): skip thread reads entirely — context cost not worth it. For everything else: read full thread.\n\n## Step 4: Sender Research\n\nFor senders not in tracker \u002F blocklist \u002F prior logs:\n\n1. Check `blocklist.md` → if matched, auto-skip\n2. Check `tracker.md` → if known thread, note existing context\n3. For opportunity senders (per evaluation framework): web search for company legitimacy, social presence, intermediary status\n\n**Skip research entirely** for: known senders (in tracker), internal email, automated notifications, obvious low-priority.\n\n## Step 5: Recommendations\n\nFor decision-required emails, apply the framework from `evaluation-framework.md`. Categorize:\n\n| Category | When | Output |\n|---|---|---|\n| **TAKE IT** | Meets criteria | Recommend engaging; draft reply (Step 6) |\n| **WORTH CONSIDERING** | Has potential, needs user judgment | Surface key context; draft for user to edit |\n| **PASS** | Doesn't meet criteria | Brief \"why\" (1–3 sentences); draft polite decline |\n| **FLAG FOR REVIEW** | Unusual; needs direct user decision | Surface fully; NO draft (user decides response shape) |\n\nEach: brief \"why\", relevant context, pricing\u002Ftimeline comparison if applicable.\n\n**Skip Step 5 entirely if no `evaluation-framework.md` exists.**\n\nSee [`references\u002Ftriage_decision_framework.md`](references\u002Ftriage_decision_framework.md) for the framework canon.\n\n## Step 6: Drafts\n\nFor every reasonable reply candidate, create a draft using `email-patterns.md` voice rules.\n\n**Draft for:** opportunity responses (TAKE IT \u002F WORTH \u002F PASS), active conversations needing reply, action items, important personal emails.\n\n**Do NOT draft for:**\n- Clearly no-response emails (newsletters, automation, FYI)\n- Threads where user already replied\n- Blocked senders (unless new info changes the calculus)\n\n**Mechanics:**\n\n- Draft only in the existing thread when possible (preserves context)\n- Set `to`, `subject` (`Re: [original]`)\n- **NEVER call any send operation. Only create drafts.**\n\nThe draft body MUST honor:\n- Voice register from `email-patterns.md`\n- Forbidden tokens (S3.Q2 pet peeves)\n- Sign-off patterns\n- Persona context\n- Hard rules (S3.Q6 — non-negotiable)\n- Reply length per `email-patterns.md`\n\nIf `evaluation-framework.md` exists, draft tone matches recommendation:\n- TAKE IT → engaged + concrete next step\n- WORTH → curious + 1-2 clarifying questions\n- PASS → polite decline + brief reason (no hedging promises)\n- FLAG → NO draft\n\n## Step 7: Report Delivery\n\nHonor user's preference from `email-taxonomy.md` \"Report Preferences\" section. Default: email draft to self with HTML.\n\n**Subject:** `Inbox Triage — [Day], [Month Date] ([Run Label])`\n\n**Sections (in order):**\n\n1. **Overview** — 2–3 sentences. What happened? Anything urgent?\n2. **Stats** — Counts: processed, drafts created, action needed, skipped.\n3. **Action Needed** — Overdue items, decisions, drafts to review, deadlines.\n4. **Quick Reference** — One line per email, alphabetical by sender. `**Sender** — one-sentence summary + recommendation`.\n5. **Detailed Cards** — Opportunities, active threads, flags. Each: sender \u002F subject \u002F category, recommendation + reasoning, key context. **NO draft text previews** (drafts are already in email client for user to read there).\n6. **Footer** — Generation timestamp + KB update summary.\n\n**Formatting (if HTML):**\n\n- **Inline CSS only** (Gmail strips `\u003Cstyle>`)\n- Color-coded by recommendation:\n  - green → TAKE IT\n  - amber → WORTH CONSIDERING\n  - red → PASS\n  - purple → FLAG FOR REVIEW\n  - blue → active conversation\n\n## Step 8: Knowledge Base Update\n\n**`blocklist.md`** (append new):\n\n- New declined senders + reason + date\n- New decline patterns from observed behavior (e.g., \"all emails containing 'looking for backend engineers' from gmail addresses → cold recruiter pattern\")\n- Remove entries if user has overridden them (user replied to a \"blocked\" sender → unblock)\n\n**`tracker.md`** (append + update):\n\n- New follow-ups for emails needing future action\n- Update existing follow-ups (deadline changed, status changed)\n- Mark resolved items complete\n- Flag overdue items\n- Remove resolved items older than 30 days\n- Add entry to update log\n\n**Learning patterns to observe over runs:**\n\n- Drafts sent as-is vs. edited vs. deleted → tone calibration signal\n- PASS recommendations user overrides → framework adjustment signal\n- Engaged vs. ignored emails → taxonomy refinement signal\n- New decline patterns → blocklist additions\n\nAfter 5+ runs, suggest KB improvements to user (e.g., \"You always decline emails from X — add as auto-skip?\").\n\n## Step 9: Internal Log\n\nSave to `${WORKSPACE}\u002FEmail\u002Ftriage-log\u002F[YYYY-MM-DD]-[run-label].md`:\n\n- Emails processed with classifications\n- Recommendations made\n- Drafts created (with IDs \u002F thread refs)\n- KB updates made\n- Follow-ups added \u002F resolved\n- Notable observations (patterns surfaced, edge cases handled)\n\nThe log is the audit trail for `scripts\u002Fdraft_safety_validator.py` to scan for send operations post-run.\n\n## Step 10: Empty Inbox Handling\n\nEven with zero new emails:\n\n1. Check `tracker.md` for items due today or overdue\n2. Generate minimal report: \"No new actionable emails since last run\"\n3. Flag any overdue items\n4. Escalate per tracker rules\n\nSkip Steps 3–6 entirely on empty inbox.\n\n## Critical Rules (Stated Multiple Times)\n\n1. **DRAFTS ONLY — NEVER SEND.** Non-negotiable. Stated again here.\n2. **Privacy.** No passwords \u002F credentials in KB. Reference threads by ID for sensitive content.\n3. **Accuracy over speed.** When unsure, flag for review. A wrong auto-draft is worse than no draft.\n4. **Respect the KB.** Documented preferences are source of truth. Don't override with judgment.\n5. **Transparency.** Note every KB change in the triage log.\n6. **First runs need oversight.** Document this expectation for the user.\n\n## Error Handling\n\n| Situation | Behavior |\n|---|---|\n| KB files missing | Halt; direct user to run `inbox-setup` |\n| Email tool unavailable | Halt with clear message about required tool |\n| Web search unavailable for sender research | Skip research step; note senders not researched |\n| Draft creation fails | Skip that draft; note in log; report continues |\n| Report delivery fails | Save report to file as fallback; notify user |\n| User has 100+ new emails | Stay within reasonable limits; flag volume; offer to focus on priority categories only |\n| Sender appears in both blocklist and tracker | Tracker wins (active conversation); note inconsistency in log |\n\n## Portability\n\n- **Claude Code CLI:** Native — uses Gmail \u002F Outlook MCP, file tools for KB, web search for research.\n- **Claude.ai web:** Works when email MCP connector is connected (Gmail MCP available). Skill must check tool availability before assuming. If no email tool: halt with clear message.\n\n## Tooling\n\n| Script | Role |\n|---|---|\n| `scripts\u002Fkb_reader.py` | Reads + validates the 7-file KB. Returns parsed structure. Halts with explicit error if required files missing. |\n| `scripts\u002Fsearch_window_calculator.py` | Computes `window_start` from cadence + current time. Returns `run_label`. Honors Q1 override. |\n| `scripts\u002Fdraft_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. |\n\n## References\n\n- [`references\u002Fkb_file_contract.md`](references\u002Fkb_file_contract.md) — canonical 7-file contract (read perspective; mirrors `inbox-setup\u002Freferences\u002Fkb_file_contract.md`)\n- [`references\u002Ftriage_decision_framework.md`](references\u002Ftriage_decision_framework.md) — TAKE IT \u002F WORTH \u002F PASS \u002F FLAG taxonomy\n- [`references\u002Fdrafts_only_safety.md`](references\u002Fdrafts_only_safety.md) — the NEVER-SEND discipline canon\n\n## Anti-Patterns To Reject\n\n- **Sending emails** (drafts only — non-negotiable)\n- Operating without knowledge base files\n- Storing passwords \u002F credentials in KB\n- Skipping the learning loop (KB updates) at end of run\n- Overriding user's documented preferences with own judgment\n- Reading lowest-priority threads (waste of context)\n- Including draft text previews in report (drafts are already in email client)\n- Provider lock-in without adapter pattern\n- Silently failing on missing tools\n\n---\n\n**Version:** 1.0.0\n**Source spec:** [`megaprompts\u002F07-inbox-triage-megaprompt.md`](..\u002F..\u002F..\u002F..\u002Fmegaprompts\u002F07-inbox-triage-megaprompt.md)\n**Build pattern:** Path B (direct conversion). Paired with `inbox-setup`.\n",{"name":5,"license":14,"metadata":23,"description":7},{"version":24,"paired_with":25,"source_spec":26,"build_pattern":27},"1.0.0","inbox-setup (consumes the 7-file KB it produces)","megaprompts\u002F07-inbox-triage-megaprompt.md","Path B (direct conversion)","main","cd1d94757d590093507ef8ac26299eab8bc20478","claude_skills_libraries\u002Fnginity-skills-library\u002Fproductivity\u002Femail\u002Fskills\u002Finbox-triage","https:\u002F\u002Fgithub.com\u002FASoudy\u002FAGS","https:\u002F\u002Fgithub.com\u002FASoudy","2026-05-23 09:43:12",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add ASoudy\u002FAGS --skill inbox-triage",{"tool":40,"command":41},"bunx","bunx skills add ASoudy\u002FAGS --skill inbox-triage",{"tool":43,"command":44},"pnpm","pnpm dlx skills add ASoudy\u002FAGS --skill inbox-triage","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FASoudy\u002FAGS\u002Fblob\u002Fmain\u002Fclaude_skills_libraries\u002Fnginity-skills-library\u002Fproductivity\u002Femail\u002Fskills\u002Finbox-triage\u002FSKILL.md",true,[48,54,58,62,68,72],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"references\u002Fdrafts_only_safety.md","REFERENCE","参考文档",7408,"https:\u002F\u002Fgithub.com\u002FASoudy\u002FAGS\u002Fblob\u002Fmain\u002Fclaude_skills_libraries\u002Fnginity-skills-library\u002Fproductivity\u002Femail\u002Fskills\u002Finbox-triage\u002Freferences\u002Fdrafts_only_safety.md",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"references\u002Fkb_file_contract.md",6164,"https:\u002F\u002Fgithub.com\u002FASoudy\u002FAGS\u002Fblob\u002Fmain\u002Fclaude_skills_libraries\u002Fnginity-skills-library\u002Fproductivity\u002Femail\u002Fskills\u002Finbox-triage\u002Freferences\u002Fkb_file_contract.md",{"path":59,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":60,"sourceHtmlUrl":61},"references\u002Ftriage_decision_framework.md",7450,"https:\u002F\u002Fgithub.com\u002FASoudy\u002FAGS\u002Fblob\u002Fmain\u002Fclaude_skills_libraries\u002Fnginity-skills-library\u002Fproductivity\u002Femail\u002Fskills\u002Finbox-triage\u002Freferences\u002Ftriage_decision_framework.md",{"path":63,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":66,"sourceHtmlUrl":67},"scripts\u002Fdraft_safety_validator.py","SCRIPT","脚本",7046,"https:\u002F\u002Fgithub.com\u002FASoudy\u002FAGS\u002Fblob\u002Fmain\u002Fclaude_skills_libraries\u002Fnginity-skills-library\u002Fproductivity\u002Femail\u002Fskills\u002Finbox-triage\u002Fscripts\u002Fdraft_safety_validator.py",{"path":69,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":70,"sourceHtmlUrl":71},"scripts\u002Fkb_reader.py",11871,"https:\u002F\u002Fgithub.com\u002FASoudy\u002FAGS\u002Fblob\u002Fmain\u002Fclaude_skills_libraries\u002Fnginity-skills-library\u002Fproductivity\u002Femail\u002Fskills\u002Finbox-triage\u002Fscripts\u002Fkb_reader.py",{"path":73,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":74,"sourceHtmlUrl":75},"scripts\u002Fsearch_window_calculator.py",5217,"https:\u002F\u002Fgithub.com\u002FASoudy\u002FAGS\u002Fblob\u002Fmain\u002Fclaude_skills_libraries\u002Fnginity-skills-library\u002Fproductivity\u002Femail\u002Fskills\u002Finbox-triage\u002Fscripts\u002Fsearch_window_calculator.py",[77,84,91,98,105,112],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":18},"01M756BTEVC407T0QR8S420JWD","web-typography","Select, pair, and implement typefaces for web projects. Use when the user mentions \"font pairing\", \"which typeface\", \"line height\", \"responsive typography\", \"web font loading\", \"type hierarchy\", \"variable fonts\", \"FOUT\u002FFOIT\", or \"typographic scale\". Also trigger when choosing between system fonts and web fonts, optimizing font loading performance, or designing readable long-form content layouts. Covers readability evaluation, CSS implementation, and performance optimization. For overall UI design systems, see refactoring-ui. For dramatic typographic experiences, see top-design.","https:\u002F\u002Fgithub.com\u002FASoudy\u002FAGS\u002Fblob\u002Fmain\u002Fclaude_skills_libraries\u002Fwondelai-product-strategy\u002Fweb-typography\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":18},"01M756B4RYF2CB17C33X6ZJQT5","ux-heuristics","Evaluate and improve interface usability using heuristic analysis. Use when the user mentions \"usability audit\", \"UX review\", \"users are confused\", \"heuristic evaluation\", \"form usability\", \"navigation problems\", \"Nielsen heuristics\", \"cognitive walkthrough\", or \"usability testing\". Also trigger when reviewing a design for usability issues, improving form completion rates, or evaluating information architecture and navigation. Covers Nielsens 10 heuristics, severity ratings, and information architecture. For visual design fixes, see refactoring-ui. For conversion-focused audits, see cro-methodology.","https:\u002F\u002Fgithub.com\u002FASoudy\u002FAGS\u002Fblob\u002Fmain\u002Fclaude_skills_libraries\u002Fwondelai-product-strategy\u002Fux-heuristics\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":18},"01M756ANVFT0T6BAPV6Y93EPR6","traction-eos","Implement the Entrepreneurial Operating System (EOS) to align vision and execution across a company. Use when the user mentions \"EOS\", \"V\u002FTO\", \"quarterly rocks\", \"Level 10 meetings\", \"accountability chart\", \"IDS process\", \"Entrepreneurial Operating System\", or \"business operating system\". Also trigger when a growing company needs meeting structure, goal-setting frameworks, or a systematic approach to solving recurring organizational issues. Covers the six EOS components: Vision, People, Data, Issues, Process, Traction. For team motivation design, see drive-motivation. For lean experimentation, see lean-startup.","https:\u002F\u002Fgithub.com\u002FASoudy\u002FAGS\u002Fblob\u002Fmain\u002Fclaude_skills_libraries\u002Fwondelai-product-strategy\u002Ftraction-eos\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":18},"01M756A7NZZMNJN9KZ33QGFHV6","top-design","Create award-winning, immersive web experiences at the level of Awwwards-featured agencies. Use when the user mentions \"premium website\", \"portfolio site\", \"scroll animations\", \"Awwwards quality\", \"brand experience\", \"cinematic web design\", \"parallax storytelling\", or \"agency-quality site\". Also trigger when building landing pages that need to impress, designing creative portfolios, or elevating a standard website to a memorable digital experience. Covers dramatic typography, purposeful motion, scroll-based composition, and performance-optimized animation. For foundational UI, see refactoring-ui. For type selection, see web-typography.","https:\u002F\u002Fgithub.com\u002FASoudy\u002FAGS\u002Fblob\u002Fmain\u002Fclaude_skills_libraries\u002Fwondelai-product-strategy\u002Ftop-design\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":18},"01M7569J5G1NXM3RR194D52SGB","system-design","Design scalable distributed systems using structured approaches for load balancing, caching, database scaling, and message queues. Use when the user mentions \"system design\", \"scale this\", \"high availability\", \"rate limiter\", \"design a URL shortener\", \"system design interview\", \"capacity planning\", or \"distributed architecture\". Also trigger when estimating infrastructure requirements, choosing between microservices and monoliths, or designing for millions of concurrent users. Covers common system designs and back-of-the-envelope estimation. For data fundamentals, see ddia-systems. For resilience, see release-it.","https:\u002F\u002Fgithub.com\u002FASoudy\u002FAGS\u002Fblob\u002Fmain\u002Fclaude_skills_libraries\u002Fwondelai-product-strategy\u002Fsystem-design\u002FSKILL.md",[],[],{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":18},"01M75691MJKE6PBA1EC398EKQT","storybrand-messaging","Clarify brand messaging using narrative structure that positions the customer as hero. Use when the user mentions \"brand message\", \"website copy\", \"elevator pitch\", \"one-liner\", \"messaging isnt resonating\", \"brand script\", \"StoryBrand framework\", or \"customer as hero\". Also trigger when rewriting homepage copy, crafting email nurture sequences, or creating consistent messaging across sales collateral and marketing materials. Covers landing page copy, marketing collateral, and consistent communication. For memorable messaging, see made-to-stick. For product positioning, see obviously-awesome.","https:\u002F\u002Fgithub.com\u002FASoudy\u002FAGS\u002Fblob\u002Fmain\u002Fclaude_skills_libraries\u002Fwondelai-product-strategy\u002Fstorybrand-messaging\u002FSKILL.md",[],[]]