agentleFS
dirkkok101dirkkok101/skills/skills/brainstorm/SKILL.md

brainstorm

Skill2 starsChanged 8 months agoMITView on GitHub

Use when starting any new feature, refactoring, or exploring approaches. Triggers on "brainstorm", "let's explore", "how should we approach", or when the user has a problem but no clear direction yet.

126 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use setup-engine, team-polish and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • CoralGameSkill

    setup-engine

    Configure the project's game engine and version. Pins the engine in CLAUDE.md, detects knowledge gaps, and populates engine reference docs via WebSearch when the version is beyond the LLM's training data.

    Also in 5 projects that use this

  • CoralGameSkill

    team-polish

    Orchestrate the polish team: coordinates performance-analyst, technical-artist, sound-designer, and qa-tester to optimize, polish, and harden a feature or area for release quality.

    Also in 5 projects that use this

  • cenconq25Skill

    create-stories

    Decomposes a single epic into implementable story files. Each story embeds its TR-ID, governing ADR, acceptance criteria, story type, and test-evidence path. Run after /create-epics for each epic, in dependency order. Stories are what developers pick up — epics are what architects define.

    Also in 4 projects that use this

  • cenconq25Skill

    dev-story

    Read a story file and implement it end-to-end. Loads PRD requirement, governing ADR, control manifest, and routes to the right framework specialist (RN/Flutter/iOS/Android). Use when a story has passed /story-readiness and is ready to be built.

    Also in 4 projects that use this

  • +8 more from CoralGame

The file

Show its rules and text

We split this skill into the rules it gives an agent

25 rules. 0 are common, 23 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 109 edited versions we read keep these.

  • 23

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run this skill when:

    line 28
  2. Distinctive:

    Check for existing work before starting fresh:

    line 70
  3. Distinctive:

    If the project uses an issue tracker, search for existing issues related to the feature.

    line 78
  4. Distinctive:

    If existing work is found, ask: "Found existing {artifact}.

    line 80
  5. Very specific:

    Create the output directory: docs/brainstorm/{feature}/

    line 82
  6. Very specific:

    If a research brief exists at docs/research/{feature}/research-brief.md, read it and note tagged findings.

    line 92
  7. Distinctive:

    Before accepting the problem statement, dig deeper:

    line 96
  8. Distinctive:

    Ask: "What's the pain point you're trying to solve?" then follow with "Why?" until you reach the root.

    line 107
  9. Distinctive:

    If the user opens with a solution instead of a problem, reframe: "That's one approach.

    line 109
  10. Distinctive:

    If the user pushes back ("just build what I asked for"), acknowledge their preference, confirm the problem statement as they've framed it, …

    line 113
  11. Distinctive:

    Ask: "Walk me through how someone would use this."

    line 126
  12. Distinctive:

    If AskUserQuestion is unavailable, fall back to presenting the above as prose and waiting for freeform response.

    line 161
  13. Distinctive:

    Ask: "What's the smallest version that would be useful?"

    line 169
  14. Distinctive:

    Ask: "How much complexity is this problem worth?"

    line 177
  15. Distinctive:

    Check the codebase for similar features (names and relevance only — surface-level check for obvious patterns and constraints)

    line 220
  16. Distinctive:

    If the project uses CASS, search for prior sessions related to this feature: relevant implementation context may already exist

    line 221
  17. Distinctive:

    If research brief exists, explicitly map tagged findings to approaches:

    line 228
  18. Distinctive:

    If any theme fails, fix it before proceeding to PAUSE 2.

    line 288
  19. Distinctive:

    If AskUserQuestion is unavailable, fall back to presenting approaches as prose and waiting for freeform response.

    line 385
  20. Distinctive:

    If the user picks the highest-risk option, explicitly flag the risks.

    line 394
  21. Distinctive:

    If the chosen approach exceeds the complexity budget, surface this: "This approach exceeds the draft complexity budget.

    line 395
  22. Distinctive:

    If AskUserQuestion is unavailable, fall back to presenting routing options as a numbered list and waiting for freeform response.

    line 419
  23. Distinctive:

    After the user selects an approach, check the draft boundaries from Phase 2:

    line 423
  24. Distinctive:

    Do any anti-requirements conflict with the approach?

    line 425
  25. Distinctive:

    Update boundaries if needed before saving the output.

    line 428

