claude-code-workflow 6.0.5 β†’ 6.1.1

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 (118) hide show
  1. package/.claude/agents/action-planning-agent.md +1 -1
  2. package/.claude/agents/cli-execution-agent.md +269 -269
  3. package/.claude/agents/cli-explore-agent.md +182 -182
  4. package/.claude/agents/context-search-agent.md +582 -582
  5. package/.claude/agents/memory-bridge.md +93 -93
  6. package/.claude/commands/cli/cli-init.md +1 -1
  7. package/.claude/commands/memory/docs-full-cli.md +471 -471
  8. package/.claude/commands/memory/docs-related-cli.md +386 -386
  9. package/.claude/commands/memory/docs.md +615 -615
  10. package/.claude/commands/memory/load.md +1 -1
  11. package/.claude/commands/memory/update-full.md +332 -332
  12. package/.claude/commands/memory/update-related.md +5 -5
  13. package/.claude/commands/workflow/init.md +1 -1
  14. package/.claude/commands/workflow/lite-fix.md +621 -621
  15. package/.claude/commands/workflow/lite-plan.md +592 -592
  16. package/.claude/commands/workflow/tools/context-gather.md +434 -434
  17. package/.claude/commands/workflow/ui-design/generate.md +504 -504
  18. package/.claude/commands/workflow/ui-design/import-from-code.md +537 -537
  19. package/.claude/scripts/classify-folders.sh +4 -0
  20. package/.claude/scripts/convert_tokens_to_css.sh +4 -0
  21. package/.claude/scripts/detect_changed_modules.sh +5 -1
  22. package/.claude/scripts/discover-design-files.sh +87 -83
  23. package/.claude/scripts/generate_module_docs.sh +717 -713
  24. package/.claude/scripts/get_modules_by_depth.sh +5 -1
  25. package/.claude/scripts/ui-generate-preview.sh +4 -0
  26. package/.claude/scripts/ui-instantiate-prototypes.sh +4 -0
  27. package/.claude/scripts/update_module_claude.sh +4 -0
  28. package/.claude/skills/command-guide/index/all-commands.json +1 -12
  29. package/.claude/skills/command-guide/index/by-category.json +1 -12
  30. package/.claude/skills/command-guide/index/by-use-case.json +1 -12
  31. package/.claude/skills/command-guide/index/essential-commands.json +1 -12
  32. package/.claude/skills/command-guide/reference/agents/action-planning-agent.md +127 -71
  33. package/.claude/skills/command-guide/reference/agents/cli-execution-agent.md +269 -269
  34. package/.claude/skills/command-guide/reference/agents/cli-explore-agent.md +182 -182
  35. package/.claude/skills/command-guide/reference/agents/conceptual-planning-agent.md +18 -38
  36. package/.claude/skills/command-guide/reference/agents/context-search-agent.md +582 -577
  37. package/.claude/skills/command-guide/reference/agents/memory-bridge.md +93 -93
  38. package/.claude/skills/command-guide/reference/commands/cli/cli-init.md +1 -1
  39. package/.claude/skills/command-guide/reference/commands/memory/docs-full-cli.md +471 -471
  40. package/.claude/skills/command-guide/reference/commands/memory/docs-related-cli.md +386 -386
  41. package/.claude/skills/command-guide/reference/commands/memory/docs.md +615 -610
  42. package/.claude/skills/command-guide/reference/commands/memory/load.md +1 -1
  43. package/.claude/skills/command-guide/reference/commands/memory/update-full.md +332 -332
  44. package/.claude/skills/command-guide/reference/commands/memory/update-related.md +5 -5
  45. package/.claude/skills/command-guide/reference/commands/workflow/brainstorm/artifacts.md +299 -451
  46. package/.claude/skills/command-guide/reference/commands/workflow/brainstorm/auto-parallel.md +14 -37
  47. package/.claude/skills/command-guide/reference/commands/workflow/brainstorm/synthesis.md +252 -350
  48. package/.claude/skills/command-guide/reference/commands/workflow/init.md +2 -2
  49. package/.claude/skills/command-guide/reference/commands/workflow/lite-execute.md +52 -0
  50. package/.claude/skills/command-guide/reference/commands/workflow/lite-fix.md +621 -602
  51. package/.claude/skills/command-guide/reference/commands/workflow/lite-plan.md +46 -36
  52. package/.claude/skills/command-guide/reference/commands/workflow/review-fix.md +18 -58
  53. package/.claude/skills/command-guide/reference/commands/workflow/review-module-cycle.md +22 -52
  54. package/.claude/skills/command-guide/reference/commands/workflow/review-session-cycle.md +19 -48
  55. package/.claude/skills/command-guide/reference/commands/workflow/session/start.md +25 -5
  56. package/.claude/skills/command-guide/reference/commands/workflow/tdd-plan.md +1 -1
  57. package/.claude/skills/command-guide/reference/commands/workflow/test-fix-gen.md +7 -7
  58. package/.claude/skills/command-guide/reference/commands/workflow/tools/context-gather.md +434 -434
  59. package/.claude/skills/command-guide/reference/commands/workflow/tools/task-generate-agent.md +151 -11
  60. package/.claude/skills/command-guide/reference/commands/workflow/tools/task-generate-tdd.md +4 -4
  61. package/.claude/skills/command-guide/reference/commands/workflow/tools/test-task-generate.md +1 -1
  62. package/.claude/skills/command-guide/reference/commands/workflow/ui-design/generate.md +504 -504
  63. package/.claude/skills/command-guide/reference/commands/workflow/ui-design/import-from-code.md +537 -537
  64. package/.claude/workflows/context-search-strategy.md +77 -77
  65. package/.claude/workflows/tool-strategy.md +90 -71
  66. package/.claude/workflows/workflow-architecture.md +1 -1
  67. package/README.md +285 -285
  68. package/ccw/src/cli.js +7 -0
  69. package/ccw/src/commands/tool.js +217 -0
  70. package/ccw/src/core/dashboard-generator.js +18 -3
  71. package/ccw/src/core/lite-scanner.js +35 -11
  72. package/ccw/src/core/server.js +531 -46
  73. package/ccw/src/templates/dashboard-css/01-base.css +161 -0
  74. package/ccw/src/templates/dashboard-css/02-session.css +726 -0
  75. package/ccw/src/templates/dashboard-css/03-tasks.css +512 -0
  76. package/ccw/src/templates/dashboard-css/04-lite-tasks.css +843 -0
  77. package/ccw/src/templates/dashboard-css/05-context.css +2206 -0
  78. package/ccw/src/templates/dashboard-css/06-cards.css +1570 -0
  79. package/ccw/src/templates/dashboard-css/07-managers.css +936 -0
  80. package/ccw/src/templates/dashboard-css/08-review.css +1266 -0
  81. package/ccw/src/templates/dashboard-css/09-explorer.css +1397 -0
  82. package/ccw/src/templates/dashboard-js/components/global-notifications.js +219 -0
  83. package/ccw/src/templates/dashboard-js/components/hook-manager.js +10 -0
  84. package/ccw/src/templates/dashboard-js/components/mcp-manager.js +11 -1
  85. package/ccw/src/templates/dashboard-js/components/navigation.js +11 -5
  86. package/ccw/src/templates/dashboard-js/components/tabs-context.js +20 -20
  87. package/ccw/src/templates/dashboard-js/components/tabs-other.js +11 -11
  88. package/ccw/src/templates/dashboard-js/components/theme.js +29 -1
  89. package/ccw/src/templates/dashboard-js/main.js +4 -0
  90. package/ccw/src/templates/dashboard-js/state.js +5 -0
  91. package/ccw/src/templates/dashboard-js/views/explorer.js +852 -0
  92. package/ccw/src/templates/dashboard-js/views/home.js +13 -9
  93. package/ccw/src/templates/dashboard-js/views/hook-manager.js +8 -5
  94. package/ccw/src/templates/dashboard-js/views/lite-tasks.js +21 -16
  95. package/ccw/src/templates/dashboard-js/views/mcp-manager.js +90 -19
  96. package/ccw/src/templates/dashboard-js/views/project-overview.js +15 -11
  97. package/ccw/src/templates/dashboard-js/views/review-session.js +3 -3
  98. package/ccw/src/templates/dashboard-js/views/session-detail.js +38 -28
  99. package/ccw/src/templates/dashboard.html +129 -28
  100. package/ccw/src/tools/classify-folders.js +204 -0
  101. package/ccw/src/tools/convert-tokens-to-css.js +250 -0
  102. package/ccw/src/tools/detect-changed-modules.js +288 -0
  103. package/ccw/src/tools/discover-design-files.js +134 -0
  104. package/ccw/src/tools/edit-file.js +266 -0
  105. package/ccw/src/tools/generate-module-docs.js +416 -0
  106. package/ccw/src/tools/get-modules-by-depth.js +308 -0
  107. package/ccw/src/tools/index.js +176 -0
  108. package/ccw/src/tools/ui-generate-preview.js +327 -0
  109. package/ccw/src/tools/ui-instantiate-prototypes.js +301 -0
  110. package/ccw/src/tools/update-module-claude.js +380 -0
  111. package/package.json +1 -1
  112. package/.claude/skills/command-guide/reference/commands/workflow/status.md +0 -352
  113. package/ccw/src/core/server.js.bak +0 -385
  114. package/ccw/src/core/server_original.bak +0 -385
  115. package/ccw/src/templates/dashboard.css +0 -8187
  116. package/ccw/src/templates/dashboard_tailwind.html +0 -42
  117. package/ccw/src/templates/dashboard_test.html +0 -37
  118. package/ccw/src/templates/tailwind-base.css +0 -212
