feat: enhance workflow commands with dynamic analysis, multi-agent parallel exploration, and best practices

- analyze-with-file: Add dynamic direction generation from dimensions, support up to 4 parallel agent perspectives, enable cli-explore-agent parallelization
- brainstorm-with-file: Add dynamic direction generation from dimensions, add Agent-First guideline for complex tasks
- collaborative-plan-with-file: Add Understanding phase guidelines to prioritize latest documentation and resolve ambiguities with user clarification

Key improvements:
- Dimension-Direction Mapping replaces hard-coded options, enabling task-aware direction recommendations
- Multi-perspective parallel exploration (Analysis Perspectives, up to 4) with synthesis
- cli-explore-agent supports parallel execution per perspective for richer codebase context
- Agent-First principle: delegate complex tasks (code analysis, implementation) to agents/CLI instead of main process analysis
- Understanding phase emphasizes latest documentation discovery and clarification of ambiguities before planning
This commit is contained in:
catlog22
2026-02-01 22:51:04 +08:00
parent 7dcc0a1c05
commit 76967a7350
3 changed files with 184 additions and 70 deletions

View File

@@ -166,7 +166,7 @@ Interactive brainstorming workflow with **multi-CLI collaboration** and **docume
- **Manual mode**: AskUserQuestion with recommended roles + "Use simple perspectives" option
3. **Initial Scoping Questions** (if new session + not auto mode)
- **Direction**: Multi-select from technical, UX, innovation, feasibility
- **Direction**: Multi-select from directions generated by detected dimensions (see Brainstorm Dimensions)
- **Depth**: Single-select from quick/balanced/deep (15-20min / 30-60min / 1-2hr)
- **Constraints**: Multi-select from existing architecture, time, resources, or no constraints
@@ -410,6 +410,8 @@ CONSTRAINTS: Consider existing system architecture
- perspectives.json contains initial ideas
- brainstorm.md has Round 2 findings
**Guideline**: For complex tasks (code analysis, implementation, POC creation), delegate to agents via Task tool (cli-explore-agent, code-developer, universal-executor) or CLI calls (ccw cli). Avoid direct analysis/execution in main process.
**Workflow Steps**:
1. **Present Current State**
@@ -723,10 +725,11 @@ Dimensions matched against topic keywords to identify focus areas:
## Best Practices
1. **Clear Topic Definition**: Detailed topics → better role selection and exploration
2. **Review brainstorm.md**: Check thought evolution before final decisions
3. **Embrace Conflicts**: Perspective conflicts often reveal important tradeoffs
4. **Document Evolution**: brainstorm.md captures full thinking process for team review
5. **Use Continue Mode**: Resume sessions to build on previous exploration
2. **Agent-First for Complex Tasks**: For code analysis, POC implementation, or technical validation during refinement, delegate to agents via Task tool (cli-explore-agent, code-developer, universal-executor) or CLI calls (ccw cli). Avoid direct analysis/execution in main process
3. **Review brainstorm.md**: Check thought evolution before final decisions
4. **Embrace Conflicts**: Perspective conflicts often reveal important tradeoffs
5. **Document Evolution**: brainstorm.md captures full thinking process for team review
6. **Use Continue Mode**: Resume sessions to build on previous exploration
## Templates