“Common” is measured: kept by at least 6 in 10 of the 109 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Brainstorm: Problem → Approach → Route

Philosophy: Understand the RIGHT problem before solving it. Pick the right approach. Define boundaries. Then route to the right depth of pipeline. Brainstorm is lean — it produces a validated problem statement, a chosen direction, and scope classification. Deep research moves to /research, detailed requirements move to /prd.

Target duration: 15-30 minutes for a typical brainstorm. If it's taking longer, you're going too deep — route to /discovery or /research instead.

Why This Matters

The most expensive mistake in software development is building the wrong thing. A feature that solves a symptom instead of the root cause, or that reimplements what a library already provides, wastes weeks of effort. Brainstorming prevents this by:

  • Reframing the problem — "I need a minimap" becomes "players need navigation feedback"
  • Surfacing alternatives — including "Do Less" which is often the right answer
  • Right-sizing the process — a 2-hour bugfix doesn't need a full PRD and design doc
  • Recording decisions — so the team doesn't relitigate settled choices months later

Trigger Conditions

Run this skill when:

  • Starting a new feature or significant refactoring
  • User describes a rough idea needing refinement
  • User says "brainstorm", "let's explore", "how should we approach"
  • You need to validate a problem before moving to design or planning

Stage Gates — AskUserQuestion

At every PAUSE point in this skill, call the AskUserQuestion tool to present structured options to the user. Do not present options as plain markdown text — use the tool. The YAML blocks at each PAUSE point show the exact parameters to pass.

For pattern details and examples: ../_shared/references/stage-gates.md

Fallback: Only if AskUserQuestion is not available as a tool (check your tool list), fall back to presenting options as markdown text and waiting for freeform response.


Collaborative Model

Phase 1: Understand the Problem
  ── PAUSE 1: "Here's the root problem. Is this right?" ──
Phase 2: Draft Boundaries
Phase 3: Generate & Compare Approaches
Phase 4: Self-Review (gates presentation)
Phase 5: Select, Classify & Route
  ── PAUSE 2: "Here are the options, scope, and routing. Which approach? Ready for next step?" ──
Phase 6: Output (save brainstorm.md)

The agent's stance should adapt to the user:

  • User gives short, vague responses → agent leads more, asks questions, offers options
  • User gives detailed, opinionated responses → agent follows, validates, stress-tests
  • User seems stuck → agent facilitates with specific techniques (5 Whys, "How Might We", analogies)

Prerequisites

Step 0 — Import Upstream Artifacts:

Check for existing work before starting fresh:

  • Research brief (if /research was run) — docs/research/{feature}/research-brief.md (findings tagged [CONSTRAINT], [OPTION], [RISK], [PRIOR-ART], [UNKNOWN])
  • Existing brainstorm — docs/brainstorm/{feature}/brainstorm.md (prior work on this feature)
  • Existing designs — docs/designs/ (surface constraints for Phase 2 boundaries)
  • Existing plans — docs/plans/ (note prior scope decisions)
  • Learnings — docs/learnings/ (relevant gotchas, patterns, and context gaps from past features)

If the project uses an issue tracker, search for existing issues related to the feature.

If existing work is found, ask: "Found existing {artifact}. Build on this or start fresh?"

Create the output directory: docs/brainstorm/{feature}/


Critical Sequence

Phase 1: Understand the Problem

Step 1.1 — Import Research (if available):

If a research brief exists at docs/research/{feature}/research-brief.md, read it and note tagged findings. These will be mapped to approaches in Step 3.2.

Step 1.2 — The 5 Whys:

Before accepting the problem statement, dig deeper:

User: "I want to add a minimap to the dungeon view"
Why? → "So players can see where they've been"
Why does that matter? → "They get lost and frustrated"
Why do they get lost? → "Dungeon layouts are confusing"
Why are they confusing? → "No landmarks, all corridors look the same"
Root Problem: Navigation feedback, not necessarily a minimap