@@ -1,4 +1,8 @@
1
1
  #!/bin/bash
2
+ # ⚠️ DEPRECATED: This script is deprecated.
3
+ # Please use: ccw tool exec get_modules_by_depth '{"format":"list","path":"."}' OR ccw tool exec get_modules_by_depth '{}'
4
+ # This file will be removed in a future version.
5
+
2
6
  # Get modules organized by directory depth (deepest first)
3
7
  # Usage: get_modules_by_depth.sh [format]
4
8
  # format: list|grouped|json (default: list)
@@ -163,4 +167,4 @@ get_modules_by_depth() {
163
167
  # Execute function if script is run directly
164
168
  if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
165
169
  get_modules_by_depth "$@"
166
- fi
170
+ fi
@@ -1,4 +1,8 @@
1
1
  #!/bin/bash
2
+ # ⚠️ DEPRECATED: This script is deprecated.
3
+ # Please use: ccw tool exec ui_generate_preview '{"designPath":"design-run-1","outputDir":"preview"}'
4
+ # This file will be removed in a future version.
5
+
2
6
  #
3
7
  # UI Generate Preview v2.0 - Template-Based Preview Generation
4
8
  # Purpose: Generate compare.html and index.html using template substitution
@@ -1,4 +1,8 @@
1
1
  #!/bin/bash
2
+ # ⚠️ DEPRECATED: This script is deprecated.
3
+ # Please use: ccw tool exec ui_instantiate_prototypes '{"designPath":"design-run-1","outputDir":"output"}'
4
+ # This file will be removed in a future version.
5
+
2
6
 
3
7
  # UI Prototype Instantiation Script with Preview Generation (v3.0 - Auto-detect)
4
8
  # Purpose: Generate S Γ— L Γ— P final prototypes from templates + interactive preview files
@@ -1,4 +1,8 @@
1
1
  #!/bin/bash
2
+ # ⚠️ DEPRECATED: This script is deprecated.
3
+ # Please use: ccw tool exec update_module_claude '{"strategy":"single-layer","path":".","tool":"gemini"}'
4
+ # This file will be removed in a future version.
5
+
2
6
  # Update CLAUDE.md for modules with two strategies
3
7
  # Usage: update_module_claude.sh <strategy> <module_path> [tool] [model]
4
8
  # strategy: single-layer|multi-layer
@@ -509,24 +509,13 @@
509
509
  "name": "start",
510
510
  "command": "/workflow:session:start",
511
511
  "description": "Discover existing sessions or start new workflow session with intelligent session management and conflict detection",
512
- "arguments": "[--auto|--new] [optional: task description for new session]",
512
+ "arguments": "[--type <workflow|review|tdd|test|docs>] [--auto|--new] [optional: task description for new session]",
513
513
  "category": "workflow",
514
514
  "subcategory": "session",
515
515
  "usage_scenario": "general",
516
516
  "difficulty": "Intermediate",
517
517
  "file_path": "workflow/session/start.md"
518
518
  },
