一键导入
forge-brainstorm
Use when implementation direction depends on unresolved product/design choices, multiple viable approaches, or owner approval on a design.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when implementation direction depends on unresolved product/design choices, multiple viable approaches, or owner approval on a design.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when executing plans through specialized subagents with evidence-gated review loops
Use when work needs an explicit delivery contract, iterative repair, bounded autonomy, or resume-safe state
Use when a user asks to continue, resume, pick up prior loop work, or inspect previous loop state
Use when work needs codebase orientation, impact analysis, existing-pattern discovery, or risk scouting before planning or implementation
Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes
| name | forge:brainstorm |
| hidden | true |
| description | Use when implementation direction depends on unresolved product/design choices, multiple viable approaches, or owner approval on a design. |
Brainstorm is Forge's design-convergence skill. Use it to turn ambiguity into an approved direction or a documented reversible assumption.
It is not a mandatory prelude to every edit. Use the lightest design process that truthfully resolves the ambiguity.
Start by understanding the smallest relevant project context, then narrow the design space, then present the proposed direction.
Do NOT invoke any implementation skill, write any code, scaffold any project, or take any implementation action while unresolved design choices materially affect what will be built.If owner input is available, present the design and route the approval/clarification checkpoint through forge:ask.
Autonomous continuation: When no user is available, follow forge:ask semantics: continue only with the smallest safe reversible assumption inside scope, record it, and proceed. Do not invent approval for owner-only decisions.
Do not force a full brainstorming workflow onto trivial, fully specified, low-risk edits. If requirements are already concrete and implementation-local, route to Direct, Plan, or Loop instead.
Use brainstorm when the open question is genuinely about design, behavior, or architecture — not when the task merely needs file reading.
When user input is available, a normal brainstorm turn should usually be:
forge:ask approval or decision checkpointDo not stretch a single brainstorm turn into section-by-section approvals unless the user explicitly asks for staged review, or there are multiple independent owner decisions that cannot be truthfully collapsed into one checkpoint.
If additional owner decisions remain after choosing the highest-priority one, do not ask them in the same turn. Emit them as:
assumptions for reversible, low-risk defaultsdeferred decisions for real open questions that can waitUse the following sequence as needed. Scale it to ambiguity and risk; do not manufacture ceremony.
Autonomous mode (no user available): Still converge the design, but keep it minimal. Ask only the questions that would materially change the implementation. For reversible in-scope decisions, record the assumption and continue rather than blocking.
skill("forge:discovery") (D1 depth) only when that evidence will materially change the options or recommendation. This discovery can be reused by a later loop or plan if the work proceeds beyond brainstorm.forge:ask, one at a time, and only until one material design checkpoint can be framedforge:ask checkpoint for the highest-impact unresolved decision; stop unless the user explicitly requested staged reviewdocs/forge/specs/YYYY-MM-DD-<topic>-design.md and commit. For single-step fixes or small changes, keep the design in conversation context only.skill("forge:plan") or feed the result into forge:loopdigraph brainstorm {
"Explore project context" [shape=box];
"Needs D1 discovery?\n(2+ files / shared contracts)" [shape=diamond];
"Run forge:discovery (D1)" [shape=box];
"Visual questions ahead?" [shape=diamond];
"Offer Visual Companion\n(own message, no other content)" [shape=box];
"Ask clarifying questions" [shape=box];
"Propose 2-3 approaches" [shape=box];
"Present proposed direction" [shape=box];
"User approves design?" [shape=diamond];
"Write design doc" [shape=box];
"Spec self-review\n(fix inline)" [shape=box];
"User reviews spec?" [shape=diamond];
"Invoke forge:plan\n(or feed spec to forge:loop)" [shape=doublecircle];
"Explore project context" -> "Needs D1 discovery?\n(2+ files / shared contracts)";
"Needs D1 discovery?\n(2+ files / shared contracts)" -> "Run forge:discovery (D1)" [label="yes"];
"Needs D1 discovery?\n(2+ files / shared contracts)" -> "Visual questions ahead?" [label="no: trivial"];
"Run forge:discovery (D1)" -> "Visual questions ahead?";
"Visual questions ahead?" -> "Offer Visual Companion\n(own message, no other content)" [label="yes"];
"Visual questions ahead?" -> "Ask clarifying questions" [label="no"];
"Offer Visual Companion\n(own message, no other content)" -> "Ask clarifying questions";
"Ask clarifying questions" -> "Propose 2-3 approaches";
"Propose 2-3 approaches" -> "Present proposed direction";
"Present proposed direction" -> "User approves design?";
"User approves design?" -> "Present proposed direction" [label="no, revise"];
"User approves design?" -> "Write design doc" [label="yes"];
"Write design doc" -> "Spec self-review\n(fix inline)";
"Spec self-review\n(fix inline)" -> "User reviews spec?";
"User reviews spec?" -> "Write design doc" [label="changes requested"];
"User reviews spec?" -> "Invoke forge:plan\n(or feed spec to forge:loop)" [label="approved"];
}
The terminal state is one of two paths. Do NOT invoke frontend-design, mcp-builder, or any other implementation skill directly.
skill("forge:plan") to turn the spec into an implementation plan.forge:loop is wrapping this brainstorm → feed the approved spec into the loop
as Goal/Rubric input (per loop's Brainstorm Boundary); the loop then runs its own
discovery/plan/execute/verify.Understanding the idea:
forge:discovery (D1) to
ground your questions in the real impact surface — this discovery can be reused
by a later loop or plan.deferred decisions.forge:ask with those answers as optionsforge:ask with 2-3 suggested answers as options — the user can always type their own answerExploring approaches:
Presenting the design:
Once you believe you understand what you're building, present the design
Scale each section to its complexity: a few sentences if straightforward, up to 200-300 words if nuanced
After presenting the proposed direction, use one forge:ask checkpoint for the highest-impact unresolved decision:
Design DecisionDoes this proposed direction look right?Approve, description: Use this directionRevise, description: I want changesIf no user is available, treat as approved and continue.
Cover: architecture, components, data flow, error handling, testing
Be ready to go back and clarify if something doesn't make sense
After the decision checkpoint, stop. Do not stack a second approval, planning checkpoint, or implementation kickoff in the same brainstorm turn unless the user explicitly requested staged review.
If there are remaining open items, list them under assumptions or deferred decisions instead of asking again.
Design for isolation and clarity:
Working in existing codebases:
Documentation (optional, multi-step features only):
For features with multiple tasks or significant architectural decisions:
docs/forge/specs/YYYY-MM-DD-<topic>-design.md
For single bug fixes or small changes, skip the written spec — the design presented in conversation is sufficient.
Spec Self-Review (if doc written): After writing the spec document, look at it with fresh eyes:
Fix any issues inline. No need to re-review — just fix and move on.
User Review Gate (if doc written):
After spec self-review passes, use forge:ask:
Spec ReviewSpec written and committed to <path>. Ready to proceed?Approved, description: Proceed to forge:planChanges needed, description: I have revisionsIf no user is available, treat as approved and call skill("forge:plan").
If "Changes needed" or custom feedback, apply changes and re-run spec review. Only proceed on approval.
Implementation:
skill("forge:plan") to create a detailed implementation planWhen writing the spec, give every ## section heading a stable anchor ID so downstream plan tasks and reviewers can reference exact spec locations. Put the ID at the start of the heading text:
## [S1] Problem
## [S2] Solution overview
## [S3] Coverage gate behavior
Rules:
S followed by a number ([S1], [S2], [S3], ...), unique within the spec — no two sections share an ID, and no section is left without one.[S1], the next is [S2], and so on).covers: references and review verdicts depend on these IDs not drifting — renumbering would silently break every reference that points at them.These anchors are the index the plan and reviewers use to trace each task and each review verdict back to the exact spec section it serves.
A browser-based companion for showing mockups, diagrams, and visual options during brainstorming. Available as a tool — not a mode. Accepting the companion means it's available for questions that benefit from visual treatment; it does NOT mean every question goes through the browser.
Offering the companion: When you anticipate visual content (mockups, layouts, diagrams):
No persistent preference — this setup doesn't have cross-session memory, so we always ask fresh when needed.
Offer consent using forge:ask (this MUST be its own message — do not combine with other content):
Visual CompanionSome upcoming questions may benefit from browser-based mockups and diagrams. This feature is token-intensive and requires opening a local URL.Yes, this time, description: Enable visuals for this session onlyNo, this time, description: Skip visuals for this session onlyIf no user is available, skip the visual companion and use text-only.
If declined, proceed with text-only brainstorming.
Per-question decision: Even after the user accepts, 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?
A 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.
If they agree to the companion, read the detailed guide before proceeding:
<forge:brainstorm>/visual-companion.md