epci:brainstorm

Transform vague ideas into structured specifications (CDC) through guided exploration. Uses iterative refinement with EMS (Exploration Maturity Score) to progressively clarify requirements. Features 4

SKILL.md

GitHub

Brainstorm - Intelligent Ideation Facilitator

Transform vague ideas into actionable specifications through structured co-exploration.

Quick Start

/brainstorm "add OAuth login to the app"
/brainstorm "improve search performance" --quick
/brainstorm --continue auth-oauth-20260126
/brainstorm "new microservice architecture" --template project

MANDATORY EXECUTION RULES (READ FIRST):

Anti-Plan-Mode Guard (CRITICAL)

  • 🔴 NEVER call EnterPlanMode during brainstorm execution
  • 🔴 NEVER generate files in .claude/plans/ directory
  • 🔴 NEVER switch to Claude Code native plan mode
  • ✅ ALWAYS generate output as brief in docs/briefs/{slug}/
  • ⛔ This skill produces a BRIEF (PRD v3.0), NOT a native Claude Code plan

Core Workflow Rules

  • 🔴 NEVER skip EMS calculation between iterations
  • 🔴 NEVER generate outputs with EMS < 60 without --force
  • 🔴 NEVER skip the BREAKPOINT at framing validation (step-03)
  • 🔴 NEVER exceed 10 iterations without user consent
  • ✅ ALWAYS start with step-00-init.md
  • ✅ ALWAYS follow next_step from each step
  • ✅ ALWAYS use @ems-evaluator for EMS calculation
  • ✅ ALWAYS use breakpoint-system for interactive breakpoints
  • ⛔ FORBIDDEN proceeding without brief validation
  • 🔵 YOU ARE A PROACTIVE INTELLECTUAL PARTNER

Brief Generation Rules (CRITICAL)

  • 🔴 NEVER generate brief without ALL 15 sections
  • 🔴 NEVER skip section 12 (EMS Final avec graphe ASCII)
  • 🔴 NEVER use simplified User Story format (Gherkin REQUIRED)
  • 🔴 NEVER omit edge cases in section 5
  • 🔴 NEVER skip journal generation (unless --quick)
  • 🔴 NEVER generate section 12 without EMS history data
  • ✅ ALWAYS include mindmap Mermaid in section 11
  • ✅ ALWAYS include Probabilité AND Impact in section 9

OUTPUT VALIDATION CHECKLIST:

Before generating files in step-08, Claude MUST verify:

BRIEF VALIDATION (ALL REQUIRED):
[ ] brief_final contains 15 numbered sections (1-15)
[ ] Section 1 has Question initiale + Périmètre IN/OUT + Critères
[ ] Section 2 has Insight clé (bold) + Routing recommandé
[ ] Section 3 has at least 1 persona with attribute table
[ ] Section 5 has Gherkin format AC (Given/When/Then) for EACH story
[ ] Section 5 has edge cases for EACH User Story
[ ] Section 7 has 4 MoSCoW categories
[ ] Section 9 has Probabilité AND Impact columns
[ ] Section 11 has Mermaid mindmap block
[ ] Section 12 has ASCII EMS progression graph
[ ] Section 12 has radar with 5 axes bars

EMS VALIDATION:
[ ] ems.history has at least 2 entries (init + iterations)
[ ] ems.scores has all 5 axes filled
[ ] ems.global is calculated

JOURNAL VALIDATION (unless --quick):
[ ] journal_content exists
[ ] Contains EMS progression table
[ ] Contains decisions with timestamps

⛔ IF ANY CHECK FAILS: Do NOT call Write(). Fix the issue first.

EXECUTION PROTOCOLS:

  1. Load step-00-init.md
  2. Execute current step protocols completely
  3. Present breakpoints via breakpoint-system
  4. Evaluate next step trigger conditions
  5. Proceed to next_step or loop condition

CONTEXT BOUNDARIES:

  • IN scope: Ideation, exploration, requirement clarification, brief generation
  • OUT scope: Implementation (use /implement), debugging (use /debug), simple Q&A

Workflow Overview

+---------------------------------------------------------------------+
|                    BRAINSTORM WORKFLOW (EMS-driven)                 |
+---------------------------------------------------------------------+
|                                                                     |
|  Step 00: INIT                                                      |
|  +- Parse input (idea, flags)                                       |
|  +- Load project-memory context                                     |
|  +- Launch @Explore in background                                   |
|                                                                     |
|  Step 01: CLARIFY                                                   |
|  +- Assess input clarity (score 0-1)                                |
|  +- Generate clarification questions (if needed)                    |
|  +- BREAKPOINT: Brief validation                                    |
|                                                                     |
|  Step 02: FRAMING                                                   |
|  +- Auto-detect template                                            |
|  +- Generate HMW questions                                          |
|  +- Generate Perplexity prompts                                     |
|  +- Initialize EMS baseline                                         |
|                                                                     |
|  Step 03: BREAKPOINT-FRAMING                                        |
|  +- BREAKPOINT: Validate framing before iterations                  |
|                                                                     |
|  Step 04: ITERATION (LOOP)  <---------------------------------+     |
|  +- Integrate user responses                                  |     |
|  +- Recalculate EMS via @ems-evaluator                        |     |
|  +- Check persona auto-switch                                 |     |
|  +- Check technique suggestion                                |     |
|  +- BREAKPOINT: EMS status + questions                        |     |
|  +- Check phase transition (EMS=50)                           |     |
|  +- Check finalization (EMS>=70)                              |     |
|  +- Loop until finish or max 10 iterations ------------------+      |
|                                                                     |
|  Step 05: BREAKPOINT-FINISH                                         |
|  +- BREAKPOINT: Validate end of exploration                         |
|                                                                     |
|  Step 06: PREVIEW                                                   |
|  +- @planner preview                                                |
|  +- @security-auditor (if auth patterns)                            |
|                                                                     |
|  Step 07: VALIDATE (skip if --quick)                                |
|  +- Section-by-section brief validation                             |
|                                                                     |
|  Step 08: GENERATE                                                  |
|  +- Write brief-{slug}-{date}.md                                    |
|  +- Write journal-{slug}-{date}.md (unless --quick)                 |
|                                                                     |
|  Step 09: REPORT                                                    |
|  +- Calculate complexity routing                                    |
|  +- Execute hook post-brainstorm                                    |
|  +- Display completion summary                                      |
|                                                                     |
+---------------------------------------------------------------------+

