[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75W8ZVRGQ83KXS2M695EW9W":3,"skill-same:01M75W8ZVRGQ83KXS2M695EW9W":51},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":14,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":30,"updatedAt":31,"install":32,"resources":44},"01M75W8ZVRGQ83KXS2M695EW9W","brainstorm",null,"Turn an idea into an approved design spec. Brainstorm is the orchestrator - it scaffolds a topic-stub with subject-type detection and ASCII preview hypotheses, then DELEGATES the iterative Q&A to \u002Finterview. After \u002Finterview returns a spec, brainstorm self-reviews, gates on user approval, and hands off to \u002Fplan. No HTML, no browser - terminal + ASCII previews only.","stevengonsalvez\u002Fainb-toolkit","stevengonsalvez","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F9320602?v=4","01M75W59QRYZYANWY3XG8CJB1P","Steven Gonsalvez","01M75W59RD5YW1RT67BDV0EAZF",1,"MIT","https:\u002F\u002Fgithub.com\u002Fstevengonsalvez\u002Fainb-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Fbrainstorm\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: brainstorm\ndescription: Turn an idea into an approved design spec. Brainstorm is the orchestrator - it scaffolds a topic-stub with subject-type detection and ASCII preview hypotheses, then DELEGATES the iterative Q&A to \u002Finterview. After \u002Finterview returns a spec, brainstorm self-reviews, gates on user approval, and hands off to \u002Fplan. No HTML, no browser - terminal + ASCII previews only.\nuser-invocable: true\n---\n\nBrainstorm idea: `$ARGUMENTS`. Deliverable = an approved spec doc, NOT code. **You orchestrate; `\u002Finterview` runs the Q&A.**\n\n\u003CHARD-GATE>\nDo NOT write code, scaffold, run install\u002Fbuild, or invoke any implementation skill (`\u002Fplan`, `\u002Fimplement`, `\u002Fplan-tdd`, framework codegen) until a written spec exists in `.agents\u002Fspecs\u002F` AND the user explicitly approved it (Step 10). Then Step 12 (`\u002Fplan` handoff) is the only terminal action. Applies to every project regardless of perceived simplicity.\n\u003C\u002FHARD-GATE>\n\n**Every brainstorm produces a spec** — todo list, single util, config change, all of them. Spec may be 10 lines for trivial work, but it must exist and be approved. \"Simple\" is where unexamined assumptions bite hardest.\n\n## When NOT to use\n\n| Situation | Use instead |\n|-----------|-------------|\n| Spec already exists + approved | `\u002Fplan` directly |\n| Running the actual Q&A loop | `\u002Finterview` (brainstorm delegates to it — don't duplicate) |\n| Idea already fully specified, no design questions | `\u002Fplan` directly |\n\n## Division of labour\n\n| Skill | Owns |\n|-------|------|\n| `\u002Fbrainstorm` | Recall, project scan, subject-type detection, stub scaffolding w\u002F ASCII previews, self-review, user-review gate, `\u002Fplan` handoff |\n| `\u002Finterview` | The iterative AskUserQuestion Q&A loop that populates the spec file |\n\nYou write ONE rich stub file, hand off, read the result back. Terminal state = `\u002Fplan` invocation. Never invoke `\u002Fimplement` or codegen directly.\n\n```\nRecall+scan ─▶ detect type ─▶ scaffold stub ─▶ INVOKE \u002Finterview\n                                                     │ (writes \u003Cstub>-spec.md)\n                                                     ▼\n\u002Fplan handoff ◀─ user gate ◀─ self-review ◀─ read back spec\n```\n\n## Checklist (track via TaskCreate)\n\n1. Recall prior learnings (Step 1)\n2. Scan project context (Step 2)\n3. Decompose if too large (Step 3)\n4. Detect subject type (Step 4)\n5. Pre-stub clarifier — optional, ≤1 question (Step 5)\n6. Scaffold `.agents\u002Fspecs\u002FYYYY-MM-DD-\u003Ctopic>-stub.md` (Step 6)\n7. Invoke `\u002Finterview \u003Cstub-path>` (Step 7)\n8. Read back `\u003Cstub>-spec.md` (Step 8)\n9. Self-review spec (Step 9)\n10. User-review gate — explicit approval (Step 10)\n11. Rename + commit final spec (Step 11)\n12. Handoff to `\u002Fplan` (Step 12)\n\n\u003C!-- recall:begin -->\n\n## Step 1: Prior-art check (MANDATORY)\n\nRecall prior learnings before brainstorming so you don't re-decide something already captured:\n\n```bash\nuv run \"{{HOME_TOOL_DIR}}\u002Fskills\u002Frecall\u002Fscripts\u002Frecall.py\" \\\n  \"\u003CQUERY>\" \\\n  --limit 5 --format markdown\n```\n\n**Query** = topic + constraint hints (e.g. `\"caching strategy mobile offline\"`).\n\n| Result | Action |\n|--------|--------|\n| A learning names a relevant constraint\u002Fanti-pattern\u002Fprior decision | Surface it to the user BEFORE proceeding |\n| Nothing relevant | Proceed silently |\n| Empty output \u002F non-zero exit | Treat as \"no prior art\" — NOT an error. Never block on recall failure |\n\n\u003C!-- recall:end -->\n\n## Step 2: Project context\n\n- `git log --oneline -20` — recent direction\n- `ls` repo root + relevant subdirs\n- Read `docs\u002F`, `README.md`, `AGENTS.md`, `CLAUDE.md`\n- Note existing patterns to follow\n\n## Step 3: Decompose check\n\nIf the request names multiple independent subsystems (\"platform with chat + file storage + billing + analytics\"), STOP and decompose:\n\n```\n\"Build platform with X, Y, Z\"\n        ├────────┬────────┐\n        ▼        ▼        ▼\n     Sub-X    Sub-Y    Sub-Z\n   (each its own \u002Fbrainstorm cycle later)\n```\n\nPick the FIRST sub-project. Brainstorm THAT only. Others get their own cycle later.\n\n## Step 4: Detect subject type\n\nInfer from `$ARGUMENTS` + project context. Ambiguous → ask ONE question (Step 5). A brainstorm often spans 2-3 types (e.g. API + data model + CLI) — include the ASCII library slice for EACH.\n\n| Subject | Preview shape |\n|---------|---------------|\n| UI (web\u002Fmobile) | ASCII wireframe (header \u002F sections \u002F buttons) |\n| TUI | ASCII screen mock (panes \u002F status bar \u002F keys) |\n| API | endpoint + request\u002Fresponse JSON snippet |\n| Data model | entity box + relationship arrows |\n| Architecture | component box + dataflow arrows |\n| CLI | command syntax + sample stdout |\n| Config | YAML\u002FJSON snippet |\n| State machine | state node + transition arrows |\n| Pure concept | no preview — text description only |\n\n## Step 5: Pre-stub clarifier (optional, ≤1 question)\n\nOnly if subject type or core scope is unclear. Use AskUserQuestion. Examples:\n- \"What kind of artifact?\" → { Web UI, Mobile UI, TUI, API, CLI, library, mixed }\n- \"Hard constraint?\" → { has deadline, no constraints, needs perf target }\n\nEnough context from `$ARGUMENTS` + Step 2 → **skip this step**, go straight to Step 6. Goal is to give `\u002Finterview` enough to run — not to do its job.\n\n## Step 6: Scaffold the topic-stub\n\n1. **Read the ASCII library**: `{{HOME_TOOL_DIR}}\u002Fskills\u002Fbrainstorm\u002Fassets\u002Fascii-library.md` (8 subject-keyed sections). Copy the matching slice(s) into the stub's `## ASCII preview library` section.\n2. **Resolve every `\u003Cplaceholder>` from $ARGUMENTS + Step 2 BEFORE writing.** On-disk stub must contain no angle-bracket placeholders, no `TBD`, no `TODO`. A placeholder-laden stub wastes \u002Finterview's first round on re-derivation.\n3. Write to `.agents\u002Fspecs\u002FYYYY-MM-DD-\u003Ctopic-slug>-stub.md`.\n\n**The stub IS the contract with `\u002Finterview`.** It must contain EXACTLY these headings — no em-dash suffixes, no rewording (interview string-matches them):\n\n- `## Idea`\n- `## Project context (inferred)`\n- `## Subject type(s)`\n- `## Initial hypotheses`\n- `## ASCII preview library`\n- `## For \u002Finterview`\n- `## Output Spec Template`\n\nTemplate body (fill it, keep the two contract sections — `## For \u002Finterview` and `## Output Spec Template` — verbatim in structure):\n\n````markdown\n# Brainstorm topic stub: \u003Ctitle>\n\n> This is a brainstorm stub. The `\u002Finterview` skill will read it and run the iterative Q&A. Follow the instructions in the \"For \u002Finterview\" section.\n\n## Idea\n\n\u003Cone-paragraph problem statement from $ARGUMENTS + clarifier answer>\n\n## Project context (inferred)\n\n- Stack: \u003Ce.g. Rust + tokio>, \u003Crepo patterns spotted>\n- Existing patterns: \u003Cbullet list of relevant docs \u002F code paths>\n- Constraints surfaced from recall: \u003Cif any>\n\n## Subject type(s)\n\n\u003CUI | TUI | API | data model | architecture | CLI | config | state machine | mixed>\n\n## Initial hypotheses\n\nThree candidate approaches. **`\u002Finterview` MUST present these via AskUserQuestion in its first round, using the ASCII preview field shown below for each.**\n\n### A: \u003Cname>  (recommended)\n\n\u003Cone-line rationale>\n\n```\n\u003CASCII preview drawn from the matching library section>\n```\n\n### B: \u003Cname>\n\n\u003Ctradeoff vs A>\n\n```\n\u003CASCII preview>\n```\n\n### C: \u003Cname>  (optional - only if there's a real third path)\n\n\u003Ctradeoff>\n\n```\n\u003CASCII preview>\n```\n\n## ASCII preview library\n\nInlined slices from `{{HOME_TOOL_DIR}}\u002Fskills\u002Fbrainstorm\u002Fassets\u002Fascii-library.md` that match this brainstorm's subject type(s). `\u002Finterview` uses these in subsequent AskUserQuestion `preview` fields.\n\n\u003Cpaste the matching subject-type sections here>\n\n## For \u002Finterview\n\n**Read this carefully before starting the interview.**\n\n- **First round**: present the three approach hypotheses above via AskUserQuestion. Set `preview` to the ASCII block under each.\n- **Subsequent rounds**: drill into architecture, data model, interface, behavior, errors, testing. **Every option-style question MUST use `AskUserQuestion`** with `preview` populated from the library above when comparing concrete shapes.\n- **One question per turn** (or 2-4 if naturally batched). Multi-choice preferred.\n- **Topics to cover** (skip if N\u002FA): architecture \u002F data model \u002F interface (UI\u002FAPI\u002FCLI\u002FTUI) \u002F happy path \u002F 2-3 critical edge cases \u002F error handling \u002F testing strategy \u002F out of scope \u002F open questions.\n- **Output**: write the spec to `\u003Cthis-stub-basename>-spec.md` using the \"Output Spec Template\" section below — **NOT** the default `\u002Finterview` corporate template.\n\n### Format preferences (apply to BOTH chat outputs AND spec file)\n\nPer Stevie's CLAUDE.md `\u003Cflow_diagrams>` rule. Boundary:\n\n| Content shape                                | Use                                              |\n|----------------------------------------------|--------------------------------------------------|\n| Flow \u002F sequence \u002F relationships \u002F state      | ASCII box+arrow diagram (`┌─┐ │ └─┘ ─▶ ▼`)        |\n| Tabular DATA (rows × columns of facts)       | markdown pipe table                              |\n| Discrete items, no ordering                  | bullet list                                      |\n| Picks \u002F open questions                       | `- [ ]` checklist                                |\n| Prose \u002F narrative paragraphs                 | AVOID — break it into one of the above           |\n\nRules:\n- **Diagram FIRST, table SECOND** when both apply to the same section.\n- Diagram width ≤ 80 chars.\n- Caveman inside boxes (short technical terms, never sentences).\n- Sequence diagrams (vertical lifelines) ONLY for protocol handshakes \u002F back-and-forth.\n- Branching trees ONLY for explicit if\u002Felse logic.\n- No prose-only sections in the spec. Every section must be diagram + table + bullets.\n\n## Output Spec Template\n\n```markdown\n# Spec: \u003Ctitle>\n\n**Generated from:** \u003Cstub-path>\n**Date:** \u003CYYYY-MM-DD>\n**Format:** diagram-first, table-second, no prose paragraphs\n\n## Problem\n\n| Question | Answer            |\n|----------|-------------------|\n| What?    | \u003Cone-liner>       |\n| Why?     | \u003Cmotivator>       |\n| Who?     | \u003Cprimary user>    |\n\n## Users + use cases\n\n| Persona     | Goal                | Primary use case          |\n|-------------|---------------------|---------------------------|\n| \u003Cpersona 1> | \u003Cwhat they want>    | \u003Ccore flow they trigger>  |\n| \u003Cpersona 2> | \u003C...>               | \u003C...>                     |\n\n## Approach\n\n| Option | Summary       | Tradeoff           | Picked? |\n|--------|---------------|--------------------|---------|\n| A      | \u003Cname>        | \u003Cvs B and C>       |  ✓      |\n| B      | \u003Cname>        | \u003Cvs A>             |         |\n| C      | \u003Cname>        | \u003Cvs A>             |         |\n\n**Why A:** \u003Cone line>\n\n## Architecture\n\n\u003CASCII box+arrow diagram, ≤ 80 chars wide>\n\n| Component | Purpose      | Owns                |\n|-----------|--------------|---------------------|\n| \u003Cname>    | \u003Cone-liner>  | \u003Cdata \u002F behavior>   |\n\n## Data model\n\n\u003CASCII entity + relationship diagram>\n\n| Entity   | Fields (key only)        | Relationships    |\n|----------|--------------------------|------------------|\n| \u003Cname>   | id, ...                  | 1:N to \u003Cother>   |\n\n## Interface\n\nASCII previews per applicable subject type (UI wireframe | TUI screen | API endpoints | CLI sample | config schema).\n\n| Surface    | Trigger              | Shape                 |\n|------------|----------------------|-----------------------|\n| \u003Cname>     | \u003Cuser\u002Fsystem event>  | \u003Cmethod \u002F screen \u002F cmd> |\n\n## Behavior\n\nHappy path (ASCII flow):\n\n[start] ──action──▶ [state-1] ──action──▶ [state-2] ──ok──▶ [done]\n\nEdge cases:\n\n| Scenario          | Trigger              | Expected behavior        |\n|-------------------|----------------------|--------------------------|\n| \u003Ccase 1>          | \u003Ccondition>          | \u003Cwhat happens>           |\n| \u003Ccase 2>          | \u003Ccondition>          | \u003Cwhat happens>           |\n| \u003Ccase 3>          | \u003Ccondition>          | \u003Cwhat happens>           |\n\n## Errors\n\n| Failure mode    | User-visible surface       | Recovery              |\n|-----------------|----------------------------|-----------------------|\n| \u003Ce.g. 500>      | \u003Ctoast \u002F log \u002F silent>     | \u003Cretry \u002F fallback>    |\n| \u003Cnetwork drop>  | \u003C...>                      | \u003C...>                 |\n\n## Testing strategy\n\n| Layer       | Scope                              | Coverage gate       |\n|-------------|------------------------------------|---------------------|\n| Integration | \u003Cflows covered>                    | \u003Cmust-pass>         |\n| E2E         | \u003Cuser-visible journeys>            | \u003Cmust-pass>         |\n| Unit        | \u003Conly where logic is non-trivial>  | \u003Cif applicable>     |\n\n## Out of scope\n\n- \u003Cexplicit item 1>\n- \u003Cexplicit item 2>\n\n## Open questions for \u002Fplan\n\n- [ ] \u003Cquestion 1>\n- [ ] \u003Cquestion 2>\n```\n````\n\nAfter writing the stub, **DO NOT answer the questions yourself.** Hand off to `\u002Finterview`.\n\n## Step 7: Invoke \u002Finterview\n\n**Filename contract (used in Steps 8-11):** `\u002Finterview` writes `\u003Cinput-basename>-spec.md` next to the input. Given `\u003Ctopic>-stub.md`, output is `\u003Ctopic>-stub-spec.md`. Every path below depends on this — if the suffix ever changes, update Steps 8-11.\n\n```\nSkill(skill: \"interview\", args: \".agents\u002Fspecs\u002FYYYY-MM-DD-\u003Ctopic>-stub.md\")\n```\n\n`\u002Finterview` will: read the stub → use its embedded `## Output Spec Template` (NOT the default) → honor `## Initial hypotheses` \u002F `## ASCII preview library` \u002F `## For \u002Finterview` → run AskUserQuestion rounds (hypotheses first, then design) → write `.agents\u002Fspecs\u002FYYYY-MM-DD-\u003Ctopic>-stub-spec.md`.\n\nWait for `\u002Finterview` to return control.\n\n## Step 8: Read back the spec\n\nRead `.agents\u002Fspecs\u002FYYYY-MM-DD-\u003Ctopic>-stub-spec.md`.\n\n| Result | Branch |\n|--------|--------|\n| File exists, non-trivial | Proceed to Step 9 |\n| File missing or near-empty | `\u002Finterview` did not complete — re-invoke Step 7 or ask user; do NOT fabricate the spec yourself |\n\n## Step 9: Spec self-review\n\nFresh-eyes pass. Fix inline; don't re-loop. Only flag issues that would cause real planning problems — leave minor wording\u002Fstyle alone.\n\n| Gate | Look for |\n|------|----------|\n| Placeholder | `TBD`, `TODO`, `\u003C...>`, empty sections |\n| Consistency | sections contradicting each other; arch ≠ behavior |\n| Ambiguity | requirement readable two ways → pick one, make explicit |\n| Scope | still one project, or bloated? if bloated → decompose again (Step 3) |\n| YAGNI | unrequested features creeping in → strip |\n\n## Step 10: User-review gate\n\nPost verbatim:\n\n> \"Spec written to `.agents\u002Fspecs\u002FYYYY-MM-DD-\u003Ctopic>-stub-spec.md`. Review it. Changes welcome before we finalize + move to `\u002Fplan`.\"\n\n| User response | Branch |\n|---------------|--------|\n| Explicit approval | Proceed to Step 11 |\n| Changes requested | Fix → re-run Step 9 → re-ask. Do NOT proceed |\n| No response yet | Wait. Never auto-proceed to `\u002Fplan` (HARD-GATE) |\n\n## Step 11: Rename + commit\n\nStub files were created by `Write` (untracked), so use plain `mv`\u002F`rm`, NOT `git mv`\u002F`git rm` (those need tracked files):\n\n```bash\nmv .agents\u002Fspecs\u002FYYYY-MM-DD-\u003Ctopic>-stub-spec.md .agents\u002Fspecs\u002FYYYY-MM-DD-\u003Ctopic>.md\nrm .agents\u002Fspecs\u002FYYYY-MM-DD-\u003Ctopic>-stub.md\ngit add .agents\u002Fspecs\u002FYYYY-MM-DD-\u003Ctopic>.md\ngit commit -m \"feat(spec): add \u003Ctopic> design spec\"\n```\n\nOne atomic commit; only the final spec lands in history (stub was scaffolding).\n\n## Step 12: Handoff to \u002Fplan\n\nInvoke `\u002Fplan` (Skill tool) with the final spec path. Do NOT invoke `\u002Fimplement`, framework codegen, or anything else. This is the terminal action.\n\n## Anti-patterns (each maps to a rule above)\n\n| Anti-pattern | Correct |\n|--------------|---------|\n| Doing the Q&A inside `\u002Fbrainstorm` | Delegate to `\u002Finterview` (Step 7) |\n| Thin stub → shallow questions | Put everything \u002Finterview needs in the stub (Step 6) |\n| Plaintext option tables | AskUserQuestion only (per CLAUDE.md `\u003Coption_presentation>`) |\n| HTML \u002F browser companions | Terminal + ASCII only |\n| Stub with unresolved `\u003Cplaceholders>` | Resolve all before writing (Step 6) |\n| Auto-running `\u002Fplan` without approval | Wait for explicit yes (Step 10, HARD-GATE) |\n| Renaming stub-spec with `git mv` | Plain `mv` — files are untracked (Step 11) |\n| Em-dash suffix \u002F reworded stub headings | Exact-match the 7 headings (Step 6) |\n","Brainstorm idea: `$ARGUMENTS`. Deliverable = an approved spec doc, NOT code. **You orchestrate; `\u002Finterview` runs the Q&A.**\n\n\u003CHARD-GATE>\nDo NOT write code, scaffold, run install\u002Fbuild, or invoke any implementation skill (`\u002Fplan`, `\u002Fimplement`, `\u002Fplan-tdd`, framework codegen) until a written spec exists in `.agents\u002Fspecs\u002F` AND the user explicitly approved it (Step 10). Then Step 12 (`\u002Fplan` handoff) is the only terminal action. Applies to every project regardless of perceived simplicity.\n\u003C\u002FHARD-GATE>\n\n**Every brainstorm produces a spec** — todo list, single util, config change, all of them. Spec may be 10 lines for trivial work, but it must exist and be approved. \"Simple\" is where unexamined assumptions bite hardest.\n\n## When NOT to use\n\n| Situation | Use instead |\n|-----------|-------------|\n| Spec already exists + approved | `\u002Fplan` directly |\n| Running the actual Q&A loop | `\u002Finterview` (brainstorm delegates to it — don't duplicate) |\n| Idea already fully specified, no design questions | `\u002Fplan` directly |\n\n## Division of labour\n\n| Skill | Owns |\n|-------|------|\n| `\u002Fbrainstorm` | Recall, project scan, subject-type detection, stub scaffolding w\u002F ASCII previews, self-review, user-review gate, `\u002Fplan` handoff |\n| `\u002Finterview` | The iterative AskUserQuestion Q&A loop that populates the spec file |\n\nYou write ONE rich stub file, hand off, read the result back. Terminal state = `\u002Fplan` invocation. Never invoke `\u002Fimplement` or codegen directly.\n\n```\nRecall+scan ─▶ detect type ─▶ scaffold stub ─▶ INVOKE \u002Finterview\n                                                     │ (writes \u003Cstub>-spec.md)\n                                                     ▼\n\u002Fplan handoff ◀─ user gate ◀─ self-review ◀─ read back spec\n```\n\n## Checklist (track via TaskCreate)\n\n1. Recall prior learnings (Step 1)\n2. Scan project context (Step 2)\n3. Decompose if too large (Step 3)\n4. Detect subject type (Step 4)\n5. Pre-stub clarifier — optional, ≤1 question (Step 5)\n6. Scaffold `.agents\u002Fspecs\u002FYYYY-MM-DD-\u003Ctopic>-stub.md` (Step 6)\n7. Invoke `\u002Finterview \u003Cstub-path>` (Step 7)\n8. Read back `\u003Cstub>-spec.md` (Step 8)\n9. Self-review spec (Step 9)\n10. User-review gate — explicit approval (Step 10)\n11. Rename + commit final spec (Step 11)\n12. Handoff to `\u002Fplan` (Step 12)\n\n\u003C!-- recall:begin -->\n\n## Step 1: Prior-art check (MANDATORY)\n\nRecall prior learnings before brainstorming so you don't re-decide something already captured:\n\n```bash\nuv run \"{{HOME_TOOL_DIR}}\u002Fskills\u002Frecall\u002Fscripts\u002Frecall.py\" \\\n  \"\u003CQUERY>\" \\\n  --limit 5 --format markdown\n```\n\n**Query** = topic + constraint hints (e.g. `\"caching strategy mobile offline\"`).\n\n| Result | Action |\n|--------|--------|\n| A learning names a relevant constraint\u002Fanti-pattern\u002Fprior decision | Surface it to the user BEFORE proceeding |\n| Nothing relevant | Proceed silently |\n| Empty output \u002F non-zero exit | Treat as \"no prior art\" — NOT an error. Never block on recall failure |\n\n\u003C!-- recall:end -->\n\n## Step 2: Project context\n\n- `git log --oneline -20` — recent direction\n- `ls` repo root + relevant subdirs\n- Read `docs\u002F`, `README.md`, `AGENTS.md`, `CLAUDE.md`\n- Note existing patterns to follow\n\n## Step 3: Decompose check\n\nIf the request names multiple independent subsystems (\"platform with chat + file storage + billing + analytics\"), STOP and decompose:\n\n```\n\"Build platform with X, Y, Z\"\n        ├────────┬────────┐\n        ▼        ▼        ▼\n     Sub-X    Sub-Y    Sub-Z\n   (each its own \u002Fbrainstorm cycle later)\n```\n\nPick the FIRST sub-project. Brainstorm THAT only. Others get their own cycle later.\n\n## Step 4: Detect subject type\n\nInfer from `$ARGUMENTS` + project context. Ambiguous → ask ONE question (Step 5). A brainstorm often spans 2-3 types (e.g. API + data model + CLI) — include the ASCII library slice for EACH.\n\n| Subject | Preview shape |\n|---------|---------------|\n| UI (web\u002Fmobile) | ASCII wireframe (header \u002F sections \u002F buttons) |\n| TUI | ASCII screen mock (panes \u002F status bar \u002F keys) |\n| API | endpoint + request\u002Fresponse JSON snippet |\n| Data model | entity box + relationship arrows |\n| Architecture | component box + dataflow arrows |\n| CLI | command syntax + sample stdout |\n| Config | YAML\u002FJSON snippet |\n| State machine | state node + transition arrows |\n| Pure concept | no preview — text description only |\n\n## Step 5: Pre-stub clarifier (optional, ≤1 question)\n\nOnly if subject type or core scope is unclear. Use AskUserQuestion. Examples:\n- \"What kind of artifact?\" → { Web UI, Mobile UI, TUI, API, CLI, library, mixed }\n- \"Hard constraint?\" → { has deadline, no constraints, needs perf target }\n\nEnough context from `$ARGUMENTS` + Step 2 → **skip this step**, go straight to Step 6. Goal is to give `\u002Finterview` enough to run — not to do its job.\n\n## Step 6: Scaffold the topic-stub\n\n1. **Read the ASCII library**: `{{HOME_TOOL_DIR}}\u002Fskills\u002Fbrainstorm\u002Fassets\u002Fascii-library.md` (8 subject-keyed sections). Copy the matching slice(s) into the stub's `## ASCII preview library` section.\n2. **Resolve every `\u003Cplaceholder>` from $ARGUMENTS + Step 2 BEFORE writing.** On-disk stub must contain no angle-bracket placeholders, no `TBD`, no `TODO`. A placeholder-laden stub wastes \u002Finterview's first round on re-derivation.\n3. Write to `.agents\u002Fspecs\u002FYYYY-MM-DD-\u003Ctopic-slug>-stub.md`.\n\n**The stub IS the contract with `\u002Finterview`.** It must contain EXACTLY these headings — no em-dash suffixes, no rewording (interview string-matches them):\n\n- `## Idea`\n- `## Project context (inferred)`\n- `## Subject type(s)`\n- `## Initial hypotheses`\n- `## ASCII preview library`\n- `## For \u002Finterview`\n- `## Output Spec Template`\n\nTemplate body (fill it, keep the two contract sections — `## For \u002Finterview` and `## Output Spec Template` — verbatim in structure):\n\n````markdown\n# Brainstorm topic stub: \u003Ctitle>\n\n> This is a brainstorm stub. The `\u002Finterview` skill will read it and run the iterative Q&A. Follow the instructions in the \"For \u002Finterview\" section.\n\n## Idea\n\n\u003Cone-paragraph problem statement from $ARGUMENTS + clarifier answer>\n\n## Project context (inferred)\n\n- Stack: \u003Ce.g. Rust + tokio>, \u003Crepo patterns spotted>\n- Existing patterns: \u003Cbullet list of relevant docs \u002F code paths>\n- Constraints surfaced from recall: \u003Cif any>\n\n## Subject type(s)\n\n\u003CUI | TUI | API | data model | architecture | CLI | config | state machine | mixed>\n\n## Initial hypotheses\n\nThree candidate approaches. **`\u002Finterview` MUST present these via AskUserQuestion in its first round, using the ASCII preview field shown below for each.**\n\n### A: \u003Cname>  (recommended)\n\n\u003Cone-line rationale>\n\n```\n\u003CASCII preview drawn from the matching library section>\n```\n\n### B: \u003Cname>\n\n\u003Ctradeoff vs A>\n\n```\n\u003CASCII preview>\n```\n\n### C: \u003Cname>  (optional - only if there's a real third path)\n\n\u003Ctradeoff>\n\n```\n\u003CASCII preview>\n```\n\n## ASCII preview library\n\nInlined slices from `{{HOME_TOOL_DIR}}\u002Fskills\u002Fbrainstorm\u002Fassets\u002Fascii-library.md` that match this brainstorm's subject type(s). `\u002Finterview` uses these in subsequent AskUserQuestion `preview` fields.\n\n\u003Cpaste the matching subject-type sections here>\n\n## For \u002Finterview\n\n**Read this carefully before starting the interview.**\n\n- **First round**: present the three approach hypotheses above via AskUserQuestion. Set `preview` to the ASCII block under each.\n- **Subsequent rounds**: drill into architecture, data model, interface, behavior, errors, testing. **Every option-style question MUST use `AskUserQuestion`** with `preview` populated from the library above when comparing concrete shapes.\n- **One question per turn** (or 2-4 if naturally batched). Multi-choice preferred.\n- **Topics to cover** (skip if N\u002FA): architecture \u002F data model \u002F interface (UI\u002FAPI\u002FCLI\u002FTUI) \u002F happy path \u002F 2-3 critical edge cases \u002F error handling \u002F testing strategy \u002F out of scope \u002F open questions.\n- **Output**: write the spec to `\u003Cthis-stub-basename>-spec.md` using the \"Output Spec Template\" section below — **NOT** the default `\u002Finterview` corporate template.\n\n### Format preferences (apply to BOTH chat outputs AND spec file)\n\nPer Stevie's CLAUDE.md `\u003Cflow_diagrams>` rule. Boundary:\n\n| Content shape                                | Use                                              |\n|----------------------------------------------|--------------------------------------------------|\n| Flow \u002F sequence \u002F relationships \u002F state      | ASCII box+arrow diagram (`┌─┐ │ └─┘ ─▶ ▼`)        |\n| Tabular DATA (rows × columns of facts)       | markdown pipe table                              |\n| Discrete items, no ordering                  | bullet list                                      |\n| Picks \u002F open questions                       | `- [ ]` checklist                                |\n| Prose \u002F narrative paragraphs                 | AVOID — break it into one of the above           |\n\nRules:\n- **Diagram FIRST, table SECOND** when both apply to the same section.\n- Diagram width ≤ 80 chars.\n- Caveman inside boxes (short technical terms, never sentences).\n- Sequence diagrams (vertical lifelines) ONLY for protocol handshakes \u002F back-and-forth.\n- Branching trees ONLY for explicit if\u002Felse logic.\n- No prose-only sections in the spec. Every section must be diagram + table + bullets.\n\n## Output Spec Template\n\n```markdown\n# Spec: \u003Ctitle>\n\n**Generated from:** \u003Cstub-path>\n**Date:** \u003CYYYY-MM-DD>\n**Format:** diagram-first, table-second, no prose paragraphs\n\n## Problem\n\n| Question | Answer            |\n|----------|-------------------|\n| What?    | \u003Cone-liner>       |\n| Why?     | \u003Cmotivator>       |\n| Who?     | \u003Cprimary user>    |\n\n## Users + use cases\n\n| Persona     | Goal                | Primary use case          |\n|-------------|---------------------|---------------------------|\n| \u003Cpersona 1> | \u003Cwhat they want>    | \u003Ccore flow they trigger>  |\n| \u003Cpersona 2> | \u003C...>               | \u003C...>                     |\n\n## Approach\n\n| Option | Summary       | Tradeoff           | Picked? |\n|--------|---------------|--------------------|---------|\n| A      | \u003Cname>        | \u003Cvs B and C>       |  ✓      |\n| B      | \u003Cname>        | \u003Cvs A>             |         |\n| C      | \u003Cname>        | \u003Cvs A>             |         |\n\n**Why A:** \u003Cone line>\n\n## Architecture\n\n\u003CASCII box+arrow diagram, ≤ 80 chars wide>\n\n| Component | Purpose      | Owns                |\n|-----------|--------------|---------------------|\n| \u003Cname>    | \u003Cone-liner>  | \u003Cdata \u002F behavior>   |\n\n## Data model\n\n\u003CASCII entity + relationship diagram>\n\n| Entity   | Fields (key only)        | Relationships    |\n|----------|--------------------------|------------------|\n| \u003Cname>   | id, ...                  | 1:N to \u003Cother>   |\n\n## Interface\n\nASCII previews per applicable subject type (UI wireframe | TUI screen | API endpoints | CLI sample | config schema).\n\n| Surface    | Trigger              | Shape                 |\n|------------|----------------------|-----------------------|\n| \u003Cname>     | \u003Cuser\u002Fsystem event>  | \u003Cmethod \u002F screen \u002F cmd> |\n\n## Behavior\n\nHappy path (ASCII flow):\n\n[start] ──action──▶ [state-1] ──action──▶ [state-2] ──ok──▶ [done]\n\nEdge cases:\n\n| Scenario          | Trigger              | Expected behavior        |\n|-------------------|----------------------|--------------------------|\n| \u003Ccase 1>          | \u003Ccondition>          | \u003Cwhat happens>           |\n| \u003Ccase 2>          | \u003Ccondition>          | \u003Cwhat happens>           |\n| \u003Ccase 3>          | \u003Ccondition>          | \u003Cwhat happens>           |\n\n## Errors\n\n| Failure mode    | User-visible surface       | Recovery              |\n|-----------------|----------------------------|-----------------------|\n| \u003Ce.g. 500>      | \u003Ctoast \u002F log \u002F silent>     | \u003Cretry \u002F fallback>    |\n| \u003Cnetwork drop>  | \u003C...>                      | \u003C...>                 |\n\n## Testing strategy\n\n| Layer       | Scope                              | Coverage gate       |\n|-------------|------------------------------------|---------------------|\n| Integration | \u003Cflows covered>                    | \u003Cmust-pass>         |\n| E2E         | \u003Cuser-visible journeys>            | \u003Cmust-pass>         |\n| Unit        | \u003Conly where logic is non-trivial>  | \u003Cif applicable>     |\n\n## Out of scope\n\n- \u003Cexplicit item 1>\n- \u003Cexplicit item 2>\n\n## Open questions for \u002Fplan\n\n- [ ] \u003Cquestion 1>\n- [ ] \u003Cquestion 2>\n```\n````\n\nAfter writing the stub, **DO NOT answer the questions yourself.** Hand off to `\u002Finterview`.\n\n## Step 7: Invoke \u002Finterview\n\n**Filename contract (used in Steps 8-11):** `\u002Finterview` writes `\u003Cinput-basename>-spec.md` next to the input. Given `\u003Ctopic>-stub.md`, output is `\u003Ctopic>-stub-spec.md`. Every path below depends on this — if the suffix ever changes, update Steps 8-11.\n\n```\nSkill(skill: \"interview\", args: \".agents\u002Fspecs\u002FYYYY-MM-DD-\u003Ctopic>-stub.md\")\n```\n\n`\u002Finterview` will: read the stub → use its embedded `## Output Spec Template` (NOT the default) → honor `## Initial hypotheses` \u002F `## ASCII preview library` \u002F `## For \u002Finterview` → run AskUserQuestion rounds (hypotheses first, then design) → write `.agents\u002Fspecs\u002FYYYY-MM-DD-\u003Ctopic>-stub-spec.md`.\n\nWait for `\u002Finterview` to return control.\n\n## Step 8: Read back the spec\n\nRead `.agents\u002Fspecs\u002FYYYY-MM-DD-\u003Ctopic>-stub-spec.md`.\n\n| Result | Branch |\n|--------|--------|\n| File exists, non-trivial | Proceed to Step 9 |\n| File missing or near-empty | `\u002Finterview` did not complete — re-invoke Step 7 or ask user; do NOT fabricate the spec yourself |\n\n## Step 9: Spec self-review\n\nFresh-eyes pass. Fix inline; don't re-loop. Only flag issues that would cause real planning problems — leave minor wording\u002Fstyle alone.\n\n| Gate | Look for |\n|------|----------|\n| Placeholder | `TBD`, `TODO`, `\u003C...>`, empty sections |\n| Consistency | sections contradicting each other; arch ≠ behavior |\n| Ambiguity | requirement readable two ways → pick one, make explicit |\n| Scope | still one project, or bloated? if bloated → decompose again (Step 3) |\n| YAGNI | unrequested features creeping in → strip |\n\n## Step 10: User-review gate\n\nPost verbatim:\n\n> \"Spec written to `.agents\u002Fspecs\u002FYYYY-MM-DD-\u003Ctopic>-stub-spec.md`. Review it. Changes welcome before we finalize + move to `\u002Fplan`.\"\n\n| User response | Branch |\n|---------------|--------|\n| Explicit approval | Proceed to Step 11 |\n| Changes requested | Fix → re-run Step 9 → re-ask. Do NOT proceed |\n| No response yet | Wait. Never auto-proceed to `\u002Fplan` (HARD-GATE) |\n\n## Step 11: Rename + commit\n\nStub files were created by `Write` (untracked), so use plain `mv`\u002F`rm`, NOT `git mv`\u002F`git rm` (those need tracked files):\n\n```bash\nmv .agents\u002Fspecs\u002FYYYY-MM-DD-\u003Ctopic>-stub-spec.md .agents\u002Fspecs\u002FYYYY-MM-DD-\u003Ctopic>.md\nrm .agents\u002Fspecs\u002FYYYY-MM-DD-\u003Ctopic>-stub.md\ngit add .agents\u002Fspecs\u002FYYYY-MM-DD-\u003Ctopic>.md\ngit commit -m \"feat(spec): add \u003Ctopic> design spec\"\n```\n\nOne atomic commit; only the final spec lands in history (stub was scaffolding).\n\n## Step 12: Handoff to \u002Fplan\n\nInvoke `\u002Fplan` (Skill tool) with the final spec path. Do NOT invoke `\u002Fimplement`, framework codegen, or anything else. This is the terminal action.\n\n## Anti-patterns (each maps to a rule above)\n\n| Anti-pattern | Correct |\n|--------------|---------|\n| Doing the Q&A inside `\u002Fbrainstorm` | Delegate to `\u002Finterview` (Step 7) |\n| Thin stub → shallow questions | Put everything \u002Finterview needs in the stub (Step 6) |\n| Plaintext option tables | AskUserQuestion only (per CLAUDE.md `\u003Coption_presentation>`) |\n| HTML \u002F browser companions | Terminal + ASCII only |\n| Stub with unresolved `\u003Cplaceholders>` | Resolve all before writing (Step 6) |\n| Auto-running `\u002Fplan` without approval | Wait for explicit yes (Step 10, HARD-GATE) |\n| Renaming stub-spec with `git mv` | Plain `mv` — files are untracked (Step 11) |\n| Em-dash suffix \u002F reworded stub headings | Exact-match the 7 headings (Step 6) |\n",{"name":5,"description":7,"user-invocable":24},true,"main","9cf32d1e636db09530158af14ba301bfa5d401e9","skills\u002Fbrainstorm","https:\u002F\u002Fgithub.com\u002Fstevengonsalvez\u002Fainb-toolkit","https:\u002F\u002Fgithub.com\u002Fstevengonsalvez","stevengonsalvez.com","2026-11-12 00:50:59",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":24},[34,37,40],{"tool":35,"command":36},"npx","npx skills add stevengonsalvez\u002Fainb-toolkit --skill brainstorm",{"tool":38,"command":39},"bunx","bunx skills add stevengonsalvez\u002Fainb-toolkit --skill brainstorm",{"tool":41,"command":42},"pnpm","pnpm dlx skills add stevengonsalvez\u002Fainb-toolkit --skill brainstorm","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fstevengonsalvez\u002Fainb-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Fbrainstorm\u002FSKILL.md",[45],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"assets\u002Fascii-library.md","ASSET","资产文件",6335,"https:\u002F\u002Fgithub.com\u002Fstevengonsalvez\u002Fainb-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Fbrainstorm\u002Fassets\u002Fascii-library.md",[52,59,66,72,79,86],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M75WK9B8DKVJBJJ4CX2QMJMX","well-formed","Fixture skill that satisfies every mechanical rule, used to prove the conformance check passes a clean tree instead of failing everything.","https:\u002F\u002Fgithub.com\u002Fstevengonsalvez\u002Fainb-toolkit\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fagentskills\u002Fclean\u002Fwell-formed\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M75WK6ZGDXJJN8879K49QEYG","underscore-tools","Fixture skill that spells the tool allowlist key with an underscore instead of the hyphen the spec requires.","https:\u002F\u002Fgithub.com\u002Fstevengonsalvez\u002Fainb-toolkit\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fagentskills\u002Fbroken\u002Funderscore-tools\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M75WK524MVT2H9E27ZCEA3HR","no-frontmatter","https:\u002F\u002Fgithub.com\u002Fstevengonsalvez\u002Fainb-toolkit\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fagentskills\u002Fbroken\u002Fno-frontmatter\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M75WJWZBMKR8R60PG3T3MCCC","long-description","Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling.","https:\u002F\u002Fgithub.com\u002Fstevengonsalvez\u002Fainb-toolkit\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fagentskills\u002Fbroken\u002Flong-description\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M75WJVRH3J22WKED7E5D01S8","some-other-name","Fixture skill whose frontmatter name does not match its parent directory name.","https:\u002F\u002Fgithub.com\u002Fstevengonsalvez\u002Fainb-toolkit\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fagentskills\u002Fbroken\u002Fdir-mismatch\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M75WJTC7H5FRP6S129VBSMZC","bad_Name","Fixture skill whose name uses an underscore and a capital letter, so it violates the agentskills.io name pattern.","https:\u002F\u002Fgithub.com\u002Fstevengonsalvez\u002Fainb-toolkit\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fagentskills\u002Fbroken\u002Fbad_Name\u002FSKILL.md",[],[]]