/brainstorm
/brainstorm
Section titled “/brainstorm”Start an interactive brainstorming session to refine rough ideas into fully-formed designs through collaborative dialogue.
Purpose
Section titled “Purpose”The /brainstorm command uses a proven one-question-at-a-time methodology to help you design features, architectures, and solutions. It guides you through thoughtful decision-making via sequential questions and validates designs incrementally.
/brainstorm [topic or feature to design]Arguments
Section titled “Arguments”- topic: The topic, feature, or problem you want to brainstorm about
How It Works
Section titled “How It Works”The brainstorming process follows three phases:
Phase 1: Understanding
Section titled “Phase 1: Understanding”Goal: Clarify requirements through sequential questioning
The assistant asks one question at a time and waits for your response before proceeding. Questions are typically multiple-choice to reduce cognitive load.
Example interaction:
Claude: "What type of authentication should we support? a) Username/password only b) OAuth providers (Google, GitHub) c) Both options d) Magic link (passwordless)"
You: "b"
Claude: "Which OAuth providers should we integrate? a) Google only b) GitHub only c) Both Google and GitHub d) Let me specify others..."Phase 2: Exploration
Section titled “Phase 2: Exploration”Goal: Present alternatives with clear trade-offs
The assistant presents 2-3 approaches with their pros and cons, leading with the recommended option:
## Approach 1: JWT-based (Recommended)- Stateless, highly scalable- Works well with microservices- Cons: Can't revoke instantly
## Approach 2: Session-based- Easy revocation control- Simpler mental model- Cons: Requires session store (Redis/DB)
Which approach aligns better with your goals?Phase 3: Design Presentation
Section titled “Phase 3: Design Presentation”Goal: Present validated design incrementally
The design is presented in digestible 200-300 word sections:
- Architecture overview
- Component breakdown
- Data flow
- Error handling
- Testing considerations
You validate each section before moving to the next.
Core Principles
Section titled “Core Principles”YAGNI Ruthlessly
Section titled “YAGNI Ruthlessly”Features are aggressively pruned:
- Questions every “nice to have”
- Starts with minimal viable design
- “We might need this later” means remove it
One Question at a Time
Section titled “One Question at a Time”Sequential questioning produces better results:
- Gives you time to think deeply
- Prevents overwhelming with choices
- Creates natural conversation flow
Multiple-Choice Preference
Section titled “Multiple-Choice Preference”Structured options when possible:
- Reduces cognitive load
- Surfaces the assistant’s understanding
- Makes decisions concrete
Output
Section titled “Output”After the design is validated, a design document is created:
# Design: [Feature Name]Date: [YYYY-MM-DD]
## Summary[2-3 sentence overview]
## Architecture[Architecture decisions made]
## Components[Component breakdown with responsibilities]
## Data Flow[How data moves through the system]
## Error Handling[Error scenarios and handling strategies]
## Testing Strategy[How the feature will be tested]
## Open Questions[Any remaining unknowns]| Flag | Description | Example |
|---|---|---|
--mode=[mode] | Use specific behavioral mode | --mode=brainstorm |
--depth=[1-5] | Exploration depth level | --depth=4 |
--format=[fmt] | Output format (concise/detailed) | --format=detailed |
--save=[path] | Save design document to file | --save=docs/design.md |
--quick | Shorter session, fewer questions | --quick |
--comprehensive | Longer session, thorough exploration | --comprehensive |
Session Depth
Section titled “Session Depth”| Level | Questions | Exploration |
|---|---|---|
| 1 | 2-3 | Quick validation only |
| 2 | 4-5 | Standard session |
| 3 | 6-8 | Thorough exploration |
| 4 | 8-10 | Comprehensive |
| 5 | 10+ | Exhaustive, all angles |
Examples
Section titled “Examples”Quick Feature Design
Section titled “Quick Feature Design”/brainstorm --quick "simple file upload feature"Runs a short session (2-3 questions) to design a straightforward file upload.
Comprehensive Architecture Design
Section titled “Comprehensive Architecture Design”/brainstorm --comprehensive "authentication system design"Runs an extensive session (10+ questions) exploring architecture thoroughly.
Design with Custom Depth
Section titled “Design with Custom Depth”/brainstorm --depth=4 "microservices architecture"Runs a comprehensive session with 8-10 questions exploring the microservices approach.
Save Design to File
Section titled “Save Design to File”/brainstorm --save=docs/payment-design.md "payment integration"Creates a design document and saves it to the specified file.
Deep Research Mode
Section titled “Deep Research Mode”/brainstorm --mode=deep-research "distributed caching strategy"Uses deep-research mode for thorough analysis with citations.
Workflow Integration
Section titled “Workflow Integration”Brainstorm → Plan → Execute
Section titled “Brainstorm → Plan → Execute”-
Design the feature:
Terminal window /brainstorm "OAuth authentication" -
Create detailed implementation plan:
Terminal window /plan --detailed "implement OAuth from design doc" -
Execute with automation:
Terminal window /execute-plan path/to/plan.md
Research → Brainstorm → Plan
Section titled “Research → Brainstorm → Plan”-
Research options:
Terminal window /research --compare "state management libraries" -
Design the solution:
Terminal window /brainstorm "state management architecture" -
Plan implementation:
Terminal window /plan "implement state management"
When to Use
Section titled “When to Use”Good use cases:
- Designing new features with unclear requirements
- Exploring architectural decisions
- Evaluating multiple approaches
- Refining vague ideas into concrete designs
- Making technology choices
When NOT to use:
- Clear “mechanical” processes with known implementation
- Simple bug fixes with obvious solutions
- Tasks with explicit requirements already defined
For these cases, use direct implementation instead.
Best Practices
Section titled “Best Practices”Prepare Context
Section titled “Prepare Context”Before brainstorming, have ready:
- Current architecture understanding
- Constraints (performance, budget, timeline)
- Related features or systems
- Team capabilities
Engage Actively
Section titled “Engage Actively”- Take time to think through each question
- Ask for clarification when needed
- Push back if suggestions don’t fit
- Validate each section before moving on
Document Decisions
Section titled “Document Decisions”- Save designs to version control
- Include rationale for decisions
- Note rejected alternatives
- Track open questions
Follow Through
Section titled “Follow Through”After brainstorming:
- Commit design document to repo
- Share with team for feedback
- Use
/plan --detailedfor implementation planning - Reference design during development
Tips for Better Sessions
Section titled “Tips for Better Sessions”- Be specific about constraints and requirements
- Mention existing systems that need integration
- State preferences if you have strong opinions
- Ask “why” to understand recommendations
- Take breaks for complex designs (use
--checkpoint)
Related Commands
Section titled “Related Commands”- /plan - Create implementation plans from designs
- /execute-plan - Execute plans with automation
- /research - Research technologies before designing
- /review - Review existing designs
Customization
Section titled “Customization”Brainstorming behavior can be customized via CLAUDE.md:
- Question style (sequential vs all-at-once)
- Default depth level
- Required design sections
- Output format preferences
See the Configuration Guide for details.