claude-code-workflow 6.3.52 → 6.3.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/.claude/agents/action-planning-agent.md +26 -1
  2. package/.claude/agents/cli-lite-planning-agent.md +66 -2
  3. package/.claude/commands/codex-coordinator.md +513 -0
  4. package/.claude/commands/flow-create.md +675 -0
  5. package/.claude/commands/workflow/collaborative-plan-with-file.md +761 -0
  6. package/.claude/commands/workflow/lite-fix.md +49 -20
  7. package/.claude/commands/workflow/lite-plan.md +35 -8
  8. package/.claude/commands/workflow/plan.md +14 -1
  9. package/.claude/commands/workflow/tools/task-generate-agent.md +35 -24
  10. package/.claude/commands/workflow/unified-execute-with-file.md +101 -19
  11. package/.claude/skills/flow-coordinator/SKILL.md +394 -0
  12. package/.claude/skills/flow-coordinator/templates/analyze.json +16 -0
  13. package/.claude/skills/flow-coordinator/templates/brainstorm-to-issue.json +36 -0
  14. package/.claude/skills/flow-coordinator/templates/brainstorm.json +16 -0
  15. package/.claude/skills/flow-coordinator/templates/bugfix-hotfix.json +16 -0
  16. package/.claude/skills/flow-coordinator/templates/bugfix.json +47 -0
  17. package/.claude/skills/flow-coordinator/templates/coupled.json +71 -0
  18. package/.claude/skills/flow-coordinator/templates/debug.json +16 -0
  19. package/.claude/skills/flow-coordinator/templates/docs.json +27 -0
  20. package/.claude/skills/flow-coordinator/templates/full.json +61 -0
  21. package/.claude/skills/flow-coordinator/templates/issue.json +43 -0
  22. package/.claude/skills/flow-coordinator/templates/lite-lite-lite.json +16 -0
  23. package/.claude/skills/flow-coordinator/templates/multi-cli-plan.json +47 -0
  24. package/.claude/skills/flow-coordinator/templates/rapid-to-issue.json +46 -0
  25. package/.claude/skills/flow-coordinator/templates/rapid.json +47 -0
  26. package/.claude/skills/flow-coordinator/templates/review.json +43 -0
  27. package/.claude/skills/flow-coordinator/templates/tdd.json +34 -0
  28. package/.claude/skills/flow-coordinator/templates/test-fix.json +26 -0
  29. package/ccw/dist/tools/claude-cli-tools.d.ts +8 -0
  30. package/ccw/dist/tools/claude-cli-tools.d.ts.map +1 -1
  31. package/ccw/dist/tools/claude-cli-tools.js +13 -2
  32. package/ccw/dist/tools/claude-cli-tools.js.map +1 -1
  33. package/ccw/dist/tools/cli-executor-core.d.ts.map +1 -1
  34. package/ccw/dist/tools/cli-executor-core.js +24 -3
  35. package/ccw/dist/tools/cli-executor-core.js.map +1 -1
  36. package/ccw/src/templates/dashboard-js/components/cli-status.js +28 -0
  37. package/ccw/src/templates/dashboard-js/views/cli-manager.js +44 -0
  38. package/ccw/src/tools/claude-cli-tools.ts +20 -2
  39. package/ccw/src/tools/cli-executor-core.ts +23 -4
  40. package/package.json +92 -92
  41. package/.claude/commands/workflow/merge-plans-with-file.md +0 -807
  42. package/.claude/commands/workflow/quick-plan-with-file.md +0 -808
  43. package/.codex/prompts/quick-plan-with-file.md +0 -450
