claude-code-workflow 6.3.48 → 6.3.49

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 (211) hide show
  1. package/.claude/CLAUDE.md +6 -8
  2. package/.claude/agents/action-planning-agent.md +28 -45
  3. package/.claude/agents/cli-lite-planning-agent.md +93 -1
  4. package/.claude/agents/code-developer.md +144 -27
  5. package/.claude/commands/ccw-coordinator.md +175 -21
  6. package/.claude/commands/ccw-debug.md +832 -0
  7. package/.claude/commands/ccw.md +90 -9
  8. package/.claude/commands/cli/cli-init.md +1 -0
  9. package/.claude/commands/issue/convert-to-plan.md +718 -0
  10. package/.claude/commands/issue/from-brainstorm.md +382 -0
  11. package/.claude/commands/memory/tips.md +332 -0
  12. package/.claude/commands/workflow/analyze-with-file.md +804 -0
  13. package/.claude/commands/workflow/brainstorm/auto-parallel.md +18 -43
  14. package/.claude/commands/workflow/brainstorm/role-analysis.md +705 -0
  15. package/.claude/commands/workflow/brainstorm-with-file.md +1153 -0
  16. package/.claude/commands/workflow/debug-with-file.md +7 -5
  17. package/.claude/commands/workflow/execute.md +6 -4
  18. package/.claude/commands/workflow/lite-plan.md +2 -2
  19. package/.claude/commands/workflow/plan-verify.md +162 -327
  20. package/.claude/commands/workflow/plan.md +162 -26
  21. package/.claude/commands/workflow/replan.md +78 -2
  22. package/.claude/commands/workflow/{review-fix.md → review-cycle-fix.md} +6 -6
  23. package/.claude/commands/workflow/review-module-cycle.md +2 -2
  24. package/.claude/commands/workflow/review-session-cycle.md +2 -2
  25. package/.claude/commands/workflow/tools/conflict-resolution.md +16 -26
  26. package/.claude/commands/workflow/tools/context-gather.md +81 -118
  27. package/.claude/commands/workflow/tools/task-generate-agent.md +94 -10
  28. package/.claude/skills/ccw-help/command.json +4 -4
  29. package/.claude/skills/lite-skill-generator/SKILL.md +650 -0
  30. package/.claude/skills/lite-skill-generator/templates/simple-skill.md +68 -0
  31. package/.claude/skills/lite-skill-generator/templates/style-guide.md +64 -0
  32. package/.claude/skills/skill-generator/SKILL.md +277 -85
  33. package/.claude/skills/skill-generator/phases/01-requirements-discovery.md +4 -15
  34. package/.claude/skills/skill-generator/phases/02-structure-generation.md +72 -17
  35. package/.claude/skills/skill-generator/phases/03-phase-generation.md +218 -51
  36. package/.claude/skills/skill-generator/phases/04-specs-templates.md +111 -41
  37. package/.claude/skills/skill-generator/phases/05-validation.md +139 -56
  38. package/.claude/skills/skill-generator/templates/autonomous-action.md +78 -268
  39. package/.claude/skills/skill-generator/templates/autonomous-orchestrator.md +14 -0
  40. package/.claude/skills/skill-generator/templates/code-analysis-action.md +12 -0
  41. package/.claude/skills/skill-generator/templates/llm-action.md +12 -0
  42. package/.claude/skills/skill-generator/templates/script-template.md +368 -0
  43. package/.claude/skills/skill-generator/templates/sequential-phase.md +14 -0
  44. package/.claude/skills/skill-generator/templates/skill-md.md +14 -0
  45. package/.claude/skills/skill-tuning/SKILL.md +130 -266
  46. package/.claude/skills/skill-tuning/phases/orchestrator.md +95 -283
  47. package/.claude/skills/skill-tuning/specs/problem-taxonomy.md +90 -198
  48. package/.claude/skills/skill-tuning/specs/tuning-strategies.md +193 -1345
  49. package/.claude/workflows/cli-templates/schemas/plan-verify-agent-schema.json +47 -0
  50. package/.claude/workflows/cli-templates/schemas/verify-json-schema.json +158 -0
  51. package/.claude/workflows/cli-tools-usage.md +1 -1
  52. package/.codex/AGENTS.md +1 -3
  53. package/.codex/prompts/analyze-with-file.md +607 -0
  54. package/.codex/prompts/brainstorm-to-cycle.md +455 -0
  55. package/.codex/prompts/brainstorm-with-file.md +933 -0
  56. package/.codex/prompts/debug-with-file.md +15 -20
  57. package/.codex/skills/ccw-cli-tools/SKILL.md +559 -0
  58. package/ccw/dist/commands/cli.d.ts.map +1 -1
  59. package/ccw/dist/commands/cli.js +29 -5
  60. package/ccw/dist/commands/cli.js.map +1 -1
  61. package/ccw/dist/commands/issue.d.ts +2 -0
  62. package/ccw/dist/commands/issue.d.ts.map +1 -1
  63. package/ccw/dist/commands/issue.js +62 -20
  64. package/ccw/dist/commands/issue.js.map +1 -1
  65. package/ccw/dist/config/litellm-api-config-manager.d.ts.map +1 -1
  66. package/ccw/dist/config/litellm-api-config-manager.js +5 -3
  67. package/ccw/dist/config/litellm-api-config-manager.js.map +1 -1
  68. package/ccw/dist/config/litellm-provider-models.d.ts +73 -0
  69. package/ccw/dist/config/litellm-provider-models.d.ts.map +1 -0
  70. package/ccw/dist/config/litellm-provider-models.js +172 -0
  71. package/ccw/dist/config/litellm-provider-models.js.map +1 -0
  72. package/ccw/dist/config/provider-models.d.ts +25 -51
  73. package/ccw/dist/config/provider-models.d.ts.map +1 -1
  74. package/ccw/dist/config/provider-models.js +84 -149
  75. package/ccw/dist/config/provider-models.js.map +1 -1
  76. package/ccw/dist/config/storage-paths.d.ts.map +1 -1
  77. package/ccw/dist/config/storage-paths.js +23 -5
  78. package/ccw/dist/config/storage-paths.js.map +1 -1
  79. package/ccw/dist/core/auth/csrf-middleware.js +3 -3
  80. package/ccw/dist/core/auth/csrf-middleware.js.map +1 -1
  81. package/ccw/dist/core/dashboard-generator.d.ts.map +1 -1
  82. package/ccw/dist/core/dashboard-generator.js +3 -1
  83. package/ccw/dist/core/dashboard-generator.js.map +1 -1
  84. package/ccw/dist/core/routes/claude-routes.d.ts.map +1 -1
  85. package/ccw/dist/core/routes/claude-routes.js +206 -14
  86. package/ccw/dist/core/routes/claude-routes.js.map +1 -1
  87. package/ccw/dist/core/routes/cli-routes.d.ts.map +1 -1
  88. package/ccw/dist/core/routes/cli-routes.js.map +1 -1
  89. package/ccw/dist/core/routes/commands-routes.d.ts +7 -0
  90. package/ccw/dist/core/routes/commands-routes.d.ts.map +1 -0
  91. package/ccw/dist/core/routes/commands-routes.js +480 -0
  92. package/ccw/dist/core/routes/commands-routes.js.map +1 -0
  93. package/ccw/dist/core/routes/model-routes.d.ts +11 -0
  94. package/ccw/dist/core/routes/model-routes.d.ts.map +1 -0
  95. package/ccw/dist/core/routes/model-routes.js +112 -0
  96. package/ccw/dist/core/routes/model-routes.js.map +1 -0
  97. package/ccw/dist/core/routes/nav-status-routes.d.ts.map +1 -1
  98. package/ccw/dist/core/routes/nav-status-routes.js +84 -1
  99. package/ccw/dist/core/routes/nav-status-routes.js.map +1 -1
  100. package/ccw/dist/core/routes/provider-routes.d.ts +11 -0
  101. package/ccw/dist/core/routes/provider-routes.d.ts.map +1 -0
  102. package/ccw/dist/core/routes/provider-routes.js +67 -0
  103. package/ccw/dist/core/routes/provider-routes.js.map +1 -0
  104. package/ccw/dist/core/routes/skills-routes.d.ts.map +1 -1
  105. package/ccw/dist/core/routes/skills-routes.js +219 -7
  106. package/ccw/dist/core/routes/skills-routes.js.map +1 -1
  107. package/ccw/dist/core/routes/system-routes.d.ts.map +1 -1
  108. package/ccw/dist/core/routes/system-routes.js +58 -6
  109. package/ccw/dist/core/routes/system-routes.js.map +1 -1
  110. package/ccw/dist/core/server.d.ts.map +1 -1
  111. package/ccw/dist/core/server.js +13 -0
  112. package/ccw/dist/core/server.js.map +1 -1
  113. package/ccw/dist/mcp-server/index.js +2 -2
  114. package/ccw/dist/mcp-server/index.js.map +1 -1
  115. package/ccw/dist/tools/claude-cli-tools.d.ts +48 -11
  116. package/ccw/dist/tools/claude-cli-tools.d.ts.map +1 -1
  117. package/ccw/dist/tools/claude-cli-tools.js +146 -50
  118. package/ccw/dist/tools/claude-cli-tools.js.map +1 -1
  119. package/ccw/dist/tools/cli-config-manager.d.ts +1 -13
  120. package/ccw/dist/tools/cli-config-manager.d.ts.map +1 -1
  121. package/ccw/dist/tools/cli-config-manager.js +3 -27
  122. package/ccw/dist/tools/cli-config-manager.js.map +1 -1
  123. package/ccw/dist/tools/cli-executor-core.d.ts.map +1 -1
  124. package/ccw/dist/tools/cli-executor-core.js +7 -2
  125. package/ccw/dist/tools/cli-executor-core.js.map +1 -1
  126. package/ccw/dist/tools/cli-executor-state.d.ts.map +1 -1
  127. package/ccw/dist/tools/cli-history-store.d.ts +11 -0
  128. package/ccw/dist/tools/cli-history-store.d.ts.map +1 -1
  129. package/ccw/dist/tools/cli-history-store.js +82 -2
  130. package/ccw/dist/tools/cli-history-store.js.map +1 -1
  131. package/ccw/dist/tools/command-registry.d.ts +7 -0
  132. package/ccw/dist/tools/command-registry.d.ts.map +1 -1
  133. package/ccw/dist/tools/command-registry.js +14 -1
  134. package/ccw/dist/tools/command-registry.js.map +1 -1
  135. package/ccw/dist/tools/generate-module-docs.d.ts.map +1 -1
  136. package/ccw/dist/tools/generate-module-docs.js +11 -7
  137. package/ccw/dist/tools/generate-module-docs.js.map +1 -1
  138. package/ccw/dist/tools/litellm-executor.d.ts +1 -0
  139. package/ccw/dist/tools/litellm-executor.d.ts.map +1 -1
  140. package/ccw/dist/tools/litellm-executor.js +11 -9
  141. package/ccw/dist/tools/litellm-executor.js.map +1 -1
  142. package/ccw/dist/types/skill-types.d.ts +97 -0
  143. package/ccw/dist/types/skill-types.d.ts.map +1 -0
  144. package/ccw/dist/types/skill-types.js +6 -0
  145. package/ccw/dist/types/skill-types.js.map +1 -0
  146. package/ccw/src/commands/cli.ts +36 -5
  147. package/ccw/src/commands/issue.ts +81 -26
  148. package/ccw/src/config/litellm-api-config-manager.ts +5 -3
  149. package/ccw/src/config/litellm-provider-models.ts +222 -0
  150. package/ccw/src/config/provider-models.ts +91 -190
  151. package/ccw/src/config/storage-paths.ts +20 -5
  152. package/ccw/src/core/auth/csrf-middleware.ts +3 -3
  153. package/ccw/src/core/dashboard-generator.ts +3 -1
  154. package/ccw/src/core/routes/claude-routes.ts +233 -15
  155. package/ccw/src/core/routes/cli-routes.ts +2 -3
  156. package/ccw/src/core/routes/commands-routes.ts +620 -0
  157. package/ccw/src/core/routes/nav-status-routes.ts +95 -1
  158. package/ccw/src/core/routes/provider-routes.ts +78 -0
  159. package/ccw/src/core/routes/skills-routes.ts +266 -45
  160. package/ccw/src/core/routes/system-routes.ts +102 -50
  161. package/ccw/src/core/server.ts +13 -0
  162. package/ccw/src/mcp-server/index.ts +2 -2
  163. package/ccw/src/templates/dashboard-css/18-cli-settings.css +35 -0
  164. package/ccw/src/templates/dashboard-css/37-commands.css +193 -0
  165. package/ccw/src/templates/dashboard-js/components/navigation.js +4 -0
  166. package/ccw/src/templates/dashboard-js/i18n.js +116 -0
  167. package/ccw/src/templates/dashboard-js/views/cli-manager.js +249 -4
  168. package/ccw/src/templates/dashboard-js/views/commands-manager.js +503 -0
  169. package/ccw/src/templates/dashboard-js/views/issue-manager.js +7 -7
  170. package/ccw/src/templates/dashboard-js/views/mcp-manager.js +2 -7
  171. package/ccw/src/templates/dashboard-js/views/skills-manager.js +164 -23
  172. package/ccw/src/templates/dashboard.html +7 -0
  173. package/ccw/src/tools/claude-cli-tools.ts +170 -56
  174. package/ccw/src/tools/cli-config-manager.ts +2 -33
  175. package/ccw/src/tools/cli-executor-core.ts +8 -2
  176. package/ccw/src/tools/cli-history-store.ts +92 -2
  177. package/ccw/src/tools/command-registry.ts +16 -1
  178. package/ccw/src/tools/generate-module-docs.ts +11 -7
  179. package/ccw/src/tools/litellm-executor.ts +13 -9
  180. package/ccw/src/types/skill-types.ts +99 -0
  181. package/package.json +1 -1
  182. package/.claude/commands/enhance-prompt.md +0 -93
  183. package/.claude/commands/memory/code-map-memory.md +0 -687
  184. package/.claude/commands/memory/docs.md +0 -615
  185. package/.claude/commands/memory/load-skill-memory.md +0 -182
  186. package/.claude/commands/memory/skill-memory.md +0 -525
  187. package/.claude/commands/memory/swagger-docs.md +0 -773
  188. package/.claude/commands/memory/tech-research-rules.md +0 -310
  189. package/.claude/commands/memory/workflow-skill-memory.md +0 -517
  190. package/.claude/commands/task/breakdown.md +0 -208
  191. package/.claude/commands/task/create.md +0 -152
  192. package/.claude/commands/task/execute.md +0 -270
  193. package/.claude/commands/task/replan.md +0 -441
  194. package/.claude/commands/version.md +0 -254
  195. package/.claude/commands/workflow/action-plan-verify.md +0 -485
  196. package/.claude/commands/workflow/brainstorm/api-designer.md +0 -587
  197. package/.claude/commands/workflow/brainstorm/data-architect.md +0 -220
  198. package/.claude/commands/workflow/brainstorm/product-manager.md +0 -200
  199. package/.claude/commands/workflow/brainstorm/product-owner.md +0 -200
  200. package/.claude/commands/workflow/brainstorm/scrum-master.md +0 -200
  201. package/.claude/commands/workflow/brainstorm/subject-matter-expert.md +0 -200
  202. package/.claude/commands/workflow/brainstorm/system-architect.md +0 -389
  203. package/.claude/commands/workflow/brainstorm/ui-designer.md +0 -221
  204. package/.claude/commands/workflow/brainstorm/ux-expert.md +0 -221
  205. package/.claude/commands/workflow/debug.md +0 -331
  206. package/.claude/commands/workflow/develop-with-file.md +0 -1044
  207. package/.claude/skills/ccw-loop/README.md +0 -303
  208. package/.claude/skills/skill-generator/templates/script-bash.md +0 -277
  209. package/.claude/skills/skill-generator/templates/script-python.md +0 -198
  210. package/.codex/prompts/debug.md +0 -318
  211. package/ccw/src/core/routes/mcp-routes.ts.backup +0 -549
