claude-code-workflow 6.0.5 → 6.1.0
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.
- package/.claude/agents/action-planning-agent.md +1 -1
- package/.claude/agents/cli-execution-agent.md +269 -269
- package/.claude/agents/cli-explore-agent.md +182 -182
- package/.claude/agents/context-search-agent.md +582 -582
- package/.claude/agents/memory-bridge.md +93 -93
- package/.claude/commands/cli/cli-init.md +1 -1
- package/.claude/commands/memory/docs-full-cli.md +471 -471
- package/.claude/commands/memory/docs-related-cli.md +386 -386
- package/.claude/commands/memory/docs.md +615 -615
- package/.claude/commands/memory/load.md +1 -1
- package/.claude/commands/memory/update-full.md +332 -332
- package/.claude/commands/memory/update-related.md +5 -5
- package/.claude/commands/workflow/init.md +1 -1
- package/.claude/commands/workflow/lite-fix.md +621 -621
- package/.claude/commands/workflow/lite-plan.md +592 -592
- package/.claude/commands/workflow/tools/context-gather.md +434 -434
- package/.claude/commands/workflow/ui-design/generate.md +504 -504
- package/.claude/commands/workflow/ui-design/import-from-code.md +537 -537
- package/.claude/scripts/classify-folders.sh +4 -0
- package/.claude/scripts/convert_tokens_to_css.sh +4 -0
- package/.claude/scripts/detect_changed_modules.sh +5 -1
- package/.claude/scripts/discover-design-files.sh +87 -83
- package/.claude/scripts/generate_module_docs.sh +717 -713
- package/.claude/scripts/get_modules_by_depth.sh +5 -1
- package/.claude/scripts/ui-generate-preview.sh +4 -0
- package/.claude/scripts/ui-instantiate-prototypes.sh +4 -0
- package/.claude/scripts/update_module_claude.sh +4 -0
- package/.claude/skills/command-guide/index/all-commands.json +1 -12
- package/.claude/skills/command-guide/index/by-category.json +1 -12
- package/.claude/skills/command-guide/index/by-use-case.json +1 -12
- package/.claude/skills/command-guide/index/essential-commands.json +1 -12
- package/.claude/skills/command-guide/reference/agents/action-planning-agent.md +127 -71
- package/.claude/skills/command-guide/reference/agents/cli-execution-agent.md +269 -269
- package/.claude/skills/command-guide/reference/agents/cli-explore-agent.md +182 -182
- package/.claude/skills/command-guide/reference/agents/conceptual-planning-agent.md +18 -38
- package/.claude/skills/command-guide/reference/agents/context-search-agent.md +582 -577
- package/.claude/skills/command-guide/reference/agents/memory-bridge.md +93 -93
- package/.claude/skills/command-guide/reference/commands/cli/cli-init.md +1 -1
- package/.claude/skills/command-guide/reference/commands/memory/docs-full-cli.md +471 -471
- package/.claude/skills/command-guide/reference/commands/memory/docs-related-cli.md +386 -386
- package/.claude/skills/command-guide/reference/commands/memory/docs.md +615 -610
- package/.claude/skills/command-guide/reference/commands/memory/load.md +1 -1
- package/.claude/skills/command-guide/reference/commands/memory/update-full.md +332 -332
- package/.claude/skills/command-guide/reference/commands/memory/update-related.md +5 -5
- package/.claude/skills/command-guide/reference/commands/workflow/brainstorm/artifacts.md +299 -451
- package/.claude/skills/command-guide/reference/commands/workflow/brainstorm/auto-parallel.md +14 -37
- package/.claude/skills/command-guide/reference/commands/workflow/brainstorm/synthesis.md +252 -350
- package/.claude/skills/command-guide/reference/commands/workflow/init.md +2 -2
- package/.claude/skills/command-guide/reference/commands/workflow/lite-execute.md +52 -0
- package/.claude/skills/command-guide/reference/commands/workflow/lite-fix.md +621 -602
- package/.claude/skills/command-guide/reference/commands/workflow/lite-plan.md +46 -36
- package/.claude/skills/command-guide/reference/commands/workflow/review-fix.md +18 -58
- package/.claude/skills/command-guide/reference/commands/workflow/review-module-cycle.md +22 -52
- package/.claude/skills/command-guide/reference/commands/workflow/review-session-cycle.md +19 -48
- package/.claude/skills/command-guide/reference/commands/workflow/session/start.md +25 -5
- package/.claude/skills/command-guide/reference/commands/workflow/tdd-plan.md +1 -1
- package/.claude/skills/command-guide/reference/commands/workflow/test-fix-gen.md +7 -7
- package/.claude/skills/command-guide/reference/commands/workflow/tools/context-gather.md +434 -434
- package/.claude/skills/command-guide/reference/commands/workflow/tools/task-generate-agent.md +151 -11
- package/.claude/skills/command-guide/reference/commands/workflow/tools/task-generate-tdd.md +4 -4
- package/.claude/skills/command-guide/reference/commands/workflow/tools/test-task-generate.md +1 -1
- package/.claude/skills/command-guide/reference/commands/workflow/ui-design/generate.md +504 -504
- package/.claude/skills/command-guide/reference/commands/workflow/ui-design/import-from-code.md +537 -537
- package/.claude/workflows/context-search-strategy.md +77 -77
- package/.claude/workflows/tool-strategy.md +90 -71
- package/.claude/workflows/workflow-architecture.md +1 -1
- package/ccw/src/cli.js +7 -0
- package/ccw/src/commands/tool.js +181 -0
- package/ccw/src/core/dashboard-generator.js +18 -3
- package/ccw/src/core/lite-scanner.js +35 -11
- package/ccw/src/core/server.js +531 -46
- package/ccw/src/templates/dashboard-css/01-base.css +161 -0
- package/ccw/src/templates/dashboard-css/02-session.css +726 -0
- package/ccw/src/templates/dashboard-css/03-tasks.css +512 -0
- package/ccw/src/templates/dashboard-css/04-lite-tasks.css +843 -0
- package/ccw/src/templates/dashboard-css/05-context.css +2206 -0
- package/ccw/src/templates/dashboard-css/06-cards.css +1570 -0
- package/ccw/src/templates/dashboard-css/07-managers.css +936 -0
- package/ccw/src/templates/dashboard-css/08-review.css +1266 -0
- package/ccw/src/templates/dashboard-css/09-explorer.css +1397 -0
- package/ccw/src/templates/dashboard-js/components/global-notifications.js +219 -0
- package/ccw/src/templates/dashboard-js/components/hook-manager.js +10 -0
- package/ccw/src/templates/dashboard-js/components/mcp-manager.js +11 -1
- package/ccw/src/templates/dashboard-js/components/navigation.js +11 -5
- package/ccw/src/templates/dashboard-js/components/tabs-context.js +20 -20
- package/ccw/src/templates/dashboard-js/components/tabs-other.js +11 -11
- package/ccw/src/templates/dashboard-js/components/theme.js +29 -1
- package/ccw/src/templates/dashboard-js/main.js +4 -0
- package/ccw/src/templates/dashboard-js/state.js +5 -0
- package/ccw/src/templates/dashboard-js/views/explorer.js +852 -0
- package/ccw/src/templates/dashboard-js/views/home.js +13 -9
- package/ccw/src/templates/dashboard-js/views/hook-manager.js +8 -5
- package/ccw/src/templates/dashboard-js/views/lite-tasks.js +21 -16
- package/ccw/src/templates/dashboard-js/views/mcp-manager.js +90 -19
- package/ccw/src/templates/dashboard-js/views/project-overview.js +15 -11
- package/ccw/src/templates/dashboard-js/views/review-session.js +3 -3
- package/ccw/src/templates/dashboard-js/views/session-detail.js +38 -28
- package/ccw/src/templates/dashboard.html +129 -28
- package/ccw/src/tools/classify-folders.js +204 -0
- package/ccw/src/tools/convert-tokens-to-css.js +250 -0
- package/ccw/src/tools/detect-changed-modules.js +288 -0
- package/ccw/src/tools/discover-design-files.js +134 -0
- package/ccw/src/tools/edit-file.js +266 -0
- package/ccw/src/tools/generate-module-docs.js +416 -0
- package/ccw/src/tools/get-modules-by-depth.js +308 -0
- package/ccw/src/tools/index.js +176 -0
- package/ccw/src/tools/ui-generate-preview.js +327 -0
- package/ccw/src/tools/ui-instantiate-prototypes.js +301 -0
- package/ccw/src/tools/update-module-claude.js +380 -0
- package/package.json +1 -1
- package/.claude/skills/command-guide/reference/commands/workflow/status.md +0 -352
- package/ccw/src/core/server.js.bak +0 -385
- package/ccw/src/core/server_original.bak +0 -385
- package/ccw/src/templates/dashboard.css +0 -8187
- package/ccw/src/templates/dashboard_tailwind.html +0 -42
- package/ccw/src/templates/dashboard_test.html +0 -37
- package/ccw/src/templates/tailwind-base.css +0 -212
|
@@ -43,11 +43,11 @@ Phase 1: Task Analysis & Exploration
|
|
|
43
43
|
├─ needsExploration=true → Launch parallel cli-explore-agents (1-4 based on complexity)
|
|
44
44
|
└─ needsExploration=false → Skip to Phase 2/3
|
|
45
45
|
|
|
46
|
-
Phase 2: Clarification (optional)
|
|
46
|
+
Phase 2: Clarification (optional, multi-round)
|
|
47
47
|
├─ Aggregate clarification_needs from all exploration angles
|
|
48
48
|
├─ Deduplicate similar questions
|
|
49
49
|
└─ Decision:
|
|
50
|
-
├─ Has clarifications → AskUserQuestion (max 4 questions)
|
|
50
|
+
├─ Has clarifications → AskUserQuestion (max 4 questions per round, multiple rounds allowed)
|
|
51
51
|
└─ No clarifications → Skip to Phase 3
|
|
52
52
|
|
|
53
53
|
Phase 3: Planning (NO CODE EXECUTION - planning only)
|
|
@@ -71,18 +71,18 @@ Phase 5: Dispatch
|
|
|
71
71
|
|
|
72
72
|
### Phase 1: Intelligent Multi-Angle Exploration
|
|
73
73
|
|
|
74
|
-
**Session Setup
|
|
74
|
+
**Session Setup** (MANDATORY - follow exactly):
|
|
75
75
|
```javascript
|
|
76
76
|
// Helper: Get UTC+8 (China Standard Time) ISO string
|
|
77
77
|
const getUtc8ISOString = () => new Date(Date.now() + 8 * 60 * 60 * 1000).toISOString()
|
|
78
78
|
|
|
79
79
|
const taskSlug = task_description.toLowerCase().replace(/[^a-z0-9]+/g, '-').substring(0, 40)
|
|
80
|
-
const
|
|
81
|
-
|
|
82
|
-
const sessionId = `${taskSlug}-${
|
|
80
|
+
const dateStr = getUtc8ISOString().substring(0, 10) // Format: 2025-11-29
|
|
81
|
+
|
|
82
|
+
const sessionId = `${taskSlug}-${dateStr}` // e.g., "implement-jwt-refresh-2025-11-29"
|
|
83
83
|
const sessionFolder = `.workflow/.lite-plan/${sessionId}`
|
|
84
84
|
|
|
85
|
-
bash(`mkdir -p ${sessionFolder}`)
|
|
85
|
+
bash(`mkdir -p ${sessionFolder} && test -d ${sessionFolder} && echo "SUCCESS: ${sessionFolder}" || echo "FAILED: ${sessionFolder}"`)
|
|
86
86
|
```
|
|
87
87
|
|
|
88
88
|
**Exploration Decision Logic**:
|
|
@@ -170,7 +170,7 @@ Execute **${angle}** exploration for task planning context. Analyze codebase fro
|
|
|
170
170
|
|
|
171
171
|
## MANDATORY FIRST STEPS (Execute by Agent)
|
|
172
172
|
**You (cli-explore-agent) MUST execute these steps in order:**
|
|
173
|
-
1. Run:
|
|
173
|
+
1. Run: ccw tool exec get_modules_by_depth '{}' (project structure)
|
|
174
174
|
2. Run: rg -l "{keyword_from_task}" --type ts (locate relevant files)
|
|
175
175
|
3. Execute: cat ~/.claude/workflows/cli-templates/schemas/explore-json-schema.json (get output schema reference)
|
|
176
176
|
|
|
@@ -206,7 +206,7 @@ Execute **${angle}** exploration for task planning context. Analyze codebase fro
|
|
|
206
206
|
- dependencies: Dependencies relevant to ${angle}
|
|
207
207
|
- integration_points: Where to integrate from ${angle} viewpoint (include file:line locations)
|
|
208
208
|
- constraints: ${angle}-specific limitations/conventions
|
|
209
|
-
- clarification_needs: ${angle}-related ambiguities (
|
|
209
|
+
- clarification_needs: ${angle}-related ambiguities (options array + recommended index)
|
|
210
210
|
- _metadata.exploration_angle: "${angle}"
|
|
211
211
|
|
|
212
212
|
## Success Criteria
|
|
@@ -217,7 +217,7 @@ Execute **${angle}** exploration for task planning context. Analyze codebase fro
|
|
|
217
217
|
- [ ] Integration points include file:line locations
|
|
218
218
|
- [ ] Constraints are project-specific to ${angle}
|
|
219
219
|
- [ ] JSON output follows schema exactly
|
|
220
|
-
- [ ] clarification_needs includes options
|
|
220
|
+
- [ ] clarification_needs includes options + recommended
|
|
221
221
|
|
|
222
222
|
## Output
|
|
223
223
|
Write: ${sessionFolder}/exploration-${angle}.json
|
|
@@ -276,10 +276,12 @@ Angles explored: ${explorationManifest.explorations.map(e => e.angle).join(', ')
|
|
|
276
276
|
|
|
277
277
|
---
|
|
278
278
|
|
|
279
|
-
### Phase 2: Clarification (Optional)
|
|
279
|
+
### Phase 2: Clarification (Optional, Multi-Round)
|
|
280
280
|
|
|
281
281
|
**Skip if**: No exploration or `clarification_needs` is empty across all explorations
|
|
282
282
|
|
|
283
|
+
**⚠️ CRITICAL**: AskUserQuestion tool limits max 4 questions per call. **MUST execute multiple rounds** to exhaust all clarification needs - do NOT stop at round 1.
|
|
284
|
+
|
|
283
285
|
**Aggregate clarification needs from all exploration angles**:
|
|
284
286
|
```javascript
|
|
285
287
|
// Load manifest and all exploration files
|
|
@@ -302,32 +304,40 @@ explorations.forEach(exp => {
|
|
|
302
304
|
}
|
|
303
305
|
})
|
|
304
306
|
|
|
305
|
-
// Deduplicate
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
})
|
|
314
|
-
return unique
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
const uniqueClarifications = deduplicateClarifications(allClarifications)
|
|
307
|
+
// Deduplicate exact same questions only
|
|
308
|
+
const seen = new Set()
|
|
309
|
+
const dedupedClarifications = allClarifications.filter(c => {
|
|
310
|
+
const key = c.question.toLowerCase()
|
|
311
|
+
if (seen.has(key)) return false
|
|
312
|
+
seen.add(key)
|
|
313
|
+
return true
|
|
314
|
+
})
|
|
318
315
|
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
316
|
+
// Multi-round clarification: batch questions (max 4 per round)
|
|
317
|
+
if (dedupedClarifications.length > 0) {
|
|
318
|
+
const BATCH_SIZE = 4
|
|
319
|
+
const totalRounds = Math.ceil(dedupedClarifications.length / BATCH_SIZE)
|
|
320
|
+
|
|
321
|
+
for (let i = 0; i < dedupedClarifications.length; i += BATCH_SIZE) {
|
|
322
|
+
const batch = dedupedClarifications.slice(i, i + BATCH_SIZE)
|
|
323
|
+
const currentRound = Math.floor(i / BATCH_SIZE) + 1
|
|
324
|
+
|
|
325
|
+
console.log(`### Clarification Round ${currentRound}/${totalRounds}`)
|
|
326
|
+
|
|
327
|
+
AskUserQuestion({
|
|
328
|
+
questions: batch.map(need => ({
|
|
329
|
+
question: `[${need.source_angle}] ${need.question}\n\nContext: ${need.context}`,
|
|
330
|
+
header: need.source_angle.substring(0, 12),
|
|
331
|
+
multiSelect: false,
|
|
332
|
+
options: need.options.map((opt, index) => ({
|
|
333
|
+
label: need.recommended === index ? `${opt} ★` : opt,
|
|
334
|
+
description: need.recommended === index ? `Recommended` : `Use ${opt}`
|
|
335
|
+
}))
|
|
328
336
|
}))
|
|
329
|
-
})
|
|
330
|
-
|
|
337
|
+
})
|
|
338
|
+
|
|
339
|
+
// Store batch responses in clarificationContext before next round
|
|
340
|
+
}
|
|
331
341
|
}
|
|
332
342
|
```
|
|
333
343
|
|
|
@@ -552,7 +562,7 @@ SlashCommand(command="/workflow:lite-execute --in-memory")
|
|
|
552
562
|
## Session Folder Structure
|
|
553
563
|
|
|
554
564
|
```
|
|
555
|
-
.workflow/.lite-plan/{task-slug}-{
|
|
565
|
+
.workflow/.lite-plan/{task-slug}-{YYYY-MM-DD}/
|
|
556
566
|
├── exploration-{angle1}.json # Exploration angle 1
|
|
557
567
|
├── exploration-{angle2}.json # Exploration angle 2
|
|
558
568
|
├── exploration-{angle3}.json # Exploration angle 3 (if applicable)
|
|
@@ -46,8 +46,7 @@ Automated fix orchestrator with **two-phase architecture**: AI-powered planning
|
|
|
46
46
|
1. **Intelligent Planning**: AI-powered analysis identifies optimal grouping and execution strategy
|
|
47
47
|
2. **Multi-stage Coordination**: Supports complex parallel + serial execution with dependency management
|
|
48
48
|
3. **Conservative Safety**: Mandatory test verification with automatic rollback on failure
|
|
49
|
-
4. **
|
|
50
|
-
5. **Resume Support**: Checkpoint-based recovery for interrupted sessions
|
|
49
|
+
4. **Resume Support**: Checkpoint-based recovery for interrupted sessions
|
|
51
50
|
|
|
52
51
|
### Orchestrator Boundary (CRITICAL)
|
|
53
52
|
- **ONLY command** for automated review finding fixes
|
|
@@ -59,14 +58,14 @@ Automated fix orchestrator with **two-phase architecture**: AI-powered planning
|
|
|
59
58
|
|
|
60
59
|
```
|
|
61
60
|
Phase 1: Discovery & Initialization
|
|
62
|
-
└─ Validate export file, create fix session structure, initialize state files
|
|
61
|
+
└─ Validate export file, create fix session structure, initialize state files
|
|
63
62
|
|
|
64
63
|
Phase 2: Planning Coordination (@cli-planning-agent)
|
|
65
64
|
├─ Analyze findings for patterns and dependencies
|
|
66
65
|
├─ Group by file + dimension + root cause similarity
|
|
67
66
|
├─ Determine execution strategy (parallel/serial/hybrid)
|
|
68
67
|
├─ Generate fix timeline with stages
|
|
69
|
-
└─ Output: fix-plan.json
|
|
68
|
+
└─ Output: fix-plan.json
|
|
70
69
|
|
|
71
70
|
Phase 3: Execution Orchestration (Stage-based)
|
|
72
71
|
For each timeline stage:
|
|
@@ -198,12 +197,10 @@ if (result.passRate < 100%) {
|
|
|
198
197
|
- Session creation: Generate fix-session-id (`fix-{timestamp}`)
|
|
199
198
|
- Directory structure: Create `{review-dir}/fixes/{fix-session-id}/` with subdirectories
|
|
200
199
|
- State files: Initialize active-fix-session.json (session marker)
|
|
201
|
-
- Dashboard generation: Create fix-dashboard.html from template (see Dashboard Generation below)
|
|
202
200
|
- TodoWrite initialization: Set up 4-phase tracking
|
|
203
201
|
|
|
204
202
|
**Phase 2: Planning Coordination**
|
|
205
203
|
- Launch @cli-planning-agent with findings data and project context
|
|
206
|
-
- Monitor planning progress (dashboard shows "Planning fixes..." indicator)
|
|
207
204
|
- Validate fix-plan.json output (schema conformance, includes metadata with session status)
|
|
208
205
|
- Load plan into memory for execution phase
|
|
209
206
|
- TodoWrite update: Mark planning complete, start execution
|
|
@@ -216,7 +213,6 @@ if (result.passRate < 100%) {
|
|
|
216
213
|
- Assign agent IDs (agents update their fix-progress-{N}.json)
|
|
217
214
|
- Handle agent failures gracefully (mark group as failed, continue)
|
|
218
215
|
- Advance to next stage only when current stage complete
|
|
219
|
-
- Dashboard polls and aggregates fix-progress-{N}.json files for display
|
|
220
216
|
|
|
221
217
|
**Phase 4: Completion & Aggregation**
|
|
222
218
|
- Collect final status from all fix-progress-{N}.json files
|
|
@@ -224,7 +220,7 @@ if (result.passRate < 100%) {
|
|
|
224
220
|
- Update fix-history.json with new session entry
|
|
225
221
|
- Remove active-fix-session.json
|
|
226
222
|
- TodoWrite completion: Mark all phases done
|
|
227
|
-
- Output summary to user
|
|
223
|
+
- Output summary to user
|
|
228
224
|
|
|
229
225
|
**Phase 5: Session Completion (Optional)**
|
|
230
226
|
- If all findings fixed successfully (no failures):
|
|
@@ -234,53 +230,12 @@ if (result.passRate < 100%) {
|
|
|
234
230
|
- Output: "Some findings failed. Review fix-summary.md before completing session."
|
|
235
231
|
- Do NOT auto-complete session
|
|
236
232
|
|
|
237
|
-
### Dashboard Generation
|
|
238
|
-
|
|
239
|
-
**MANDATORY**: Dashboard MUST be generated from template during Phase 1 initialization
|
|
240
|
-
|
|
241
|
-
**Template Location**: `~/.claude/templates/fix-dashboard.html`
|
|
242
|
-
|
|
243
|
-
**⚠️ POST-GENERATION**: Orchestrator and agents MUST NOT read/write/modify fix-dashboard.html after creation
|
|
244
|
-
|
|
245
|
-
**Generation Steps**:
|
|
246
|
-
|
|
247
|
-
```bash
|
|
248
|
-
# 1. Copy template to fix session directory
|
|
249
|
-
cp ~/.claude/templates/fix-dashboard.html ${sessionDir}/fixes/${fixSessionId}/fix-dashboard.html
|
|
250
|
-
|
|
251
|
-
# 2. Replace SESSION_ID placeholder
|
|
252
|
-
sed -i "s|{{SESSION_ID}}|${sessionId}|g" ${sessionDir}/fixes/${fixSessionId}/fix-dashboard.html
|
|
253
|
-
|
|
254
|
-
# 3. Replace REVIEW_DIR placeholder
|
|
255
|
-
sed -i "s|{{REVIEW_DIR}}|${reviewDir}|g" ${sessionDir}/fixes/${fixSessionId}/fix-dashboard.html
|
|
256
|
-
|
|
257
|
-
# 4. Start local server and output dashboard URL
|
|
258
|
-
cd ${sessionDir}/fixes/${fixSessionId} && python -m http.server 8766 --bind 127.0.0.1 &
|
|
259
|
-
echo "🔧 Fix Dashboard: http://127.0.0.1:8766/fix-dashboard.html"
|
|
260
|
-
echo " (Press Ctrl+C to stop server when done)"
|
|
261
|
-
```
|
|
262
|
-
|
|
263
|
-
**Dashboard Features**:
|
|
264
|
-
- Real-time progress tracking via JSON polling (3-second interval)
|
|
265
|
-
- Stage timeline visualization with parallel/serial execution modes
|
|
266
|
-
- Active groups and agents monitoring
|
|
267
|
-
- Flow control steps tracking for each agent
|
|
268
|
-
- Fix history drawer with session summaries
|
|
269
|
-
- Consumes new JSON structure (fix-plan.json with metadata + fix-progress-{N}.json)
|
|
270
|
-
|
|
271
|
-
**JSON Consumption**:
|
|
272
|
-
- `fix-plan.json`: Reads metadata field for session info, timeline stages, groups configuration
|
|
273
|
-
- `fix-progress-{N}.json`: Polls all progress files to aggregate real-time status
|
|
274
|
-
- `active-fix-session.json`: Detects active session on load
|
|
275
|
-
- `fix-history.json`: Loads historical fix sessions
|
|
276
|
-
|
|
277
233
|
### Output File Structure
|
|
278
234
|
|
|
279
235
|
```
|
|
280
236
|
.workflow/active/WFS-{session-id}/.review/
|
|
281
237
|
├── fix-export-{timestamp}.json # Exported findings (input)
|
|
282
238
|
└── fixes/{fix-session-id}/
|
|
283
|
-
├── fix-dashboard.html # Interactive dashboard (generated once, auto-polls JSON)
|
|
284
239
|
├── fix-plan.json # Planning agent output (execution plan with metadata)
|
|
285
240
|
├── fix-progress-1.json # Group 1 progress (planning agent init → agent updates)
|
|
286
241
|
├── fix-progress-2.json # Group 2 progress (planning agent init → agent updates)
|
|
@@ -291,10 +246,8 @@ echo " (Press Ctrl+C to stop server when done)"
|
|
|
291
246
|
```
|
|
292
247
|
|
|
293
248
|
**File Producers**:
|
|
294
|
-
- **Orchestrator**: `fix-dashboard.html` (generated once from template during Phase 1)
|
|
295
249
|
- **Planning Agent**: `fix-plan.json` (with metadata), all `fix-progress-*.json` (initial state)
|
|
296
250
|
- **Execution Agents**: Update assigned `fix-progress-{N}.json` in real-time
|
|
297
|
-
- **Dashboard (Browser)**: Reads `fix-plan.json` + all `fix-progress-*.json`, aggregates in-memory every 3 seconds via JavaScript polling
|
|
298
251
|
|
|
299
252
|
|
|
300
253
|
### Agent Invocation Template
|
|
@@ -347,7 +300,7 @@ For each group (G1, G2, G3, ...), generate fix-progress-{N}.json following templ
|
|
|
347
300
|
- Flow control: Empty implementation_approach array
|
|
348
301
|
- Errors: Empty array
|
|
349
302
|
|
|
350
|
-
**CRITICAL**: Ensure complete template structure
|
|
303
|
+
**CRITICAL**: Ensure complete template structure - all fields must be present.
|
|
351
304
|
|
|
352
305
|
## Analysis Requirements
|
|
353
306
|
|
|
@@ -419,7 +372,7 @@ Task({
|
|
|
419
372
|
description: `Fix ${group.findings.length} issues: ${group.group_name}`,
|
|
420
373
|
prompt: `
|
|
421
374
|
## Task Objective
|
|
422
|
-
Execute fixes for code review findings in group ${group.group_id}. Update progress file in real-time with flow control tracking
|
|
375
|
+
Execute fixes for code review findings in group ${group.group_id}. Update progress file in real-time with flow control tracking.
|
|
423
376
|
|
|
424
377
|
## Assignment
|
|
425
378
|
- Group ID: ${group.group_id}
|
|
@@ -549,7 +502,6 @@ When all findings processed:
|
|
|
549
502
|
|
|
550
503
|
### Progress File Updates
|
|
551
504
|
- **MUST update after every significant action** (before/after each step)
|
|
552
|
-
- **Dashboard polls every 3 seconds** - ensure writes are atomic
|
|
553
505
|
- **Always maintain complete structure** - never write partial updates
|
|
554
506
|
- **Use ISO 8601 timestamps** - e.g., "2025-01-25T14:36:00Z"
|
|
555
507
|
|
|
@@ -638,9 +590,17 @@ TodoWrite({
|
|
|
638
590
|
1. **Trust AI Planning**: Planning agent's grouping and execution strategy are based on dependency analysis
|
|
639
591
|
2. **Conservative Approach**: Test verification is mandatory - no fixes kept without passing tests
|
|
640
592
|
3. **Parallel Efficiency**: Default 3 concurrent agents balances speed and resource usage
|
|
641
|
-
4. **
|
|
642
|
-
5. **
|
|
643
|
-
6. **
|
|
644
|
-
|
|
593
|
+
4. **Resume Support**: Fix sessions can resume from checkpoints after interruption
|
|
594
|
+
5. **Manual Review**: Always review failed fixes manually - may require architectural changes
|
|
595
|
+
6. **Incremental Fixing**: Start with small batches (5-10 findings) before large-scale fixes
|
|
596
|
+
|
|
597
|
+
## Related Commands
|
|
598
|
+
|
|
599
|
+
### View Fix Progress
|
|
600
|
+
Use `ccw view` to open the workflow dashboard in browser:
|
|
601
|
+
|
|
602
|
+
```bash
|
|
603
|
+
ccw view
|
|
604
|
+
```
|
|
645
605
|
|
|
646
606
|
|
|
@@ -51,14 +51,12 @@ Independent multi-dimensional code review orchestrator with **hybrid parallel-it
|
|
|
51
51
|
2. **Session-Integrated**: Review results tracked within workflow session for unified management
|
|
52
52
|
3. **Comprehensive Coverage**: Same 7 specialized dimensions as session review
|
|
53
53
|
4. **Intelligent Prioritization**: Automatic identification of critical issues and cross-cutting concerns
|
|
54
|
-
5. **
|
|
55
|
-
6. **Unified Archive**: Review results archived with session for historical reference
|
|
54
|
+
5. **Unified Archive**: Review results archived with session for historical reference
|
|
56
55
|
|
|
57
56
|
### Orchestrator Boundary (CRITICAL)
|
|
58
57
|
- **ONLY command** for independent multi-dimensional module review
|
|
59
58
|
- Manages: dimension coordination, aggregation, iteration control, progress tracking
|
|
60
59
|
- Delegates: Code exploration and analysis to @cli-explore-agent, dimension-specific reviews via Deep Scan mode
|
|
61
|
-
- **⚠️ DASHBOARD CONSTRAINT**: Dashboard is generated ONCE during Phase 1 initialization. After initialization, orchestrator and agents MUST NOT read, write, or modify dashboard.html - it remains static for user interaction only.
|
|
62
60
|
|
|
63
61
|
## How It Works
|
|
64
62
|
|
|
@@ -66,7 +64,7 @@ Independent multi-dimensional code review orchestrator with **hybrid parallel-it
|
|
|
66
64
|
|
|
67
65
|
```
|
|
68
66
|
Phase 1: Discovery & Initialization
|
|
69
|
-
└─ Resolve file patterns, validate paths, initialize state, create output structure
|
|
67
|
+
└─ Resolve file patterns, validate paths, initialize state, create output structure
|
|
70
68
|
|
|
71
69
|
Phase 2: Parallel Reviews (for each dimension)
|
|
72
70
|
├─ Launch 7 review agents simultaneously
|
|
@@ -90,7 +88,7 @@ Phase 4: Iterative Deep-Dive (optional)
|
|
|
90
88
|
└─ Loop until no critical findings OR max iterations
|
|
91
89
|
|
|
92
90
|
Phase 5: Completion
|
|
93
|
-
└─ Finalize review-progress.json
|
|
91
|
+
└─ Finalize review-progress.json
|
|
94
92
|
```
|
|
95
93
|
|
|
96
94
|
### Agent Roles
|
|
@@ -188,8 +186,8 @@ const CATEGORIES = {
|
|
|
188
186
|
|
|
189
187
|
**Step 1: Session Creation**
|
|
190
188
|
```javascript
|
|
191
|
-
// Create workflow session for this review
|
|
192
|
-
SlashCommand(command="/workflow:session:start \"Code review for [target_pattern]\"")
|
|
189
|
+
// Create workflow session for this review (type: review)
|
|
190
|
+
SlashCommand(command="/workflow:session:start --type review \"Code review for [target_pattern]\"")
|
|
193
191
|
|
|
194
192
|
// Parse output
|
|
195
193
|
const sessionId = output.match(/SESSION_ID: (WFS-[^\s]+)/)[1];
|
|
@@ -219,37 +217,9 @@ done
|
|
|
219
217
|
|
|
220
218
|
**Step 4: Initialize Review State**
|
|
221
219
|
- State initialization: Create `review-state.json` with metadata, dimensions, max_iterations, resolved_files (merged metadata + state)
|
|
222
|
-
- Progress tracking: Create `review-progress.json` for
|
|
220
|
+
- Progress tracking: Create `review-progress.json` for progress tracking
|
|
223
221
|
|
|
224
|
-
**Step 5:
|
|
225
|
-
|
|
226
|
-
**Constraints**:
|
|
227
|
-
- **MANDATORY**: Dashboard MUST be generated from template: `~/.claude/templates/review-cycle-dashboard.html`
|
|
228
|
-
- **PROHIBITED**: Direct creation or custom generation without template
|
|
229
|
-
- **POST-GENERATION**: Orchestrator and agents MUST NOT read/write/modify dashboard.html after creation
|
|
230
|
-
|
|
231
|
-
**Generation Commands** (3 independent steps):
|
|
232
|
-
```bash
|
|
233
|
-
# Step 1: Copy template to output location
|
|
234
|
-
cp ~/.claude/templates/review-cycle-dashboard.html ${sessionDir}/.review/dashboard.html
|
|
235
|
-
|
|
236
|
-
# Step 2: Replace SESSION_ID placeholder
|
|
237
|
-
sed -i "s|{{SESSION_ID}}|${sessionId}|g" ${sessionDir}/.review/dashboard.html
|
|
238
|
-
|
|
239
|
-
# Step 3: Replace REVIEW_TYPE placeholder
|
|
240
|
-
sed -i "s|{{REVIEW_TYPE}}|module|g" ${sessionDir}/.review/dashboard.html
|
|
241
|
-
|
|
242
|
-
# Step 4: Replace REVIEW_DIR placeholder
|
|
243
|
-
sed -i "s|{{REVIEW_DIR}}|${reviewDir}|g" ${sessionDir}/.review/dashboard.html
|
|
244
|
-
|
|
245
|
-
# Output: Start local server and output dashboard URL
|
|
246
|
-
# Use Python HTTP server (available on most systems)
|
|
247
|
-
cd ${sessionDir}/.review && python -m http.server 8765 --bind 127.0.0.1 &
|
|
248
|
-
echo "📊 Dashboard: http://127.0.0.1:8765/dashboard.html"
|
|
249
|
-
echo " (Press Ctrl+C to stop server when done)"
|
|
250
|
-
```
|
|
251
|
-
|
|
252
|
-
**Step 6: TodoWrite Initialization**
|
|
222
|
+
**Step 5: TodoWrite Initialization**
|
|
253
223
|
- Set up progress tracking with hierarchical structure
|
|
254
224
|
- Mark Phase 1 completed, Phase 2 in_progress
|
|
255
225
|
|
|
@@ -280,7 +250,6 @@ echo " (Press Ctrl+C to stop server when done)"
|
|
|
280
250
|
- Finalize review-progress.json with completion statistics
|
|
281
251
|
- Update review-state.json with completion_time and phase=complete
|
|
282
252
|
- TodoWrite completion: Mark all tasks done
|
|
283
|
-
- Output: Dashboard path to user
|
|
284
253
|
|
|
285
254
|
|
|
286
255
|
|
|
@@ -301,12 +270,11 @@ echo " (Press Ctrl+C to stop server when done)"
|
|
|
301
270
|
├── iterations/ # Deep-dive results
|
|
302
271
|
│ ├── iteration-1-finding-{uuid}.json
|
|
303
272
|
│ └── iteration-2-finding-{uuid}.json
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
└── dashboard.html # Interactive dashboard (primary output)
|
|
273
|
+
└── reports/ # Human-readable reports
|
|
274
|
+
├── security-analysis.md
|
|
275
|
+
├── security-cli-output.txt
|
|
276
|
+
├── deep-dive-1-{uuid}.md
|
|
277
|
+
└── ...
|
|
310
278
|
```
|
|
311
279
|
|
|
312
280
|
**Session Context**:
|
|
@@ -772,23 +740,25 @@ TodoWrite({
|
|
|
772
740
|
3. **Use Glob Wisely**: `src/auth/**` is more efficient than `src/**` with lots of irrelevant files
|
|
773
741
|
4. **Trust Aggregation Logic**: Auto-selection based on proven heuristics
|
|
774
742
|
5. **Monitor Logs**: Check reports/ directory for CLI analysis insights
|
|
775
|
-
6. **Dashboard Polling**: Refresh every 5 seconds for real-time updates
|
|
776
|
-
7. **Export Results**: Use dashboard export for external tracking tools
|
|
777
743
|
|
|
778
744
|
## Related Commands
|
|
779
745
|
|
|
746
|
+
### View Review Progress
|
|
747
|
+
Use `ccw view` to open the review dashboard in browser:
|
|
748
|
+
|
|
749
|
+
```bash
|
|
750
|
+
ccw view
|
|
751
|
+
```
|
|
752
|
+
|
|
780
753
|
### Automated Fix Workflow
|
|
781
|
-
After completing a module review, use the
|
|
754
|
+
After completing a module review, use the generated findings JSON for automated fixing:
|
|
782
755
|
|
|
783
756
|
```bash
|
|
784
757
|
# Step 1: Complete review (this command)
|
|
785
758
|
/workflow:review-module-cycle src/auth/**
|
|
786
759
|
|
|
787
|
-
# Step 2:
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
# Step 3: Run automated fixes
|
|
791
|
-
/workflow:review-fix .workflow/active/WFS-{session-id}/.review/fix-export-{timestamp}.json
|
|
760
|
+
# Step 2: Run automated fixes using dimension findings
|
|
761
|
+
/workflow:review-fix .workflow/active/WFS-{session-id}/.review/
|
|
792
762
|
```
|
|
793
763
|
|
|
794
764
|
See `/workflow:review-fix` for automated fixing with smart grouping, parallel execution, and test verification.
|
|
@@ -45,13 +45,11 @@ Session-based multi-dimensional code review orchestrator with **hybrid parallel-
|
|
|
45
45
|
1. **Comprehensive Coverage**: 7 specialized dimensions analyze all quality aspects simultaneously
|
|
46
46
|
2. **Intelligent Prioritization**: Automatic identification of critical issues and cross-cutting concerns
|
|
47
47
|
3. **Actionable Insights**: Deep-dive iterations provide step-by-step remediation plans
|
|
48
|
-
4. **Real-time Visibility**: JSON-based progress tracking with interactive HTML dashboard
|
|
49
48
|
|
|
50
49
|
### Orchestrator Boundary (CRITICAL)
|
|
51
50
|
- **ONLY command** for comprehensive multi-dimensional review
|
|
52
51
|
- Manages: dimension coordination, aggregation, iteration control, progress tracking
|
|
53
52
|
- Delegates: Code exploration and analysis to @cli-explore-agent, dimension-specific reviews via Deep Scan mode
|
|
54
|
-
- **⚠️ DASHBOARD CONSTRAINT**: Dashboard is generated ONCE during Phase 1 initialization. After initialization, orchestrator and agents MUST NOT read, write, or modify dashboard.html - it remains static for user interaction only.
|
|
55
53
|
|
|
56
54
|
## How It Works
|
|
57
55
|
|
|
@@ -59,7 +57,7 @@ Session-based multi-dimensional code review orchestrator with **hybrid parallel-
|
|
|
59
57
|
|
|
60
58
|
```
|
|
61
59
|
Phase 1: Discovery & Initialization
|
|
62
|
-
└─ Validate session, initialize state, create output structure
|
|
60
|
+
└─ Validate session, initialize state, create output structure
|
|
63
61
|
|
|
64
62
|
Phase 2: Parallel Reviews (for each dimension)
|
|
65
63
|
├─ Launch 7 review agents simultaneously
|
|
@@ -83,7 +81,7 @@ Phase 4: Iterative Deep-Dive (optional)
|
|
|
83
81
|
└─ Loop until no critical findings OR max iterations
|
|
84
82
|
|
|
85
83
|
Phase 5: Completion
|
|
86
|
-
└─ Finalize review-progress.json
|
|
84
|
+
└─ Finalize review-progress.json
|
|
87
85
|
```
|
|
88
86
|
|
|
89
87
|
### Agent Roles
|
|
@@ -199,36 +197,9 @@ git log --since="${sessionCreatedAt}" --name-only --pretty=format: | sort -u
|
|
|
199
197
|
|
|
200
198
|
**Step 5: Initialize Review State**
|
|
201
199
|
- State initialization: Create `review-state.json` with metadata, dimensions, max_iterations (merged metadata + state)
|
|
202
|
-
- Progress tracking: Create `review-progress.json` for
|
|
200
|
+
- Progress tracking: Create `review-progress.json` for progress tracking
|
|
203
201
|
|
|
204
|
-
**Step 6:
|
|
205
|
-
|
|
206
|
-
**Constraints**:
|
|
207
|
-
- **MANDATORY**: Dashboard MUST be generated from template: `~/.claude/templates/review-cycle-dashboard.html`
|
|
208
|
-
- **PROHIBITED**: Direct creation or custom generation without template
|
|
209
|
-
- **POST-GENERATION**: Orchestrator and agents MUST NOT read/write/modify dashboard.html after creation
|
|
210
|
-
|
|
211
|
-
**Generation Commands** (3 independent steps):
|
|
212
|
-
```bash
|
|
213
|
-
# Step 1: Copy template to output location
|
|
214
|
-
cp ~/.claude/templates/review-cycle-dashboard.html ${sessionDir}/.review/dashboard.html
|
|
215
|
-
|
|
216
|
-
# Step 2: Replace SESSION_ID placeholder
|
|
217
|
-
sed -i "s|{{SESSION_ID}}|${sessionId}|g" ${sessionDir}/.review/dashboard.html
|
|
218
|
-
|
|
219
|
-
# Step 3: Replace REVIEW_TYPE placeholder
|
|
220
|
-
sed -i "s|{{REVIEW_TYPE}}|session|g" ${sessionDir}/.review/dashboard.html
|
|
221
|
-
|
|
222
|
-
# Step 4: Replace REVIEW_DIR placeholder
|
|
223
|
-
sed -i "s|{{REVIEW_DIR}}|${reviewDir}|g" ${sessionDir}/.review/dashboard.html
|
|
224
|
-
|
|
225
|
-
# Output: Start local server and output dashboard URL
|
|
226
|
-
cd ${sessionDir}/.review && python -m http.server 8765 --bind 127.0.0.1 &
|
|
227
|
-
echo "📊 Dashboard: http://127.0.0.1:8765/dashboard.html"
|
|
228
|
-
echo " (Press Ctrl+C to stop server when done)"
|
|
229
|
-
```
|
|
230
|
-
|
|
231
|
-
**Step 7: TodoWrite Initialization**
|
|
202
|
+
**Step 6: TodoWrite Initialization**
|
|
232
203
|
- Set up progress tracking with hierarchical structure
|
|
233
204
|
- Mark Phase 1 completed, Phase 2 in_progress
|
|
234
205
|
|
|
@@ -259,7 +230,6 @@ echo " (Press Ctrl+C to stop server when done)"
|
|
|
259
230
|
- Finalize review-progress.json with completion statistics
|
|
260
231
|
- Update review-state.json with completion_time and phase=complete
|
|
261
232
|
- TodoWrite completion: Mark all tasks done
|
|
262
|
-
- Output: Dashboard path to user
|
|
263
233
|
|
|
264
234
|
|
|
265
235
|
|
|
@@ -280,12 +250,11 @@ echo " (Press Ctrl+C to stop server when done)"
|
|
|
280
250
|
├── iterations/ # Deep-dive results
|
|
281
251
|
│ ├── iteration-1-finding-{uuid}.json
|
|
282
252
|
│ └── iteration-2-finding-{uuid}.json
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
└── dashboard.html # Interactive dashboard (primary output)
|
|
253
|
+
└── reports/ # Human-readable reports
|
|
254
|
+
├── security-analysis.md
|
|
255
|
+
├── security-cli-output.txt
|
|
256
|
+
├── deep-dive-1-{uuid}.md
|
|
257
|
+
└── ...
|
|
289
258
|
```
|
|
290
259
|
|
|
291
260
|
**Session Context**:
|
|
@@ -782,23 +751,25 @@ TodoWrite({
|
|
|
782
751
|
2. **Parallel Execution**: ~60 minutes for full initial review (7 dimensions)
|
|
783
752
|
3. **Trust Aggregation Logic**: Auto-selection based on proven heuristics
|
|
784
753
|
4. **Monitor Logs**: Check reports/ directory for CLI analysis insights
|
|
785
|
-
5. **Dashboard Polling**: Refresh every 5 seconds for real-time updates
|
|
786
|
-
6. **Export Results**: Use dashboard export for external tracking tools
|
|
787
754
|
|
|
788
755
|
## Related Commands
|
|
789
756
|
|
|
757
|
+
### View Review Progress
|
|
758
|
+
Use `ccw view` to open the review dashboard in browser:
|
|
759
|
+
|
|
760
|
+
```bash
|
|
761
|
+
ccw view
|
|
762
|
+
```
|
|
763
|
+
|
|
790
764
|
### Automated Fix Workflow
|
|
791
|
-
After completing a review, use the
|
|
765
|
+
After completing a review, use the generated findings JSON for automated fixing:
|
|
792
766
|
|
|
793
767
|
```bash
|
|
794
768
|
# Step 1: Complete review (this command)
|
|
795
769
|
/workflow:review-session-cycle
|
|
796
770
|
|
|
797
|
-
# Step 2:
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
# Step 3: Run automated fixes
|
|
801
|
-
/workflow:review-fix .workflow/active/WFS-{session-id}/.review/fix-export-{timestamp}.json
|
|
771
|
+
# Step 2: Run automated fixes using dimension findings
|
|
772
|
+
/workflow:review-fix .workflow/active/WFS-{session-id}/.review/
|
|
802
773
|
```
|
|
803
774
|
|
|
804
775
|
See `/workflow:review-fix` for automated fixing with smart grouping, parallel execution, and test verification.
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: start
|
|
3
3
|
description: Discover existing sessions or start new workflow session with intelligent session management and conflict detection
|
|
4
|
-
argument-hint: [--auto|--new] [optional: task description for new session]
|
|
4
|
+
argument-hint: [--type <workflow|review|tdd|test|docs>] [--auto|--new] [optional: task description for new session]
|
|
5
5
|
examples:
|
|
6
6
|
- /workflow:session:start
|
|
7
7
|
- /workflow:session:start --auto "implement OAuth2 authentication"
|
|
8
|
-
- /workflow:session:start --
|
|
8
|
+
- /workflow:session:start --type review "Code review for auth module"
|
|
9
|
+
- /workflow:session:start --type tdd --auto "implement user authentication"
|
|
10
|
+
- /workflow:session:start --type test --new "test payment flow"
|
|
9
11
|
---
|
|
10
12
|
|
|
11
13
|
# Start Workflow Session (/workflow:session:start)
|
|
@@ -17,6 +19,23 @@ Manages workflow sessions with three operation modes: discovery (manual), auto (
|
|
|
17
19
|
1. **Project-level initialization** (first-time only): Creates `.workflow/project.json` for feature registry
|
|
18
20
|
2. **Session-level initialization** (always): Creates session directory structure
|
|
19
21
|
|
|
22
|
+
## Session Types
|
|
23
|
+
|
|
24
|
+
The `--type` parameter classifies sessions for CCW dashboard organization:
|
|
25
|
+
|
|
26
|
+
| Type | Description | Default For |
|
|
27
|
+
|------|-------------|-------------|
|
|
28
|
+
| `workflow` | Standard implementation (default) | `/workflow:plan` |
|
|
29
|
+
| `review` | Code review sessions | `/workflow:review-module-cycle` |
|
|
30
|
+
| `tdd` | TDD-based development | `/workflow:tdd-plan` |
|
|
31
|
+
| `test` | Test generation/fix sessions | `/workflow:test-fix-gen` |
|
|
32
|
+
| `docs` | Documentation sessions | `/memory:docs` |
|
|
33
|
+
|
|
34
|
+
**Validation**: If `--type` is provided with invalid value, return error:
|
|
35
|
+
```
|
|
36
|
+
ERROR: Invalid session type. Valid types: workflow, review, tdd, test, docs
|
|
37
|
+
```
|
|
38
|
+
|
|
20
39
|
## Step 0: Initialize Project State (First-time Only)
|
|
21
40
|
|
|
22
41
|
**Executed before all modes** - Ensures project-level state file exists by calling `/workflow:init`.
|
|
@@ -86,8 +105,8 @@ bash(mkdir -p .workflow/active/WFS-implement-oauth2-auth/.process)
|
|
|
86
105
|
bash(mkdir -p .workflow/active/WFS-implement-oauth2-auth/.task)
|
|
87
106
|
bash(mkdir -p .workflow/active/WFS-implement-oauth2-auth/.summaries)
|
|
88
107
|
|
|
89
|
-
# Create metadata
|
|
90
|
-
bash(echo '{"session_id":"WFS-implement-oauth2-auth","project":"implement OAuth2 auth","status":"planning"}' > .workflow/active/WFS-implement-oauth2-auth/workflow-session.json)
|
|
108
|
+
# Create metadata (include type field, default to "workflow" if not specified)
|
|
109
|
+
bash(echo '{"session_id":"WFS-implement-oauth2-auth","project":"implement OAuth2 auth","status":"planning","type":"workflow","created_at":"2024-12-04T08:00:00Z"}' > .workflow/active/WFS-implement-oauth2-auth/workflow-session.json)
|
|
91
110
|
```
|
|
92
111
|
|
|
93
112
|
**Output**: `SESSION_ID: WFS-implement-oauth2-auth`
|
|
@@ -143,7 +162,8 @@ bash(mkdir -p .workflow/active/WFS-fix-login-bug/.summaries)
|
|
|
143
162
|
|
|
144
163
|
### Step 3: Create Metadata
|
|
145
164
|
```bash
|
|
146
|
-
|
|
165
|
+
# Include type field from --type parameter (default: "workflow")
|
|
166
|
+
bash(echo '{"session_id":"WFS-fix-login-bug","project":"fix login bug","status":"planning","type":"workflow","created_at":"2024-12-04T08:00:00Z"}' > .workflow/active/WFS-fix-login-bug/workflow-session.json)
|
|
147
167
|
```
|
|
148
168
|
|
|
149
169
|
**Output**: `SESSION_ID: WFS-fix-login-bug`
|
|
@@ -44,7 +44,7 @@ allowed-tools: SlashCommand(*), TodoWrite(*), Read(*), Bash(*)
|
|
|
44
44
|
**Step 1.1: Dispatch** - Session discovery and initialization
|
|
45
45
|
|
|
46
46
|
```javascript
|
|
47
|
-
SlashCommand(command="/workflow:session:start --auto \"TDD: [structured-description]\"")
|
|
47
|
+
SlashCommand(command="/workflow:session:start --type tdd --auto \"TDD: [structured-description]\"")
|
|
48
48
|
```
|
|
49
49
|
|
|
50
50
|
**TDD Structured Format**:
|