From d9cee7f17acd7d3a8b22570663059bfbfa6f5b60 Mon Sep 17 00:00:00 2001 From: catlog22 Date: Wed, 22 Oct 2025 23:37:15 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=9B=B4=E6=96=B0=20auto-parallel=20?= =?UTF-8?q?=E6=96=87=E6=A1=A3=EF=BC=8C=E4=BC=98=E5=8C=96=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E4=BB=A3=E7=90=86=E8=B0=83=E7=94=A8=E6=A8=A1=E6=9D=BF=EF=BC=8C?= =?UTF-8?q?=E5=A2=9E=E5=BC=BA=E7=94=A8=E6=88=B7=E6=84=8F=E5=9B=BE=E5=AF=B9?= =?UTF-8?q?=E9=BD=90=E5=92=8C=E6=89=A7=E8=A1=8C=E6=8C=87=E4=BB=A4=E7=9A=84?= =?UTF-8?q?=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../workflow/brainstorm/auto-parallel.md | 97 ++++++++++--------- 1 file changed, 49 insertions(+), 48 deletions(-) diff --git a/.claude/commands/workflow/brainstorm/auto-parallel.md b/.claude/commands/workflow/brainstorm/auto-parallel.md index bfd3e4e9..fb72a8e1 100644 --- a/.claude/commands/workflow/brainstorm/auto-parallel.md +++ b/.claude/commands/workflow/brainstorm/auto-parallel.md @@ -156,65 +156,66 @@ END IF ### Task Agent Invocation Template -```bash +```python Task(subagent_type="conceptual-planning-agent", - prompt="Execute brainstorming analysis: {role-name} perspective for {topic} + prompt="""Execute brainstorming analysis: {role-name} perspective for {topic} - ## Role Assignment - **ASSIGNED_ROLE**: {role-name} - **TOPIC**: {user-provided-topic} - **OUTPUT_LOCATION**: .workflow/WFS-{topic}/.brainstorming/{role}/ +## Role Assignment +**ASSIGNED_ROLE**: {role-name} +**TOPIC**: {user-provided-topic} +**OUTPUT_LOCATION**: .workflow/WFS-{topic}/.brainstorming/{role}/ - ## Execution Instructions - [FLOW_CONTROL] +## Execution Instructions +[FLOW_CONTROL] - ### Flow Control Steps - **AGENT RESPONSIBILITY**: Execute these pre_analysis steps sequentially with context accumulation: +### Flow Control Steps +**AGENT RESPONSIBILITY**: Execute these pre_analysis steps sequentially with context accumulation: - 1. **load_topic_framework** - - Action: Load structured topic discussion framework - - Command: bash(cat .workflow/WFS-{topic}/.brainstorming/topic-framework.md 2>/dev/null || echo 'Topic framework not found') - - Output: topic_framework +1. **load_topic_framework** + - Action: Load structured topic discussion framework + - Command: Read(.workflow/WFS-{topic}/.brainstorming/topic-framework.md) + - Output: topic_framework + - Fallback: Continue with session metadata if file not found - 2. **load_role_template** - - Action: Load {role-name} planning template - - Command: bash($(cat "~/.claude/workflows/cli-templates/planning-roles/{role}.md")) - - Output: role_template +2. **load_role_template** + - Action: Load {role-name} planning template + - Command: Read(~/.claude/workflows/cli-templates/planning-roles/{role}.md) + - Output: role_template - 3. **load_session_metadata** - - Action: Load session metadata and original user intent - - Command: bash(cat .workflow/WFS-{topic}/workflow-session.json 2>/dev/null || echo '{}') - - Output: session_metadata (contains original user prompt in 'project' or 'description' field) +3. **load_session_metadata** + - Action: Load session metadata and original user intent + - Command: Read(.workflow/WFS-{topic}/workflow-session.json) + - Output: session_metadata (contains original user prompt in 'project' or 'description' field) - ### Implementation Context - **⚠️ User Intent Authority**: Original user prompt from session_metadata.project is PRIMARY reference - **Topic Framework**: Use loaded topic-framework.md for structured analysis - **Role Focus**: {role-name} domain expertise and perspective aligned with user intent - **Analysis Type**: Address framework discussion points from role perspective, filtered by user objectives - **Template Framework**: Combine role template with topic framework structure - **Structured Approach**: Create analysis.md addressing all topic framework points relevant to user's goals +### Implementation Context +**User Intent Authority**: Original user prompt from session_metadata.project is PRIMARY reference +**Topic Framework**: Use loaded topic-framework.md for structured analysis +**Role Focus**: {role-name} domain expertise and perspective aligned with user intent +**Analysis Type**: Address framework discussion points from role perspective, filtered by user objectives +**Template Framework**: Combine role template with topic framework structure +**Structured Approach**: Create analysis.md addressing all topic framework points relevant to user's goals - ### Session Context - **Workflow Directory**: .workflow/WFS-{topic}/.brainstorming/ - **Output Directory**: .workflow/WFS-{topic}/.brainstorming/{role}/ - **Session JSON**: .workflow/WFS-{topic}/workflow-session.json +### Session Context +**Workflow Directory**: .workflow/WFS-{topic}/.brainstorming/ +**Output Directory**: .workflow/WFS-{topic}/.brainstorming/{role}/ +**Session JSON**: .workflow/WFS-{topic}/workflow-session.json - ### Dependencies & Context - **Topic**: {user-provided-topic} - **Role Template**: "~/.claude/workflows/cli-templates/planning-roles/{role}.md" - **User Requirements**: To be gathered through interactive questioning +### Dependencies & Context +**Topic**: {user-provided-topic} +**Role Template**: ~/.claude/workflows/cli-templates/planning-roles/{role}.md +**User Requirements**: To be gathered through interactive questioning - ## Completion Requirements - 1. Execute all flow control steps in sequence (load topic framework, role template, session metadata with user intent) - 2. **⚠️ User Intent Alignment**: Validate analysis aligns with original user objectives from session_metadata - 3. **Address Topic Framework**: Respond to all discussion points in topic-framework.md from role perspective - 4. **Filter by User Goals**: Prioritize insights directly relevant to user's stated objectives - 5. Apply role template guidelines within topic framework structure - 6. Generate structured role analysis addressing framework points aligned with user intent - 7. Create single comprehensive deliverable in OUTPUT_LOCATION: - - analysis.md (structured analysis addressing all topic framework points with role-specific insights filtered by user goals) - 8. Include framework reference: @../topic-framework.md in analysis.md - 9. Update workflow-session.json with completion status", +## Completion Requirements +1. Execute all flow control steps in sequence (load topic framework, role template, session metadata with user intent) +2. User Intent Alignment: Validate analysis aligns with original user objectives from session_metadata +3. Address Topic Framework: Respond to all discussion points in topic-framework.md from role perspective +4. Filter by User Goals: Prioritize insights directly relevant to user's stated objectives +5. Apply role template guidelines within topic framework structure +6. Generate structured role analysis addressing framework points aligned with user intent +7. Create single comprehensive deliverable in OUTPUT_LOCATION: + - analysis.md (structured analysis addressing all topic framework points with role-specific insights filtered by user goals) +8. Include framework reference: @../topic-framework.md in analysis.md +9. Update workflow-session.json with completion status""", description="Execute {role-name} brainstorming analysis") ```