519
- {
520
- "name": "workflow:status",
521
- "command": "/workflow:status",
522
- "description": "Generate on-demand views for project overview and workflow tasks with optional task-id filtering for detailed view",
523
- "arguments": "[optional: --project|task-id|--validate|--dashboard]",
524
- "category": "workflow",
525
- "subcategory": null,
526
- "usage_scenario": "session-management",
527
- "difficulty": "Beginner",
528
- "file_path": "workflow/status.md"
529
- },
530
519
  {
531
520
  "name": "tdd-plan",
532
521
  "command": "/workflow:tdd-plan",
@@ -358,17 +358,6 @@
358
358
  "difficulty": "Intermediate",
359
359
  "file_path": "workflow/review.md"
360
360
  },
361
- {
362
- "name": "workflow:status",
363
- "command": "/workflow:status",
364
- "description": "Generate on-demand views for project overview and workflow tasks with optional task-id filtering for detailed view",
365
- "arguments": "[optional: --project|task-id|--validate|--dashboard]",
366
- "category": "workflow",
367
- "subcategory": null,
368
- "usage_scenario": "session-management",
369
- "difficulty": "Beginner",
370
- "file_path": "workflow/status.md"
371
- },
372
361
  {
373
362
  "name": "tdd-plan",
374
363
  "command": "/workflow:tdd-plan",
@@ -597,7 +586,7 @@
597
586
  "name": "start",
598
587
  "command": "/workflow:session:start",
599
588
  "description": "Discover existing sessions or start new workflow session with intelligent session management and conflict detection",
600
- "arguments": "[--auto|--new] [optional: task description for new session]",
589
+ "arguments": "[--type <workflow|review|tdd|test|docs>] [--auto|--new] [optional: task description for new session]",
601
590
  "category": "workflow",
602
591
  "subcategory": "session",
603
592
  "usage_scenario": "general",
@@ -224,7 +224,7 @@
224
224
  "name": "start",
225
225
  "command": "/workflow:session:start",
226
226
  "description": "Discover existing sessions or start new workflow session with intelligent session management and conflict detection",
227
- "arguments": "[--auto|--new] [optional: task description for new session]",
227
+ "arguments": "[--type <workflow|review|tdd|test|docs>] [--auto|--new] [optional: task description for new session]",
228
228
  "category": "workflow",
229
229
  "subcategory": "session",
230
230
  "usage_scenario": "general",
@@ -713,17 +713,6 @@
713
713
  "usage_scenario": "session-management",
714
714
  "difficulty": "Intermediate",
715
715
  "file_path": "workflow/session/resume.md"
716
- },
717
- {
718
- "name": "workflow:status",
719
- "command": "/workflow:status",
720
- "description": "Generate on-demand views for project overview and workflow tasks with optional task-id filtering for detailed view",
721
- "arguments": "[optional: --project|task-id|--validate|--dashboard]",
722
- "category": "workflow",
723
- "subcategory": null,
724
- "usage_scenario": "session-management",
725
- "difficulty": "Beginner",
726
- "file_path": "workflow/status.md"
727
716
  }