Ask: "What's the pain point you're trying to solve?" then follow with "Why?" until you reach the root.

If the user opens with a solution instead of a problem, reframe: "That's one approach. What's the underlying problem it would solve?"

When to abbreviate the 5 Whys: If the user demonstrates deep domain understanding and has clearly already done root cause thinking (e.g., they present the problem with evidence and context), acknowledge their analysis and move forward. The 5 Whys is a tool for finding root causes, not a ritual — if the root cause is already clear, don't force 5 rounds of "why". Two genuine rounds may be enough.

If the user pushes back ("just build what I asked for"), acknowledge their preference, confirm the problem statement as they've framed it, and note in the output that root cause analysis was abbreviated.

Step 1.3 — Validate Worth Solving:

[ ] What happens if we DON'T solve this?
[ ] Is this solving a symptom or root cause?
[ ] Is this the right time to solve it?
[ ] Who is asking for this and why?

Step 1.4 — Understand the User Journey:

Ask: "Walk me through how someone would use this."

  • Who uses this feature?
  • What's their current workflow or workaround?
  • How will they discover this feature?
  • What does success look like for them?

PAUSE 1: Present the root problem and user journey as formatted markdown:

## Problem Framing

**Surface request:** {what the user originally asked for}
**Root problem:** {the underlying issue discovered through 5 Whys}

### User Journey
{How users currently experience this pain, their workaround, and what success looks like}

Then use a Decision Gate (Pattern 1) to confirm:

AskUserQuestion:
  question: "Does this problem framing feel right?"
  header: "Problem"
  multiSelect: false
  options:
    - label: "Accept (Recommended)"
      description: "Root problem and user journey are correct. Proceed to Phase 2."
    - label: "Redirect"
      description: "This is a symptom, not the root cause. Iterate on problem definition."
    - label: "Clarify"
      description: "Need more context before confirming."

If AskUserQuestion is unavailable, fall back to presenting the above as prose and waiting for freeform response.


Phase 2: Draft Boundaries

Step 2.1 — Minimum Viable Version:

Ask: "What's the smallest version that would be useful?"

  • What can we defer to v2?
  • Nice-to-have vs must-have?
  • What would a 1-day version look like?

Step 2.2 — Initial Complexity Budget:

Ask: "How much complexity is this problem worth?"

## Complexity Budget (draft — refined after approach selection)
- Maximum new services: {0-2 typically}
- Maximum new screens: {estimate}
- Estimated effort: {Low/Medium/High}
- Maintenance cost we accept: {Low/Medium/High}

Note: these are draft boundaries. They may need adjustment once we see what the approaches actually require.

Step 2.3 — Anti-Requirements & Kill Criteria:

## Boundaries
### Must Have (v1)
- {essential requirement}

### Deferred (v2+)
- {future enhancement}

### Anti-Requirements
- Must NOT: {explicit exclusion}

### Kill Criteria
Abandon if:
- {technical blocker}
- {complexity exceeds budget by 50%+}

Kill criteria are monitored during /technical-design and /execute.
If a kill criterion triggers, return to this brainstorm to reassess.

Phase 3: Generate & Compare Approaches

Step 3.1 — Quick Context Scan:

This is a QUICK scan, not a deep dive. Deep investigation is /discovery's job.

  • Search learnings first: Scan docs/learnings/ for entries matching this feature's domain, technology, or pattern. Past learnings often contain gotchas that reshape approach viability. If a learning says "X approach failed because Y," factor that into Phase 3 approach generation.
  • Check the codebase for similar features (names and relevance only — surface-level check for obvious patterns and constraints)
  • If the project uses CASS, search for prior sessions related to this feature: relevant implementation context may already exist

Step 3.2 — Create 2-3 Distinct Options:

Each approach should be genuinely different, not variations of the same idea.