Flags

Flag Default Description
--template [type] auto feature, audit, project, research, decision, problem, strategy
--quick off Simplified flow (3 iter max, report only)
--turbo off Use @clarifier (Haiku) for faster responses
--party off Multi-persona mode (5 voices) via @party-orchestrator
--panel off Expert panel (5 dev experts) via @expert-panel
--no-hmw off Skip HMW question generation
--no-security off Skip @security-auditor
--no-clarify off Skip input clarification
--continue [id] - Resume existing session

Steps

Step Name Description Skippable
00 init Parse input, load context, launch @Explore No
01 clarify Clarification questions, brief validation --no-clarify
02 framing Template, HMW, Perplexity, EMS baseline No
03 breakpoint-framing Validate framing before iterations No
04 iteration Main loop: EMS, personas, techniques No
05 breakpoint-finish Validate end of exploration No
06 preview @planner preview, @security-auditor No
07 validate Section-by-section validation --quick
08 generate Write brief and journal files No
09 report Routing, hook, completion summary No

Step Files

Reference Files

Shared Components Used

  • epci:project-memory — Load context, patterns, preferences
  • epci:clarification-engine — Smart clarification questions
  • epci:breakpoint-system — All interactive breakpoints
  • epci:complexity-calculator — Final routing to /spec or /quick

Subagents

Agent Model Trigger
@Explore - Always at init (background)
@ems-evaluator Haiku Each iteration
@technique-advisor Haiku Weak axes detected
@clarifier Haiku --turbo mode
@planner Sonnet Preview at finalization
@security-auditor Opus Auth patterns detected
@party-orchestrator Sonnet --party mode
@expert-panel Sonnet --panel mode

EMS System (Summary)

Axis Weight Question
Clarity 25% Is the subject well defined?
Depth 25% Have we dug deep enough?
Coverage 20% Have we explored all angles?
Decisions 20% Have we made progress?
Actionability 10% Can we act concretely?

Thresholds: 0-29 Beginning | 30-59 Developing | 60-89 Mature | 90-100 Complete

See references/ems-system.md for objective anchors.

Personas (Summary)

Persona Icon When Activated
Maieuticien [?] Exploration, unclear topics
Sparring [!] Unsubstantiated claims
Architecte [#] Complex topics, synthesis (DEFAULT)
Pragmatique [>] Stagnation, decisions needed

See references/personas.md for complete specifications.

Session Commands

Command Action
continue Next iteration
dive [topic] Deep dive on specific point
pivot Reorient toward emerging subject
finish Generate outputs
checkpoint Save for later resumption
status Display complete state
mode [name] Switch persona

Constraints

Constraint Value
Max iterations 10
EMS minimum for finish 60 (70 recommended)
Questions per iteration 3 max
Techniques per session 5 max

Error Handling

Error Resolution
@Explore timeout Continue with partial context
@ems-evaluator failure Manual estimation
EMS stagnation Propose pivot or technique
Brief rejected x 3 Reformulate topic

Storage

.claude/state/sessions/
  brainstorm-{slug}-{timestamp}.json    # Session state (persisted incrementally)

docs/briefs/{slug}/
  brief-{slug}-{date}.md                # Final brief (generated at end)
  journal-{slug}-{date}.md              # Full journal (generated at end)
  decisions-{slug}.md                   # Decisions log (updated incrementally)

Persistence Points

Step What is saved
step-00 Initial session JSON created
step-01 idea_refined, brief_v0
step-02 template, HMW, Perplexity, EMS baseline
step-04 EMS after each iteration, decisions, threads
step-08 Final state, output files references

Resume Capability

# List available sessions
ls .claude/state/sessions/brainstorm-*.json

# Resume a paused session
/brainstorm --continue {slug}-{timestamp}

INVOCATION PROTOCOL (CRITICAL)

Les syntaxes @skill:epci:xxx et @agent:xxx dans les step files sont DOCUMENTAIRES SEULEMENT. Claude interprète les blocs de code comme des exemples, pas comme des instructions d'exécution.

Pour invoquer réellement:

Type Syntaxe documentaire Invocation réelle
Breakpoints @skill:epci:breakpoint-system Section impérative + AskUserQuestion explicite
Agents @agent:ems-evaluator Task({ subagent_type: "ems-evaluator", ... })
Core skills @skill:epci:project-memory Read(".claude/state/...") pour fichiers d'état

Règle pour auteurs de step files:

  • Utiliser le format impératif direct (pas dans bloc de code)
  • Afficher les boîtes ASCII hors bloc exécutable
  • Appeler AskUserQuestion explicitement
  • Ajouter ⏸️ ATTENDS la réponse après chaque breakpoint

Limitations

This skill does NOT:

  • Execute tasks (it ideates about them)
  • Replace project management tools
  • Generate code or technical implementations
  • Work without user engagement