728
717
  ],
729
718
  "testing": [
@@ -43,22 +43,11 @@
43
43
  "difficulty": "Intermediate",
44
44
  "file_path": "workflow/execute.md"
45
45
  },
46
- {
47
- "name": "workflow:status",
48
- "command": "/workflow:status",
49
- "description": "Generate on-demand views for project overview and workflow tasks with optional task-id filtering for detailed view",
50
- "arguments": "[optional: --project|task-id|--validate|--dashboard]",
51
- "category": "workflow",
52
- "subcategory": null,
53
- "usage_scenario": "session-management",
54
- "difficulty": "Beginner",
55
- "file_path": "workflow/status.md"
56
- },
57
46
  {
58
47
  "name": "start",
59
48
  "command": "/workflow:session:start",
60
49
  "description": "Discover existing sessions or start new workflow session with intelligent session management and conflict detection",
61
- "arguments": "[--auto|--new] [optional: task description for new session]",
50
+ "arguments": "[--type <workflow|review|tdd|test|docs>] [--auto|--new] [optional: task description for new session]",
62
51
  "category": "workflow",
63
52
  "subcategory": "session",
64
53
  "usage_scenario": "general",
@@ -16,11 +16,9 @@ description: |
16
16
  color: yellow
17
17
  ---
18
18
 
19
- You are a pure execution agent specialized in creating actionable implementation plans. You receive requirements and control flags from the command layer and execute planning tasks without complex decision-making logic.
20
-
21
19
  ## Overview
22
20
 
23
- **Agent Role**: Transform user requirements and brainstorming artifacts into structured, executable implementation plans with quantified deliverables and measurable acceptance criteria.
21
+ **Agent Role**: Pure execution agent that transforms user requirements and brainstorming artifacts into structured, executable implementation plans with quantified deliverables and measurable acceptance criteria. Receives requirements and control flags from the command layer and executes planning tasks without complex decision-making logic.
24
22
 
25
23
  **Core Capabilities**:
26
24
  - Load and synthesize context from multiple sources (session metadata, context packages, brainstorming artifacts)
@@ -33,7 +31,7 @@ You are a pure execution agent specialized in creating actionable implementation
33
31
 
34
32
  ---
35
33
 
36
- ## 1. Execution Process
34
+ ## 1. Input & Execution
37
35
 
38
36
  ### 1.1 Input Processing
39
37
 
@@ -50,7 +48,7 @@ You are a pure execution agent specialized in creating actionable implementation
50
48
  - **Control flags**: DEEP_ANALYSIS_REQUIRED, etc.
51
49
  - **Task requirements**: Direct task description
52
50
 
53
- ### 1.2 Two-Phase Execution Flow
51
+ ### 1.2 Execution Flow
54
52
 
55
53
  #### Phase 1: Context Loading & Assembly
56
54
 
@@ -88,6 +86,27 @@ You are a pure execution agent specialized in creating actionable implementation
88
86
  6. Assess task complexity (simple/medium/complex)
89
87
  ```
90
88
 
89
+ **MCP Integration** (when `mcp_capabilities` available):
90
+
91
+ ```javascript
92
+ // Exa Code Context (mcp_capabilities.exa_code = true)
93
+ mcp__exa__get_code_context_exa(
94
+ query="TypeScript OAuth2 JWT authentication patterns",
95
+ tokensNum="dynamic"
96
+ )
97
+
98
+ // Integration in flow_control.pre_analysis
99
+ {
100
+ "step": "local_codebase_exploration",
101
+ "action": "Explore codebase structure",
102
+ "commands": [
103
+ "bash(rg '^(function|class|interface).*[task_keyword]' --type ts -n --max-count 15)",
104
+ "bash(find . -name '*[task_keyword]*' -type f | grep -v node_modules | head -10)"
105
+ ],
106
+ "output_to": "codebase_structure"
107
+ }
108
+ ```
109
+
91
110
  **Context Package Structure** (fields defined by context-search-agent):
92
111
 
93
112
  **Always Present**:
@@ -169,30 +188,6 @@ if (contextPackage.brainstorm_artifacts?.role_analyses?.length > 0) {
169
188
  5. Update session state for execution readiness
170
189
  ```
171
190
 
172
- ### 1.3 MCP Integration Guidelines
173
-
174
- **Exa Code Context** (`mcp_capabilities.exa_code = true`):
175
- ```javascript
176
- // Get best practices and examples
177
- mcp__exa__get_code_context_exa(
178
- query="TypeScript OAuth2 JWT authentication patterns",
179
- tokensNum="dynamic"
180
- )
181
- ```
182
-
183
- **Integration in flow_control.pre_analysis**:
184
- ```json
185
- {
186
- "step": "local_codebase_exploration",
187
- "action": "Explore codebase structure",
188
- "commands": [
189
- "bash(rg '^(function|class|interface).*[task_keyword]' --type ts -n --max-count 15)",
190
- "bash(find . -name '*[task_keyword]*' -type f | grep -v node_modules | head -10)"
191
- ],
192
- "output_to": "codebase_structure"
193
- }
194
- ```
195
-
196
191
  ---
197
192
 
198
193
  ## 2. Output Specifications
@@ -213,7 +208,11 @@ Generate individual `.task/IMPL-*.json` files with the following structure:
213
208
  ```
214
209
 
215
210
  **Field Descriptions**:
216
- - `id`: Task identifier (format: `IMPL-N`)
211
+ - `id`: Task identifier
212
+ - Single module format: `IMPL-N` (e.g., IMPL-001, IMPL-002)
213
+ - Multi-module format: `IMPL-{prefix}{seq}` (e.g., IMPL-A1, IMPL-B1, IMPL-C1)
214
+ - Prefix: A, B, C... (assigned by module detection order)
215
+ - Sequence: 1, 2, 3... (per-module increment)
217
216
  - `title`: Descriptive task name summarizing the work
218
217
  - `status`: Task state - `pending` (not started), `active` (in progress), `completed` (done), `blocked` (waiting on dependencies)
219
218
  - `context_package_path`: Path to smart context package containing project structure, dependencies, and brainstorming artifacts catalog
@@ -225,7 +224,8 @@ Generate individual `.task/IMPL-*.json` files with the following structure:
225
224
  "meta": {
226
225
  "type": "feature|bugfix|refactor|test-gen|test-fix|docs",
227
226
  "agent": "@code-developer|@action-planning-agent|@test-fix-agent|@universal-executor",
228
- "execution_group": "parallel-abc123|null"
227
+ "execution_group": "parallel-abc123|null",
228
+ "module": "frontend|backend|shared|null"
229
229
  }
230
230
  }
231
231
  ```
@@ -234,6 +234,7 @@ Generate individual `.task/IMPL-*.json` files with the following structure:
234
234
  - `type`: Task category - `feature` (new functionality), `bugfix` (fix defects), `refactor` (restructure code), `test-gen` (generate tests), `test-fix` (fix failing tests), `docs` (documentation)
235
235
  - `agent`: Assigned agent for execution
236
236
  - `execution_group`: Parallelization group ID (tasks with same ID can run concurrently) or `null` for sequential tasks
237
+ - `module`: Module identifier for multi-module projects (e.g., `frontend`, `backend`, `shared`) or `null` for single-module
237
238
 
238
239
  **Test Task Extensions** (for type="test-gen" or type="test-fix"):
239
240
 
@@ -391,7 +392,7 @@ Generate individual `.task/IMPL-*.json` files with the following structure:
391
392
  // Pattern: Project structure analysis
392
393
  {
393
394
  "step": "analyze_project_architecture",
394
- "commands": ["bash(~/.claude/scripts/get_modules_by_depth.sh)"],
395
+ "commands": ["bash(ccw tool exec get_modules_by_depth '{}')"],
395
396
  "output_to": "project_architecture"
396
397
  },
397
398
 
@@ -604,10 +605,42 @@ Agent determines CLI tool usage per-step based on user semantics and task nature
604
605
  - Analysis results (technical approach, architecture decisions)
605
606
  - Brainstorming artifacts (role analyses, guidance specifications)
606
607
 
608
+ **Multi-Module Format** (when modules detected):
609
+
610
+ When multiple modules are detected (frontend/backend, etc.), organize IMPL_PLAN.md by module:
611
+
612
+ ```markdown
613
+ # Implementation Plan
614
+
615
+ ## Module A: Frontend (N tasks)
616
+ ### IMPL-A1: [Task Title]
617
+ [Task details...]
618
+
619
+ ### IMPL-A2: [Task Title]
620
+ [Task details...]
621
+
622
+ ## Module B: Backend (N tasks)
623
+ ### IMPL-B1: [Task Title]
624
+ [Task details...]
625
+
626
+ ### IMPL-B2: [Task Title]
627
+ [Task details...]
628
+
629
+ ## Cross-Module Dependencies
630
+ - IMPL-A1 β†’ IMPL-B1 (Frontend depends on Backend API)
631
+ - IMPL-A2 β†’ IMPL-B2 (UI state depends on Backend service)
632
+ ```
633
+
634
+ **Cross-Module Dependency Notation**:
635
+ - During parallel planning, use `CROSS::{module}::{pattern}` format
636
+ - Example: `depends_on: ["CROSS::B::api-endpoint"]`
637
+ - Integration phase resolves to actual task IDs: `CROSS::B::api β†’ IMPL-B1`
638
+
607
639
  ### 2.3 TODO_LIST.md Structure
608
640
 
609
641
  Generate at `.workflow/active/{session_id}/TODO_LIST.md`:
610
642
 
643
+ **Single Module Format**:
611
644
  ```markdown
612
645
  # Tasks: {Session Topic}
613
646
 
@@ -621,30 +654,54 @@ Generate at `.workflow/active/{session_id}/TODO_LIST.md`:
621
654
  - `- [x]` = Completed task
622
655
  ```
623
656
 
657
+ **Multi-Module Format** (hierarchical by module):
658
+ ```markdown
659
+ # Tasks: {Session Topic}
660
+
661
+ ## Module A (Frontend)
662
+ - [ ] **IMPL-A1**: [Task Title] β†’ [πŸ“‹](./.task/IMPL-A1.json)
663
+ - [ ] **IMPL-A2**: [Task Title] β†’ [πŸ“‹](./.task/IMPL-A2.json)
664
+
665
+ ## Module B (Backend)
666
+ - [ ] **IMPL-B1**: [Task Title] β†’ [πŸ“‹](./.task/IMPL-B1.json)
667
+ - [ ] **IMPL-B2**: [Task Title] β†’ [πŸ“‹](./.task/IMPL-B2.json)
668
+
669
+ ## Cross-Module Dependencies
670
+ - IMPL-A1 β†’ IMPL-B1 (Frontend depends on Backend API)
671
+
672
+ ## Status Legend
673
+ - `- [ ]` = Pending task
674
+ - `- [x]` = Completed task
675
+ ```
676
+
624
677
  **Linking Rules**:
625
678
  - Todo items β†’ task JSON: `[πŸ“‹](./.task/IMPL-XXX.json)`
626
679
  - Completed tasks β†’ summaries: `[βœ…](./.summaries/IMPL-XXX-summary.md)`
627
- - Consistent ID schemes: IMPL-XXX
680
+ - Consistent ID schemes: `IMPL-N` (single) or `IMPL-{prefix}{seq}` (multi-module)
628
681
 
629
- ### 2.4 Complexity-Based Structure Selection
682
+ ### 2.4 Complexity & Structure Selection
630
683
 
631
684
  Use `analysis_results.complexity` or task count to determine structure:
632
685
 
633
- **Simple Tasks** (≀5 tasks):
634
- - Flat structure: IMPL_PLAN.md + TODO_LIST.md + task JSONs
635
- - All tasks at same level
686
+ **Single Module Mode**:
687
+ - **Simple Tasks** (≀5 tasks): Flat structure
688
+ - **Medium Tasks** (6-12 tasks): Flat structure
689
+ - **Complex Tasks** (>12 tasks): Re-scope required (maximum 12 tasks hard limit)
636
690
 
637
- **Medium Tasks** (6-12 tasks):
638
- - Flat structure: IMPL_PLAN.md + TODO_LIST.md + task JSONs
639
- - All tasks at same level
691
+ **Multi-Module Mode** (N+1 parallel planning):
692
+ - **Per-module limit**: ≀9 tasks per module
693
+ - **Total limit**: Sum of all module tasks ≀27 (3 modules Γ— 9 tasks)
694
+ - **Task ID format**: `IMPL-{prefix}{seq}` (e.g., IMPL-A1, IMPL-B1)
695
+ - **Structure**: Hierarchical by module in IMPL_PLAN.md and TODO_LIST.md
640
696
 
641
- **Complex Tasks** (>12 tasks):
642
- - **Re-scope required**: Maximum 12 tasks hard limit
643
- - If analysis_results contains >12 tasks, consolidate or request re-scoping
697
+ **Multi-Module Detection Triggers**:
698
+ - Explicit frontend/backend separation (`src/frontend`, `src/backend`)
699
+ - Monorepo structure (`packages/*`, `apps/*`)
700
+ - Context-package dependency clustering (2+ distinct module groups)
644
701
 
645
702
  ---
646
703
 
647
- ## 3. Quality & Standards
704
+ ## 3. Quality Standards
648
705
 
649
706
  ### 3.1 Quantification Requirements (MANDATORY)
650
707
 
@@ -670,47 +727,46 @@ Use `analysis_results.complexity` or task count to determine structure:
670
727
  - [ ] Each implementation step has its own acceptance criteria
671
728
 
672
729
  **Examples**:
673
- - βœ… GOOD: `"Implement 5 commands: [cmd1, cmd2, cmd3, cmd4, cmd5]"`
674
- - ❌ BAD: `"Implement new commands"`
675
- - βœ… GOOD: `"5 files created: verify by ls .claude/commands/*.md | wc -l = 5"`
676
- - ❌ BAD: `"All commands implemented successfully"`
730
+ - GOOD: `"Implement 5 commands: [cmd1, cmd2, cmd3, cmd4, cmd5]"`
731
+ - BAD: `"Implement new commands"`
732
+ - GOOD: `"5 files created: verify by ls .claude/commands/*.md | wc -l = 5"`
733
+ - BAD: `"All commands implemented successfully"`
677
734
 
678
- ### 3.2 Planning Principles
735
+ ### 3.2 Planning & Organization Standards
679
736
 
737
+ **Planning Principles**:
680
738
  - Each stage produces working, testable code
681
739
  - Clear success criteria for each deliverable
682
740
  - Dependencies clearly identified between stages
683
741
  - Incremental progress over big bangs
684
742
 
685
- ### 3.3 File Organization
686
-
743
+ **File Organization**:
687
744
  - Session naming: `WFS-[topic-slug]`
688
- - Task IDs: IMPL-XXX (flat structure only)
689
- - Directory structure: flat task organization
690
-
691
- ### 3.4 Document Standards
745
+ - Task IDs:
746
+ - Single module: `IMPL-N` (e.g., IMPL-001, IMPL-002)
747
+ - Multi-module: `IMPL-{prefix}{seq}` (e.g., IMPL-A1, IMPL-B1)
748
+ - Directory structure: flat task organization (all tasks in `.task/`)
692
749
 
750
+ **Document Standards**:
693
751
  - Proper linking between documents
694
752
  - Consistent navigation and references
695
753
 
696
- ---
697
-
698
- ## 4. Key Reminders
754
+ ### 3.3 Guidelines Checklist
699
755
 
700
756
  **ALWAYS:**
701
- - **Apply Quantification Requirements**: All requirements, acceptance criteria, and modification points MUST include explicit counts and enumerations
702
- - **Load IMPL_PLAN template**: Read(~/.claude/workflows/cli-templates/prompts/workflow/impl-plan-template.txt) before generating IMPL_PLAN.md
703
- - **Use provided context package**: Extract all information from structured context
704
- - **Respect memory-first rule**: Use provided content (already loaded from memory/file)
705
- - **Follow 6-field schema**: All task JSONs must have id, title, status, context_package_path, meta, context, flow_control
706
- - **Map artifacts**: Use artifacts_inventory to populate task.context.artifacts array
707
- - **Add MCP integration**: Include MCP tool steps in flow_control.pre_analysis when capabilities available
708
- - **Validate task count**: Maximum 12 tasks hard limit, request re-scope if exceeded
709
- - **Use session paths**: Construct all paths using provided session_id
710
- - **Link documents properly**: Use correct linking format (πŸ“‹ for JSON, βœ… for summaries)
711
- - **Run validation checklist**: Verify all quantification requirements before finalizing task JSONs
712
- - **Apply 举一反三 principle**: Adapt pre-analysis patterns to task-specific needs dynamically
713
- - **Follow template validation**: Complete IMPL_PLAN.md template validation checklist before finalization
757
+ - Apply Quantification Requirements to all requirements, acceptance criteria, and modification points
758
+ - Load IMPL_PLAN template: `Read(~/.claude/workflows/cli-templates/prompts/workflow/impl-plan-template.txt)` before generating IMPL_PLAN.md
759
+ - Use provided context package: Extract all information from structured context
760
+ - Respect memory-first rule: Use provided content (already loaded from memory/file)
761
+ - Follow 6-field schema: All task JSONs must have id, title, status, context_package_path, meta, context, flow_control
762
+ - Map artifacts: Use artifacts_inventory to populate task.context.artifacts array
763
+ - Add MCP integration: Include MCP tool steps in flow_control.pre_analysis when capabilities available
764
+ - Validate task count: Maximum 12 tasks hard limit, request re-scope if exceeded
765
+ - Use session paths: Construct all paths using provided session_id
766
+ - Link documents properly: Use correct linking format (πŸ“‹ for JSON, βœ… for summaries)
767
+ - Run validation checklist: Verify all quantification requirements before finalizing task JSONs
768
+ - Apply 举一反三 principle: Adapt pre-analysis patterns to task-specific needs dynamically
769
+ - Follow template validation: Complete IMPL_PLAN.md template validation checklist before finalization
714
770
 
715
771
  **NEVER:**
716
772
  - Load files directly (use provided context package instead)