Import research findings into approaches: If research brief exists, explicitly map tagged findings to approaches:

  • [OPTION] tags → Seed as distinct approach or sub-option within an approach
  • [PRIOR-ART] tags → Consider for "Do Less" or "Adopt" approaches
  • [CONSTRAINT] tags → Apply as hard boundary to all approaches (note which approaches violate constraints)
  • [RISK] tags → Map to "biggest risk" for relevant approaches
  • [UNKNOWN] tags → Flag as investigation needed; approaches that depend on unknowns get higher risk rating
### Approach A: {Name}
**Core idea:** {1 sentence}
**How it works:** {2-3 sentences, conceptual}
**Pros:** {benefits}
**Cons:** {drawbacks}
**Complexity:** Low/Medium/High
**Within budget:** Yes/No
**Biggest risk:** {what could make this fail}

### Approach B: {Name}
...

### Approach C: Do Less
**Core idea:** {minimal or no change}
**When this is right:** {conditions where this is the best answer}

Always include a "Do Less" option. This might be adopting an existing library, using an existing feature differently, or accepting the current state. "Do Less" is not a strawman — it's often the right answer.

Step 3.3 — Comparison Matrix:

ApproachComplexityRiskCompletenessBuilds On ExistingRecommendation
AMediumLow8/10Yes — existing patternsPreferred
BHighMedium10/10No — new designFallback
C: Do LessLowLow4/10N/AIf budget is tight

Completeness scoring (0-10): How thoroughly does this approach solve the root problem? AI makes the marginal cost of completeness near-zero — a "lake" (achievable completeness within the current feature) should be boiled. An "ocean" (multi-quarter rewrite) should be flagged as out of scope. Score each approach honestly so the user sees what they're gaining or giving up.


Phase 4: Self-Review

Gates PAUSE 2 — complete this before presenting to the user.

1 round, 3 themes. Brainstorm is lean — don't over-review.

Theme 1: Problem Clarity

  • Root problem identified (not symptom)?
  • User journey clear and realistic?

Theme 2: Boundary Discipline

  • Must-haves truly essential?
  • Anti-requirements prevent scope creep?
  • Complexity budget explicit?

Theme 3: Approach Differentiation

  • 2-3 genuinely different options (not variations of the same idea)?
  • "Do Less" included and honestly assessed?
  • At least one approach within complexity budget?
  • Each approach has a "biggest risk" identified?

If any theme fails, fix it before proceeding to PAUSE 2.


Phase 5: Select, Classify & Route

Step 5.1 — Scope Classification:

Scan for complexity signals:

## Scope Classification

Signals detected:
- [ ] Auth/identity/security involvement
- [ ] Regulatory or compliance requirements
- [ ] Multiple user roles or personas
- [ ] External system integrations
- [ ] New data model with 5+ entities
- [ ] UI-heavy with multiple screens (3+)
- [ ] Cross-system data flows
- [ ] Background processing / async workflows
- [ ] Significant unknowns or unfamiliar domain
- [ ] Multiple services affected

Score:
- 0-2 signals: BRIEF
- 3-4 signals: STANDARD
- 5+ signals: COMPREHENSIVE

Override rule: Any single high-impact signal can override the count. Auth/security, regulatory compliance, or significant unknowns alone may warrant COMPREHENSIVE even with only 1-2 signals. Use judgment — the count is a starting point, not a verdict.

ScopePipeline Depth
BRIEFbrainstorm → plan → beads → execute → review → compound
STANDARDbrainstorm → prd → technical-design → plan → beads → execute → review → compound
COMPREHENSIVEbrainstorm → discovery → prd → technical-design → plan → beads → execute → review → compound

BRIEF scope means the brainstorm document contains enough information for /plan to work directly — no PRD or design doc needed. BRIEF does not change brainstorm's internal phases (all 6 run) — the difference is in routing: BRIEF skips /prd and /technical-design, so the brainstorm must be thorough enough for /plan to work without them.

PAUSE 2: This is a two-step gate: approach selection, then routing.

Step 1 — Present brainstorm summary as formatted markdown:

## Brainstorm Summary

**Feature:** {name}
**Root Problem:** {1 sentence}