@@ -1,450 +0,0 @@
1
- ---
2
- description: Multi-agent rapid planning with minimal documentation, conflict resolution, and actionable synthesis. Lightweight planning from raw task, brainstorm, or analysis artifacts
3
- argument-hint: "TOPIC=\"<planning topic or task>\" [--from=brainstorm|analysis|task|raw] [--perspectives=arch,impl,risk,decision] [--auto] [--verbose]"
4
- ---
5
-
6
- # Codex Quick-Plan-With-File Prompt
7
-
8
- ## Overview
9
-
10
- Multi-agent rapid planning workflow with **minimal documentation overhead**. Coordinates parallel agent analysis (architecture, implementation, validation, decision), synthesizes conflicting perspectives into actionable decisions, and generates an implementation-ready plan.
11
-
12
- **Core workflow**: Parse Input → Parallel Analysis → Conflict Resolution → Plan Synthesis → Output
13
-
14
- **Key features**:
15
- - **Format Agnostic**: Consumes brainstorm conclusions, analysis recommendations, quick tasks, or raw descriptions
16
- - **Minimal Docs**: Single plan.md (no lengthy timeline documentation)
17
- - **Parallel Multi-Agent**: 4 concurrent perspectives for rapid analysis
18
- - **Conflict Resolution**: Automatic conflict detection and synthesis
19
- - **Actionable Output**: Direct task breakdown ready for execution
20
-
21
- ## Target Planning
22
-
23
- **$TOPIC**
24
-
25
- - `--from`: Input source type (brainstorm | analysis | task | raw) - auto-detected if omitted
26
- - `--perspectives`: Which perspectives to use (arch, impl, risk, decision) - all by default
27
- - `--auto`: Auto-confirm decisions, minimal user prompts
28
- - `--verbose`: Verbose output with all reasoning
29
-
30
- ## Execution Process
31
-
32
- ```
33
- Phase 1: Input Validation & Loading
34
- ├─ Parse input: topic | artifact reference
35
- ├─ Load artifact if referenced (synthesis.json | conclusions.json)
36
- ├─ Extract constraints and key requirements
37
- └─ Initialize session folder
38
-
39
- Phase 2: Parallel Multi-Agent Analysis (concurrent)
40
- ├─ Agent 1 (Architecture): Design decomposition, patterns, scalability
41
- ├─ Agent 2 (Implementation): Tech stack, feasibility, effort estimates
42
- ├─ Agent 3 (Validation): Risk matrix, testing strategy, monitoring
43
- ├─ Agent 4 (Decision): Recommendations, tradeoffs, execution strategy
44
- └─ Aggregate findings into perspectives.json
45
-
46
- Phase 3: Conflict Detection & Resolution
47
- ├─ Detect: effort conflicts, architecture conflicts, risk conflicts
48
- ├─ Analyze rationale for each conflict
49
- ├─ Synthesis via arbitration: generate unified recommendation
50
- ├─ Document conflicts and resolutions
51
- └─ Update plan.md
52
-
53
- Phase 4: Plan Synthesis
54
- ├─ Consolidate all insights
55
- ├─ Generate task breakdown (5-8 major tasks)
56
- ├─ Create execution strategy and dependencies
57
- ├─ Document assumptions and risks
58
- └─ Output plan.md + synthesis.json
59
-
60
- Output:
61
- ├─ .workflow/.planning/{sessionId}/plan.md (minimal, actionable)
62
- ├─ .workflow/.planning/{sessionId}/perspectives.json (agent findings)
63
- ├─ .workflow/.planning/{sessionId}/conflicts.json (decision points)
64
- └─ .workflow/.planning/{sessionId}/synthesis.json (task breakdown for execution)
65
- ```
66
-
67
- ## Implementation Details
68
-
69
- ### Phase 1: Session Setup & Input Loading
70
-
71
- ```javascript
72
- const getUtc8ISOString = () => new Date(Date.now() + 8 * 60 * 60 * 1000).toISOString()
73
-
74
- // Parse input
75
- const planSlug = "$TOPIC".toLowerCase()
76
- .replace(/[^a-z0-9\u4e00-\u9fa5]+/g, '-')
77
- .substring(0, 30)
78
- const sessionId = `PLAN-${planSlug}-${getUtc8ISOString().substring(0, 10)}`
79
- const sessionFolder = `.workflow/.planning/${sessionId}`
80
-
81
- // Detect input type
82
- let artifact = null
83
- if ($TOPIC.startsWith('BS-') || "$TOPIC".includes('brainstorm')) {
84
- artifact = loadBrainstormArtifact($TOPIC)
85
- } else if ($TOPIC.startsWith('ANL-') || "$TOPIC".includes('analysis')) {
86
- artifact = loadAnalysisArtifact($TOPIC)
87
- }
88
-
89
- bash(`mkdir -p ${sessionFolder}`)
90
- ```
91
-
92
- ### Phase 2: Parallel Multi-Agent Analysis
93
-
94
- Run 4 agents in parallel using ccw cli:
95
-
96
- ```javascript
97
- // Launch all 4 agents concurrently with Bash run_in_background
98
- const agentPromises = []
99
-
100
- // Agent 1 - Architecture (Gemini)
101
- agentPromises.push(
102
- Bash({
103
- command: `ccw cli -p "
104
- PURPOSE: Architecture & high-level design for '${planningTopic}'
105
- Success: Clear component decomposition and architectural approach
106
-
107
- TASK:
108
- • Decompose problem into major components/modules
109
- • Identify architectural patterns and integration points
110
- • Design component interfaces and data models
111
- • Assess scalability and maintainability implications
112
- • Propose architectural approach with rationale
113
-
114
- MODE: analysis
115
-
116
- CONTEXT: @**/*
117
- ${artifact ? \`| Source artifact: \${artifact.type}\` : ''}
118
-
119
- EXPECTED:
120
- - Component decomposition (list with responsibilities)
121
- - Module interfaces and contracts
122
- - Data flow between components
123
- - Architectural patterns applied (e.g., MVC, Event-Driven, etc.)
124
- - Scalability assessment (1-5 rating with rationale)
125
- - Architectural risks identified
126
-
127
- CONSTRAINTS: Focus on long-term maintainability and extensibility
128
- " --tool gemini --mode analysis`,
129
- run_in_background: true
130
- })
131
- )
132
-
133
- // Agent 2 - Implementation (Codex)
134
- agentPromises.push(
135
- Bash({
136
- command: \`ccw cli -p "
137
- PURPOSE: Implementation approach & technical feasibility for '\${planningTopic}'
138
- Success: Concrete implementation strategy with realistic estimates
139
-
140
- TASK:
141
- • Evaluate technical feasibility of proposed approach
142
- • Identify required technologies and dependencies
143
- • Estimate effort: analysis/design/coding/testing/deployment
144
- • Suggest implementation phases and milestones
145
- • Highlight technical blockers and challenges
146
-
147
- MODE: analysis
148
-
149
- CONTEXT: @**/*
150
- \${artifact ? \`| Source artifact: \${artifact.type}\` : ''}
151
-
152
- EXPECTED:
153
- - Technology stack recommendation (languages, frameworks, tools)
154
- - Implementation complexity: high|medium|low (with justification)
155
- - Effort breakdown (hours or complexity: analysis, design, coding, testing, deployment)
156
- - Key technical decisions with tradeoffs explained
157
- - Potential blockers and mitigation strategies
158
- - Suggested implementation phases with sequencing
159
- - Reusable components or libraries identified
160
-
161
- CONSTRAINTS: Realistic with current tech stack
162
- " --tool codex --mode analysis\`,
163
- run_in_background: true
164
- })
165
- )
166
-
167
- // Agent 3 - Validation & Risk (Claude)
168
- agentPromises.push(
169
- Bash({
170
- command: \`ccw cli -p "
171
- PURPOSE: Risk analysis and validation strategy for '\${planningTopic}'
172
- Success: Comprehensive risk matrix with testing and deployment strategy
173
-
174
- TASK:
175
- • Identify technical risks and failure scenarios
176
- • Assess timeline and resource risks
177
- • Define validation/testing strategy (unit, integration, e2e, performance)
178
- • Suggest monitoring and observability requirements
179
- • Propose deployment strategy and rollback plan
180
-
181
- MODE: analysis
182
-
183
- CONTEXT: @**/*
184
- \${artifact ? \`| Source artifact: \${artifact.type}\` : ''}
185
-
186
- EXPECTED:
187
- - Risk matrix (likelihood × impact, each 1-5)
188
- - Top 3 technical risks with mitigation approaches
189
- - Top 3 timeline/resource risks with mitigation
190
- - Testing strategy (what to test, how, when, acceptance criteria)
191
- - Deployment strategy (staged rollout, blue-green, canary, etc.)
192
- - Rollback plan and recovery procedures
193
- - Monitoring/observability requirements (metrics, logs, alerts)
194
- - Overall risk rating: low|medium|high (with confidence)
195
-
196
- CONSTRAINTS: Be realistic, not pessimistic
197
- " --tool claude --mode analysis\`,
198
- run_in_background: true
199
- })
200
- )
201
-
202
- // Agent 4 - Strategic Decision (Gemini)
203
- agentPromises.push(
204
- Bash({
205
- command: \`ccw cli -p "
206
- PURPOSE: Strategic decisions and execution recommendations for '\${planningTopic}'
207
- Success: Clear recommended approach with tradeoff analysis
208
-
209
- TASK:
210
- • Synthesize all perspectives into strategic recommendations
211
- • Identify 2-3 critical decision points with recommended choices
212
- • Clearly outline key tradeoffs (speed vs quality, scope vs timeline, risk vs cost)
213
- • Propose go/no-go decision criteria and success metrics
214
- • Suggest execution strategy and resource sequencing
215
-
216
- MODE: analysis
217
-
218
- CONTEXT: @**/*
219
- \${artifact ? \`| Source artifact: \${artifact.type}\` : ''}
220
-
221
- EXPECTED:
222
- - Primary recommendation with strong rationale (1-2 paragraphs)
223
- - Alternative approaches with pros/cons (2-3 alternatives)
224
- - 2-3 critical decision points:
225
- - What decision needs to be made
226
- - Trade-offs for each option
227
- - Recommended choice and why
228
- - Key trade-offs explained (what we're optimizing for: speed/quality/risk/cost)
229
- - Success metrics and go/no-go criteria
230
- - Resource requirements and critical path items
231
- - Suggested execution sequencing and phases
232
-
233
- CONSTRAINTS: Focus on actionable decisions, provide clear rationale
234
- " --tool gemini --mode analysis\`,
235
- run_in_background: true
236
- })
237
- )
238
-
239
- // Wait for all agents to complete
240
- const [archResult, implResult, riskResult, decisionResult] = await Promise.all(agentPromises)
241
-
242
- // Parse and extract findings from each agent result
243
- const architecture = parseArchitectureResult(archResult)
244
- const implementation = parseImplementationResult(implResult)
245
- const validation = parseValidationResult(riskResult)
246
- const recommendation = parseDecisionResult(decisionResult)
247
- ```
248
-
249
- **Agent Focus Areas**:
250
-
251
- | Agent | Perspective | Focus Areas |
252
- |-------|-------------|------------|
253
- | Gemini (Design) | Architecture patterns | Components, interfaces, scalability, patterns |
254
- | Codex (Build) | Implementation reality | Tech stack, complexity, effort, blockers |
255
- | Claude (Validate) | Risk & testing | Risk matrix, testing strategy, deployment, monitoring |
256
- | Gemini (Decide) | Strategic synthesis | Recommendations, trade-offs, critical decisions |
257
-
258
- ### Phase 3: Parse & Aggregate Perspectives
259
-
260
- ```javascript
261
- const perspectives = {
262
- session_id: sessionId,
263
- topic: "$TOPIC",
264
- timestamp: getUtc8ISOString(),
265
-
266
- architecture: {
267
- components: [...],
268
- patterns: [...],
269
- scalability_rating: 3,
270
- risks: [...]
271
- },
272
-
273
- implementation: {
274
- technology_stack: [...],
275
- complexity: "medium",
276
- effort_breakdown: { analysis: 2, design: 3, coding: 8, testing: 4 },
277
- blockers: [...]
278
- },
279
-
280
- validation: {
281
- risk_matrix: [...],
282
- top_risks: [{ title, impact, mitigation }, ...],
283
- testing_strategy: "...",
284
- monitoring: [...]
285
- },
286
-
287
- recommendation: {
288
- primary_approach: "...",
289
- alternatives: [...],
290
- critical_decisions: [...],
291
- tradeoffs: [...]
292
- }
293
- }
294
-
295
- Write(`${sessionFolder}/perspectives.json`, JSON.stringify(perspectives, null, 2))
296
- ```
297
-
298
- ### Phase 4: Conflict Detection
299
-
300
- Detect conflicts:
301
- - Effort variance: Are estimates consistent?
302
- - Risk disagreement: Do arch and validation agree on risks?
303
- - Scope confusion: Are recommendations aligned?
304
- - Architecture mismatch: Do design and implementation agree?
305
-
306
- For each conflict: document it, then run synthesis arbitration.
307
-
308
- ### Phase 5: Generate Plan
309
-
310
- ```markdown
311
- # Quick Planning Session
312
-
313
- **Session ID**: ${sessionId}
314
- **Topic**: $TOPIC
315
- **Created**: ${timestamp}
316
-
317
- ---
318
-
319
- ## Executive Summary
320
-
321
- ${synthesis.executive_summary}
322
-
323
- **Complexity**: ${synthesis.complexity_level}
324
- **Estimated Effort**: ${formatEffort(synthesis.effort_breakdown)}
325
- **Optimization Focus**: ${synthesis.optimization_focus}
326
-
327
- ---
328
-
329
- ## Architecture
330
-
331
- **Primary Pattern**: ${synthesis.architecture_approach}
332
-
333
- **Key Components**:
334
- ${synthesis.key_components.map((c, i) => `${i+1}. ${c.name}: ${c.responsibility}`).join('\n')}
335
-
336
- ---
337
-
338
- ## Implementation Strategy
339
-
340
- **Technology Stack**:
341
- ${synthesis.technology_stack.map(t => `- ${t}`).join('\n')}
342
-
343
- **Phases**:
344
- ${synthesis.phases.map((p, i) => `${i+1}. ${p.name} (${p.effort})`).join('\n')}
345
-
346
- ---
347
-
348
- ## Risk Assessment
349
-
350
- **Overall Risk**: ${synthesis.overall_risk_level}
351
-
352
- **Top 3 Risks**:
353
- ${synthesis.top_risks.map((r, i) => `${i+1}. **${r.title}** (Impact: ${r.impact})\n Mitigation: ${r.mitigation}`).join('\n\n')}
354
-
355
- ---
356
-
357
- ## Task Breakdown (Ready for Execution)
358
-
359
- ${synthesis.tasks.map((task, i) => `
360
- ${i+1}. **${task.id}: ${task.title}** (Effort: ${task.effort})
361
- ${task.description}
362
- Dependencies: ${task.dependencies.join(', ') || 'none'}
363
- `).join('\n')}
364
-
365
- ---
366
-
367
- ## Next Steps
368
-
369
- **Execute with**:
370
- \`\`\`
371
- /workflow:unified-execute-with-file -p ${sessionFolder}/synthesis.json
372
- \`\`\`
373
-
374
- **Detailed planning if needed**:
375
- \`\`\`
376
- /workflow:plan "Based on: $TOPIC"
377
- \`\`\`
378
- ```
379
-
380
- ## Session Folder Structure
381
-
382
- ```
383
- .workflow/.planning/{sessionId}/
384
- ├── plan.md # Minimal, actionable
385
- ├── perspectives.json # Agent findings
386
- ├── conflicts.json # Conflicts & resolutions (if any)
387
- └── synthesis.json # Task breakdown for execution
388
- ```
389
-
390
- ## Multi-Agent Coordination
391
-
392
- | Agent | Perspective | Tools | Output |
393
- |-------|-------------|-------|--------|
394
- | Gemini (Design) | Architecture patterns | Design thinking, cross-domain | Components, patterns, scalability |
395
- | Codex (Build) | Implementation reality | Tech stack evaluation | Stack, effort, feasibility |
396
- | Claude (Validate) | Risk & testing | Risk assessment, QA | Risks, testing strategy |
397
- | Gemini (Decide) | Strategic synthesis | Decision analysis | Recommendations, tradeoffs |
398
-
399
- ## Error Handling
400
-
401
- | Situation | Action |
402
- |-----------|--------|
403
- | Agents conflict | Arbitration agent synthesizes recommendation |
404
- | Missing blockers | Continue with available context, note gaps |
405
- | Unclear input | Ask for clarification on planning focus |
406
- | Estimate too high | Suggest MVP approach or phasing |
407
-
408
- ## Integration Flow
409
-
410
- ```
411
- Raw Task / Brainstorm / Analysis
412
-
413
-
414
- quick-plan-with-file (5-10 min)
415
-
416
- ├─ plan.md
417
- ├─ perspectives.json
418
- └─ synthesis.json
419
-
420
-
421
- unified-execute-with-file
422
-
423
-
424
- Implementation
425
- ```
426
-
427
- ## Usage Patterns
428
-
429
- **Pattern 1: Quick planning from task**
430
- ```
431
- TOPIC="实现实时通知系统" --auto
432
- → Creates actionable plan in ~5 minutes
433
- ```
434
-
435
- **Pattern 2: Convert brainstorm to execution plan**
436
- ```
437
- TOPIC="BS-notifications-2025-01-28" --from=brainstorm
438
- → Reads synthesis.json from brainstorm
439
- → Generates implementation plan
440
- ```
441
-
442
- **Pattern 3: From analysis to plan**
443
- ```
444
- TOPIC="ANL-auth-2025-01-28" --from=analysis
445
- → Converts conclusions.json to executable plan
446
- ```
447
-
448
- ---
449
-
450
- **Now execute quick-plan-with-file for topic**: $TOPIC