[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7C19DPE1KHCPBACN9WZ1EVY":3,"skill-same:01M7C19DPE1KHCPBACN9WZ1EVY":77},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"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":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7C19DPE1KHCPBACN9WZ1EVY","brainstorming",null,"You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.","zak-keown\u002Fmoe","zak-keown","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F320717241?v=4","01M7BZFXME0NW6TQX0H7AZM2KS","01M7BZFXN32VR0JN5AATRD53H4",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fzak-keown\u002Fmoe\u002Fblob\u002Fmain\u002Fplugins\u002Fmoe\u002F.kimi-plugin\u002Fskills\u002Fbrainstorming\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: brainstorming\ndescription: \"You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.\"\ntriggers: >-\n  Load when starting new creative work that needs design exploration\n  before implementation — new features, components, or behavioral\n  changes. Do NOT load for: bug fixes, refactoring existing code, test\n  additions, documentation edits, or tasks with an approved spec already\n  in hand (use `write-plan` directly).\n---\n\n# Brainstorming Ideas Into Designs\n\nHelp turn ideas into fully formed designs and specs through natural collaborative dialogue.\n\nStart by classifying the request by DEPTH, then work through the depth's\nprocess: understand the context, refine the idea, present a design, and\nget your human partner's approval.\n\n\u003CHARD-GATE>\nDo NOT invoke any implementation skill, write any code, scaffold any\nproject, or take any implementation action until you have told your\nhuman partner what you intend and they have approved it. This applies\nto EVERY task at EVERY depth below — the ceremony scales with the task;\nthe approval gate never does.\n\u003C\u002FHARD-GATE>\n\n## Stress-testing an existing design\n\nBefore classifying by depth, check: is the user arriving with a substantially\ncomplete design, plan, or decision and asking to **validate** it — \"grill me on\nthis,\" \"stress-test this plan,\" \"poke holes in this,\" \"what am I missing\"? If\nso, skip depth classification entirely. Read the design, build the design tree\nfrom it, and enter the **Sharpening an agreed shape** round loop directly. The\n`\u003CHARD-GATE>` still holds: when rounds are done, present what held up and what\ndidn't, then get approval before any implementation.\n\nIf a gap discovered during stress-testing upgrades the scope — the design needs\na new subsystem, or an assumption collapses — stop the round loop, re-enter\ndepth classification at the appropriate depth, and continue from there.\n\n## Three Depths\n\nBefore your first question, classify the request by DEPTH and say the\nclassification out loud — \"this looks like a `change`, so I'll present\na short design here rather than write a spec\" — so your human partner\ncan override it. The three depths, in increasing size, are **patch**,\n**change**, and **feature**.\n\n- **Patch** — the smallest depth: a one-line fix, a config tweak, a\n  targeted spot-tightening, or a quick feasibility probe whose output\n  is an answer, not code you keep. Present the intent in 1-2\n  sentences, get a nod, then keep it minimal. No design doc, no spec\n  file. If a probe yields code you now want to keep, that is a NEW\n  request — reclassify it and get its own approval.\n- **Change** — a well-scoped modification to code that already exists\n  in this repo: a new flag, a small endpoint, a small feature spanning\n  a few files. Familiarity with the KIND of app is not enough — the\n  flow you are changing must already be here to read. If there is no\n  existing flow to change, the depth is not `change`. Ask the\n  clarifying questions that matter, present a short design IN CHAT (a\n  few sentences to a few short paragraphs), and STOP. Implementation\n  starts only after your human partner says yes to that design — a\n  `change`-depth approval is as hard a gate as a `feature`-depth one.\n  No spec file, no implementation plan document.\n- **Feature** — new projects, new subsystems, changes that restructure\n  how components fit together or alter interfaces others depend on.\n  Follow the full process: questions, approaches, sectioned design,\n  written spec, then the write-plan skill.\n\nWhen in doubt between two depths, take the heavier one. The ratchet is\none-way: hidden complexity discovered mid-task upgrades the depth —\nstop, say so, and step up. Nothing downgrades mid-task.\n\n## Anti-Pattern: \"Too Simple To Need Approval\"\n\nEvery depth ends with your human partner approving your intent before\nimplementation. A todo list, a single-function utility, a config\nchange — the design may be two sentences in chat, but you MUST present\nit and get approval. \"Simple\" tasks are where unexamined assumptions\ncause the most wasted work. What scales with simplicity is the\nartifact, never the approval.\n\n## Red Flags\n\n| Thought | Reality |\n|---------|---------|\n| \"This is too simple to need a design\" | Simple means a short design, not no design. Two sentences in chat, then approval. |\n| \"I'll call it a `change` and skip the spec\" | Reaching for a label to skip work IS the doubt — take the heavier depth. |\n| \"It's a `change` and the design is obvious — I'll start while they read it\" | The gate is the approval, not the design's length. Present, then stop until you hear yes. |\n| \"I understand this kind of app, so it's a `change`\" | `change` measures the repo, not your familiarity. A new project has no existing flow — it is a `feature`. |\n| \"The `patch` probe worked, so I'll keep the code\" | A `patch` probe's deliverable is an answer, not code. Keeping the code is a new request — reclassify. |\n| \"It grew, but I'm almost done — no need to reclassify\" | Hidden complexity upgrades the depth mid-task. Stop and say so. |\n| \"They approved the `patch`, so the follow-up work is approved too\" | Each task gets its own depth and its own approval. |\n| \"The shape is agreed, so I can just start\" | An agreed shape is not a set of resolved decisions. Round the frontier, present, then get the yes. |\n| \"One question per message, so these six take six turns\" | If they do not depend on each other, that is six round-trips doing one round's work. Ask the frontier together. |\n| \"This `patch` deserves a helper class and a full test suite\" (gold-plating) | A `patch` is the minimum change that solves the task, plus the test for what actually changed. Extra structure is scope creep at the smallest depth. |\n| \"The `feature`'s interfaces exist; I'll wire them up later\" (stub-and-declare) | A `feature` is complete when the flow runs end-to-end, not when the skeleton compiles. Sketching structure and declaring done is the `feature`-depth failure mode. |\n\n## Checklist\n\nClassify first, announce the depth, then use `TodoList` to manage each item\non that depth's list and complete them in order.\n\n**Patch:**\n1. **Explore project context** — enough to frame the change or probe\n2. **Present intent + minimal plan** — 1-2 sentences\n3. **Get approval** — a nod is enough\n4. **Do the smallest thing that solves it** — as cheaply as correctness allows; a probe's deliverable is an answer, a fix's deliverable is the fix plus the test for what actually changed\n5. **Report** — the outcome, or the recommendation if the deliverable was an answer; label any exploratory code as throwaway\n\n**Change:**\n1. **Explore project context** — check files, docs, recent commits\n2. **Ask clarifying questions** — one at a time, the ones that matter\n3. **Present short design in chat** — approach, files touched, testing\n4. **Get approval** — STOP and wait for an explicit yes; presenting the design and starting in the same breath is skipping the gate\n5. **Implement** — proceed with the normal development workflow (TDD applies); no plan document\n\n**Feature:**\n1. **Explore project context** — check files, docs, recent commits\n2. **Open the visual companion just-in-time** — NOT upfront. The first time a question would genuinely be clearer shown than described, generate the visual, start the companion with `--open`, and present it in the browser. If no visual question ever arises, never start it. See the Visual Companion section below.\n3. **Ask clarifying questions** — one at a time, understand purpose\u002Fconstraints\u002Fsuccess criteria\n4. **Propose 2-3 approaches** — with trade-offs and your recommendation\n5. **Present design** — in sections scaled to their complexity, get user approval after each section\n6. **Write design doc** — use `moe jig spec init \u003Ctopic>` to create `docs\u002Fmoe\u002Fspecs\u002FYYYY-MM-DD-\u003Ctopic>-design.md`, then fill in the content and commit\n7. **Spec self-review** — quick inline check for placeholders, contradictions, ambiguity, scope (see below)\n8. **User reviews written spec** — ask user to review the spec file before proceeding\n9. **Transition to implementation** — invoke write-plan skill to create implementation plan\n\n## Process Flow\n\n```dot\ndigraph brainstorming {\n    \"Classify: patch \u002F change \u002F feature\" [shape=diamond];\n    \"Present intent + minimal plan (1-2 sentences)\" [shape=box];\n    \"Ask clarifying questions (change)\" [shape=box];\n    \"Present short design in chat\" [shape=box];\n    \"Human approves?\" [shape=diamond];\n    \"Do smallest thing; report\" [shape=doublecircle];\n    \"Implement via normal workflow (no plan doc)\" [shape=doublecircle];\n    \"Explore project context\" [shape=box];\n    \"Ask clarifying questions\" [shape=box];\n    \"Propose 2-3 approaches\" [shape=box];\n    \"Present design sections\" [shape=box];\n    \"User approves design?\" [shape=diamond];\n    \"Write design doc\" [shape=box];\n    \"Spec self-review\\n(fix inline)\" [shape=box];\n    \"User reviews spec?\" [shape=diamond];\n    \"Invoke write-plan skill\" [shape=doublecircle];\n    \"Hidden complexity? Upgrade depth\" [shape=box];\n\n    \"Classify: patch \u002F change \u002F feature\" -> \"Present intent + minimal plan (1-2 sentences)\" [label=\"patch\"];\n    \"Classify: patch \u002F change \u002F feature\" -> \"Ask clarifying questions (change)\" [label=\"change\"];\n    \"Classify: patch \u002F change \u002F feature\" -> \"Explore project context\" [label=\"feature\"];\n    \"Present intent + minimal plan (1-2 sentences)\" -> \"Human approves?\";\n    \"Ask clarifying questions (change)\" -> \"Present short design in chat\";\n    \"Present short design in chat\" -> \"Human approves?\";\n    \"Human approves?\" -> \"Do smallest thing; report\" [label=\"patch: yes\"];\n    \"Human approves?\" -> \"Implement via normal workflow (no plan doc)\" [label=\"change: yes\"];\n    \"Hidden complexity? Upgrade depth\" -> \"Classify: patch \u002F change \u002F feature\";\n    \"Explore project context\" -> \"Ask clarifying questions\";\n    \"Ask clarifying questions\" -> \"Propose 2-3 approaches\";\n    \"Propose 2-3 approaches\" -> \"Present design sections\";\n    \"Present design sections\" -> \"User approves design?\";\n    \"User approves design?\" -> \"Present design sections\" [label=\"no, revise\"];\n    \"User approves design?\" -> \"Write design doc\" [label=\"yes\"];\n    \"Write design doc\" -> \"Spec self-review\\n(fix inline)\";\n    \"Spec self-review\\n(fix inline)\" -> \"User reviews spec?\";\n    \"User reviews spec?\" -> \"Write design doc\" [label=\"changes requested\"];\n    \"User reviews spec?\" -> \"Invoke write-plan skill\" [label=\"approved\"];\n}\n```\n\nThe graph routes by depth only. **Sharpening an agreed shape** is orthogonal to\nit — a way of running the question steps, not another branch out of the\nclassifier — so it does not appear as a node.\n\n**Terminal states are depth-bound.** `feature`: the ONLY skill you\ninvoke after brainstorming is write-plan — never frontend-design,\nmcp-builder, or any other implementation skill. `change`: after\napproval, implementation proceeds directly through the normal\ndevelopment workflow; no plan document. `patch`: the terminal state is\nthe smallest change that solves the task, or — for a `patch`-shaped\nprobe — a reported recommendation.\n\n## The Process\n\nThe subsections below serve the `change` and `feature` depths (a\n`patch` stops at \"present the intent, get a nod, do the smallest\nthing\"). Sections from **Exploring approaches** onward are\n`feature`-depth material — for `change` work, context plus a few\nquestions plus a short in-chat design is the whole process.\n\n**Understanding the idea:**\n\n- Check out the current project state first (files, docs, recent commits)\n- Before asking detailed questions, assess scope: if the request describes multiple independent subsystems (e.g., \"build a platform with chat, file storage, billing, and analytics\"), flag this immediately. Don't spend questions refining details of a project that needs to be decomposed first.\n- If the project is too large for a single spec, help the user decompose into sub-projects: what are the independent pieces, how do they relate, what order should they be built? Then brainstorm the first sub-project through the normal design flow. Each sub-project gets its own spec → plan → implementation cycle.\n- For appropriately-scoped projects, ask questions one at a time to refine the idea\n- Prefer multiple choice questions via ask the user in chat when possible, but open-ended is fine too\n- Only one question per message *while the shape is still moving* - if a topic needs more exploration, break it into multiple questions. Once the shape is agreed and only decisions remain, switch to rounds (see **Sharpening an agreed shape** below)\n- Focus on understanding: purpose, constraints, success criteria\n\n**Sharpening an agreed shape:**\n\nSometimes the shape is not what is in question. Your human partner arrives with\nthe design already settled, or you have just been given approval on it, and what\nis left is a set of decisions to nail down. Asking those one at a time is the\nwrong instrument: it serialises questions that do not depend on each other, and\nburns a round-trip on each.\n\nSwitch to **rounds**. Map what remains as a **design tree** — every decision\nbranches into the decisions that hang off it. The **frontier** is every decision\nwhose prerequisites are already settled: the questions you can ask *now* without\nguessing at answers you have not heard yet.\n\nAsk the whole frontier in one round. Number each question and give your\nrecommended answer:\n\n> **Q1 — \u003Cshort title>:** \u003Cthe question, with the options if there are any>\n>\n> **Recommendation:** \u003Cyour answer, and why>\n>\n> **Q2 — \u003Cshort title>:** …\n>\n> **Recommendation:** …\n\nThen stop and wait. Each round of answers reshapes the tree: settled decisions\npush the frontier outward and unblock the questions that depended on them.\nRecompute the frontier and ask the next round. A question whose answer depends\non another question still open *in this round* belongs to a later round, not\nthis one.\n\n**Facts are yours to find; decisions are your human partner's.** When a frontier\nquestion turns on a fact from the environment — what is in the file, what the\ntool returns — go and get it. Never ask for something you could look up. Do not\nblock the round on it either: an exploration still running is an unsettled\nprerequisite, so only the questions downstream of it wait. Ask the rest now.\n\nThe round loop is done when the frontier is empty — every branch of the tree\nvisited, nothing left silently assumed. Then present the design as usual. This\nmode changes how you ask, never whether you get approval: the `\u003CHARD-GATE>`\nholds exactly as it does everywhere else.\n\nApplies at `change` and `feature`. A `patch` has no frontier worth mapping —\npresent the intent, get a nod, do the smallest thing.\n\n**Exploring approaches:**\n\n- Propose 2-3 different approaches with trade-offs\n- Present options conversationally with your recommendation and reasoning\n- Lead with your recommended option and explain why\n- YAGNI ruthlessly - remove unnecessary features from every approach and design\n\n**Presenting the design:**\n\n- Once you believe you understand what you're building, present the design\n- Scale each section to its complexity: a few sentences if straightforward, up to 200-300 words if nuanced\n- Ask after each section whether it looks right so far\n- Cover: architecture, components, data flow, error handling, testing\n- Be ready to go back and clarify if something doesn't make sense\n\n**Design for isolation and clarity:**\n\n- Break the system into smaller units that each have one clear purpose, communicate through well-defined interfaces, and can be understood and tested independently\n- For each unit, you should be able to answer: what does it do, how do you use it, and what does it depend on?\n- Can someone understand what a unit does without reading its internals? Can you change the internals without breaking consumers? If not, the boundaries need work.\n- Smaller, well-bounded units are also easier for you to work with - you reason better about code you can hold in context at once, and your edits are more reliable when files are focused. When a file grows large, that's often a signal that it's doing too much.\n\n**Working in existing codebases:**\n\n- Explore the current structure before proposing changes. Follow existing patterns.\n- Where existing code has problems that affect the work (e.g., a file that's grown too large, unclear boundaries, tangled responsibilities), include targeted improvements as part of the design - the way a good developer improves code they're working in.\n- Don't propose unrelated refactoring. Stay focused on what serves the current goal.\n\n## After the Design (feature depth)\n\n**Documentation:**\n\n- Create the spec file with `moe jig spec init \u003Ctopic>` — it writes\n  `docs\u002Fmoe\u002Fspecs\u002FYYYY-MM-DD-\u003Ctopic>-design.md` with the correct naming and a\n  skeleton. Fill in the validated design and commit.\n  - (User preferences for spec location override this default)\n- Use the `write-clearly` skill (a sibling skill in this plugin)\n- Commit the design document to git\n\n**Spec Self-Review:**\nAfter writing the spec document, look at it with fresh eyes:\n\n1. **Placeholder scan:** Any \"TBD\", \"TODO\", incomplete sections, or vague requirements? Fix them.\n2. **Internal consistency:** Do any sections contradict each other? Does the architecture match the feature descriptions?\n3. **Scope check:** Is this focused enough for a single implementation plan, or does it need decomposition?\n4. **Ambiguity check:** Could any requirement be interpreted two different ways? If so, pick one and make it explicit.\n\nFix any issues inline. No need to re-review — just fix and move on.\n\n**User Review Gate:**\nAfter the spec review loop passes, ask the user to review the written spec before proceeding:\n\n> \"Spec written and committed to `\u003Cpath>`. Please review it and let me know if you want to make any changes before we start writing out the implementation plan.\"\n\nWait for the user's response. If they request changes, make them and re-run the spec review loop. Only proceed once the user approves.\n\n**Implementation:**\n\n- Invoke the write-plan skill to create a detailed implementation plan\n- Do NOT invoke any other skill. write-plan is the next step.\n\n## Visual Companion\n\nA browser-based companion for showing mockups, diagrams, and visual options during brainstorming. Available as a tool — not a mode. Starting the companion does NOT mean every question goes through the browser.\n\nThe browser companion is rung 2 of the shared native-rendering ladder in [skills\u002F_shared\u002Fnative-rendering.md](..\u002F_shared\u002Fnative-rendering.md), resolved relative to this loaded document.\n\nRung 1 (the Claude Code `Artifact` tool) is not exposed — start at\nrung 2 (the brainstorm browser companion) and drop to rung 3 (local\nHTML file) or rung 4 (markdown file) when a browser is unavailable.\n\n\n**Opening the companion (just-in-time):** Do NOT start it upfront. Wait until a question would genuinely be clearer shown than told — a real mockup \u002F layout \u002F diagram question, not merely a UI *topic*. The first time that happens, generate the visual, start the server with `--open`, and present the question there immediately. Do not warn about the companion or ask for separate approval before opening it.\n\n**Per-question decision:** Decide FOR EACH QUESTION whether to use the browser or the terminal. The test: **would the user understand this better by seeing it than reading it?**\n\n- **Use the browser** for content that IS visual — mockups, wireframes, layout comparisons, architecture diagrams, side-by-side visual designs\n- **Use the terminal** for content that is text — requirements questions, conceptual choices, tradeoff lists, A\u002FB\u002FC\u002FD text options, scope decisions\n\nA question about a UI topic is not automatically a visual question. \"What does personality mean in this context?\" is a conceptual question — use the terminal. \"Which wizard layout works better?\" is a visual question — use the browser.\n\nBefore first use, read the detailed guide:\n`skills\u002Fbrainstorming\u002Fvisual-companion.md`\n","# Brainstorming Ideas Into Designs\n\nHelp turn ideas into fully formed designs and specs through natural collaborative dialogue.\n\nStart by classifying the request by DEPTH, then work through the depth's\nprocess: understand the context, refine the idea, present a design, and\nget your human partner's approval.\n\n\u003CHARD-GATE>\nDo NOT invoke any implementation skill, write any code, scaffold any\nproject, or take any implementation action until you have told your\nhuman partner what you intend and they have approved it. This applies\nto EVERY task at EVERY depth below — the ceremony scales with the task;\nthe approval gate never does.\n\u003C\u002FHARD-GATE>\n\n## Stress-testing an existing design\n\nBefore classifying by depth, check: is the user arriving with a substantially\ncomplete design, plan, or decision and asking to **validate** it — \"grill me on\nthis,\" \"stress-test this plan,\" \"poke holes in this,\" \"what am I missing\"? If\nso, skip depth classification entirely. Read the design, build the design tree\nfrom it, and enter the **Sharpening an agreed shape** round loop directly. The\n`\u003CHARD-GATE>` still holds: when rounds are done, present what held up and what\ndidn't, then get approval before any implementation.\n\nIf a gap discovered during stress-testing upgrades the scope — the design needs\na new subsystem, or an assumption collapses — stop the round loop, re-enter\ndepth classification at the appropriate depth, and continue from there.\n\n## Three Depths\n\nBefore your first question, classify the request by DEPTH and say the\nclassification out loud — \"this looks like a `change`, so I'll present\na short design here rather than write a spec\" — so your human partner\ncan override it. The three depths, in increasing size, are **patch**,\n**change**, and **feature**.\n\n- **Patch** — the smallest depth: a one-line fix, a config tweak, a\n  targeted spot-tightening, or a quick feasibility probe whose output\n  is an answer, not code you keep. Present the intent in 1-2\n  sentences, get a nod, then keep it minimal. No design doc, no spec\n  file. If a probe yields code you now want to keep, that is a NEW\n  request — reclassify it and get its own approval.\n- **Change** — a well-scoped modification to code that already exists\n  in this repo: a new flag, a small endpoint, a small feature spanning\n  a few files. Familiarity with the KIND of app is not enough — the\n  flow you are changing must already be here to read. If there is no\n  existing flow to change, the depth is not `change`. Ask the\n  clarifying questions that matter, present a short design IN CHAT (a\n  few sentences to a few short paragraphs), and STOP. Implementation\n  starts only after your human partner says yes to that design — a\n  `change`-depth approval is as hard a gate as a `feature`-depth one.\n  No spec file, no implementation plan document.\n- **Feature** — new projects, new subsystems, changes that restructure\n  how components fit together or alter interfaces others depend on.\n  Follow the full process: questions, approaches, sectioned design,\n  written spec, then the write-plan skill.\n\nWhen in doubt between two depths, take the heavier one. The ratchet is\none-way: hidden complexity discovered mid-task upgrades the depth —\nstop, say so, and step up. Nothing downgrades mid-task.\n\n## Anti-Pattern: \"Too Simple To Need Approval\"\n\nEvery depth ends with your human partner approving your intent before\nimplementation. A todo list, a single-function utility, a config\nchange — the design may be two sentences in chat, but you MUST present\nit and get approval. \"Simple\" tasks are where unexamined assumptions\ncause the most wasted work. What scales with simplicity is the\nartifact, never the approval.\n\n## Red Flags\n\n| Thought | Reality |\n|---------|---------|\n| \"This is too simple to need a design\" | Simple means a short design, not no design. Two sentences in chat, then approval. |\n| \"I'll call it a `change` and skip the spec\" | Reaching for a label to skip work IS the doubt — take the heavier depth. |\n| \"It's a `change` and the design is obvious — I'll start while they read it\" | The gate is the approval, not the design's length. Present, then stop until you hear yes. |\n| \"I understand this kind of app, so it's a `change`\" | `change` measures the repo, not your familiarity. A new project has no existing flow — it is a `feature`. |\n| \"The `patch` probe worked, so I'll keep the code\" | A `patch` probe's deliverable is an answer, not code. Keeping the code is a new request — reclassify. |\n| \"It grew, but I'm almost done — no need to reclassify\" | Hidden complexity upgrades the depth mid-task. Stop and say so. |\n| \"They approved the `patch`, so the follow-up work is approved too\" | Each task gets its own depth and its own approval. |\n| \"The shape is agreed, so I can just start\" | An agreed shape is not a set of resolved decisions. Round the frontier, present, then get the yes. |\n| \"One question per message, so these six take six turns\" | If they do not depend on each other, that is six round-trips doing one round's work. Ask the frontier together. |\n| \"This `patch` deserves a helper class and a full test suite\" (gold-plating) | A `patch` is the minimum change that solves the task, plus the test for what actually changed. Extra structure is scope creep at the smallest depth. |\n| \"The `feature`'s interfaces exist; I'll wire them up later\" (stub-and-declare) | A `feature` is complete when the flow runs end-to-end, not when the skeleton compiles. Sketching structure and declaring done is the `feature`-depth failure mode. |\n\n## Checklist\n\nClassify first, announce the depth, then use `TodoList` to manage each item\non that depth's list and complete them in order.\n\n**Patch:**\n1. **Explore project context** — enough to frame the change or probe\n2. **Present intent + minimal plan** — 1-2 sentences\n3. **Get approval** — a nod is enough\n4. **Do the smallest thing that solves it** — as cheaply as correctness allows; a probe's deliverable is an answer, a fix's deliverable is the fix plus the test for what actually changed\n5. **Report** — the outcome, or the recommendation if the deliverable was an answer; label any exploratory code as throwaway\n\n**Change:**\n1. **Explore project context** — check files, docs, recent commits\n2. **Ask clarifying questions** — one at a time, the ones that matter\n3. **Present short design in chat** — approach, files touched, testing\n4. **Get approval** — STOP and wait for an explicit yes; presenting the design and starting in the same breath is skipping the gate\n5. **Implement** — proceed with the normal development workflow (TDD applies); no plan document\n\n**Feature:**\n1. **Explore project context** — check files, docs, recent commits\n2. **Open the visual companion just-in-time** — NOT upfront. The first time a question would genuinely be clearer shown than described, generate the visual, start the companion with `--open`, and present it in the browser. If no visual question ever arises, never start it. See the Visual Companion section below.\n3. **Ask clarifying questions** — one at a time, understand purpose\u002Fconstraints\u002Fsuccess criteria\n4. **Propose 2-3 approaches** — with trade-offs and your recommendation\n5. **Present design** — in sections scaled to their complexity, get user approval after each section\n6. **Write design doc** — use `moe jig spec init \u003Ctopic>` to create `docs\u002Fmoe\u002Fspecs\u002FYYYY-MM-DD-\u003Ctopic>-design.md`, then fill in the content and commit\n7. **Spec self-review** — quick inline check for placeholders, contradictions, ambiguity, scope (see below)\n8. **User reviews written spec** — ask user to review the spec file before proceeding\n9. **Transition to implementation** — invoke write-plan skill to create implementation plan\n\n## Process Flow\n\n```dot\ndigraph brainstorming {\n    \"Classify: patch \u002F change \u002F feature\" [shape=diamond];\n    \"Present intent + minimal plan (1-2 sentences)\" [shape=box];\n    \"Ask clarifying questions (change)\" [shape=box];\n    \"Present short design in chat\" [shape=box];\n    \"Human approves?\" [shape=diamond];\n    \"Do smallest thing; report\" [shape=doublecircle];\n    \"Implement via normal workflow (no plan doc)\" [shape=doublecircle];\n    \"Explore project context\" [shape=box];\n    \"Ask clarifying questions\" [shape=box];\n    \"Propose 2-3 approaches\" [shape=box];\n    \"Present design sections\" [shape=box];\n    \"User approves design?\" [shape=diamond];\n    \"Write design doc\" [shape=box];\n    \"Spec self-review\\n(fix inline)\" [shape=box];\n    \"User reviews spec?\" [shape=diamond];\n    \"Invoke write-plan skill\" [shape=doublecircle];\n    \"Hidden complexity? Upgrade depth\" [shape=box];\n\n    \"Classify: patch \u002F change \u002F feature\" -> \"Present intent + minimal plan (1-2 sentences)\" [label=\"patch\"];\n    \"Classify: patch \u002F change \u002F feature\" -> \"Ask clarifying questions (change)\" [label=\"change\"];\n    \"Classify: patch \u002F change \u002F feature\" -> \"Explore project context\" [label=\"feature\"];\n    \"Present intent + minimal plan (1-2 sentences)\" -> \"Human approves?\";\n    \"Ask clarifying questions (change)\" -> \"Present short design in chat\";\n    \"Present short design in chat\" -> \"Human approves?\";\n    \"Human approves?\" -> \"Do smallest thing; report\" [label=\"patch: yes\"];\n    \"Human approves?\" -> \"Implement via normal workflow (no plan doc)\" [label=\"change: yes\"];\n    \"Hidden complexity? Upgrade depth\" -> \"Classify: patch \u002F change \u002F feature\";\n    \"Explore project context\" -> \"Ask clarifying questions\";\n    \"Ask clarifying questions\" -> \"Propose 2-3 approaches\";\n    \"Propose 2-3 approaches\" -> \"Present design sections\";\n    \"Present design sections\" -> \"User approves design?\";\n    \"User approves design?\" -> \"Present design sections\" [label=\"no, revise\"];\n    \"User approves design?\" -> \"Write design doc\" [label=\"yes\"];\n    \"Write design doc\" -> \"Spec self-review\\n(fix inline)\";\n    \"Spec self-review\\n(fix inline)\" -> \"User reviews spec?\";\n    \"User reviews spec?\" -> \"Write design doc\" [label=\"changes requested\"];\n    \"User reviews spec?\" -> \"Invoke write-plan skill\" [label=\"approved\"];\n}\n```\n\nThe graph routes by depth only. **Sharpening an agreed shape** is orthogonal to\nit — a way of running the question steps, not another branch out of the\nclassifier — so it does not appear as a node.\n\n**Terminal states are depth-bound.** `feature`: the ONLY skill you\ninvoke after brainstorming is write-plan — never frontend-design,\nmcp-builder, or any other implementation skill. `change`: after\napproval, implementation proceeds directly through the normal\ndevelopment workflow; no plan document. `patch`: the terminal state is\nthe smallest change that solves the task, or — for a `patch`-shaped\nprobe — a reported recommendation.\n\n## The Process\n\nThe subsections below serve the `change` and `feature` depths (a\n`patch` stops at \"present the intent, get a nod, do the smallest\nthing\"). Sections from **Exploring approaches** onward are\n`feature`-depth material — for `change` work, context plus a few\nquestions plus a short in-chat design is the whole process.\n\n**Understanding the idea:**\n\n- Check out the current project state first (files, docs, recent commits)\n- Before asking detailed questions, assess scope: if the request describes multiple independent subsystems (e.g., \"build a platform with chat, file storage, billing, and analytics\"), flag this immediately. Don't spend questions refining details of a project that needs to be decomposed first.\n- If the project is too large for a single spec, help the user decompose into sub-projects: what are the independent pieces, how do they relate, what order should they be built? Then brainstorm the first sub-project through the normal design flow. Each sub-project gets its own spec → plan → implementation cycle.\n- For appropriately-scoped projects, ask questions one at a time to refine the idea\n- Prefer multiple choice questions via ask the user in chat when possible, but open-ended is fine too\n- Only one question per message *while the shape is still moving* - if a topic needs more exploration, break it into multiple questions. Once the shape is agreed and only decisions remain, switch to rounds (see **Sharpening an agreed shape** below)\n- Focus on understanding: purpose, constraints, success criteria\n\n**Sharpening an agreed shape:**\n\nSometimes the shape is not what is in question. Your human partner arrives with\nthe design already settled, or you have just been given approval on it, and what\nis left is a set of decisions to nail down. Asking those one at a time is the\nwrong instrument: it serialises questions that do not depend on each other, and\nburns a round-trip on each.\n\nSwitch to **rounds**. Map what remains as a **design tree** — every decision\nbranches into the decisions that hang off it. The **frontier** is every decision\nwhose prerequisites are already settled: the questions you can ask *now* without\nguessing at answers you have not heard yet.\n\nAsk the whole frontier in one round. Number each question and give your\nrecommended answer:\n\n> **Q1 — \u003Cshort title>:** \u003Cthe question, with the options if there are any>\n>\n> **Recommendation:** \u003Cyour answer, and why>\n>\n> **Q2 — \u003Cshort title>:** …\n>\n> **Recommendation:** …\n\nThen stop and wait. Each round of answers reshapes the tree: settled decisions\npush the frontier outward and unblock the questions that depended on them.\nRecompute the frontier and ask the next round. A question whose answer depends\non another question still open *in this round* belongs to a later round, not\nthis one.\n\n**Facts are yours to find; decisions are your human partner's.** When a frontier\nquestion turns on a fact from the environment — what is in the file, what the\ntool returns — go and get it. Never ask for something you could look up. Do not\nblock the round on it either: an exploration still running is an unsettled\nprerequisite, so only the questions downstream of it wait. Ask the rest now.\n\nThe round loop is done when the frontier is empty — every branch of the tree\nvisited, nothing left silently assumed. Then present the design as usual. This\nmode changes how you ask, never whether you get approval: the `\u003CHARD-GATE>`\nholds exactly as it does everywhere else.\n\nApplies at `change` and `feature`. A `patch` has no frontier worth mapping —\npresent the intent, get a nod, do the smallest thing.\n\n**Exploring approaches:**\n\n- Propose 2-3 different approaches with trade-offs\n- Present options conversationally with your recommendation and reasoning\n- Lead with your recommended option and explain why\n- YAGNI ruthlessly - remove unnecessary features from every approach and design\n\n**Presenting the design:**\n\n- Once you believe you understand what you're building, present the design\n- Scale each section to its complexity: a few sentences if straightforward, up to 200-300 words if nuanced\n- Ask after each section whether it looks right so far\n- Cover: architecture, components, data flow, error handling, testing\n- Be ready to go back and clarify if something doesn't make sense\n\n**Design for isolation and clarity:**\n\n- Break the system into smaller units that each have one clear purpose, communicate through well-defined interfaces, and can be understood and tested independently\n- For each unit, you should be able to answer: what does it do, how do you use it, and what does it depend on?\n- Can someone understand what a unit does without reading its internals? Can you change the internals without breaking consumers? If not, the boundaries need work.\n- Smaller, well-bounded units are also easier for you to work with - you reason better about code you can hold in context at once, and your edits are more reliable when files are focused. When a file grows large, that's often a signal that it's doing too much.\n\n**Working in existing codebases:**\n\n- Explore the current structure before proposing changes. Follow existing patterns.\n- Where existing code has problems that affect the work (e.g., a file that's grown too large, unclear boundaries, tangled responsibilities), include targeted improvements as part of the design - the way a good developer improves code they're working in.\n- Don't propose unrelated refactoring. Stay focused on what serves the current goal.\n\n## After the Design (feature depth)\n\n**Documentation:**\n\n- Create the spec file with `moe jig spec init \u003Ctopic>` — it writes\n  `docs\u002Fmoe\u002Fspecs\u002FYYYY-MM-DD-\u003Ctopic>-design.md` with the correct naming and a\n  skeleton. Fill in the validated design and commit.\n  - (User preferences for spec location override this default)\n- Use the `write-clearly` skill (a sibling skill in this plugin)\n- Commit the design document to git\n\n**Spec Self-Review:**\nAfter writing the spec document, look at it with fresh eyes:\n\n1. **Placeholder scan:** Any \"TBD\", \"TODO\", incomplete sections, or vague requirements? Fix them.\n2. **Internal consistency:** Do any sections contradict each other? Does the architecture match the feature descriptions?\n3. **Scope check:** Is this focused enough for a single implementation plan, or does it need decomposition?\n4. **Ambiguity check:** Could any requirement be interpreted two different ways? If so, pick one and make it explicit.\n\nFix any issues inline. No need to re-review — just fix and move on.\n\n**User Review Gate:**\nAfter the spec review loop passes, ask the user to review the written spec before proceeding:\n\n> \"Spec written and committed to `\u003Cpath>`. Please review it and let me know if you want to make any changes before we start writing out the implementation plan.\"\n\nWait for the user's response. If they request changes, make them and re-run the spec review loop. Only proceed once the user approves.\n\n**Implementation:**\n\n- Invoke the write-plan skill to create a detailed implementation plan\n- Do NOT invoke any other skill. write-plan is the next step.\n\n## Visual Companion\n\nA browser-based companion for showing mockups, diagrams, and visual options during brainstorming. Available as a tool — not a mode. Starting the companion does NOT mean every question goes through the browser.\n\nThe browser companion is rung 2 of the shared native-rendering ladder in [skills\u002F_shared\u002Fnative-rendering.md](..\u002F_shared\u002Fnative-rendering.md), resolved relative to this loaded document.\n\nRung 1 (the Claude Code `Artifact` tool) is not exposed — start at\nrung 2 (the brainstorm browser companion) and drop to rung 3 (local\nHTML file) or rung 4 (markdown file) when a browser is unavailable.\n\n\n**Opening the companion (just-in-time):** Do NOT start it upfront. Wait until a question would genuinely be clearer shown than told — a real mockup \u002F layout \u002F diagram question, not merely a UI *topic*. The first time that happens, generate the visual, start the server with `--open`, and present the question there immediately. Do not warn about the companion or ask for separate approval before opening it.\n\n**Per-question decision:** Decide FOR EACH QUESTION whether to use the browser or the terminal. The test: **would the user understand this better by seeing it than reading it?**\n\n- **Use the browser** for content that IS visual — mockups, wireframes, layout comparisons, architecture diagrams, side-by-side visual designs\n- **Use the terminal** for content that is text — requirements questions, conceptual choices, tradeoff lists, A\u002FB\u002FC\u002FD text options, scope decisions\n\nA question about a UI topic is not automatically a visual question. \"What does personality mean in this context?\" is a conceptual question — use the terminal. \"Which wizard layout works better?\" is a visual question — use the browser.\n\nBefore first use, read the detailed guide:\n`skills\u002Fbrainstorming\u002Fvisual-companion.md`\n",{"name":5,"triggers":23,"description":7},"Load when starting new creative work that needs design exploration before implementation — new features, components, or behavioral changes. Do NOT load for: bug fixes, refactoring existing code, test additions, documentation edits, or tasks with an approved spec already in hand (use `write-plan` directly).","main","728894f3f85fbd4e788f015ddfd72bb6155d5dd5","plugins\u002Fmoe\u002F.kimi-plugin\u002Fskills\u002Fbrainstorming",1,"https:\u002F\u002Fgithub.com\u002Fzak-keown\u002Fmoe","https:\u002F\u002Fgithub.com\u002Fzak-keown","2026-09-05 06:29:06",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add zak-keown\u002Fmoe --skill brainstorming",{"tool":37,"command":38},"bunx","bunx skills add zak-keown\u002Fmoe --skill brainstorming",{"tool":40,"command":41},"pnpm","pnpm dlx skills add zak-keown\u002Fmoe --skill brainstorming","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fzak-keown\u002Fmoe\u002Fblob\u002Fmain\u002Fplugins\u002Fmoe\u002F.kimi-plugin\u002Fskills\u002Fbrainstorming\u002FSKILL.md",true,[45,51,55,59,63,67,73],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"scripts\u002Fframe-template.html","SCRIPT","脚本",8086,"https:\u002F\u002Fgithub.com\u002Fzak-keown\u002Fmoe\u002Fblob\u002Fmain\u002Fplugins\u002Fmoe\u002F.kimi-plugin\u002Fskills\u002Fbrainstorming\u002Fscripts\u002Fframe-template.html",{"path":52,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":53,"sourceHtmlUrl":54},"scripts\u002Fhelper.mjs",4987,"https:\u002F\u002Fgithub.com\u002Fzak-keown\u002Fmoe\u002Fblob\u002Fmain\u002Fplugins\u002Fmoe\u002F.kimi-plugin\u002Fskills\u002Fbrainstorming\u002Fscripts\u002Fhelper.mjs",{"path":56,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":57,"sourceHtmlUrl":58},"scripts\u002Fserver.mjs",20992,"https:\u002F\u002Fgithub.com\u002Fzak-keown\u002Fmoe\u002Fblob\u002Fmain\u002Fplugins\u002Fmoe\u002F.kimi-plugin\u002Fskills\u002Fbrainstorming\u002Fscripts\u002Fserver.mjs",{"path":60,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":61,"sourceHtmlUrl":62},"scripts\u002Fstart-server.mjs",7315,"https:\u002F\u002Fgithub.com\u002Fzak-keown\u002Fmoe\u002Fblob\u002Fmain\u002Fplugins\u002Fmoe\u002F.kimi-plugin\u002Fskills\u002Fbrainstorming\u002Fscripts\u002Fstart-server.mjs",{"path":64,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":65,"sourceHtmlUrl":66},"scripts\u002Fstop-server.mjs",3905,"https:\u002F\u002Fgithub.com\u002Fzak-keown\u002Fmoe\u002Fblob\u002Fmain\u002Fplugins\u002Fmoe\u002F.kimi-plugin\u002Fskills\u002Fbrainstorming\u002Fscripts\u002Fstop-server.mjs",{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},"spec-document-reviewer-prompt.md","REFERENCE","参考文档",1739,"https:\u002F\u002Fgithub.com\u002Fzak-keown\u002Fmoe\u002Fblob\u002Fmain\u002Fplugins\u002Fmoe\u002F.kimi-plugin\u002Fskills\u002Fbrainstorming\u002Fspec-document-reviewer-prompt.md",{"path":74,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":75,"sourceHtmlUrl":76},"visual-companion.md",13635,"https:\u002F\u002Fgithub.com\u002Fzak-keown\u002Fmoe\u002Fblob\u002Fmain\u002Fplugins\u002Fmoe\u002F.kimi-plugin\u002Fskills\u002Fbrainstorming\u002Fvisual-companion.md",[78,85,92,99,106,113],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M7C1Z5362Y8NVRZ69HWP0ZD0","write-skill","Use when creating new skills, editing existing skills, or verifying skills work before deployment","https:\u002F\u002Fgithub.com\u002Fzak-keown\u002Fmoe\u002Fblob\u002Fmain\u002Fplugins\u002Fmoe\u002Fskills\u002Fwrite-skill\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":18},"01M7C1YZ9966WK9R6ZRPCGWF3G","write-plan","Use when you have a spec or requirements for a multi-step task, before touching code","https:\u002F\u002Fgithub.com\u002Fzak-keown\u002Fmoe\u002Fblob\u002Fmain\u002Fplugins\u002Fmoe\u002Fskills\u002Fwrite-plan\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":18},"01M7C1YMR4SJD7BPBBPXZCVGVH","write-clearly","Apply Strunk's timeless writing rules to ANY prose humans will read—documentation, commit messages, error messages, explanations, reports, or UI text. Makes your writing clearer, stronger, and more professional.","https:\u002F\u002Fgithub.com\u002Fzak-keown\u002Fmoe\u002Fblob\u002Fmain\u002Fplugins\u002Fmoe\u002Fskills\u002Fwrite-clearly\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":18},"01M7C1YH9805YSM0N20VQAVSXF","windows-vm","Create, manage, or connect to a headless Windows 11 VM running in Docker with SSH access. Use when the user wants to spin up, stop, restart, or SSH into a Windows VM.","https:\u002F\u002Fgithub.com\u002Fzak-keown\u002Fmoe\u002Fblob\u002Fmain\u002Fplugins\u002Fmoe\u002Fskills\u002Fwindows-vm\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":18},"01M7C1YD87SCNEJ2C9B8HFR2NQ","verify-completion","Use when about to claim work is complete, fixed, or passing, before committing or creating MRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always","https:\u002F\u002Fgithub.com\u002Fzak-keown\u002Fmoe\u002Fblob\u002Fmain\u002Fplugins\u002Fmoe\u002Fskills\u002Fverify-completion\u002FSKILL.md",[],[],{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":18},"01M7C1YARDEHT0TJ9BRG30ZCF4","using-moe","Use when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions","https:\u002F\u002Fgithub.com\u002Fzak-keown\u002Fmoe\u002Fblob\u002Fmain\u002Fplugins\u002Fmoe\u002Fskills\u002Fusing-moe\u002FSKILL.md",[],[]]