### Approaches
{Comparison matrix from Phase 3}

### Scope Classification
**Scope:** {BRIEF | STANDARD | COMPREHENSIVE}
**Signals:** {list of detected signals}

Step 2 — Approach selection using a Comparison Gate (Pattern 2). Each option gets a preview with its details:

AskUserQuestion:
  question: "Which approach should we take?"
  header: "Approach"
  multiSelect: false
  options:
    - label: "Approach A: {Name}"
      description: "{Core idea}. {Complexity} complexity."
      preview: |
        ### Approach A: {Name}
        **Core idea:** {1 sentence}
        **How it works:** {2-3 sentences}
        **Pros:** {benefits}
        **Cons:** {drawbacks}
        **Complexity:** {Low/Medium/High}
        **Biggest risk:** {what could make this fail}
    - label: "Approach B: {Name}"
      description: "{Core idea}. {Complexity} complexity."
      preview: |
        ### Approach B: {Name}
        **Core idea:** {1 sentence}
        **How it works:** {2-3 sentences}
        **Pros:** {benefits}
        **Cons:** {drawbacks}
        **Complexity:** {Low/Medium/High}
        **Biggest risk:** {what could make this fail}
    - label: "Do Less"
      description: "{Minimal change option}. Low complexity."
      preview: |
        ### Approach C: Do Less
        **Core idea:** {minimal or no change}
        **When this is right:** {conditions where this is the best answer}
        **Pros:** {benefits}
        **Cons:** {drawbacks}

If AskUserQuestion is unavailable, fall back to presenting approaches as prose and waiting for freeform response.

Step 3 — Stress test the chosen approach:

Once the user picks, challenge the selection:

  • "What's the biggest risk with this approach?"
  • "What would make this fail?"
  • "Does this fit within the complexity budget, or should we adjust?"

If the user picks the highest-risk option, explicitly flag the risks. If the chosen approach exceeds the complexity budget, surface this: "This approach exceeds the draft complexity budget. Expand the budget or pick a simpler approach?"

Step 4 — Routing decision using a Decision Gate (Pattern 1). The recommended option matches the scope classification:

AskUserQuestion:
  question: "What should we do next?"
  header: "Next step"
  multiSelect: false
  options:
    - label: "Start discovery (Recommended for COMPREHENSIVE)"
      description: "Deep requirements gathering. Best for complex features with many unknowns."
    - label: "Start PRD (Recommended for STANDARD)"
      description: "Structured requirements. Best for features with moderate complexity."
    - label: "Start plan (Recommended for BRIEF)"
      description: "Plan directly from brainstorm. Best for well-understood, small features."
    - label: "Refine"
      description: "Continue iterating on approaches or boundaries."

Mark the option matching the scope classification as "(Recommended)" and remove the "(Recommended for ...)" suffixes from the others. For example, if scope is STANDARD:

  • "Start PRD (Recommended)" / "Start discovery" / "Start plan" / "Refine"

If AskUserQuestion is unavailable, fall back to presenting routing options as a numbered list and waiting for freeform response.

Step 5.2 — Refine Boundaries Against Chosen Approach:

After the user selects an approach, check the draft boundaries from Phase 2:

  • Does the chosen approach fit within the complexity budget?
  • Do any anti-requirements conflict with the approach?
  • Are kill criteria still appropriate?

Update boundaries if needed before saving the output.


Phase 6: Output

Save to: ${PROJECT_ROOT}/docs/brainstorm/{feature}/brainstorm.md

# Brainstorm: {Feature Name}

> Problem framing and approach selection for {feature}.

## Problem Statement
### Surface Request
{What user asked for}

### Root Problem (5 Whys)
{The underlying issue discovered through 5 Whys.
If abbreviated: "Root cause analysis abbreviated — user demonstrated deep domain understanding."}

### User Journey
{How users will discover and use this}

## Research Context
{Summary of imported research findings, if /research was run. Otherwise "No prior research."}

## Boundaries
### Must Have (v1)
- {essential}

### Deferred (v2+)
- {future}

