Skip to main content

brainstorm

Unified brainstorming skill with dual-mode operation โ€” auto mode (framework generation, parallel multi-role analysis, cross-role synthesis) and single role analysis. Triggers on "brainstorm", "ๅคด่„‘้ฃŽๆšด".

Datos de origen

Repositorio
catlog22/Claude-Code-Workflow
รšltima actividad en el origen
17 de abril de 2026 a las 05:33
Idioma detectado de SKILL.md
inglรฉs
Estrellas
2131
Forks
166

Opciones de instalaciรณn

De forma predeterminada estรก seleccionado el prompt que primero revisa el origen. Puedes cambiar a un comando directo o descargar una copia local.

Revisa los archivos de origen

Lee SKILL.md y los archivos complementarios que muestra SkillsMP antes de decidir si quieres instalarlo.

Explorador de archivos
8 archivos

Mostrando SKILL.md

SKILL.md
Instrucciones de origen ยท Vista previa de solo lectura
name
brainstorm
description
Unified brainstorming skill with dual-mode operation โ€” auto mode (framework generation, parallel multi-role analysis, cross-role synthesis) and single role analysis. Triggers on "brainstorm", "ๅคด่„‘้ฃŽๆšด".
allowed-tools
Skill(*), Agent(conceptual-planning-agent, context-search-agent), AskUserQuestion(*), TodoWrite(*), Read(*), Write(*), Edit(*), Glob(*), Bash(*)
# Brainstorm Unified brainstorming skill combining interactive framework generation, multi-role parallel analysis, and cross-role synthesis into a single entry point with two operational modes. ## Architecture Overview ``` โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ /brainstorm โ”‚ โ”‚ Unified Entry Point + Interactive Routing โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ†“ โ†“ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ Auto Mode โ”‚ โ”‚ Single Role Mode โ”‚ โ”‚ (่‡ชๅŠจๆจกๅผ) โ”‚ โ”‚ (ๅ•่ง’่‰ฒๅˆ†ๆžๆจกๅผ) โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚ โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ โ†“ โ†“ โ†“ โ†“ Phase 2 Phase 3 Phase 4 Phase 3 Artifacts Nร—Role Synthesis 1ร—Role (7ๆญฅ) Analysis (8ๆญฅ) Analysis ๅนถ่กŒ (4ๆญฅ) ``` **Data Flow**: ``` Auto Mode: Phase 2 (artifacts) โ†’ guidance-specification.md + selected_roles[] โ†’ Phase 3 (N ร— role-analysis) โ†’ {role}/analysis*.md (immutable) โ†’ Phase 4 (synthesis) โ†’ feature-specs/ + feature-index.json + synthesis-changelog.md Single Role Mode: Phase 3 (1 ร— role-analysis) โ†’ {role}/analysis*.md ``` ## Key Design Principles 1. **Dual-Mode Routing**: Interactive mode selection via AskUserQuestion, with parameter-based auto-detection 2. **Progressive Phase Loading**: Phase files loaded on-demand via `Ref:` markers, not all at once 3. **Task Attachment/Collapse**: Sub-tasks attached during phase execution, collapsed after completion 4. **Session Continuity**: All phases share session state via workflow-session.json 5. **Auto-Continue Execution**: Phases chain automatically without user intervention between them 6. **SPEC.md Quality Alignment**: Guidance specification and role analysis follow SPEC.md standards (Concepts & Terminology, Non-Goals, Data Model, State Machine, RFC 2119 constraints) 7. **Template-Driven Analysis**: Role-specific templates (e.g., system-architect) ensure consistent, high-quality outputs 8. **Quality Gates**: Automated validation of guidance specification and role analysis against quality standards ## Auto Mode When `--yes` or `-y`: Auto-select auto mode, skip interactive routing question, auto-select recommended roles, skip all clarification questions, use default answers. ## Execution Flow ### Phase 1: Mode Detection & Interactive Routing Ref: phases/01-mode-routing.md Parse arguments, detect mode from flags/parameters, or ask user via AskUserQuestion. **Mode Detection Rules**: 1. If `--yes` or `-y` flag present โ†’ **Auto Mode** (no question asked) 2. If first arg matches a known role name โ†’ **Single Role Mode** (no question asked) 3. If `--session` flag present without role name โ†’ **Ask user** 4. Otherwise โ†’ **Ask user via AskUserQuestion** **Output**: `execution_mode` ("auto" | "single-role"), parsed parameters --- ### Auto Mode Execution (execution_mode = "auto") **Phase 1.5: Terminology & Boundary Definition** - Extract 5-10 core domain terms from user input and Phase 1 context - Generate terminology table (term, definition, aliases, category) - Collect Non-Goals via AskUserQuestion (ๆ˜Ž็กฎๆŽ’้™ค็š„่Œƒๅ›ด) - Store to `session.terminology` and `session.non_goals` #### Phase 2: Interactive Framework Generation Ref: phases/02-artifacts.md Seven-phase interactive workflow: Context collection โ†’ Topic analysis โ†’ Role selection โ†’ Role questions โ†’ Conflict resolution โ†’ Final check โ†’ Generate specification. **Input**: topic description, --count N, --yes flag **Output**: guidance-specification.md (with Concepts & Terminology, Non-Goals, RFC 2119 constraints), workflow-session.json (selected_roles[], session_id) **TodoWrite**: Attach 7 sub-tasks (Phase 0-5), execute sequentially, collapse on completion. #### Phase 3: Parallel Role Analysis Ref: phases/03-role-analysis.md Execute role analysis for EACH selected role in parallel (excluding ui-designer, which runs sequentially in Phase 3.5). **Input**: selected_roles[] from Phase 2, session_id, guidance-specification.md **Output**: {role}/analysis*.md for each role **Parallel Execution**: Launch N role-analysis calls simultaneously (one message with multiple Skill invokes). Each role with `--skip-questions` flag. **Note**: ui-designer is excluded from this parallel batch โ€” it runs in Phase 3.5 with access to all text-role analyses. For ui-designer: append `--style-skill {package}` if provided. **Template-Driven Analysis**: - Load role-specific template if exists (e.g., `templates/role-templates/system-architect-template.md`) - Inject template into agent prompt as required structure - For system-architect: MUST include Data Model, State Machine, Error Handling, Observability, Configuration Model, Boundary Scenarios **Quality Validation**: - After analysis generation, invoke `role-analysis-reviewer-agent` to validate against template - Check MUST have sections (blocking), SHOULD have sections (warning), quality checks (RFC keywords, valid diagrams) - Output validation report with score and recommendations **TodoWrite**: Attach N parallel sub-tasks, execute concurrently, collapse on completion. #### Phase 3.5: UI Design Exploration Ref: phases/03a-ui-design-exploration.md Sequential phase after text-role analyses complete. Generates tangible UI artifacts (HTML prototypes, ASCII mockups, or API sketches) based on project type detection. **Input**: all role analyses from Phase 3 (read-only), guidance-specification.md, style_skill (optional) **Output**: `html-prototypes/` or `ascii-mockups/` or `api-sketches/` directory with feature-index.json **Skip Conditions**: project type is library/service, no ui-designer in selected_roles, `--yes` mode without `--ui-explore` **Optional Review**: If 2+ prototypes and not `--yes`, load `Ref: ~/.ccw/workflows/brainstorm-visualize.md` for multi-round interactive review with intelligent grouping. **TodoWrite**: Attach single task with sub-tasks (Detection โ†’ Generate โ†’ Validate โ†’ Review โ†’ Feedback), collapse on completion. #### Phase 4: Synthesis Integration Ref: phases/04-synthesis.md Six-phase synthesis: Discovery โ†’ File discovery โ†’ Cross-role analysis โ†’ User interaction โ†’ Spec generation (single agent, sequential) + Conditional review โ†’ Finalization. Role analysis files are read-only (never modified). Spec is the final synthesis artifact. **Input**: session_id from Phase 2, all role analysis files from Phase 3 (read-only) **Output**: feature-specs/, feature-index.json, synthesis-changelog.md **TodoWrite**: Attach synthesis sub-tasks, execute sequentially, collapse on completion. --- ### Single Role Mode Execution (execution_mode = "single-role") #### Phase 3: Single Role Analysis Ref: phases/03-role-analysis.md Execute role analysis for ONE specified role with optional interactive context gathering. **Input**: role_name, --session, --update, --include-questions, --skip-questions, --style-skill **Output**: {role}/analysis*.md **TodoWrite**: Attach 4 sub-tasks (Detection โ†’ Context โ†’ Agent โ†’ Validation), execute sequentially. --- **Phase Reference Documents** (read on-demand when phase executes): | Phase | Document | Purpose | Used By | |-------|----------|---------|---------| | 1 | [phases/01-mode-routing.md](phases/01-mode-routing.md) | Parameter parsing, mode detection, interactive routing | Both modes | | 2 | [phases/02-artifacts.md](phases/02-artifacts.md) | Interactive framework generation (7 phases) | Auto mode only | | 3 | [phases/03-role-analysis.md](phases/03-role-analysis.md) | Role-specific analysis generation | Both modes | | 3.5 | [phases/03a-ui-design-exploration.md](phases/03a-ui-design-exploration.md) | UI prototype generation and review | Auto mode only | | 4 | [phases/04-synthesis.md](phases/04-synthesis.md) | Cross-role synthesis and feature specs | Auto mode only | ## Core Rules 1. **Start with Mode Detection**: First action is Phase 1 (parse args + detect mode) 2. **Interactive Routing**: If mode cannot be determined from args, ASK user via AskUserQuestion 3. **No Preliminary Analysis**: Do not analyze topic before Phase 2 - artifacts handles all analysis 4. **Parse Every Output**: Extract selected_roles from workflow-session.json after Phase 2 5. **Auto-Continue via TodoList**: Check TodoList status to execute next pending phase automatically 6. **Task Attachment Model**: Skill and Task executes attach sub-tasks to current workflow 7. **โš ๏ธ CRITICAL: DO NOT STOP**: Continuous multi-phase workflow in auto mode. After executing all attached tasks, immediately collapse them and execute next phase 8. **Parallel Execution**: Auto mode Phase 3 attaches multiple agent tasks simultaneously for concurrent execution 9. **Single Role Independence**: Single role mode operates independently without requiring artifacts or synthesis ## Input Processing ### Parameter Parsing ```javascript // Parse from user input (argument string) const args = parseArguments(user_input); // Flags const auto_yes = args.includes('--yes') || args.includes('-y'); const count = extractFlag(args, '--count', 3); // default 3, max 9 const session_id = extractFlag(args, '--session', null); const update_mode = args.includes('--update'); const include_questions = args.includes('--include-questions'); const skip_questions = args.includes('--skip-questions'); const style_skill = extractFlag(args, '--style-skill', null); // Role detection const VALID_ROLES = [ 'data-architect', 'product-manager', 'product-owner', 'scrum-master', 'subject-matter-expert', 'system-architect', 'test-strategist', 'ui-designer', 'ux-expert' ]; const first_arg = args[0]; // first non-flag argument const is_role = VALID_ROLES.includes(first_arg); // Mode detection if (auto_yes) { execution_mode = 'auto'; topic = extractTopic(args); } else if (is_role) { execution_mode = 'single-role'; role_name = first_arg; } else { execution_mode = null; // Ask user topic = extractTopic(args); } ``` ### Usage Examples ```bash # Auto mode - full pipeline /brainstorm "Build real-time collaboration platform" --count 3 /brainstorm -y "GOAL: Build platform SCOPE: 100 users" --count 5 /brainstorm "Design payment system" --style-skill material-design # Single role mode - individual analysis /brainstorm system-architect --session WFS-xxx /brainstorm ux-expert --include-questions /brainstorm ui-designer --session WFS-xxx --update --style-skill material-design /brainstorm product-manager --skip-questions # Ambiguous - will ask interactively /brainstorm --session WFS-xxx /brainstorm ``` ## Data Flow ``` Phase 1 (Mode Routing): Input: user arguments Output: execution_mode, parsed_params โ†“ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” Auto Single Role โ†“ โ†“ Phase 2: Phase 3: Input: topic, count, auto_yes Output: session_id โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ†’ Input: role_name, session_id selected_roles[] skip/include questions guidance-specification.md style_skill โ†“ Output: {role}/analysis*.md Phase 3: Input: selected_roles[], session_id guidance-specification.md style_skill (for ui-designer) Output: {role}/analysis*.md (N files, immutable after this point) โ†“ Phase 3.5: Input: all analysis*.md (read-only), guidance-specification.md, style_skill Output: html-prototypes/ OR ascii-mockups/ OR api-sketches/ feature-index.json, review_decisions (optional) โ†“ Phase 4: Input: session_id, all analysis files (read-only) Output: feature-specs/F-{id}-{slug}.md feature-index.json synthesis-changelog.md ``` ## TodoWrite Pattern ### Auto Mode Lifecycle ``` Initial โ†’ Phase 1 Mode Routing (completed) โ†’ Phase 2 Artifacts (in_progress) โ†’ 7 sub-tasks ATTACHED (Phase 0-5) โ†’ Execute sequentially โ†’ Sub-tasks COLLAPSED โ†’ Phase 3 Parallel Role Analysis (in_progress) โ†’ N role sub-tasks ATTACHED simultaneously (excluding ui-designer) โ†’ Execute concurrently โ†’ Sub-tasks COLLAPSED โ†’ Phase 3.5 UI Design Exploration (in_progress) โ†’ Sub-tasks: Detection โ†’ Generate โ†’ Validate โ†’ Review โ†’ Feedback โ†’ Execute sequentially โ†’ Sub-tasks COLLAPSED โ†’ Phase 4 Synthesis (in_progress) โ†’ 8 sub-tasks ATTACHED โ†’ Execute sequentially โ†’ Sub-tasks COLLAPSED โ†’ All completed ``` ### Single Role Mode Lifecycle ``` Initial โ†’ Phase 1 Mode Routing (completed) โ†’ Phase 3 Role Analysis (in_progress) โ†’ 4 sub-tasks ATTACHED (Detection โ†’ Context โ†’ Agent โ†’ Validation) โ†’ Execute sequentially โ†’ Sub-tasks COLLAPSED โ†’ Completed ``` ### Initial TodoWrite (Auto Mode) ```json [ {"content": "Phase 1: Mode detection and parameter parsing", "status": "in_progress", "activeForm": "Detecting mode"}, {"content": "Phase 2: Interactive Framework Generation", "status": "pending", "activeForm": "Generating framework"}, {"content": "Phase 3: Parallel Role Analysis", "status": "pending", "activeForm": "Executing parallel analysis"}, {"content": "Phase 3.5: UI Design Exploration", "status": "pending", "activeForm": "Generating UI prototypes"}, {"content": "Phase 4: Synthesis Integration", "status": "pending", "activeForm": "Executing synthesis"} ] ``` ### Initial TodoWrite (Single Role Mode) ```json [ {"content": "Phase 1: Mode detection and parameter parsing", "status": "in_progress", "activeForm": "Detecting mode"}, {"content": "Phase 3: Single role analysis for {role_name}", "status": "pending", "activeForm": "Executing role analysis"} ] ``` ## Session Management **โšก FIRST ACTION**: Check `.workflow/active/` for existing sessions **Multiple Sessions Support**: - Different Claude instances can have different brainstorming sessions - If multiple sessions found, prompt user to select - If single session found, use it - If no session exists: - Auto mode: Create `WFS-[topic-slug]` - Single role mode: ERROR if no session (must run auto mode first) **Session Continuity**: All phases share session state via `workflow-session.json` ## Available Roles | Role ID | Title | Focus Area | |---------|-------|------------| | `data-architect` | ๆ•ฐๆฎๆžถๆž„ๅธˆ | Data models, storage strategies, data flow | | `product-manager` | ไบงๅ“็ป็† | Product strategy, roadmap, prioritization |
Ver en GitHub
Este SKILL.md es muy grande, por eso SkillsMP muestra aqui solo la primera seccion. Ver en GitHub