| name | brainstorming |
| description | Use before any creative work - creating features, building components, adding functionality, or modifying behavior. |
Brainstorming Ideas Into Designs
Help turn ideas into fully formed proposals and specs through natural collaborative dialogue.
Start by understanding the current project context, then ask questions one at a time to refine the idea. Once you understand what you're building, present the design and get user approval. Then write the proposal and the feature spec — the behavioral contract that drives all downstream work.
HARD GATE: Do NOT invoke any implementation skill, write any code, scaffold any project, or take any implementation action until you have written both the proposal and the feature spec, the spec reviewer has approved the feature spec, and the user has approved them. This applies to EVERY project regardless of perceived simplicity.
Anti-Pattern: "This Is Too Simple To Need A Design"
Every project goes through this process. A todo list, a single-function utility, a config change — all of them. "Simple" projects are where unexamined assumptions cause the most wasted work. The proposal can be short (a few sentences for truly simple projects), but you MUST present it and get approval. The feature spec can be brief for simple changes, but it MUST exist as a separate artifact with behavioral requirements.
Checklist
You MUST create a task for each of these items and complete them in order:
- Read living specs — check
docs/specs/ for relevant domain specs. They describe current system behavior. If no spec exists for the relevant domain, note that the feature spec will define the domain's initial behavioral requirements.
- Explore project context — check files, docs, recent commits
- Ask clarifying questions — one at a time, understand purpose/constraints/success criteria
- Propose 2-3 approaches — with trade-offs and your recommendation
- Present design — in sections scaled to their complexity, get user approval after each section
- Write proposal — save to
docs/design/YYYY-MM-DD-<topic>-proposal.md and commit
- Write feature spec — save to
docs/design/YYYY-MM-DD-<topic>-spec.md and commit
- Dispatch spec reviewer — use
spec-document-reviewer-prompt.md to verify the spec is complete and behavioral
- User reviews proposal + spec — ask user to review both artifacts before proceeding
- Transition to implementation — invoke writing-plans skill to create implementation plan
Process Flow
digraph brainstorming {
"Read living specs\n(docs/specs/)" [shape=box];
"Explore project context" [shape=box];
"Ask clarifying questions" [shape=box];
"Propose 2-3 approaches" [shape=box];
"Present design sections" [shape=box];
"User approves design?" [shape=diamond];
"Write proposal\n(docs/design/)" [shape=box];
"Write feature spec\n(docs/design/)" [shape=box];
"Dispatch spec reviewer" [shape=box];
"Spec reviewer approves?" [shape=diamond];
"User reviews proposal + spec?" [shape=diamond];
"Invoke writing-plans skill" [shape=doublecircle];
"Read living specs\n(docs/specs/)" -> "Explore project context";
"Explore project context" -> "Ask clarifying questions";
"Ask clarifying questions" -> "Propose 2-3 approaches";
"Propose 2-3 approaches" -> "Present design sections";
"Present design sections" -> "User approves design?";
"User approves design?" -> "Present design sections" [label="no, revise"];
"User approves design?" -> "Write proposal\n(docs/design/)" [label="yes"];
"Write proposal\n(docs/design/)" -> "Write feature spec\n(docs/design/)";
"Write feature spec\n(docs/design/)" -> "Dispatch spec reviewer";
"Dispatch spec reviewer" -> "Spec reviewer approves?";
"Spec reviewer approves?" -> "Write feature spec\n(docs/design/)" [label="issues found"];
"Spec reviewer approves?" -> "User reviews proposal + spec?" [label="approved"];
"User reviews proposal + spec?" -> "Write proposal\n(docs/design/)" [label="changes requested"];
"User reviews proposal + spec?" -> "Invoke writing-plans skill" [label="approved"];
}
The terminal state is invoking writing-plans. Do NOT invoke any implementation skill directly. The ONLY skill you invoke after brainstorming is writing-plans.
The Process
Understanding the idea:
- Read
docs/specs/<domain>.md if it exists — it describes current system behavior for the relevant domain. If no spec exists for the domain, note that the feature spec will define the domain's initial behavioral requirements.
- Check out the current project state first (files, docs, recent commits)
- 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.
- 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 proposal + spec → plan → implementation cycle.
- For appropriately-scoped projects, ask questions one at a time to refine the idea
- Prefer multiple choice questions when possible, but open-ended is fine too
- Only one question per message - if a topic needs more exploration, break it into multiple questions
- Focus on understanding: purpose, constraints, success criteria
Exploring approaches:
- Propose 2-3 different approaches with trade-offs
- Present options conversationally with your recommendation and reasoning
- Lead with your recommended option and explain why
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
- Ask after each section whether it looks right so far
- Cover: architecture, components, data flow, error handling, testing
- Be ready to go back and clarify if something doesn't make sense
Design for isolation and clarity:
- Break the system into smaller units that each have one clear purpose, communicate through well-defined interfaces, and can be understood and tested independently
- For each unit, you should be able to answer: what does it do, how do you use it, and what does it depend on?
- 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.
- 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.
Working in existing codebases:
- Explore the current structure before proposing changes. Follow existing patterns.
- 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.
- Don't propose unrelated refactoring. Stay focused on what serves the current goal.
After the Design
Write the Proposal
The proposal captures why and what scope. Save to docs/design/YYYY-MM-DD-<topic>-proposal.md and commit.
# Proposal: <Topic>
## Intent
<!-- Why are we doing this? What problem does it solve? Why now? -->
## Scope
**In scope:**
<!-- What this change covers -->
**Out of scope:**
<!-- What is explicitly excluded -->
## Approach
<!-- The recommended approach and why. Briefly note alternatives considered. -->
## Impact
<!-- Affected code, APIs, dependencies, systems -->
Write the Feature Spec
The feature spec captures what behavior — the behavioral contract. This is the most important artifact from brainstorming. It drives the delta spec in writing-plans, the spec compliance review in implementation, and the living spec sync in finishing.
Save to docs/design/YYYY-MM-DD-<topic>-spec.md and commit.
# Spec: <Topic>
## Domain: <domain-name>
### ADDED Requirements
#### Requirement: <requirement-name>
The system SHALL <behavioral description>.
##### Scenario: <scenario-name>
- GIVEN <precondition>
- WHEN <trigger>
- THEN <expected outcome>
### MODIFIED Requirements
#### Requirement: <existing-requirement-name>
<!-- Only the changed parts. The sync process preserves existing content. -->
##### Scenario: <new-or-changed-scenario>
- GIVEN <precondition>
- WHEN <trigger>
- THEN <expected outcome>
### REMOVED Requirements
#### Requirement: <deprecated-requirement-name>
(Brief explanation of why.)
If modifying an existing domain (living spec exists): Write ADDED/MODIFIED/REMOVED sections relative to the current living spec.
If creating a new domain (no living spec exists): Everything is ADDED. Write all behavioral requirements from scratch.
If the change has no behavioral impact (refactoring, internal restructure):
# Spec: <Topic>
## No Behavioral Changes
<Brief description of the internal change.>
No requirements added, modified, or removed.
Spec writing rules:
- Every requirement MUST use RFC 2119 keywords (SHALL, MUST, SHOULD) — this is non-negotiable
- Every requirement MUST have at least one scenario with GIVEN/WHEN/THEN
- Scenarios MUST be testable — if you can't write a test for it, it's not a behavioral requirement
- Requirements describe WHAT the system does, not HOW — no class names, library choices, or implementation details
- If you find yourself writing "using [library]" or "in [class name]", that belongs in the proposal's Approach section, not the spec
- Keep requirement names descriptive and under 50 characters
- Use one
## Domain: section per affected domain. If the feature touches multiple domains, add a section for each
Dispatch Spec Reviewer
After writing the feature spec, dispatch a read-only subagent using spec-document-reviewer-prompt.md to verify the spec is complete and truly behavioral.
If the reviewer finds issues: Fix the spec, then re-dispatch the reviewer. Loop until the reviewer approves.
If the reviewer finds fundamental issues (the spec is entirely architecture, the approach is wrong at the behavioral level): escalate to the user before rewriting. Present the reviewer's findings and ask whether to revise the approach or start over. Don't silently rewrite the spec based on reviewer feedback — the user may have a different perspective on what behavior they actually want.
Do NOT proceed to the user review gate until the spec reviewer approves.
User Review Gate
After the spec reviewer approves, present both artifacts to the user for review. Ask them to confirm or request changes before proceeding to the implementation plan. If they request changes, make them, re-run the spec reviewer, and re-present. Only proceed once the user approves.
Implementation
- Invoke the writing-plans skill to create a detailed implementation plan
- Do NOT invoke any other skill. writing-plans is the next step.
Key Principles
- One question at a time - Don't overwhelm with multiple questions
- Multiple choice preferred - Easier to answer than open-ended when possible
- YAGNI ruthlessly - Remove unnecessary features from all designs
- Explore alternatives - Always propose 2-3 approaches before settling
- Incremental validation - Present design, get approval before moving on
- Be flexible - Go back and clarify when something doesn't make sense
- Specs are behavioral contracts - Requirements describe observable behavior, not implementation