### Anti-Requirements
- Must NOT: {explicit exclusion}

### Kill Criteria
- {conditions to abandon}
- Monitored during: /technical-design, /execute

### Complexity Budget
- Effort: {Low/Medium/High}
- Max new services: {N}

## Approaches Compared
### Approach A: {Name}
{Core idea, how it works, pros/cons, complexity, biggest risk}

### Approach B: {Name}
{Core idea, how it works, pros/cons, complexity, biggest risk}

### Approach C: Do Less
{Minimal change option}

### Comparison
| Approach | Complexity | Risk | Completeness | Recommendation |
|----------|-----------|------|-------------|----------------|

### Selected: {Approach Name}
{Why this approach was chosen.}

### Rejected Alternatives
- **{Approach B}:** Rejected because {specific reasoning — not just "higher complexity" but WHY that complexity is unacceptable for this problem}
- **{Do Less}:** Rejected because {specific reasoning — what makes the current state unacceptable}

## Scope Classification
**Scope:** {BRIEF | STANDARD | COMPREHENSIVE}
**Signals:** {list of detected signals}
**Override applied:** {if any, with reasoning}

## Next Step
**Recommended:** {/discovery | /prd | /plan}

---
*Brainstorm completed: {date}*

Anti-Patterns

Solution-First Thinking — "I need a notification system" is a solution, not a problem. The agent should always reframe to the underlying need before generating approaches. Building the wrong solution well is still a waste.

Premature Convergence — Jumping to the first plausible approach without exploring alternatives. The agent should enforce a minimum of 2-3 genuinely different options before converging. Say: "That's a strong option. Let's explore two more before we decide."

Skipping "Do Less" — Every brainstorm must include a minimal option. Often the right answer is to use an existing library, extend an existing feature, or accept the current state. "Do Less" is not a strawman — it's a genuine option that prevents over-engineering.

Deep-Diving the Codebase — Brainstorm does a quick context scan for constraints and similar features. Deep investigation into codebase patterns, data models, and service interactions is /discovery's job. If brainstorm is turning into a codebase audit, stop and route to /discovery.

Writing Detailed Requirements — Brainstorm produces a problem statement, approach, and boundaries. Detailed functional requirements, acceptance criteria, and user stories are /prd's job. If the brainstorm document is growing past 2-3 pages, it's doing too much.

Scope Creep During Brainstorm — "While we're at it, we should also..." Every addition should be evaluated against the complexity budget. Related but separate problems go into "Deferred (v2+)", not "Must Have (v1)".

Anchoring on the First Idea — The first idea mentioned tends to dominate all subsequent thinking. When the user states their first idea, the agent should acknowledge it, then deliberately offer a contrasting approach to break the anchor.

Rubber-Stamping the User's Choice — When the user picks an approach, the agent's job isn't done. Stress-test the selection: what's the biggest risk? Does it fit the budget? What would make it fail? Accepting without challenge is a disservice.


Exit Signals

SignalNext SkillWhen to Recommend
"start discovery"/discoveryCOMPREHENSIVE scope (default)
"start prd"/prdSTANDARD scope (default)
"start plan"/planBRIEF scope (default)
"refine"Continue brainstormUser wants to iterate
"park"Save for later
"abandon"Don't proceed

Skill Version: 3.6 v3.6: Completeness scoring (0-10) per approach with "Boil the Lake" framing. Research findings import workflow with explicit tag-to-approach mapping. Learnings-first context scan with CASS integration. Inspired by gstack's completeness principle. v3.4: AskUserQuestion stage gates — PAUSE 1 uses Decision Gate for problem framing, PAUSE 2 uses Comparison Gate for approach selection + Decision Gate for routing, with fallback to prose when AskUserQuestion unavailable v3.1: Self-review gates PAUSE 2, stress-test chosen approach, merged scope/routing into single PAUSE, 5 Whys abbreviation guidance, boundaries refined after approach selection, rejection rationale in output, scope override rule, kill criteria ownership, duration target, biggest risk per approach, conditional issue tracker search

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.