@@ -1,485 +0,0 @@
1
- ---
2
- name: plan-verify
3
- description: Perform READ-ONLY verification analysis between IMPL_PLAN.md, task JSONs, and brainstorming artifacts. Generates structured report with quality gate recommendation. Does NOT modify any files.
4
- argument-hint: "[optional: --session session-id]"
5
- allowed-tools: Read(*), Write(*), Glob(*), Bash(*)
6
- ---
7
-
8
- ## User Input
9
-
10
- ```text
11
- $ARGUMENTS
12
- ```
13
-
14
- You **MUST** consider the user input before proceeding (if not empty).
15
-
16
- ## Goal
17
-
18
- Generate a comprehensive verification report that identifies inconsistencies, duplications, ambiguities, and underspecified items between action planning artifacts (`IMPL_PLAN.md`, `task.json`) and brainstorming artifacts (`role analysis documents`). This command MUST run only after `/workflow:plan` has successfully produced complete `IMPL_PLAN.md` and task JSON files.
19
-
20
- **Output**: A structured Markdown report saved to `.workflow/active/WFS-{session}/.process/ACTION_PLAN_VERIFICATION.md` containing:
21
- - Executive summary with quality gate recommendation
22
- - Detailed findings by severity (CRITICAL/HIGH/MEDIUM/LOW)
23
- - Requirements coverage analysis
24
- - Dependency integrity check
25
- - Synthesis alignment validation
26
- - Actionable remediation recommendations
27
-
28
- ## Operating Constraints
29
-
30
- **STRICTLY READ-ONLY FOR SOURCE ARTIFACTS**:
31
- - **MUST NOT** modify `IMPL_PLAN.md`, any `task.json` files, or brainstorming artifacts
32
- - **MUST NOT** create or delete task files
33
- - **MUST ONLY** write the verification report to `.process/ACTION_PLAN_VERIFICATION.md`
34
-
35
- **Synthesis Authority**: The `role analysis documents` are **authoritative** for requirements and design decisions. Any conflicts between IMPL_PLAN/tasks and synthesis are automatically CRITICAL and require adjustment of the plan/tasks—not reinterpretation of requirements.
36
-
37
- **Quality Gate Authority**: The verification report provides a binding recommendation (BLOCK_EXECUTION / PROCEED_WITH_FIXES / PROCEED_WITH_CAUTION / PROCEED) based on objective severity criteria. User MUST review critical/high issues before proceeding with implementation.
38
-
39
- ## Execution Steps
40
-
41
- ### 1. Initialize Analysis Context
42
-
43
- ```bash
44
- # Detect active workflow session
45
- IF --session parameter provided:
46
- session_id = provided session
47
- ELSE:
48
- # Auto-detect active session
49
- active_sessions = bash(find .workflow/active/ -name "WFS-*" -type d 2>/dev/null)
50
- IF active_sessions is empty:
51
- ERROR: "No active workflow session found. Use --session <session-id>"
52
- EXIT
53
- ELSE IF active_sessions has multiple entries:
54
- # Use most recently modified session
55
- session_id = bash(ls -td .workflow/active/WFS-*/ 2>/dev/null | head -1 | xargs basename)
56
- ELSE:
57
- session_id = basename(active_sessions[0])
58
-
59
- # Derive absolute paths
60
- session_dir = .workflow/active/WFS-{session}
61
- brainstorm_dir = session_dir/.brainstorming
62
- task_dir = session_dir/.task
63
- process_dir = session_dir/.process
64
- session_file = session_dir/workflow-session.json
65
-
66
- # Create .process directory if not exists (report output location)
67
- IF NOT EXISTS(process_dir):
68
- bash(mkdir -p "{process_dir}")
69
-
70
- # Validate required artifacts
71
- # Note: "role analysis documents" refers to [role]/analysis.md files (e.g., product-manager/analysis.md)
72
- SYNTHESIS_DIR = brainstorm_dir # Contains role analysis files: */analysis.md
73
- IMPL_PLAN = session_dir/IMPL_PLAN.md
74
- TASK_FILES = Glob(task_dir/*.json)
75
-
76
- # Abort if missing - in order of dependency
77
- SESSION_FILE_EXISTS = EXISTS(session_file)
78
- IF NOT SESSION_FILE_EXISTS:
79
- WARNING: "workflow-session.json not found. User intent alignment verification will be skipped."
80
- # Continue execution - this is optional context, not blocking
81
-
82
- SYNTHESIS_FILES = Glob(brainstorm_dir/*/analysis.md)
83
- IF SYNTHESIS_FILES.count == 0:
84
- ERROR: "No role analysis documents found in .brainstorming/*/analysis.md. Run /workflow:brainstorm:synthesis first"
85
- EXIT
86
-
87
- IF NOT EXISTS(IMPL_PLAN):
88
- ERROR: "IMPL_PLAN.md not found. Run /workflow:plan first"
89
- EXIT
90
-
91
- IF TASK_FILES.count == 0:
92
- ERROR: "No task JSON files found. Run /workflow:plan first"
93
- EXIT
94
- ```
95
-
96
- ### 2. Load Artifacts (Progressive Disclosure)
97
-
98
- Load only minimal necessary context from each artifact:
99
-
100
- **From workflow-session.json** (OPTIONAL - Primary Reference for User Intent):
101
- - **ONLY IF EXISTS**: Load user intent context
102
- - Original user prompt/intent (project or description field)
103
- - User's stated goals and objectives
104
- - User's scope definition
105
- - **IF MISSING**: Set user_intent_analysis = "SKIPPED: workflow-session.json not found"
106
-
107
- **From role analysis documents** (AUTHORITATIVE SOURCE):
108
- - Functional Requirements (IDs, descriptions, acceptance criteria)
109
- - Non-Functional Requirements (IDs, targets)
110
- - Business Requirements (IDs, success metrics)
111
- - Key Architecture Decisions
112
- - Risk factors and mitigation strategies
113
- - Implementation Roadmap (high-level phases)
114
-
115
- **From IMPL_PLAN.md**:
116
- - Summary and objectives
117
- - Context Analysis
118
- - Implementation Strategy
119
- - Task Breakdown Summary
120
- - Success Criteria
121
- - Brainstorming Artifacts References (if present)
122
-
123
- **From task.json files**:
124
- - Task IDs
125
- - Titles and descriptions
126
- - Status
127
- - Dependencies (depends_on, blocks)
128
- - Context (requirements, focus_paths, acceptance, artifacts)
129
- - Flow control (pre_analysis, implementation_approach)
130
- - Meta (complexity, priority)
131
-
132
- ### 3. Build Semantic Models
133
-
134
- Create internal representations (do not include raw artifacts in output):
135
-
136
- **Requirements inventory**:
137
- - Each functional/non-functional/business requirement with stable ID
138
- - Requirement text, acceptance criteria, priority
139
-
140
- **Architecture decisions inventory**:
141
- - ADRs from synthesis
142
- - Technology choices
143
- - Data model references
144
-
145
- **Task coverage mapping**:
146
- - Map each task to one or more requirements (by ID reference or keyword inference)
147
- - Map each requirement to covering tasks
148
-
149
- **Dependency graph**:
150
- - Task-to-task dependencies (depends_on, blocks)
151
- - Requirement-level dependencies (from synthesis)
152
-
153
- ### 4. Detection Passes (Token-Efficient Analysis)
154
-
155
- **Token Budget Strategy**:
156
- - **Total Limit**: 50 findings maximum (aggregate remainder in overflow summary)
157
- - **Priority Allocation**: CRITICAL (unlimited) → HIGH (15) → MEDIUM (20) → LOW (15)
158
- - **Early Exit**: If CRITICAL findings > 0 in User Intent/Requirements Coverage, skip LOW/MEDIUM priority checks
159
-
160
- **Execution Order** (Process in sequence; skip if token budget exhausted):
161
-
162
- 1. **Tier 1 (CRITICAL Path)**: A, B, C - User intent, coverage, consistency (process fully)
163
- 2. **Tier 2 (HIGH Priority)**: D, E - Dependencies, synthesis alignment (limit 15 findings total)
164
- 3. **Tier 3 (MEDIUM Priority)**: F - Specification quality (limit 20 findings)
165
- 4. **Tier 4 (LOW Priority)**: G, H - Duplication, feasibility (limit 15 findings total)
166
-
167
- ---
168
-
169
- #### A. User Intent Alignment (CRITICAL - Tier 1)
170
-
171
- - **Goal Alignment**: IMPL_PLAN objectives match user's original intent
172
- - **Scope Drift**: Plan covers user's stated scope without unauthorized expansion
173
- - **Success Criteria Match**: Plan's success criteria reflect user's expectations
174
- - **Intent Conflicts**: Tasks contradicting user's original objectives
175
-
176
- #### B. Requirements Coverage Analysis
177
-
178
- - **Orphaned Requirements**: Requirements in synthesis with zero associated tasks
179
- - **Unmapped Tasks**: Tasks with no clear requirement linkage
180
- - **NFR Coverage Gaps**: Non-functional requirements (performance, security, scalability) not reflected in tasks
181
-
182
- #### C. Consistency Validation
183
-
184
- - **Requirement Conflicts**: Tasks contradicting synthesis requirements
185
- - **Architecture Drift**: IMPL_PLAN architecture not matching synthesis ADRs
186
- - **Terminology Drift**: Same concept named differently across IMPL_PLAN and tasks
187
- - **Data Model Inconsistency**: Tasks referencing entities/fields not in synthesis data model
188
-
189
- #### D. Dependency Integrity
190
-
191
- - **Circular Dependencies**: Task A depends on B, B depends on C, C depends on A
192
- - **Missing Dependencies**: Task requires outputs from another task but no explicit dependency
193
- - **Broken Dependencies**: Task depends on non-existent task ID
194
- - **Logical Ordering Issues**: Implementation tasks before foundational setup without dependency note
195
-
196
- #### E. Synthesis Alignment
197
-
198
- - **Priority Conflicts**: High-priority synthesis requirements mapped to low-priority tasks
199
- - **Success Criteria Mismatch**: IMPL_PLAN success criteria not covering synthesis acceptance criteria
200
- - **Risk Mitigation Gaps**: Critical risks in synthesis without corresponding mitigation tasks
201
-
202
- #### F. Task Specification Quality
203
-
204
- - **Ambiguous Focus Paths**: Tasks with vague or missing focus_paths
205
- - **Underspecified Acceptance**: Tasks without clear acceptance criteria
206
- - **Missing Artifacts References**: Tasks not referencing relevant brainstorming artifacts in context.artifacts
207
- - **Weak Flow Control**: Tasks without clear implementation_approach or pre_analysis steps
208
- - **Missing Target Files**: Tasks without flow_control.target_files specification
209
-
210
- #### G. Duplication Detection
211
-
212
- - **Overlapping Task Scope**: Multiple tasks with nearly identical descriptions
213
- - **Redundant Requirements Coverage**: Same requirement covered by multiple tasks without clear partitioning
214
-
215
- #### H. Feasibility Assessment
216
-
217
- - **Complexity Misalignment**: Task marked "simple" but requires multiple file modifications
218
- - **Resource Conflicts**: Parallel tasks requiring same resources/files
219
- - **Skill Gap Risks**: Tasks requiring skills not in team capability assessment (from synthesis)
220
-
221
- ### 5. Severity Assignment
222
-
223
- Use this heuristic to prioritize findings:
224
-
225
- - **CRITICAL**:
226
- - Violates user's original intent (goal misalignment, scope drift)
227
- - Violates synthesis authority (requirement conflict)
228
- - Core requirement with zero coverage
229
- - Circular dependencies
230
- - Broken dependencies
231
-
232
- - **HIGH**:
233
- - NFR coverage gaps
234
- - Priority conflicts
235
- - Missing risk mitigation tasks
236
- - Ambiguous acceptance criteria
237
-
238
- - **MEDIUM**:
239
- - Terminology drift
240
- - Missing artifacts references
241
- - Weak flow control
242
- - Logical ordering issues
243
-
244
- - **LOW**:
245
- - Style/wording improvements
246
- - Minor redundancy not affecting execution
247
-
248
- ### 6. Produce Compact Analysis Report
249
-
250
- **Report Generation**: Generate report content and save to file.
251
-
252
- Output a Markdown report with the following structure:
253
-
254
- ```markdown
255
- ## Action Plan Verification Report
256
-
257
- **Session**: WFS-{session-id}
258
- **Generated**: {timestamp}
259
- **Artifacts Analyzed**: role analysis documents, IMPL_PLAN.md, {N} task files
260
-
261
- ---
262
-
263
- ### Executive Summary
264
-
265
- - **Overall Risk Level**: CRITICAL | HIGH | MEDIUM | LOW
266
- - **Recommendation**: (See decision matrix below)
267
- - BLOCK_EXECUTION: Critical issues exist (must fix before proceeding)
268
- - PROCEED_WITH_FIXES: High issues exist, no critical (fix recommended before execution)
269
- - PROCEED_WITH_CAUTION: Medium issues only (proceed with awareness)
270
- - PROCEED: Low issues only or no issues (safe to execute)
271
- - **Critical Issues**: {count}
272
- - **High Issues**: {count}
273
- - **Medium Issues**: {count}
274
- - **Low Issues**: {count}
275
-
276
- ---
277
-
278
- ### Findings Summary
279
-
280
- | ID | Category | Severity | Location(s) | Summary | Recommendation |
281
- |----|----------|----------|-------------|---------|----------------|
282
- | C1 | Coverage | CRITICAL | synthesis:FR-03 | Requirement "User auth" has zero task coverage | Add authentication implementation task |
283
- | H1 | Consistency | HIGH | IMPL-1.2 vs synthesis:ADR-02 | Task uses REST while synthesis specifies GraphQL | Align task with ADR-02 decision |
284
- | M1 | Specification | MEDIUM | IMPL-2.1 | Missing context.artifacts reference | Add @synthesis reference |
285
- | L1 | Duplication | LOW | IMPL-3.1, IMPL-3.2 | Similar scope | Consider merging |
286
-
287
- (Add one row per finding; generate stable IDs prefixed by severity initial.)
288
-
289
- ---
290
-
291
- ### Requirements Coverage Analysis
292
-
293
- | Requirement ID | Requirement Summary | Has Task? | Task IDs | Priority Match | Notes |
294
- |----------------|---------------------|-----------|----------|----------------|-------|
295
- | FR-01 | User authentication | Yes | IMPL-1.1, IMPL-1.2 | Match | Complete |
296
- | FR-02 | Data export | Yes | IMPL-2.3 | Mismatch | High req → Med priority task |
297
- | FR-03 | Profile management | No | - | - | **CRITICAL: Zero coverage** |
298
- | NFR-01 | Response time <200ms | No | - | - | **HIGH: No performance tasks** |
299
-
300
- **Coverage Metrics**:
301
- - Functional Requirements: 85% (17/20 covered)
302
- - Non-Functional Requirements: 40% (2/5 covered)
303
- - Business Requirements: 100% (5/5 covered)
304
-
305
- ---
306
-
307
- ### Unmapped Tasks
308
-
309
- | Task ID | Title | Issue | Recommendation |
310
- |---------|-------|-------|----------------|
311
- | IMPL-4.5 | Refactor utils | No requirement linkage | Link to technical debt or remove |
312
-
313
- ---
314
-
315
- ### Dependency Graph Issues
316
-
317
- **Circular Dependencies**: None detected
318
-
319
- **Broken Dependencies**:
320
- - IMPL-2.3 depends on "IMPL-2.4" (non-existent)
321
-
322
- **Logical Ordering Issues**:
323
- - IMPL-5.1 (integration test) has no dependency on IMPL-1.* (implementation tasks)
324
-
325
- ---
326
-
327
- ### Synthesis Alignment Issues
328
-
329
- | Issue Type | Synthesis Reference | IMPL_PLAN/Task | Impact | Recommendation |
330
- |------------|---------------------|----------------|--------|----------------|
331
- | Architecture Conflict | synthesis:ADR-01 (JWT auth) | IMPL_PLAN uses session cookies | HIGH | Update IMPL_PLAN to use JWT |
332
- | Priority Mismatch | synthesis:FR-02 (High) | IMPL-2.3 (Medium) | MEDIUM | Elevate task priority |
333
- | Missing Risk Mitigation | synthesis:Risk-03 (API rate limits) | No mitigation tasks | HIGH | Add rate limiting implementation task |
334
-
335
- ---
336
-
337
- ### Task Specification Quality Issues
338
-
339
- **Missing Artifacts References**: 12 tasks lack context.artifacts
340
- **Weak Flow Control**: 5 tasks lack implementation_approach
341
- **Missing Target Files**: 8 tasks lack flow_control.target_files
342
-
343
- **Sample Issues**:
344
- - IMPL-1.2: No context.artifacts reference to synthesis
345
- - IMPL-3.1: Missing flow_control.target_files specification
346
- - IMPL-4.2: Vague focus_paths ["src/"] - needs refinement
347
-
348
- ---
349
-
350
- ### Feasibility Concerns
351
-
352
- | Concern | Tasks Affected | Issue | Recommendation |
353
- |---------|----------------|-------|----------------|
354
- | Skill Gap | IMPL-6.1, IMPL-6.2 | Requires Kubernetes expertise not in team | Add training task or external consultant |
355
- | Resource Conflict | IMPL-3.1, IMPL-3.2 | Both modify src/auth/service.ts in parallel | Add dependency or serialize |
356
-
357
- ---
358
-
359
- ### Metrics
360
-
361
- - **Total Requirements**: 30 (20 functional, 5 non-functional, 5 business)
362
- - **Total Tasks**: 25
363
- - **Overall Coverage**: 77% (23/30 requirements with ≥1 task)
364
- - **Critical Issues**: 2
365
- - **High Issues**: 5
366
- - **Medium Issues**: 8
367
- - **Low Issues**: 3
368
-
369
- ---
370
-
371
- ### Next Actions
372
-
373
- #### Action Recommendations
374
-
375
- **Recommendation Decision Matrix**:
376
-
377
- | Condition | Recommendation | Action |
378
- |-----------|----------------|--------|
379
- | Critical > 0 | BLOCK_EXECUTION | Must resolve all critical issues before proceeding |
380
- | Critical = 0, High > 0 | PROCEED_WITH_FIXES | Fix high-priority issues before execution |
381
- | Critical = 0, High = 0, Medium > 0 | PROCEED_WITH_CAUTION | Proceed with awareness of medium issues |
382
- | Only Low or None | PROCEED | Safe to execute workflow |
383
-
384
- **If CRITICAL Issues Exist** (BLOCK_EXECUTION):
385
- - Resolve all critical issues before proceeding
386
- - Use TodoWrite to track required fixes
387
- - Fix broken dependencies and circular references first
388
-
389
- **If HIGH Issues Exist** (PROCEED_WITH_FIXES):
390
- - Fix high-priority issues before execution
391
- - Use TodoWrite to systematically track and complete improvements
392
-
393
- **If Only MEDIUM/LOW Issues** (PROCEED_WITH_CAUTION / PROCEED):
394
- - Can proceed with execution
395
- - Address issues during or after implementation
396
-
397
- #### TodoWrite-Based Remediation Workflow
398
-
399
- **Report Location**: `.workflow/active/WFS-{session}/.process/ACTION_PLAN_VERIFICATION.md`
400
-
401
- **Recommended Workflow**:
402
- 1. **Create TodoWrite Task List**: Extract all findings from report
403
- 2. **Process by Priority**: CRITICAL → HIGH → MEDIUM → LOW
404
- 3. **Complete Each Fix**: Mark tasks as in_progress/completed as you work
405
- 4. **Validate Changes**: Verify each modification against requirements
406
-
407
- **TodoWrite Task Structure Example**:
408
- ```markdown
409
- Priority Order:
410
- 1. Fix coverage gaps (CRITICAL)
411
- 2. Resolve consistency conflicts (CRITICAL/HIGH)
412
- 3. Add missing specifications (MEDIUM)
413
- 4. Improve task quality (LOW)
414
- ```
415
-
416
- **Notes**:
417
- - TodoWrite provides real-time progress tracking
418
- - Each finding becomes a trackable todo item
419
- - User can monitor progress throughout remediation
420
- - Architecture drift in IMPL_PLAN requires manual editing
421
- ```
422
-
423
- ### 7. Save Report and Execute TodoWrite-Based Remediation
424
-
425
- **Step 7.1: Save Analysis Report**:
426
- ```bash
427
- report_path = ".workflow/active/WFS-{session}/.process/ACTION_PLAN_VERIFICATION.md"
428
- Write(report_path, full_report_content)
429
- ```
430
-
431
- **Step 7.2: Display Report Summary to User**:
432
- - Show executive summary with counts
433
- - Display recommendation (BLOCK/PROCEED_WITH_FIXES/PROCEED_WITH_CAUTION/PROCEED)
434
- - List critical and high issues if any
435
-
436
- **Step 7.3: After Report Generation**:
437
-
438
- 1. **Extract Findings**: Parse all issues by severity
439
- 2. **Create TodoWrite Task List**: Convert findings to actionable todos
440
- 3. **Execute Fixes**: Process each todo systematically
441
- 4. **Update Task Files**: Apply modifications directly to task JSON files
442
- 5. **Update IMPL_PLAN**: Apply strategic changes if needed
443
-
444
- At end of report, provide remediation guidance:
445
-
446
- ```markdown
447
- ### 🔧 Remediation Workflow
448
-
449
- **Recommended Approach**:
450
- 1. **Initialize TodoWrite**: Create comprehensive task list from all findings
451
- 2. **Process by Severity**: Start with CRITICAL, then HIGH, MEDIUM, LOW
452
- 3. **Apply Fixes Directly**: Modify task.json files and IMPL_PLAN.md as needed
453
- 4. **Track Progress**: Mark todos as completed after each fix
454
-
455
- **TodoWrite Execution Pattern**:
456
- ```bash
457
- # Step 1: Create task list from verification report
458
- TodoWrite([
459
- { content: "Fix FR-03 coverage gap - add authentication task", status: "pending", activeForm: "Fixing FR-03 coverage gap" },
460
- { content: "Fix IMPL-1.2 consistency - align with ADR-02", status: "pending", activeForm: "Fixing IMPL-1.2 consistency" },
461
- { content: "Add context.artifacts to IMPL-1.2", status: "pending", activeForm: "Adding context.artifacts to IMPL-1.2" },
462
- # ... additional todos for each finding
463
- ])
464
-
465
- # Step 2: Process each todo systematically
466
- # Mark as in_progress when starting
467
- # Apply fix using Read/Edit tools
468
- # Mark as completed when done
469
- # Move to next priority item
470
- ```
471
-
472
- **File Modification Workflow**:
473
- ```bash
474
- # For task JSON modifications:
475
- 1. Read(.workflow/active/WFS-{session}/.task/IMPL-X.Y.json)
476
- 2. Edit() to apply fixes
477
- 3. Mark todo as completed
478
-
479
- # For IMPL_PLAN modifications:
480
- 1. Read(.workflow/active/WFS-{session}/IMPL_PLAN.md)
481
- 2. Edit() to apply strategic changes
482
- 3. Mark todo as completed
483
- ```
484
-
485
- **Note**: All fixes execute immediately after user confirmation without additional commands.