claude-code-workflow 6.3.32 → 6.3.34

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 (476) hide show
  1. package/.claude/CLAUDE.md +6 -1
  2. package/.claude/agents/action-planning-agent.md +885 -885
  3. package/.claude/agents/cli-discuss-agent.md +391 -391
  4. package/.claude/agents/cli-execution-agent.md +7 -6
  5. package/.claude/agents/cli-lite-planning-agent.md +1 -1
  6. package/.claude/agents/cli-planning-agent.md +2 -2
  7. package/.claude/agents/code-developer.md +407 -403
  8. package/.claude/agents/conceptual-planning-agent.md +11 -0
  9. package/.claude/agents/debug-explore-agent.md +3 -3
  10. package/.claude/agents/doc-generator.md +3 -3
  11. package/.claude/agents/issue-plan-agent.md +333 -340
  12. package/.claude/agents/issue-queue-agent.md +1 -1
  13. package/.claude/agents/memory-bridge.md +95 -95
  14. package/.claude/agents/test-context-search-agent.md +402 -402
  15. package/.claude/agents/ui-design-agent.md +595 -595
  16. package/.claude/agents/universal-executor.md +134 -134
  17. package/.claude/commands/cli/codex-review.md +355 -0
  18. package/.claude/commands/issue/discover-by-prompt.md +1 -1
  19. package/.claude/commands/issue/execute.md +581 -581
  20. package/.claude/commands/issue/new.md +413 -413
  21. package/.claude/commands/issue/plan.md +1 -1
  22. package/.claude/commands/issue/queue.md +441 -382
  23. package/.claude/commands/memory/code-map-memory.md +687 -687
  24. package/.claude/commands/memory/compact.md +383 -383
  25. package/.claude/commands/memory/docs-full-cli.md +471 -471
  26. package/.claude/commands/memory/docs-related-cli.md +386 -386
  27. package/.claude/commands/memory/docs.md +615 -615
  28. package/.claude/commands/memory/load-skill-memory.md +182 -182
  29. package/.claude/commands/memory/skill-memory.md +525 -525
  30. package/.claude/commands/memory/style-skill-memory.md +396 -396
  31. package/.claude/commands/memory/swagger-docs.md +773 -773
  32. package/.claude/commands/memory/tech-research-rules.md +2 -2
  33. package/.claude/commands/memory/update-full.md +332 -332
  34. package/.claude/commands/memory/workflow-skill-memory.md +517 -517
  35. package/.claude/commands/task/create.md +151 -151
  36. package/.claude/commands/task/replan.md +436 -436
  37. package/.claude/commands/version.md +254 -254
  38. package/.claude/commands/workflow/brainstorm/api-designer.md +587 -587
  39. package/.claude/commands/workflow/brainstorm/auto-parallel.md +11 -0
  40. package/.claude/commands/workflow/brainstorm/data-architect.md +220 -220
  41. package/.claude/commands/workflow/brainstorm/product-manager.md +200 -200
  42. package/.claude/commands/workflow/brainstorm/product-owner.md +200 -200
  43. package/.claude/commands/workflow/brainstorm/scrum-master.md +200 -200
  44. package/.claude/commands/workflow/brainstorm/subject-matter-expert.md +200 -200
  45. package/.claude/commands/workflow/brainstorm/system-architect.md +389 -389
  46. package/.claude/commands/workflow/brainstorm/ui-designer.md +221 -221
  47. package/.claude/commands/workflow/brainstorm/ux-expert.md +221 -221
  48. package/.claude/commands/workflow/debug-with-file.md +666 -0
  49. package/.claude/commands/workflow/debug.md +327 -327
  50. package/.claude/commands/workflow/execute.md +498 -498
  51. package/.claude/commands/workflow/lite-execute.md +23 -20
  52. package/.claude/commands/workflow/lite-fix.md +631 -631
  53. package/.claude/commands/workflow/lite-lite-lite.md +39 -11
  54. package/.claude/commands/workflow/lite-plan.md +4 -2
  55. package/.claude/commands/workflow/multi-cli-plan.md +97 -39
  56. package/.claude/commands/workflow/plan.md +551 -551
  57. package/.claude/commands/workflow/replan.md +515 -515
  58. package/.claude/commands/workflow/review-fix.md +610 -610
  59. package/.claude/commands/workflow/review-module-cycle.md +771 -771
  60. package/.claude/commands/workflow/review-session-cycle.md +782 -782
  61. package/.claude/commands/workflow/review.md +322 -322
  62. package/.claude/commands/workflow/session/list.md +95 -95
  63. package/.claude/commands/workflow/session/resume.md +60 -60
  64. package/.claude/commands/workflow/session/solidify.md +299 -299
  65. package/.claude/commands/workflow/tdd-plan.md +597 -460
  66. package/.claude/commands/workflow/test-cycle-execute.md +504 -504
  67. package/.claude/commands/workflow/test-fix-gen.md +699 -699
  68. package/.claude/commands/workflow/tools/conflict-resolution.md +2 -2
  69. package/.claude/commands/workflow/tools/task-generate-tdd.md +517 -517
  70. package/.claude/commands/workflow/tools/tdd-coverage-analysis.md +309 -309
  71. package/.claude/commands/workflow/tools/test-concept-enhanced.md +1 -1
  72. package/.claude/commands/workflow/tools/test-context-gather.md +235 -235
  73. package/.claude/commands/workflow/tools/test-task-generate.md +255 -255
  74. package/.claude/commands/workflow/ui-design/animation-extract.md +1150 -1150
  75. package/.claude/commands/workflow/ui-design/design-sync.md +454 -454
  76. package/.claude/commands/workflow/ui-design/explore-auto.md +678 -678
  77. package/.claude/commands/workflow/ui-design/imitate-auto.md +745 -745
  78. package/.claude/commands/workflow/ui-design/layout-extract.md +788 -788
  79. package/.claude/commands/workflow/ui-design/reference-page-generator.md +356 -356
  80. package/.claude/commands/workflow/ui-design/style-extract.md +773 -773
  81. package/.claude/skills/ccw/SKILL.md +522 -352
  82. package/.claude/skills/ccw/command.json +641 -547
  83. package/.claude/skills/ccw-help/SKILL.md +116 -116
  84. package/.claude/skills/ccw-help/command.json +520 -520
  85. package/.claude/skills/copyright-docs/phases/01.5-project-exploration.md +150 -150
  86. package/.claude/skills/copyright-docs/phases/02.5-consolidation.md +192 -192
  87. package/.claude/skills/copyright-docs/templates/agent-base.md +200 -200
  88. package/.claude/skills/project-analyze/phases/03.5-consolidation.md +233 -233
  89. package/.claude/skills/project-analyze/specs/writing-style.md +152 -152
  90. package/.claude/skills/review-code/phases/state-manager.md +752 -752
  91. package/.claude/skills/review-code/specs/rules/index.md +140 -140
  92. package/.claude/skills/skill-generator/specs/cli-integration.md +13 -19
  93. package/.claude/skills/skill-generator/specs/scripting-integration.md +265 -265
  94. package/.claude/skills/skill-generator/templates/code-analysis-action.md +503 -503
  95. package/.claude/skills/skill-generator/templates/llm-action.md +355 -355
  96. package/.claude/skills/skill-generator/templates/script-bash.md +277 -277
  97. package/.claude/skills/skill-generator/templates/script-python.md +198 -198
  98. package/.claude/skills/skill-generator/templates/skill-md.md +235 -235
  99. package/.claude/skills/skill-tuning/SKILL.md +303 -303
  100. package/.claude/skills/skill-tuning/phases/actions/action-abort.md +164 -164
  101. package/.claude/skills/skill-tuning/phases/actions/action-apply-fix.md +206 -206
  102. package/.claude/skills/skill-tuning/phases/actions/action-complete.md +195 -195
  103. package/.claude/skills/skill-tuning/phases/actions/action-diagnose-agent.md +317 -317
  104. package/.claude/skills/skill-tuning/phases/actions/action-diagnose-context.md +243 -243
  105. package/.claude/skills/skill-tuning/phases/actions/action-diagnose-dataflow.md +318 -318
  106. package/.claude/skills/skill-tuning/phases/actions/action-diagnose-memory.md +269 -269
  107. package/.claude/skills/skill-tuning/phases/actions/action-diagnose-token-consumption.md +200 -200
  108. package/.claude/skills/skill-tuning/phases/actions/action-gemini-analysis.md +322 -322
  109. package/.claude/skills/skill-tuning/phases/actions/action-generate-report.md +228 -228
  110. package/.claude/skills/skill-tuning/phases/actions/action-init.md +149 -149
  111. package/.claude/skills/skill-tuning/phases/actions/action-propose-fixes.md +317 -317
  112. package/.claude/skills/skill-tuning/phases/actions/action-verify.md +222 -222
  113. package/.claude/skills/skill-tuning/phases/orchestrator.md +377 -377
  114. package/.claude/skills/skill-tuning/phases/state-schema.md +378 -378
  115. package/.claude/skills/skill-tuning/specs/problem-taxonomy.md +318 -318
  116. package/.claude/skills/skill-tuning/specs/quality-gates.md +263 -263
  117. package/.claude/skills/skill-tuning/specs/tuning-strategies.md +1537 -1537
  118. package/.claude/skills/skill-tuning/templates/diagnosis-report.md +153 -153
  119. package/.claude/skills/skill-tuning/templates/fix-proposal.md +204 -204
  120. package/.claude/skills/software-manual/SKILL.md +184 -184
  121. package/.claude/skills/software-manual/phases/01-requirements-discovery.md +162 -162
  122. package/.claude/skills/software-manual/phases/02-project-exploration.md +101 -101
  123. package/.claude/skills/software-manual/phases/03-parallel-analysis.md +183 -183
  124. package/.claude/skills/software-manual/phases/03.5-consolidation.md +82 -82
  125. package/.claude/skills/software-manual/phases/04-screenshot-capture.md +89 -89
  126. package/.claude/skills/software-manual/phases/05-html-assembly.md +132 -132
  127. package/.claude/skills/software-manual/phases/06-iterative-refinement.md +259 -259
  128. package/.claude/skills/software-manual/scripts/screenshot-helper.md +447 -447
  129. package/.claude/skills/software-manual/scripts/swagger-runner.md +419 -419
  130. package/.claude/skills/software-manual/scripts/typedoc-runner.md +357 -357
  131. package/.claude/skills/software-manual/specs/html-template.md +325 -325
  132. package/.claude/skills/software-manual/specs/quality-standards.md +253 -253
  133. package/.claude/skills/software-manual/specs/writing-style.md +298 -298
  134. package/.claude/skills/text-formatter/SKILL.md +196 -196
  135. package/.claude/skills/text-formatter/phases/01-input-collection.md +111 -111
  136. package/.claude/skills/text-formatter/phases/02-content-analysis.md +248 -248
  137. package/.claude/skills/text-formatter/phases/03-format-transform.md +245 -245
  138. package/.claude/skills/text-formatter/phases/04-output-preview.md +183 -183
  139. package/.claude/skills/text-formatter/specs/callout-types.md +293 -293
  140. package/.claude/skills/text-formatter/specs/element-mapping.md +226 -226
  141. package/.claude/skills/text-formatter/specs/format-rules.md +273 -273
  142. package/.claude/skills/text-formatter/templates/bbcode-template.md +350 -350
  143. package/.claude/workflows/chinese-response.md +25 -25
  144. package/.claude/workflows/cli-templates/memory/style-skill-memory/skill-md-template.md +299 -299
  145. package/.claude/workflows/cli-templates/planning-roles/product-owner.md +261 -261
  146. package/.claude/workflows/cli-templates/prompts/{analysis/03-analyze-performance.txt → analysis-analyze-performance.txt} +29 -29
  147. package/.claude/workflows/cli-templates/prompts/{analysis/03-assess-security-risks.txt → analysis-assess-security-risks.txt} +29 -29
  148. package/.claude/workflows/cli-templates/prompts/{analysis/02-review-architecture.txt → analysis-review-architecture.txt} +29 -29
  149. package/.claude/workflows/cli-templates/prompts/{analysis/02-review-code-quality.txt → analysis-review-code-quality.txt} +28 -28
  150. package/.claude/workflows/cli-templates/prompts/{analysis/03-review-quality-standards.txt → analysis-review-quality-standards.txt} +29 -29
  151. package/.claude/workflows/cli-templates/prompts/{analysis/01-trace-code-execution.txt → analysis-trace-code-execution.txt} +115 -115
  152. package/.claude/workflows/cli-templates/prompts/{documentation/api.txt → documentation-api.txt} +14 -14
  153. package/.claude/workflows/cli-templates/prompts/{documentation/folder-navigation.txt → documentation-folder-navigation.txt} +26 -26
  154. package/.claude/workflows/cli-templates/prompts/{documentation/project-architecture.txt → documentation-project-architecture.txt} +40 -40
  155. package/.claude/workflows/cli-templates/prompts/{documentation/project-examples.txt → documentation-project-examples.txt} +34 -34
  156. package/.claude/workflows/cli-templates/prompts/{documentation/project-readme.txt → documentation-project-readme.txt} +34 -34
  157. package/.claude/workflows/cli-templates/prompts/{documentation/swagger-api.txt → documentation-swagger-api.txt} +266 -266
  158. package/.claude/workflows/cli-templates/prompts/{planning/02-design-component-spec.txt → planning-design-component-spec.txt} +28 -28
  159. package/.claude/workflows/cli-templates/prompts/{verification/codex-technical.txt → verification-codex-technical.txt} +28 -28
  160. package/.claude/workflows/cli-templates/prompts/{verification/cross-validation.txt → verification-cross-validation.txt} +28 -28
  161. package/.claude/workflows/cli-templates/prompts/{verification/gemini-strategic.txt → verification-gemini-strategic.txt} +27 -27
  162. package/.claude/workflows/cli-templates/prompts/{workflow/analysis-results-structure.txt → workflow-analysis-results-structure.txt} +224 -224
  163. package/.claude/workflows/cli-templates/prompts/{workflow/impl-plan-template.txt → workflow-impl-plan-template.txt} +286 -286
  164. package/.claude/workflows/cli-templates/prompts/{workflow/skill-conflict-patterns.txt → workflow-skill-conflict-patterns.txt} +2 -2
  165. package/.claude/workflows/cli-templates/prompts/{workflow/skill-lessons-learned.txt → workflow-skill-lessons-learned.txt} +2 -2
  166. package/.claude/workflows/cli-templates/prompts/{workflow/task-json-agent-mode.txt → workflow-task-json-agent-mode.txt} +123 -123
  167. package/.claude/workflows/cli-templates/schemas/project-guidelines-schema.json +141 -141
  168. package/.claude/workflows/cli-tools-usage.md +113 -117
  169. package/.claude/workflows/coding-philosophy.md +69 -69
  170. package/.claude/workflows/context-tools.md +76 -76
  171. package/.claude/workflows/file-modification.md +64 -64
  172. package/.claude/workflows/review-directory-specification.md +336 -336
  173. package/.claude/workflows/windows-platform.md +19 -19
  174. package/.claude/workflows/workflow-architecture.md +942 -942
  175. package/.codex/prompts/issue-execute.md +176 -70
  176. package/README.md +250 -214
  177. package/ccw/dist/cli.d.ts.map +1 -1
  178. package/ccw/dist/cli.js +15 -0
  179. package/ccw/dist/cli.js.map +1 -1
  180. package/ccw/dist/commands/cli.d.ts +5 -0
  181. package/ccw/dist/commands/cli.d.ts.map +1 -1
  182. package/ccw/dist/commands/cli.js +116 -19
  183. package/ccw/dist/commands/cli.js.map +1 -1
  184. package/ccw/dist/commands/install.d.ts +17 -0
  185. package/ccw/dist/commands/install.d.ts.map +1 -1
  186. package/ccw/dist/commands/install.js +211 -2
  187. package/ccw/dist/commands/install.js.map +1 -1
  188. package/ccw/dist/commands/issue.d.ts.map +1 -1
  189. package/ccw/dist/commands/issue.js +208 -28
  190. package/ccw/dist/commands/issue.js.map +1 -1
  191. package/ccw/dist/commands/uninstall.d.ts.map +1 -1
  192. package/ccw/dist/commands/uninstall.js +22 -1
  193. package/ccw/dist/commands/uninstall.js.map +1 -1
  194. package/ccw/dist/commands/view.d.ts.map +1 -1
  195. package/ccw/dist/commands/view.js +3 -0
  196. package/ccw/dist/commands/view.js.map +1 -1
  197. package/ccw/dist/commands/workflow.d.ts +11 -0
  198. package/ccw/dist/commands/workflow.d.ts.map +1 -0
  199. package/ccw/dist/commands/workflow.js +294 -0
  200. package/ccw/dist/commands/workflow.js.map +1 -0
  201. package/ccw/dist/core/routes/claude-routes.d.ts.map +1 -1
  202. package/ccw/dist/core/routes/claude-routes.js +57 -3
  203. package/ccw/dist/core/routes/claude-routes.js.map +1 -1
  204. package/ccw/dist/core/routes/cli-routes.d.ts +13 -0
  205. package/ccw/dist/core/routes/cli-routes.d.ts.map +1 -1
  206. package/ccw/dist/core/routes/cli-routes.js +46 -0
  207. package/ccw/dist/core/routes/cli-routes.js.map +1 -1
  208. package/ccw/dist/core/routes/hooks-routes.d.ts.map +1 -1
  209. package/ccw/dist/core/routes/hooks-routes.js +33 -0
  210. package/ccw/dist/core/routes/hooks-routes.js.map +1 -1
  211. package/ccw/dist/core/routes/issue-routes.d.ts.map +1 -1
  212. package/ccw/dist/core/routes/issue-routes.js +211 -29
  213. package/ccw/dist/core/routes/issue-routes.js.map +1 -1
  214. package/ccw/dist/core/routes/mcp-routes.d.ts.map +1 -1
  215. package/ccw/dist/core/routes/mcp-routes.js +4 -1
  216. package/ccw/dist/core/routes/mcp-routes.js.map +1 -1
  217. package/ccw/dist/core/routes/rules-routes.d.ts.map +1 -1
  218. package/ccw/dist/core/routes/rules-routes.js +22 -6
  219. package/ccw/dist/core/routes/rules-routes.js.map +1 -1
  220. package/ccw/dist/core/routes/session-routes.d.ts.map +1 -1
  221. package/ccw/dist/core/routes/session-routes.js +23 -1
  222. package/ccw/dist/core/routes/session-routes.js.map +1 -1
  223. package/ccw/dist/mcp-server/index.js +8 -2
  224. package/ccw/dist/mcp-server/index.js.map +1 -1
  225. package/ccw/dist/tools/claude-cli-tools.d.ts.map +1 -1
  226. package/ccw/dist/tools/claude-cli-tools.js +52 -28
  227. package/ccw/dist/tools/claude-cli-tools.js.map +1 -1
  228. package/ccw/dist/tools/cli-executor-core.d.ts.map +1 -1
  229. package/ccw/dist/tools/cli-executor-core.js +33 -8
  230. package/ccw/dist/tools/cli-executor-core.js.map +1 -1
  231. package/ccw/dist/tools/cli-executor-state.d.ts +2 -0
  232. package/ccw/dist/tools/cli-executor-state.d.ts.map +1 -1
  233. package/ccw/dist/tools/cli-executor-state.js.map +1 -1
  234. package/ccw/dist/tools/cli-executor-utils.d.ts +7 -0
  235. package/ccw/dist/tools/cli-executor-utils.d.ts.map +1 -1
  236. package/ccw/dist/tools/cli-executor-utils.js +18 -4
  237. package/ccw/dist/tools/cli-executor-utils.js.map +1 -1
  238. package/ccw/dist/tools/cli-history-store.d.ts +21 -0
  239. package/ccw/dist/tools/cli-history-store.d.ts.map +1 -1
  240. package/ccw/dist/tools/cli-history-store.js +106 -30
  241. package/ccw/dist/tools/cli-history-store.js.map +1 -1
  242. package/ccw/dist/tools/cli-output-converter.d.ts +2 -1
  243. package/ccw/dist/tools/cli-output-converter.d.ts.map +1 -1
  244. package/ccw/dist/tools/cli-output-converter.js +65 -10
  245. package/ccw/dist/tools/cli-output-converter.js.map +1 -1
  246. package/ccw/dist/tools/codex-lens-lsp.d.ts +61 -0
  247. package/ccw/dist/tools/codex-lens-lsp.d.ts.map +1 -0
  248. package/ccw/dist/tools/codex-lens-lsp.js +320 -0
  249. package/ccw/dist/tools/codex-lens-lsp.js.map +1 -0
  250. package/ccw/dist/tools/codex-lens.d.ts.map +1 -1
  251. package/ccw/dist/tools/codex-lens.js +74 -54
  252. package/ccw/dist/tools/codex-lens.js.map +1 -1
  253. package/ccw/dist/tools/index.d.ts.map +1 -1
  254. package/ccw/dist/tools/index.js +4 -0
  255. package/ccw/dist/tools/index.js.map +1 -1
  256. package/ccw/dist/tools/template-discovery.d.ts +85 -0
  257. package/ccw/dist/tools/template-discovery.d.ts.map +1 -0
  258. package/ccw/dist/tools/template-discovery.js +239 -0
  259. package/ccw/dist/tools/template-discovery.js.map +1 -0
  260. package/ccw/dist/tools/vscode-lsp.d.ts +57 -0
  261. package/ccw/dist/tools/vscode-lsp.d.ts.map +1 -0
  262. package/ccw/dist/tools/vscode-lsp.js +250 -0
  263. package/ccw/dist/tools/vscode-lsp.js.map +1 -0
  264. package/ccw/dist/utils/path-resolver.d.ts +16 -2
  265. package/ccw/dist/utils/path-resolver.d.ts.map +1 -1
  266. package/ccw/dist/utils/path-resolver.js +36 -6
  267. package/ccw/dist/utils/path-resolver.js.map +1 -1
  268. package/ccw/dist/utils/path-validator.d.ts +5 -0
  269. package/ccw/dist/utils/path-validator.d.ts.map +1 -1
  270. package/ccw/dist/utils/path-validator.js +16 -5
  271. package/ccw/dist/utils/path-validator.js.map +1 -1
  272. package/ccw/dist/utils/project-root.d.ts +25 -0
  273. package/ccw/dist/utils/project-root.d.ts.map +1 -0
  274. package/ccw/dist/utils/project-root.js +63 -0
  275. package/ccw/dist/utils/project-root.js.map +1 -0
  276. package/ccw/dist/utils/shell-escape.d.ts +47 -3
  277. package/ccw/dist/utils/shell-escape.d.ts.map +1 -1
  278. package/ccw/dist/utils/shell-escape.js +98 -15
  279. package/ccw/dist/utils/shell-escape.js.map +1 -1
  280. package/ccw/dist/utils/update-checker.d.ts +11 -0
  281. package/ccw/dist/utils/update-checker.d.ts.map +1 -0
  282. package/ccw/dist/utils/update-checker.js +167 -0
  283. package/ccw/dist/utils/update-checker.js.map +1 -0
  284. package/ccw/src/cli.ts +16 -0
  285. package/ccw/src/commands/cli.ts +126 -19
  286. package/ccw/src/commands/install.ts +239 -2
  287. package/ccw/src/commands/issue.ts +245 -31
  288. package/ccw/src/commands/uninstall.ts +23 -1
  289. package/ccw/src/commands/view.ts +4 -0
  290. package/ccw/src/commands/workflow.ts +348 -0
  291. package/ccw/src/core/routes/claude-routes.ts +64 -3
  292. package/ccw/src/core/routes/cli-routes.ts +58 -0
  293. package/ccw/src/core/routes/hooks-routes.ts +32 -0
  294. package/ccw/src/core/routes/issue-routes.ts +242 -28
  295. package/ccw/src/core/routes/mcp-routes.ts +6 -2
  296. package/ccw/src/core/routes/rules-routes.ts +24 -6
  297. package/ccw/src/core/routes/session-routes.ts +24 -1
  298. package/ccw/src/mcp-server/index.ts +7 -2
  299. package/ccw/src/templates/dashboard-css/26-claude-manager.css +179 -0
  300. package/ccw/src/templates/dashboard-css/32-issue-manager.css +3427 -3302
  301. package/ccw/src/templates/dashboard-css/33-cli-stream-viewer.css +3 -2
  302. package/ccw/src/templates/dashboard-js/components/cli-history.js +4 -1
  303. package/ccw/src/templates/dashboard-js/components/cli-stream-viewer.js +57 -21
  304. package/ccw/src/templates/dashboard-js/components/hook-manager.js +1492 -1492
  305. package/ccw/src/templates/dashboard-js/components/mcp-manager.js +107 -20
  306. package/ccw/src/templates/dashboard-js/components/version-check.js +135 -1
  307. package/ccw/src/templates/dashboard-js/i18n.js +42 -0
  308. package/ccw/src/templates/dashboard-js/views/claude-manager.js +168 -0
  309. package/ccw/src/templates/dashboard-js/views/cli-manager.js +1 -0
  310. package/ccw/src/templates/dashboard-js/views/issue-manager.js +201 -1
  311. package/ccw/src/templates/dashboard-js/views/lite-tasks.js +3502 -3478
  312. package/ccw/src/templates/dashboard-js/views/mcp-manager.js +16 -0
  313. package/ccw/src/templates/dashboard.html +112 -0
  314. package/ccw/src/tools/claude-cli-tools.ts +54 -28
  315. package/ccw/src/tools/cli-executor-core.ts +36 -8
  316. package/ccw/src/tools/cli-executor-state.ts +2 -0
  317. package/ccw/src/tools/cli-executor-utils.ts +26 -4
  318. package/ccw/src/tools/cli-history-store.ts +122 -31
  319. package/ccw/src/tools/cli-output-converter.ts +76 -12
  320. package/ccw/src/tools/codex-lens-lsp.ts +405 -0
  321. package/ccw/src/tools/codex-lens.ts +82 -59
  322. package/ccw/src/tools/index.ts +4 -0
  323. package/ccw/src/tools/template-discovery.ts +303 -0
  324. package/ccw/src/tools/vscode-lsp.ts +317 -0
  325. package/ccw/src/utils/path-resolver.ts +37 -6
  326. package/ccw/src/utils/path-validator.ts +17 -5
  327. package/ccw/src/utils/project-root.ts +73 -0
  328. package/ccw/src/utils/shell-escape.ts +103 -16
  329. package/ccw/src/utils/update-checker.ts +178 -0
  330. package/codex-lens/pyproject.toml +14 -0
  331. package/codex-lens/src/codexlens/__pycache__/config.cpython-312.pyc +0 -0
  332. package/codex-lens/src/codexlens/__pycache__/config.cpython-313.pyc +0 -0
  333. package/codex-lens/src/codexlens/__pycache__/errors.cpython-312.pyc +0 -0
  334. package/codex-lens/src/codexlens/__pycache__/errors.cpython-313.pyc +0 -0
  335. package/codex-lens/src/codexlens/api/__init__.py +88 -0
  336. package/codex-lens/src/codexlens/api/__pycache__/__init__.cpython-312.pyc +0 -0
  337. package/codex-lens/src/codexlens/api/__pycache__/__init__.cpython-313.pyc +0 -0
  338. package/codex-lens/src/codexlens/api/__pycache__/definition.cpython-312.pyc +0 -0
  339. package/codex-lens/src/codexlens/api/__pycache__/definition.cpython-313.pyc +0 -0
  340. package/codex-lens/src/codexlens/api/__pycache__/file_context.cpython-312.pyc +0 -0
  341. package/codex-lens/src/codexlens/api/__pycache__/file_context.cpython-313.pyc +0 -0
  342. package/codex-lens/src/codexlens/api/__pycache__/hover.cpython-312.pyc +0 -0
  343. package/codex-lens/src/codexlens/api/__pycache__/hover.cpython-313.pyc +0 -0
  344. package/codex-lens/src/codexlens/api/__pycache__/models.cpython-312.pyc +0 -0
  345. package/codex-lens/src/codexlens/api/__pycache__/models.cpython-313.pyc +0 -0
  346. package/codex-lens/src/codexlens/api/__pycache__/references.cpython-312.pyc +0 -0
  347. package/codex-lens/src/codexlens/api/__pycache__/references.cpython-313.pyc +0 -0
  348. package/codex-lens/src/codexlens/api/__pycache__/semantic.cpython-312.pyc +0 -0
  349. package/codex-lens/src/codexlens/api/__pycache__/semantic.cpython-313.pyc +0 -0
  350. package/codex-lens/src/codexlens/api/__pycache__/symbols.cpython-312.pyc +0 -0
  351. package/codex-lens/src/codexlens/api/__pycache__/symbols.cpython-313.pyc +0 -0
  352. package/codex-lens/src/codexlens/api/__pycache__/utils.cpython-312.pyc +0 -0
  353. package/codex-lens/src/codexlens/api/__pycache__/utils.cpython-313.pyc +0 -0
  354. package/codex-lens/src/codexlens/api/definition.py +126 -0
  355. package/codex-lens/src/codexlens/api/file_context.py +271 -0
  356. package/codex-lens/src/codexlens/api/hover.py +148 -0
  357. package/codex-lens/src/codexlens/api/models.py +281 -0
  358. package/codex-lens/src/codexlens/api/references.py +345 -0
  359. package/codex-lens/src/codexlens/api/semantic.py +471 -0
  360. package/codex-lens/src/codexlens/api/symbols.py +146 -0
  361. package/codex-lens/src/codexlens/api/utils.py +153 -0
  362. package/codex-lens/src/codexlens/config.py +7 -0
  363. package/codex-lens/src/codexlens/errors.py +4 -0
  364. package/codex-lens/src/codexlens/hybrid_search/__init__.py +28 -0
  365. package/codex-lens/src/codexlens/hybrid_search/__pycache__/__init__.cpython-312.pyc +0 -0
  366. package/codex-lens/src/codexlens/hybrid_search/__pycache__/__init__.cpython-313.pyc +0 -0
  367. package/codex-lens/src/codexlens/hybrid_search/__pycache__/data_structures.cpython-312.pyc +0 -0
  368. package/codex-lens/src/codexlens/hybrid_search/__pycache__/data_structures.cpython-313.pyc +0 -0
  369. package/codex-lens/src/codexlens/hybrid_search/__pycache__/engine.cpython-313.pyc +0 -0
  370. package/codex-lens/src/codexlens/hybrid_search/data_structures.py +602 -0
  371. package/codex-lens/src/codexlens/lsp/__init__.py +34 -0
  372. package/codex-lens/src/codexlens/lsp/__pycache__/__init__.cpython-312.pyc +0 -0
  373. package/codex-lens/src/codexlens/lsp/__pycache__/__init__.cpython-313.pyc +0 -0
  374. package/codex-lens/src/codexlens/lsp/__pycache__/handlers.cpython-313.pyc +0 -0
  375. package/codex-lens/src/codexlens/lsp/__pycache__/lsp_bridge.cpython-312.pyc +0 -0
  376. package/codex-lens/src/codexlens/lsp/__pycache__/lsp_bridge.cpython-313.pyc +0 -0
  377. package/codex-lens/src/codexlens/lsp/__pycache__/lsp_graph_builder.cpython-312.pyc +0 -0
  378. package/codex-lens/src/codexlens/lsp/__pycache__/lsp_graph_builder.cpython-313.pyc +0 -0
  379. package/codex-lens/src/codexlens/lsp/__pycache__/providers.cpython-313.pyc +0 -0
  380. package/codex-lens/src/codexlens/lsp/__pycache__/server.cpython-313.pyc +0 -0
  381. package/codex-lens/src/codexlens/lsp/__pycache__/standalone_manager.cpython-313.pyc +0 -0
  382. package/codex-lens/src/codexlens/lsp/handlers.py +551 -0
  383. package/codex-lens/src/codexlens/lsp/lsp_bridge.py +834 -0
  384. package/codex-lens/src/codexlens/lsp/lsp_graph_builder.py +375 -0
  385. package/codex-lens/src/codexlens/lsp/providers.py +177 -0
  386. package/codex-lens/src/codexlens/lsp/server.py +263 -0
  387. package/codex-lens/src/codexlens/lsp/standalone_manager.py +1159 -0
  388. package/codex-lens/src/codexlens/mcp/__init__.py +20 -0
  389. package/codex-lens/src/codexlens/mcp/__pycache__/__init__.cpython-313.pyc +0 -0
  390. package/codex-lens/src/codexlens/mcp/__pycache__/hooks.cpython-313.pyc +0 -0
  391. package/codex-lens/src/codexlens/mcp/__pycache__/provider.cpython-313.pyc +0 -0
  392. package/codex-lens/src/codexlens/mcp/__pycache__/schema.cpython-313.pyc +0 -0
  393. package/codex-lens/src/codexlens/mcp/hooks.py +170 -0
  394. package/codex-lens/src/codexlens/mcp/provider.py +202 -0
  395. package/codex-lens/src/codexlens/mcp/schema.py +113 -0
  396. package/codex-lens/src/codexlens/search/__init__.py +53 -15
  397. package/codex-lens/src/codexlens/search/__pycache__/__init__.cpython-312.pyc +0 -0
  398. package/codex-lens/src/codexlens/search/__pycache__/__init__.cpython-313.pyc +0 -0
  399. package/codex-lens/src/codexlens/search/__pycache__/chain_search.cpython-312.pyc +0 -0
  400. package/codex-lens/src/codexlens/search/__pycache__/chain_search.cpython-313.pyc +0 -0
  401. package/codex-lens/src/codexlens/search/__pycache__/hybrid_search.cpython-312.pyc +0 -0
  402. package/codex-lens/src/codexlens/search/__pycache__/hybrid_search.cpython-313.pyc +0 -0
  403. package/codex-lens/src/codexlens/search/__pycache__/ranking.cpython-312.pyc +0 -0
  404. package/codex-lens/src/codexlens/search/__pycache__/ranking.cpython-313.pyc +0 -0
  405. package/codex-lens/src/codexlens/search/association_tree/QUICK_START.md +257 -0
  406. package/codex-lens/src/codexlens/search/association_tree/README.md +188 -0
  407. package/codex-lens/src/codexlens/search/association_tree/__init__.py +21 -0
  408. package/codex-lens/src/codexlens/search/association_tree/__pycache__/__init__.cpython-313.pyc +0 -0
  409. package/codex-lens/src/codexlens/search/association_tree/__pycache__/builder.cpython-313.pyc +0 -0
  410. package/codex-lens/src/codexlens/search/association_tree/__pycache__/data_structures.cpython-313.pyc +0 -0
  411. package/codex-lens/src/codexlens/search/association_tree/__pycache__/deduplicator.cpython-313.pyc +0 -0
  412. package/codex-lens/src/codexlens/search/association_tree/builder.py +450 -0
  413. package/codex-lens/src/codexlens/search/association_tree/data_structures.py +191 -0
  414. package/codex-lens/src/codexlens/search/association_tree/deduplicator.py +301 -0
  415. package/codex-lens/src/codexlens/search/chain_search.py +864 -3
  416. package/codex-lens/src/codexlens/search/clustering/__init__.py +124 -0
  417. package/codex-lens/src/codexlens/search/clustering/__pycache__/__init__.cpython-312.pyc +0 -0
  418. package/codex-lens/src/codexlens/search/clustering/__pycache__/__init__.cpython-313.pyc +0 -0
  419. package/codex-lens/src/codexlens/search/clustering/__pycache__/base.cpython-312.pyc +0 -0
  420. package/codex-lens/src/codexlens/search/clustering/__pycache__/base.cpython-313.pyc +0 -0
  421. package/codex-lens/src/codexlens/search/clustering/__pycache__/dbscan_strategy.cpython-313.pyc +0 -0
  422. package/codex-lens/src/codexlens/search/clustering/__pycache__/factory.cpython-312.pyc +0 -0
  423. package/codex-lens/src/codexlens/search/clustering/__pycache__/factory.cpython-313.pyc +0 -0
  424. package/codex-lens/src/codexlens/search/clustering/__pycache__/frequency_strategy.cpython-312.pyc +0 -0
  425. package/codex-lens/src/codexlens/search/clustering/__pycache__/frequency_strategy.cpython-313.pyc +0 -0
  426. package/codex-lens/src/codexlens/search/clustering/__pycache__/hdbscan_strategy.cpython-313.pyc +0 -0
  427. package/codex-lens/src/codexlens/search/clustering/__pycache__/noop_strategy.cpython-312.pyc +0 -0
  428. package/codex-lens/src/codexlens/search/clustering/__pycache__/noop_strategy.cpython-313.pyc +0 -0
  429. package/codex-lens/src/codexlens/search/clustering/base.py +153 -0
  430. package/codex-lens/src/codexlens/search/clustering/dbscan_strategy.py +197 -0
  431. package/codex-lens/src/codexlens/search/clustering/factory.py +202 -0
  432. package/codex-lens/src/codexlens/search/clustering/frequency_strategy.py +263 -0
  433. package/codex-lens/src/codexlens/search/clustering/hdbscan_strategy.py +153 -0
  434. package/codex-lens/src/codexlens/search/clustering/noop_strategy.py +83 -0
  435. package/codex-lens/src/codexlens/search/hybrid_search.py +194 -2
  436. package/codex-lens/src/codexlens/search/ranking.py +6 -4
  437. package/codex-lens/src/codexlens/semantic/__pycache__/chunker.cpython-312.pyc +0 -0
  438. package/codex-lens/src/codexlens/storage/__pycache__/dir_index.cpython-312.pyc +0 -0
  439. package/codex-lens/src/codexlens/storage/__pycache__/dir_index.cpython-313.pyc +0 -0
  440. package/codex-lens/src/codexlens/storage/__pycache__/global_index.cpython-312.pyc +0 -0
  441. package/codex-lens/src/codexlens/storage/__pycache__/global_index.cpython-313.pyc +0 -0
  442. package/codex-lens/src/codexlens/storage/dir_index.py +172 -0
  443. package/codex-lens/src/codexlens/storage/global_index.py +33 -0
  444. package/package.json +92 -92
  445. /package/.claude/workflows/cli-templates/prompts/{analysis/02-analyze-code-patterns.txt → analysis-analyze-code-patterns.txt} +0 -0
  446. /package/.claude/workflows/cli-templates/prompts/{analysis/02-analyze-technical-document.txt → analysis-analyze-technical-document.txt} +0 -0
  447. /package/.claude/workflows/cli-templates/prompts/{analysis/01-diagnose-bug-root-cause.txt → analysis-diagnose-bug-root-cause.txt} +0 -0
  448. /package/.claude/workflows/cli-templates/prompts/{development/03-debug-runtime-issues.txt → development-debug-runtime-issues.txt} +0 -0
  449. /package/.claude/workflows/cli-templates/prompts/{development/02-generate-tests.txt → development-generate-tests.txt} +0 -0
  450. /package/.claude/workflows/cli-templates/prompts/{development/02-implement-component-ui.txt → development-implement-component-ui.txt} +0 -0
  451. /package/.claude/workflows/cli-templates/prompts/{development/02-implement-feature.txt → development-implement-feature.txt} +0 -0
  452. /package/.claude/workflows/cli-templates/prompts/{development/02-refactor-codebase.txt → development-refactor-codebase.txt} +0 -0
  453. /package/.claude/workflows/cli-templates/prompts/{documentation/module-readme.txt → documentation-module-readme.txt} +0 -0
  454. /package/.claude/workflows/cli-templates/prompts/{memory/02-document-module-structure.txt → memory-document-module-structure.txt} +0 -0
  455. /package/.claude/workflows/cli-templates/prompts/{planning/02-breakdown-task-steps.txt → planning-breakdown-task-steps.txt} +0 -0
  456. /package/.claude/workflows/cli-templates/prompts/{planning/03-evaluate-concept-feasibility.txt → planning-evaluate-concept-feasibility.txt} +0 -0
  457. /package/.claude/workflows/cli-templates/prompts/{planning/01-plan-architecture-design.txt → planning-plan-architecture-design.txt} +0 -0
  458. /package/.claude/workflows/cli-templates/prompts/{planning/03-plan-migration-strategy.txt → planning-plan-migration-strategy.txt} +0 -0
  459. /package/.claude/workflows/cli-templates/prompts/{rules/rule-api.txt → rules-rule-api.txt} +0 -0
  460. /package/.claude/workflows/cli-templates/prompts/{rules/rule-components.txt → rules-rule-components.txt} +0 -0
  461. /package/.claude/workflows/cli-templates/prompts/{rules/rule-config.txt → rules-rule-config.txt} +0 -0
  462. /package/.claude/workflows/cli-templates/prompts/{rules/rule-core.txt → rules-rule-core.txt} +0 -0
  463. /package/.claude/workflows/cli-templates/prompts/{rules/rule-patterns.txt → rules-rule-patterns.txt} +0 -0
  464. /package/.claude/workflows/cli-templates/prompts/{rules/rule-testing.txt → rules-rule-testing.txt} +0 -0
  465. /package/.claude/workflows/cli-templates/prompts/{rules/tech-rules-agent-prompt.txt → rules-tech-rules-agent-prompt.txt} +0 -0
  466. /package/.claude/workflows/cli-templates/prompts/{tech/tech-module-format.txt → tech-tech-module-format.txt} +0 -0
  467. /package/.claude/workflows/cli-templates/prompts/{tech/tech-skill-index.txt → tech-tech-skill-index.txt} +0 -0
  468. /package/.claude/workflows/cli-templates/prompts/{test/test-concept-analysis.txt → test-test-concept-analysis.txt} +0 -0
  469. /package/.claude/workflows/cli-templates/prompts/{universal/00-universal-creative-style.txt → universal-universal-creative-style.txt} +0 -0
  470. /package/.claude/workflows/cli-templates/prompts/{universal/00-universal-rigorous-style.txt → universal-universal-rigorous-style.txt} +0 -0
  471. /package/.claude/workflows/cli-templates/prompts/{workflow/codex-feasibility-validation.txt → workflow-codex-feasibility-validation.txt} +0 -0
  472. /package/.claude/workflows/cli-templates/prompts/{workflow/gemini-solution-design.txt → workflow-gemini-solution-design.txt} +0 -0
  473. /package/.claude/workflows/cli-templates/prompts/{workflow/skill-aggregation.txt → workflow-skill-aggregation.txt} +0 -0
  474. /package/.claude/workflows/cli-templates/prompts/{workflow/skill-index.txt → workflow-skill-index.txt} +0 -0
  475. /package/.claude/workflows/cli-templates/prompts/{workflow/skill-sessions-timeline.txt → workflow-skill-sessions-timeline.txt} +0 -0
  476. /package/.claude/workflows/cli-templates/prompts/{workflow/task-json-cli-mode.txt → workflow-task-json-cli-mode.txt} +0 -0
@@ -1,547 +1,641 @@
1
- {
2
- "_metadata": {
3
- "version": "2.0.0",
4
- "description": "Unified CCW command index with capabilities, flows, and intent rules"
5
- },
6
-
7
- "capabilities": {
8
- "explore": {
9
- "description": "Codebase exploration and context gathering",
10
- "commands": ["/workflow:init", "/workflow:tools:gather", "/memory:load"],
11
- "agents": ["cli-explore-agent", "context-search-agent"]
12
- },
13
- "brainstorm": {
14
- "description": "Multi-perspective analysis and ideation",
15
- "commands": ["/workflow:brainstorm:auto-parallel", "/workflow:brainstorm:artifacts", "/workflow:brainstorm:synthesis"],
16
- "roles": ["product-manager", "system-architect", "ux-expert", "data-architect", "api-designer"]
17
- },
18
- "plan": {
19
- "description": "Task planning and decomposition",
20
- "commands": ["/workflow:lite-plan", "/workflow:plan", "/workflow:tdd-plan", "/task:create", "/task:breakdown"],
21
- "agents": ["cli-lite-planning-agent", "action-planning-agent"]
22
- },
23
- "verify": {
24
- "description": "Plan and quality verification",
25
- "commands": ["/workflow:action-plan-verify", "/workflow:tdd-verify"]
26
- },
27
- "execute": {
28
- "description": "Task execution and implementation",
29
- "commands": ["/workflow:lite-execute", "/workflow:execute", "/task:execute"],
30
- "agents": ["code-developer", "cli-execution-agent", "universal-executor"]
31
- },
32
- "bugfix": {
33
- "description": "Bug diagnosis and fixing",
34
- "commands": ["/workflow:lite-fix"],
35
- "agents": ["code-developer"]
36
- },
37
- "test": {
38
- "description": "Test generation and execution",
39
- "commands": ["/workflow:test-gen", "/workflow:test-fix-gen", "/workflow:test-cycle-execute"],
40
- "agents": ["test-fix-agent"]
41
- },
42
- "review": {
43
- "description": "Code review and quality analysis",
44
- "commands": ["/workflow:review-session-cycle", "/workflow:review-module-cycle", "/workflow:review", "/workflow:review-fix"]
45
- },
46
- "issue": {
47
- "description": "Issue lifecycle management - discover, accumulate, batch resolve",
48
- "commands": ["/issue:new", "/issue:discover", "/issue:discover-by-prompt", "/issue:plan", "/issue:queue", "/issue:execute", "/issue:manage"],
49
- "agents": ["issue-plan-agent", "issue-queue-agent", "cli-explore-agent"],
50
- "lifecycle": {
51
- "accumulation": {
52
- "description": "任务完成后进行需求扩展、bug分析、测试发现",
53
- "triggers": ["post-task review", "code review findings", "test failures"],
54
- "commands": ["/issue:discover", "/issue:discover-by-prompt", "/issue:new"]
55
- },
56
- "batch_resolution": {
57
- "description": "积累的issue集中规划和并行执行",
58
- "flow": ["plan", "queue", "execute"],
59
- "commands": ["/issue:plan --all-pending", "/issue:queue", "/issue:execute"]
60
- }
61
- }
62
- },
63
- "ui-design": {
64
- "description": "UI design and prototyping",
65
- "commands": ["/workflow:ui-design:explore-auto", "/workflow:ui-design:imitate-auto", "/workflow:ui-design:design-sync"],
66
- "agents": ["ui-design-agent"]
67
- },
68
- "memory": {
69
- "description": "Documentation and knowledge management",
70
- "commands": ["/memory:docs", "/memory:update-related", "/memory:update-full", "/memory:skill-memory"],
71
- "agents": ["doc-generator", "memory-bridge"]
72
- }
73
- },
74
-
75
- "flows": {
76
- "rapid": {
77
- "name": "Rapid Iteration",
78
- "description": "多模型协作分析 + 直接执行",
79
- "complexity": ["low", "medium"],
80
- "steps": [
81
- { "command": "/workflow:lite-plan", "optional": false, "auto_continue": true },
82
- { "command": "/workflow:lite-execute", "optional": false }
83
- ],
84
- "cli_hints": {
85
- "explore_phase": { "tool": "gemini", "mode": "analysis", "trigger": "needs_exploration" },
86
- "execution": { "tool": "codex", "mode": "write", "trigger": "complexity >= medium" }
87
- },
88
- "estimated_time": "15-45 min"
89
- },
90
- "full": {
91
- "name": "Full Exploration",
92
- "description": "头脑风暴 + 规划 + 执行",
93
- "complexity": ["medium", "high"],
94
- "steps": [
95
- { "command": "/workflow:brainstorm:auto-parallel", "optional": false, "confirm_before": true },
96
- { "command": "/workflow:plan", "optional": false },
97
- { "command": "/workflow:action-plan-verify", "optional": true, "auto_continue": true },
98
- { "command": "/workflow:execute", "optional": false }
99
- ],
100
- "cli_hints": {
101
- "role_analysis": { "tool": "gemini", "mode": "analysis", "trigger": "always", "parallel": true },
102
- "execution": { "tool": "codex", "mode": "write", "trigger": "task_count >= 3" }
103
- },
104
- "estimated_time": "1-3 hours"
105
- },
106
- "coupled": {
107
- "name": "Coupled Planning",
108
- "description": "完整规划 + 验证 + 执行",
109
- "complexity": ["high"],
110
- "steps": [
111
- { "command": "/workflow:plan", "optional": false },
112
- { "command": "/workflow:action-plan-verify", "optional": false, "auto_continue": true },
113
- { "command": "/workflow:execute", "optional": false },
114
- { "command": "/workflow:review", "optional": true }
115
- ],
116
- "cli_hints": {
117
- "pre_analysis": { "tool": "gemini", "mode": "analysis", "trigger": "always" },
118
- "execution": { "tool": "codex", "mode": "write", "trigger": "always" }
119
- },
120
- "estimated_time": "2-4 hours"
121
- },
122
- "bugfix": {
123
- "name": "Bug Fix",
124
- "description": "智能诊断 + 修复",
125
- "complexity": ["low", "medium"],
126
- "variants": {
127
- "standard": [{ "command": "/workflow:lite-fix", "optional": false }],
128
- "hotfix": [{ "command": "/workflow:lite-fix --hotfix", "optional": false }]
129
- },
130
- "cli_hints": {
131
- "diagnosis": { "tool": "gemini", "mode": "analysis", "trigger": "always" },
132
- "fix": { "tool": "codex", "mode": "write", "trigger": "severity >= medium" }
133
- },
134
- "estimated_time": "10-30 min"
135
- },
136
- "issue": {
137
- "name": "Issue Lifecycle",
138
- "description": "发现积累 批量规划 队列优化 并行执行",
139
- "complexity": ["medium", "high"],
140
- "phases": {
141
- "accumulation": {
142
- "description": "项目迭代中持续发现和积累issue",
143
- "commands": ["/issue:discover", "/issue:new"],
144
- "trigger": "post-task, code-review, test-failure"
145
- },
146
- "resolution": {
147
- "description": "集中规划和执行积累的issue",
148
- "steps": [
149
- { "command": "/issue:plan --all-pending", "optional": false },
150
- { "command": "/issue:queue", "optional": false },
151
- { "command": "/issue:execute", "optional": false }
152
- ]
153
- }
154
- },
155
- "cli_hints": {
156
- "discovery": { "tool": "gemini", "mode": "analysis", "trigger": "perspective_analysis", "parallel": true },
157
- "solution_generation": { "tool": "gemini", "mode": "analysis", "trigger": "always", "parallel": true },
158
- "batch_execution": { "tool": "codex", "mode": "write", "trigger": "always" }
159
- },
160
- "estimated_time": "1-4 hours"
161
- },
162
- "lite-lite-lite": {
163
- "name": "Ultra-Lite Multi-CLI",
164
- "description": "零文件 + 自动CLI选择 + 语义描述 + 直接执行",
165
- "complexity": ["low", "medium"],
166
- "steps": [
167
- { "phase": "clarify", "description": "需求澄清 (AskUser if needed)" },
168
- { "phase": "auto-select", "description": "任务分析 自动选择CLI组合" },
169
- { "phase": "multi-cli", "description": "并行多CLI分析" },
170
- { "phase": "decision", "description": "展示结果 → AskUser决策" },
171
- { "phase": "execute", "description": "直接执行 (无中间文件)" }
172
- ],
173
- "vs_multi_cli_plan": {
174
- "artifacts": "None vs IMPL_PLAN.md + plan.json + synthesis.json",
175
- "session": "Stateless vs Persistent",
176
- "cli_selection": "Auto-select based on task analysis vs Config-driven",
177
- "iteration": "Via AskUser vs Via rounds/synthesis",
178
- "execution": "Direct vs Via lite-execute",
179
- "best_for": "Quick fixes, simple features vs Complex multi-step implementations"
180
- },
181
- "cli_hints": {
182
- "analysis": { "tool": "auto", "mode": "analysis", "parallel": true },
183
- "execution": { "tool": "auto", "mode": "write" }
184
- },
185
- "estimated_time": "10-30 min"
186
- },
187
- "multi-cli-plan": {
188
- "name": "Multi-CLI Collaborative Planning",
189
- "description": "ACE上下文 + 多CLI协作分析 + 迭代收敛 + 计划生成",
190
- "complexity": ["medium", "high"],
191
- "steps": [
192
- { "command": "/workflow:multi-cli-plan", "optional": false, "phases": [
193
- "context_gathering: ACE语义搜索",
194
- "multi_cli_discussion: cli-discuss-agent多轮分析",
195
- "present_options: 展示解决方案",
196
- "user_decision: 用户选择",
197
- "plan_generation: cli-lite-planning-agent生成计划"
198
- ]},
199
- { "command": "/workflow:lite-execute", "optional": false }
200
- ],
201
- "vs_lite_plan": {
202
- "context": "ACE semantic search vs Manual file patterns",
203
- "analysis": "Multi-CLI cross-verification vs Single-pass planning",
204
- "iteration": "Multiple rounds until convergence vs Single round",
205
- "confidence": "High (consensus-based) vs Medium (single perspective)",
206
- "best_for": "Complex tasks needing multiple perspectives vs Straightforward implementations"
207
- },
208
- "agents": ["cli-discuss-agent", "cli-lite-planning-agent"],
209
- "cli_hints": {
210
- "discussion": { "tools": ["gemini", "codex", "claude"], "mode": "analysis", "parallel": true },
211
- "planning": { "tool": "gemini", "mode": "analysis" }
212
- },
213
- "output": ".workflow/.multi-cli-plan/{session-id}/",
214
- "estimated_time": "30-90 min"
215
- },
216
- "tdd": {
217
- "name": "Test-Driven Development",
218
- "description": "TDD规划 + 执行 + 验证",
219
- "complexity": ["medium", "high"],
220
- "steps": [
221
- { "command": "/workflow:tdd-plan", "optional": false },
222
- { "command": "/workflow:execute", "optional": false },
223
- { "command": "/workflow:tdd-verify", "optional": false }
224
- ],
225
- "cli_hints": {
226
- "test_strategy": { "tool": "gemini", "mode": "analysis", "trigger": "always" },
227
- "red_green_refactor": { "tool": "codex", "mode": "write", "trigger": "always" }
228
- },
229
- "estimated_time": "1-3 hours"
230
- },
231
- "ui": {
232
- "name": "UI-First Development",
233
- "description": "UI设计 + 规划 + 执行",
234
- "complexity": ["medium", "high"],
235
- "variants": {
236
- "explore": [
237
- { "command": "/workflow:ui-design:explore-auto", "optional": false },
238
- { "command": "/workflow:ui-design:design-sync", "optional": false, "auto_continue": true },
239
- { "command": "/workflow:plan", "optional": false },
240
- { "command": "/workflow:execute", "optional": false }
241
- ],
242
- "imitate": [
243
- { "command": "/workflow:ui-design:imitate-auto", "optional": false },
244
- { "command": "/workflow:ui-design:design-sync", "optional": false, "auto_continue": true },
245
- { "command": "/workflow:plan", "optional": false },
246
- { "command": "/workflow:execute", "optional": false }
247
- ]
248
- },
249
- "estimated_time": "2-4 hours"
250
- },
251
- "review-fix": {
252
- "name": "Review and Fix",
253
- "description": "多维审查 + 自动修复",
254
- "complexity": ["medium"],
255
- "steps": [
256
- { "command": "/workflow:review-session-cycle", "optional": false },
257
- { "command": "/workflow:review-fix", "optional": true }
258
- ],
259
- "cli_hints": {
260
- "multi_dimension_review": { "tool": "gemini", "mode": "analysis", "trigger": "always", "parallel": true },
261
- "auto_fix": { "tool": "codex", "mode": "write", "trigger": "findings_count >= 3" }
262
- },
263
- "estimated_time": "30-90 min"
264
- },
265
- "docs": {
266
- "name": "Documentation",
267
- "description": "批量文档生成",
268
- "complexity": ["low", "medium"],
269
- "variants": {
270
- "incremental": [{ "command": "/memory:update-related", "optional": false }],
271
- "full": [
272
- { "command": "/memory:docs", "optional": false },
273
- { "command": "/workflow:execute", "optional": false }
274
- ]
275
- },
276
- "estimated_time": "15-60 min"
277
- }
278
- },
279
-
280
- "intent_rules": {
281
- "bugfix": {
282
- "priority": 1,
283
- "variants": {
284
- "hotfix": {
285
- "patterns": ["hotfix", "urgent", "production", "critical", "emergency", "紧急", "生产环境", "线上"],
286
- "flow": "bugfix.hotfix"
287
- },
288
- "standard": {
289
- "patterns": ["fix", "bug", "error", "issue", "crash", "broken", "fail", "wrong", "修复", "错误", "崩溃"],
290
- "flow": "bugfix.standard"
291
- }
292
- }
293
- },
294
- "issue_batch": {
295
- "priority": 2,
296
- "patterns": {
297
- "batch": ["issues", "batch", "queue", "多个", "批量"],
298
- "action": ["fix", "resolve", "处理", "解决"]
299
- },
300
- "require_both": true,
301
- "flow": "issue"
302
- },
303
- "exploration": {
304
- "priority": 3,
305
- "patterns": ["不确定", "不知道", "explore", "研究", "分析一下", "怎么做", "what if", "探索"],
306
- "flow": "full"
307
- },
308
- "ui_design": {
309
- "priority": 4,
310
- "patterns": ["ui", "界面", "design", "设计", "component", "组件", "style", "样式", "layout", "布局"],
311
- "variants": {
312
- "imitate": { "triggers": ["参考", "模仿", "像", "类似"], "flow": "ui.imitate" },
313
- "explore": { "triggers": [], "flow": "ui.explore" }
314
- }
315
- },
316
- "tdd": {
317
- "priority": 5,
318
- "patterns": ["tdd", "test-driven", "测试驱动", "先写测试", "test first"],
319
- "flow": "tdd"
320
- },
321
- "review": {
322
- "priority": 6,
323
- "patterns": ["review", "审查", "检查代码", "code review", "质量检查"],
324
- "flow": "review-fix"
325
- },
326
- "documentation": {
327
- "priority": 7,
328
- "patterns": ["文档", "documentation", "docs", "readme"],
329
- "variants": {
330
- "incremental": { "triggers": ["更新", "增量"], "flow": "docs.incremental" },
331
- "full": { "triggers": ["全部", "完整"], "flow": "docs.full" }
332
- }
333
- },
334
- "feature": {
335
- "priority": 99,
336
- "complexity_map": {
337
- "high": "coupled",
338
- "medium": "rapid",
339
- "low": "rapid"
340
- }
341
- }
342
- },
343
-
344
- "complexity_indicators": {
345
- "high": {
346
- "threshold": 4,
347
- "patterns": {
348
- "architecture": { "keywords": ["refactor", "重构", "migrate", "迁移", "architect", "架构", "system", "系统"], "weight": 2 },
349
- "multi_module": { "keywords": ["multiple", "多个", "across", "跨", "all", "所有", "entire", "整个"], "weight": 2 },
350
- "integration": { "keywords": ["integrate", "集成", "api", "database", "数据库"], "weight": 1 },
351
- "quality": { "keywords": ["security", "安全", "performance", "性能", "scale", "扩展"], "weight": 1 }
352
- }
353
- },
354
- "medium": { "threshold": 2 },
355
- "low": { "threshold": 0 }
356
- },
357
-
358
- "cli_tools": {
359
- "gemini": {
360
- "strengths": ["超长上下文", "深度分析", "架构理解", "执行流追踪"],
361
- "triggers": ["分析", "理解", "设计", "架构", "诊断"],
362
- "mode": "analysis"
363
- },
364
- "qwen": {
365
- "strengths": ["代码模式识别", "多维度分析"],
366
- "triggers": ["评估", "对比", "验证"],
367
- "mode": "analysis"
368
- },
369
- "codex": {
370
- "strengths": ["精确代码生成", "自主执行"],
371
- "triggers": ["实现", "重构", "修复", "生成"],
372
- "mode": "write"
373
- }
374
- },
375
-
376
- "cli_injection_rules": {
377
- "context_gathering": { "trigger": "file_read >= 50k OR module_count >= 5", "inject": "gemini --mode analysis" },
378
- "pre_planning_analysis": { "trigger": "complexity === high", "inject": "gemini --mode analysis" },
379
- "debug_diagnosis": { "trigger": "intent === bugfix AND root_cause_unclear", "inject": "gemini --mode analysis" },
380
- "code_review": { "trigger": "step === review", "inject": "gemini --mode analysis" },
381
- "implementation": { "trigger": "step === execute AND task_count >= 3", "inject": "codex --mode write" }
382
- },
383
-
384
- "artifact_flow": {
385
- "_description": "定义工作流产出的格式、意图提取和流转规则",
386
-
387
- "outputs": {
388
- "/workflow:lite-plan": {
389
- "artifact": "memory://plan",
390
- "format": "structured_plan",
391
- "fields": ["tasks", "files", "dependencies", "approach"]
392
- },
393
- "/workflow:plan": {
394
- "artifact": ".workflow/{session}/IMPL_PLAN.md",
395
- "format": "markdown_plan",
396
- "fields": ["phases", "tasks", "dependencies", "risks", "test_strategy"]
397
- },
398
- "/workflow:multi-cli-plan": {
399
- "artifact": ".workflow/.multi-cli-plan/{session}/",
400
- "format": "multi_file",
401
- "files": ["IMPL_PLAN.md", "plan.json", "synthesis.json"],
402
- "fields": ["consensus", "divergences", "recommended_approach", "tasks"]
403
- },
404
- "/workflow:lite-execute": {
405
- "artifact": "git_changes",
406
- "format": "code_diff",
407
- "fields": ["modified_files", "added_files", "deleted_files", "build_status"]
408
- },
409
- "/workflow:execute": {
410
- "artifact": ".workflow/{session}/execution_log.json",
411
- "format": "execution_report",
412
- "fields": ["completed_tasks", "pending_tasks", "errors", "warnings"]
413
- },
414
- "/workflow:test-cycle-execute": {
415
- "artifact": ".workflow/{session}/test_results.json",
416
- "format": "test_report",
417
- "fields": ["pass_rate", "failures", "coverage", "duration"]
418
- },
419
- "/workflow:review-session-cycle": {
420
- "artifact": ".workflow/{session}/review_report.md",
421
- "format": "review_report",
422
- "fields": ["findings", "severity_counts", "recommendations"]
423
- },
424
- "/workflow:lite-fix": {
425
- "artifact": "git_changes",
426
- "format": "fix_report",
427
- "fields": ["root_cause", "fix_applied", "files_modified", "verification_status"]
428
- }
429
- },
430
-
431
- "intent_extraction": {
432
- "plan_to_execute": {
433
- "from": ["lite-plan", "plan", "multi-cli-plan"],
434
- "to": ["lite-execute", "execute"],
435
- "extract": {
436
- "tasks": "$.tasks[] | filter(status != 'completed')",
437
- "priority_order": "$.tasks | sort_by(priority)",
438
- "files_to_modify": "$.tasks[].files | flatten | unique",
439
- "dependencies": "$.dependencies",
440
- "context_summary": "$.approach OR $.recommended_approach"
441
- }
442
- },
443
- "execute_to_test": {
444
- "from": ["lite-execute", "execute"],
445
- "to": ["test-cycle-execute", "test-fix-gen"],
446
- "extract": {
447
- "modified_files": "$.modified_files",
448
- "test_scope": "infer_from($.modified_files)",
449
- "build_status": "$.build_status",
450
- "pending_verification": "$.completed_tasks | needs_test"
451
- }
452
- },
453
- "test_to_fix": {
454
- "from": ["test-cycle-execute"],
455
- "to": ["lite-fix", "review-fix"],
456
- "condition": "$.pass_rate < 0.95",
457
- "extract": {
458
- "failures": "$.failures",
459
- "error_messages": "$.failures[].message",
460
- "affected_files": "$.failures[].file",
461
- "suggested_fixes": "$.failures[].suggested_fix"
462
- }
463
- },
464
- "review_to_fix": {
465
- "from": ["review-session-cycle", "review-module-cycle"],
466
- "to": ["review-fix"],
467
- "condition": "$.severity_counts.critical > 0 OR $.severity_counts.high > 3",
468
- "extract": {
469
- "findings": "$.findings | filter(severity in ['critical', 'high'])",
470
- "fix_priority": "$.findings | group_by(category) | sort_by(severity)",
471
- "affected_files": "$.findings[].file | unique"
472
- }
473
- }
474
- },
475
-
476
- "completion_criteria": {
477
- "plan": {
478
- "required": ["has_tasks", "has_files"],
479
- "optional": ["has_tests", "no_blocking_risks"],
480
- "threshold": 0.8,
481
- "routing": {
482
- "complete": "proceed_to_execute",
483
- "incomplete": "clarify_requirements"
484
- }
485
- },
486
- "execute": {
487
- "required": ["all_tasks_attempted", "no_critical_errors"],
488
- "optional": ["build_passes", "lint_passes"],
489
- "threshold": 1.0,
490
- "routing": {
491
- "complete": "proceed_to_test_or_review",
492
- "partial": "continue_execution",
493
- "failed": "diagnose_and_retry"
494
- }
495
- },
496
- "test": {
497
- "metrics": {
498
- "pass_rate": { "target": 0.95, "minimum": 0.80 },
499
- "coverage": { "target": 0.80, "minimum": 0.60 }
500
- },
501
- "routing": {
502
- "pass_rate >= 0.95 AND coverage >= 0.80": "complete",
503
- "pass_rate >= 0.95 AND coverage < 0.80": "add_more_tests",
504
- "pass_rate >= 0.80": "fix_failures_then_continue",
505
- "pass_rate < 0.80": "major_fix_required"
506
- }
507
- },
508
- "review": {
509
- "metrics": {
510
- "critical_findings": { "target": 0, "maximum": 0 },
511
- "high_findings": { "target": 0, "maximum": 3 }
512
- },
513
- "routing": {
514
- "critical == 0 AND high <= 3": "complete_or_optional_fix",
515
- "critical > 0": "mandatory_fix",
516
- "high > 3": "recommended_fix"
517
- }
518
- }
519
- },
520
-
521
- "flow_decisions": {
522
- "_description": "根据产出完成度决定下一步",
523
- "patterns": {
524
- "plan_execute_test": {
525
- "sequence": ["plan", "execute", "test"],
526
- "on_test_fail": {
527
- "action": "extract_failures_and_fix",
528
- "max_iterations": 3,
529
- "fallback": "manual_intervention"
530
- }
531
- },
532
- "plan_execute_review": {
533
- "sequence": ["plan", "execute", "review"],
534
- "on_review_issues": {
535
- "action": "prioritize_and_fix",
536
- "auto_fix_threshold": "severity < high"
537
- }
538
- },
539
- "iterative_improvement": {
540
- "sequence": ["execute", "test", "fix"],
541
- "loop_until": "pass_rate >= 0.95 OR iterations >= 3",
542
- "on_loop_exit": "report_status"
543
- }
544
- }
545
- }
546
- }
547
- }
1
+ {
2
+ "_metadata": {
3
+ "version": "2.0.0",
4
+ "description": "Unified CCW command index with capabilities, flows, and intent rules"
5
+ },
6
+
7
+ "capabilities": {
8
+ "explore": {
9
+ "description": "Codebase exploration and context gathering",
10
+ "commands": ["/workflow:init", "/workflow:tools:gather", "/memory:load"],
11
+ "agents": ["cli-explore-agent", "context-search-agent"]
12
+ },
13
+ "brainstorm": {
14
+ "description": "Multi-perspective analysis and ideation",
15
+ "commands": ["/workflow:brainstorm:auto-parallel", "/workflow:brainstorm:artifacts", "/workflow:brainstorm:synthesis"],
16
+ "roles": ["product-manager", "system-architect", "ux-expert", "data-architect", "api-designer"]
17
+ },
18
+ "plan": {
19
+ "description": "Task planning and decomposition",
20
+ "commands": ["/workflow:lite-plan", "/workflow:plan", "/workflow:tdd-plan", "/task:create", "/task:breakdown"],
21
+ "agents": ["cli-lite-planning-agent", "action-planning-agent"]
22
+ },
23
+ "verify": {
24
+ "description": "Plan and quality verification",
25
+ "commands": ["/workflow:action-plan-verify", "/workflow:tdd-verify"]
26
+ },
27
+ "execute": {
28
+ "description": "Task execution and implementation",
29
+ "commands": ["/workflow:lite-execute", "/workflow:execute", "/task:execute"],
30
+ "agents": ["code-developer", "cli-execution-agent", "universal-executor"]
31
+ },
32
+ "bugfix": {
33
+ "description": "Bug diagnosis and fixing",
34
+ "commands": ["/workflow:lite-fix"],
35
+ "agents": ["code-developer"]
36
+ },
37
+ "test": {
38
+ "description": "Test generation and execution",
39
+ "commands": ["/workflow:test-gen", "/workflow:test-fix-gen", "/workflow:test-cycle-execute"],
40
+ "agents": ["test-fix-agent"]
41
+ },
42
+ "review": {
43
+ "description": "Code review and quality analysis",
44
+ "commands": ["/workflow:review-session-cycle", "/workflow:review-module-cycle", "/workflow:review", "/workflow:review-fix"]
45
+ },
46
+ "issue": {
47
+ "description": "Issue lifecycle management - discover, accumulate, batch resolve",
48
+ "commands": ["/issue:new", "/issue:discover", "/issue:discover-by-prompt", "/issue:plan", "/issue:queue", "/issue:execute", "/issue:manage"],
49
+ "agents": ["issue-plan-agent", "issue-queue-agent", "cli-explore-agent"],
50
+ "lifecycle": {
51
+ "accumulation": {
52
+ "description": "任务完成后进行需求扩展、bug分析、测试发现",
53
+ "triggers": ["post-task review", "code review findings", "test failures"],
54
+ "commands": ["/issue:discover", "/issue:discover-by-prompt", "/issue:new"]
55
+ },
56
+ "batch_resolution": {
57
+ "description": "积累的issue集中规划和并行执行",
58
+ "flow": ["plan", "queue", "execute"],
59
+ "commands": ["/issue:plan --all-pending", "/issue:queue", "/issue:execute"]
60
+ }
61
+ }
62
+ },
63
+ "ui-design": {
64
+ "description": "UI design and prototyping",
65
+ "commands": ["/workflow:ui-design:explore-auto", "/workflow:ui-design:imitate-auto", "/workflow:ui-design:design-sync"],
66
+ "agents": ["ui-design-agent"]
67
+ },
68
+ "memory": {
69
+ "description": "Documentation and knowledge management",
70
+ "commands": ["/memory:docs", "/memory:update-related", "/memory:update-full", "/memory:skill-memory"],
71
+ "agents": ["doc-generator", "memory-bridge"]
72
+ }
73
+ },
74
+
75
+ "flows": {
76
+ "_level_guide": {
77
+ "L1": "Rapid - No artifacts, direct execution",
78
+ "L2": "Lightweight - Memory/lightweight files, → lite-execute",
79
+ "L3": "Standard - Session persistence, → execute/test-cycle-execute",
80
+ "L4": "Brainstorm - Multi-role analysis + Session, → execute"
81
+ },
82
+ "lite-lite-lite": {
83
+ "name": "Ultra-Rapid Execution",
84
+ "level": "L1",
85
+ "description": "零文件 + 自动CLI选择 + 语义描述 + 直接执行",
86
+ "complexity": ["low"],
87
+ "artifacts": "none",
88
+ "steps": [
89
+ { "phase": "clarify", "description": "需求澄清 (AskUser if needed)" },
90
+ { "phase": "auto-select", "description": "任务分析 → 自动选择CLI组合" },
91
+ { "phase": "multi-cli", "description": "并行多CLI分析" },
92
+ { "phase": "decision", "description": "展示结果 AskUser决策" },
93
+ { "phase": "execute", "description": "直接执行 (无中间文件)" }
94
+ ],
95
+ "cli_hints": {
96
+ "analysis": { "tool": "auto", "mode": "analysis", "parallel": true },
97
+ "execution": { "tool": "auto", "mode": "write" }
98
+ },
99
+ "estimated_time": "10-30 min"
100
+ },
101
+ "rapid": {
102
+ "name": "Rapid Iteration",
103
+ "level": "L2",
104
+ "description": "内存规划 + 直接执行",
105
+ "complexity": ["low", "medium"],
106
+ "artifacts": "memory://plan",
107
+ "steps": [
108
+ { "command": "/workflow:lite-plan", "optional": false, "auto_continue": true },
109
+ { "command": "/workflow:lite-execute", "optional": false }
110
+ ],
111
+ "cli_hints": {
112
+ "explore_phase": { "tool": "gemini", "mode": "analysis", "trigger": "needs_exploration" },
113
+ "execution": { "tool": "codex", "mode": "write", "trigger": "complexity >= medium" }
114
+ },
115
+ "estimated_time": "15-45 min"
116
+ },
117
+ "multi-cli-plan": {
118
+ "name": "Multi-CLI Collaborative Planning",
119
+ "level": "L2",
120
+ "description": "ACE上下文 + 多CLI协作分析 + 迭代收敛 + 计划生成",
121
+ "complexity": ["medium", "high"],
122
+ "artifacts": ".workflow/.multi-cli-plan/{session}/",
123
+ "steps": [
124
+ { "command": "/workflow:multi-cli-plan", "optional": false, "phases": [
125
+ "context_gathering: ACE语义搜索",
126
+ "multi_cli_discussion: cli-discuss-agent多轮分析",
127
+ "present_options: 展示解决方案",
128
+ "user_decision: 用户选择",
129
+ "plan_generation: cli-lite-planning-agent生成计划"
130
+ ]},
131
+ { "command": "/workflow:lite-execute", "optional": false }
132
+ ],
133
+ "vs_lite_plan": {
134
+ "context": "ACE semantic search vs Manual file patterns",
135
+ "analysis": "Multi-CLI cross-verification vs Single-pass planning",
136
+ "iteration": "Multiple rounds until convergence vs Single round",
137
+ "confidence": "High (consensus-based) vs Medium (single perspective)",
138
+ "best_for": "Complex tasks needing multiple perspectives vs Straightforward implementations"
139
+ },
140
+ "agents": ["cli-discuss-agent", "cli-lite-planning-agent"],
141
+ "cli_hints": {
142
+ "discussion": { "tools": ["gemini", "codex", "claude"], "mode": "analysis", "parallel": true },
143
+ "planning": { "tool": "gemini", "mode": "analysis" }
144
+ },
145
+ "estimated_time": "30-90 min"
146
+ },
147
+ "coupled": {
148
+ "name": "Standard Planning",
149
+ "level": "L3",
150
+ "description": "完整规划 + 验证 + 执行",
151
+ "complexity": ["medium", "high"],
152
+ "artifacts": ".workflow/active/{session}/",
153
+ "steps": [
154
+ { "command": "/workflow:plan", "optional": false },
155
+ { "command": "/workflow:action-plan-verify", "optional": false, "auto_continue": true },
156
+ { "command": "/workflow:execute", "optional": false },
157
+ { "command": "/workflow:review", "optional": true }
158
+ ],
159
+ "cli_hints": {
160
+ "pre_analysis": { "tool": "gemini", "mode": "analysis", "trigger": "always" },
161
+ "execution": { "tool": "codex", "mode": "write", "trigger": "always" }
162
+ },
163
+ "estimated_time": "2-4 hours"
164
+ },
165
+ "full": {
166
+ "name": "Full Exploration (Brainstorm)",
167
+ "level": "L4",
168
+ "description": "头脑风暴 + 规划 + 执行",
169
+ "complexity": ["high"],
170
+ "artifacts": ".workflow/active/{session}/.brainstorming/",
171
+ "steps": [
172
+ { "command": "/workflow:brainstorm:auto-parallel", "optional": false, "confirm_before": true },
173
+ { "command": "/workflow:plan", "optional": false },
174
+ { "command": "/workflow:action-plan-verify", "optional": true, "auto_continue": true },
175
+ { "command": "/workflow:execute", "optional": false }
176
+ ],
177
+ "cli_hints": {
178
+ "role_analysis": { "tool": "gemini", "mode": "analysis", "trigger": "always", "parallel": true },
179
+ "execution": { "tool": "codex", "mode": "write", "trigger": "task_count >= 3" }
180
+ },
181
+ "estimated_time": "1-3 hours"
182
+ },
183
+ "bugfix": {
184
+ "name": "Bug Fix",
185
+ "level": "L2",
186
+ "description": "智能诊断 + 修复 (5 phases)",
187
+ "complexity": ["low", "medium"],
188
+ "artifacts": ".workflow/.lite-fix/{bug-slug}-{date}/",
189
+ "variants": {
190
+ "standard": [{ "command": "/workflow:lite-fix", "optional": false }],
191
+ "hotfix": [{ "command": "/workflow:lite-fix --hotfix", "optional": false }]
192
+ },
193
+ "phases": [
194
+ "Phase 1: Bug Analysis & Diagnosis (severity pre-assessment)",
195
+ "Phase 2: Clarification (optional, AskUserQuestion)",
196
+ "Phase 3: Fix Planning (Low/Medium → Claude, High/Critical → cli-lite-planning-agent)",
197
+ "Phase 4: Confirmation & Selection",
198
+ "Phase 5: Execute (→ lite-execute --mode bugfix)"
199
+ ],
200
+ "cli_hints": {
201
+ "diagnosis": { "tool": "gemini", "mode": "analysis", "trigger": "always" },
202
+ "fix": { "tool": "codex", "mode": "write", "trigger": "severity >= medium" }
203
+ },
204
+ "estimated_time": "10-30 min"
205
+ },
206
+ "issue": {
207
+ "name": "Issue Lifecycle",
208
+ "level": "Supplementary",
209
+ "description": "发现积累 → 批量规划 → 队列优化 → 并行执行 (Main Workflow 补充机制)",
210
+ "complexity": ["medium", "high"],
211
+ "artifacts": ".workflow/.issues/",
212
+ "purpose": "Post-development continuous maintenance, maintain main branch stability",
213
+ "phases": {
214
+ "accumulation": {
215
+ "description": "项目迭代中持续发现和积累issue",
216
+ "commands": ["/issue:discover", "/issue:discover-by-prompt", "/issue:new"],
217
+ "trigger": "post-task, code-review, test-failure"
218
+ },
219
+ "resolution": {
220
+ "description": "集中规划和执行积累的issue",
221
+ "steps": [
222
+ { "command": "/issue:plan --all-pending", "optional": false },
223
+ { "command": "/issue:queue", "optional": false },
224
+ { "command": "/issue:execute", "optional": false }
225
+ ]
226
+ }
227
+ },
228
+ "worktree_support": {
229
+ "description": "可选的 worktree 隔离,保持主分支稳定",
230
+ "use_case": "主开发完成后的 issue 修复"
231
+ },
232
+ "cli_hints": {
233
+ "discovery": { "tool": "gemini", "mode": "analysis", "trigger": "perspective_analysis", "parallel": true },
234
+ "solution_generation": { "tool": "gemini", "mode": "analysis", "trigger": "always", "parallel": true },
235
+ "batch_execution": { "tool": "codex", "mode": "write", "trigger": "always" }
236
+ },
237
+ "estimated_time": "1-4 hours"
238
+ },
239
+ "tdd": {
240
+ "name": "Test-Driven Development",
241
+ "level": "L3",
242
+ "description": "TDD规划 + 执行 + 验证 (6 phases)",
243
+ "complexity": ["medium", "high"],
244
+ "artifacts": ".workflow/active/{session}/",
245
+ "steps": [
246
+ { "command": "/workflow:tdd-plan", "optional": false },
247
+ { "command": "/workflow:action-plan-verify", "optional": true, "auto_continue": true },
248
+ { "command": "/workflow:execute", "optional": false },
249
+ { "command": "/workflow:tdd-verify", "optional": false }
250
+ ],
251
+ "tdd_structure": {
252
+ "description": "Each IMPL task contains complete internal Red-Green-Refactor cycle",
253
+ "meta": "tdd_workflow: true",
254
+ "flow_control": "implementation_approach contains 3 steps (red/green/refactor)"
255
+ },
256
+ "cli_hints": {
257
+ "test_strategy": { "tool": "gemini", "mode": "analysis", "trigger": "always" },
258
+ "red_green_refactor": { "tool": "codex", "mode": "write", "trigger": "always" }
259
+ },
260
+ "estimated_time": "1-3 hours"
261
+ },
262
+ "test-fix": {
263
+ "name": "Test Fix Generation",
264
+ "level": "L3",
265
+ "description": "测试修复生成 + 执行循环 (5 phases)",
266
+ "complexity": ["medium", "high"],
267
+ "artifacts": ".workflow/active/WFS-test-{session}/",
268
+ "dual_mode": {
269
+ "session_mode": { "input": "WFS-xxx", "context_source": "Source session summaries" },
270
+ "prompt_mode": { "input": "Text/file path", "context_source": "Direct codebase analysis" }
271
+ },
272
+ "steps": [
273
+ { "command": "/workflow:test-fix-gen", "optional": false },
274
+ { "command": "/workflow:test-cycle-execute", "optional": false }
275
+ ],
276
+ "task_structure": [
277
+ "IMPL-001.json (test understanding & generation)",
278
+ "IMPL-001.5-review.json (quality gate)",
279
+ "IMPL-002.json (test execution & fix cycle)"
280
+ ],
281
+ "cli_hints": {
282
+ "analysis": { "tool": "gemini", "mode": "analysis", "trigger": "always" },
283
+ "fix_cycle": { "tool": "codex", "mode": "write", "trigger": "pass_rate < 0.95" }
284
+ },
285
+ "estimated_time": "1-2 hours"
286
+ },
287
+ "ui": {
288
+ "name": "UI-First Development",
289
+ "level": "L3/L4",
290
+ "description": "UI设计 + 规划 + 执行",
291
+ "complexity": ["medium", "high"],
292
+ "artifacts": ".workflow/active/{session}/",
293
+ "variants": {
294
+ "explore": [
295
+ { "command": "/workflow:ui-design:explore-auto", "optional": false },
296
+ { "command": "/workflow:ui-design:design-sync", "optional": false, "auto_continue": true },
297
+ { "command": "/workflow:plan", "optional": false },
298
+ { "command": "/workflow:execute", "optional": false }
299
+ ],
300
+ "imitate": [
301
+ { "command": "/workflow:ui-design:imitate-auto", "optional": false },
302
+ { "command": "/workflow:ui-design:design-sync", "optional": false, "auto_continue": true },
303
+ { "command": "/workflow:plan", "optional": false },
304
+ { "command": "/workflow:execute", "optional": false }
305
+ ]
306
+ },
307
+ "estimated_time": "2-4 hours"
308
+ },
309
+ "review-fix": {
310
+ "name": "Review and Fix",
311
+ "level": "L3",
312
+ "description": "多维审查 + 自动修复",
313
+ "complexity": ["medium"],
314
+ "artifacts": ".workflow/active/{session}/review_report.md",
315
+ "steps": [
316
+ { "command": "/workflow:review-session-cycle", "optional": false },
317
+ { "command": "/workflow:review-fix", "optional": true }
318
+ ],
319
+ "cli_hints": {
320
+ "multi_dimension_review": { "tool": "gemini", "mode": "analysis", "trigger": "always", "parallel": true },
321
+ "auto_fix": { "tool": "codex", "mode": "write", "trigger": "findings_count >= 3" }
322
+ },
323
+ "estimated_time": "30-90 min"
324
+ },
325
+ "docs": {
326
+ "name": "Documentation",
327
+ "level": "L2",
328
+ "description": "批量文档生成",
329
+ "complexity": ["low", "medium"],
330
+ "variants": {
331
+ "incremental": [{ "command": "/memory:update-related", "optional": false }],
332
+ "full": [
333
+ { "command": "/memory:docs", "optional": false },
334
+ { "command": "/workflow:execute", "optional": false }
335
+ ]
336
+ },
337
+ "estimated_time": "15-60 min"
338
+ }
339
+ },
340
+
341
+ "intent_rules": {
342
+ "_level_mapping": {
343
+ "description": "Intent → Level → Flow mapping guide",
344
+ "L1": ["lite-lite-lite"],
345
+ "L2": ["rapid", "bugfix", "multi-cli-plan", "docs"],
346
+ "L3": ["coupled", "tdd", "test-fix", "review-fix", "ui"],
347
+ "L4": ["full"],
348
+ "Supplementary": ["issue"]
349
+ },
350
+ "bugfix": {
351
+ "priority": 1,
352
+ "level": "L2",
353
+ "variants": {
354
+ "hotfix": {
355
+ "patterns": ["hotfix", "urgent", "production", "critical", "emergency", "紧急", "生产环境", "线上"],
356
+ "flow": "bugfix.hotfix"
357
+ },
358
+ "standard": {
359
+ "patterns": ["fix", "bug", "error", "issue", "crash", "broken", "fail", "wrong", "修复", "错误", "崩溃"],
360
+ "flow": "bugfix.standard"
361
+ }
362
+ }
363
+ },
364
+ "issue_batch": {
365
+ "priority": 2,
366
+ "level": "Supplementary",
367
+ "patterns": {
368
+ "batch": ["issues", "batch", "queue", "多个", "批量"],
369
+ "action": ["fix", "resolve", "处理", "解决"]
370
+ },
371
+ "require_both": true,
372
+ "flow": "issue"
373
+ },
374
+ "exploration": {
375
+ "priority": 3,
376
+ "level": "L4",
377
+ "patterns": ["不确定", "不知道", "explore", "研究", "分析一下", "怎么做", "what if", "探索"],
378
+ "flow": "full"
379
+ },
380
+ "multi_perspective": {
381
+ "priority": 3,
382
+ "level": "L2",
383
+ "patterns": ["多视角", "权衡", "比较方案", "cross-verify", "多CLI", "协作分析"],
384
+ "flow": "multi-cli-plan"
385
+ },
386
+ "quick_task": {
387
+ "priority": 4,
388
+ "level": "L1",
389
+ "patterns": ["快速", "简单", "small", "quick", "simple", "trivial", "小改动"],
390
+ "flow": "lite-lite-lite"
391
+ },
392
+ "ui_design": {
393
+ "priority": 5,
394
+ "level": "L3/L4",
395
+ "patterns": ["ui", "界面", "design", "设计", "component", "组件", "style", "样式", "layout", "布局"],
396
+ "variants": {
397
+ "imitate": { "triggers": ["参考", "模仿", "像", "类似"], "flow": "ui.imitate" },
398
+ "explore": { "triggers": [], "flow": "ui.explore" }
399
+ }
400
+ },
401
+ "tdd": {
402
+ "priority": 6,
403
+ "level": "L3",
404
+ "patterns": ["tdd", "test-driven", "测试驱动", "先写测试", "test first"],
405
+ "flow": "tdd"
406
+ },
407
+ "test_fix": {
408
+ "priority": 7,
409
+ "level": "L3",
410
+ "patterns": ["测试失败", "test fail", "fix test", "test error", "pass rate", "coverage gap"],
411
+ "flow": "test-fix"
412
+ },
413
+ "review": {
414
+ "priority": 8,
415
+ "level": "L3",
416
+ "patterns": ["review", "审查", "检查代码", "code review", "质量检查"],
417
+ "flow": "review-fix"
418
+ },
419
+ "documentation": {
420
+ "priority": 9,
421
+ "level": "L2",
422
+ "patterns": ["文档", "documentation", "docs", "readme"],
423
+ "variants": {
424
+ "incremental": { "triggers": ["更新", "增量"], "flow": "docs.incremental" },
425
+ "full": { "triggers": ["全部", "完整"], "flow": "docs.full" }
426
+ }
427
+ },
428
+ "feature": {
429
+ "priority": 99,
430
+ "complexity_map": {
431
+ "high": { "level": "L3", "flow": "coupled" },
432
+ "medium": { "level": "L2", "flow": "rapid" },
433
+ "low": { "level": "L1", "flow": "lite-lite-lite" }
434
+ }
435
+ }
436
+ },
437
+
438
+ "complexity_indicators": {
439
+ "high": {
440
+ "threshold": 4,
441
+ "patterns": {
442
+ "architecture": { "keywords": ["refactor", "重构", "migrate", "迁移", "architect", "架构", "system", "系统"], "weight": 2 },
443
+ "multi_module": { "keywords": ["multiple", "多个", "across", "跨", "all", "所有", "entire", "整个"], "weight": 2 },
444
+ "integration": { "keywords": ["integrate", "集成", "api", "database", "数据库"], "weight": 1 },
445
+ "quality": { "keywords": ["security", "安全", "performance", "性能", "scale", "扩展"], "weight": 1 }
446
+ }
447
+ },
448
+ "medium": { "threshold": 2 },
449
+ "low": { "threshold": 0 }
450
+ },
451
+
452
+ "cli_tools": {
453
+ "gemini": {
454
+ "strengths": ["超长上下文", "深度分析", "架构理解", "执行流追踪"],
455
+ "triggers": ["分析", "理解", "设计", "架构", "诊断"],
456
+ "mode": "analysis"
457
+ },
458
+ "qwen": {
459
+ "strengths": ["代码模式识别", "多维度分析"],
460
+ "triggers": ["评估", "对比", "验证"],
461
+ "mode": "analysis"
462
+ },
463
+ "codex": {
464
+ "strengths": ["精确代码生成", "自主执行"],
465
+ "triggers": ["实现", "重构", "修复", "生成"],
466
+ "mode": "write"
467
+ }
468
+ },
469
+
470
+ "cli_injection_rules": {
471
+ "context_gathering": { "trigger": "file_read >= 50k OR module_count >= 5", "inject": "gemini --mode analysis" },
472
+ "pre_planning_analysis": { "trigger": "complexity === high", "inject": "gemini --mode analysis" },
473
+ "debug_diagnosis": { "trigger": "intent === bugfix AND root_cause_unclear", "inject": "gemini --mode analysis" },
474
+ "code_review": { "trigger": "step === review", "inject": "gemini --mode analysis" },
475
+ "implementation": { "trigger": "step === execute AND task_count >= 3", "inject": "codex --mode write" }
476
+ },
477
+
478
+ "artifact_flow": {
479
+ "_description": "定义工作流产出的格式、意图提取和流转规则",
480
+
481
+ "outputs": {
482
+ "/workflow:lite-plan": {
483
+ "artifact": "memory://plan",
484
+ "format": "structured_plan",
485
+ "fields": ["tasks", "files", "dependencies", "approach"]
486
+ },
487
+ "/workflow:plan": {
488
+ "artifact": ".workflow/{session}/IMPL_PLAN.md",
489
+ "format": "markdown_plan",
490
+ "fields": ["phases", "tasks", "dependencies", "risks", "test_strategy"]
491
+ },
492
+ "/workflow:multi-cli-plan": {
493
+ "artifact": ".workflow/.multi-cli-plan/{session}/",
494
+ "format": "multi_file",
495
+ "files": ["IMPL_PLAN.md", "plan.json", "synthesis.json"],
496
+ "fields": ["consensus", "divergences", "recommended_approach", "tasks"]
497
+ },
498
+ "/workflow:lite-execute": {
499
+ "artifact": "git_changes",
500
+ "format": "code_diff",
501
+ "fields": ["modified_files", "added_files", "deleted_files", "build_status"]
502
+ },
503
+ "/workflow:execute": {
504
+ "artifact": ".workflow/{session}/execution_log.json",
505
+ "format": "execution_report",
506
+ "fields": ["completed_tasks", "pending_tasks", "errors", "warnings"]
507
+ },
508
+ "/workflow:test-cycle-execute": {
509
+ "artifact": ".workflow/{session}/test_results.json",
510
+ "format": "test_report",
511
+ "fields": ["pass_rate", "failures", "coverage", "duration"]
512
+ },
513
+ "/workflow:review-session-cycle": {
514
+ "artifact": ".workflow/{session}/review_report.md",
515
+ "format": "review_report",
516
+ "fields": ["findings", "severity_counts", "recommendations"]
517
+ },
518
+ "/workflow:lite-fix": {
519
+ "artifact": "git_changes",
520
+ "format": "fix_report",
521
+ "fields": ["root_cause", "fix_applied", "files_modified", "verification_status"]
522
+ }
523
+ },
524
+
525
+ "intent_extraction": {
526
+ "plan_to_execute": {
527
+ "from": ["lite-plan", "plan", "multi-cli-plan"],
528
+ "to": ["lite-execute", "execute"],
529
+ "extract": {
530
+ "tasks": "$.tasks[] | filter(status != 'completed')",
531
+ "priority_order": "$.tasks | sort_by(priority)",
532
+ "files_to_modify": "$.tasks[].files | flatten | unique",
533
+ "dependencies": "$.dependencies",
534
+ "context_summary": "$.approach OR $.recommended_approach"
535
+ }
536
+ },
537
+ "execute_to_test": {
538
+ "from": ["lite-execute", "execute"],
539
+ "to": ["test-cycle-execute", "test-fix-gen"],
540
+ "extract": {
541
+ "modified_files": "$.modified_files",
542
+ "test_scope": "infer_from($.modified_files)",
543
+ "build_status": "$.build_status",
544
+ "pending_verification": "$.completed_tasks | needs_test"
545
+ }
546
+ },
547
+ "test_to_fix": {
548
+ "from": ["test-cycle-execute"],
549
+ "to": ["lite-fix", "review-fix"],
550
+ "condition": "$.pass_rate < 0.95",
551
+ "extract": {
552
+ "failures": "$.failures",
553
+ "error_messages": "$.failures[].message",
554
+ "affected_files": "$.failures[].file",
555
+ "suggested_fixes": "$.failures[].suggested_fix"
556
+ }
557
+ },
558
+ "review_to_fix": {
559
+ "from": ["review-session-cycle", "review-module-cycle"],
560
+ "to": ["review-fix"],
561
+ "condition": "$.severity_counts.critical > 0 OR $.severity_counts.high > 3",
562
+ "extract": {
563
+ "findings": "$.findings | filter(severity in ['critical', 'high'])",
564
+ "fix_priority": "$.findings | group_by(category) | sort_by(severity)",
565
+ "affected_files": "$.findings[].file | unique"
566
+ }
567
+ }
568
+ },
569
+
570
+ "completion_criteria": {
571
+ "plan": {
572
+ "required": ["has_tasks", "has_files"],
573
+ "optional": ["has_tests", "no_blocking_risks"],
574
+ "threshold": 0.8,
575
+ "routing": {
576
+ "complete": "proceed_to_execute",
577
+ "incomplete": "clarify_requirements"
578
+ }
579
+ },
580
+ "execute": {
581
+ "required": ["all_tasks_attempted", "no_critical_errors"],
582
+ "optional": ["build_passes", "lint_passes"],
583
+ "threshold": 1.0,
584
+ "routing": {
585
+ "complete": "proceed_to_test_or_review",
586
+ "partial": "continue_execution",
587
+ "failed": "diagnose_and_retry"
588
+ }
589
+ },
590
+ "test": {
591
+ "metrics": {
592
+ "pass_rate": { "target": 0.95, "minimum": 0.80 },
593
+ "coverage": { "target": 0.80, "minimum": 0.60 }
594
+ },
595
+ "routing": {
596
+ "pass_rate >= 0.95 AND coverage >= 0.80": "complete",
597
+ "pass_rate >= 0.95 AND coverage < 0.80": "add_more_tests",
598
+ "pass_rate >= 0.80": "fix_failures_then_continue",
599
+ "pass_rate < 0.80": "major_fix_required"
600
+ }
601
+ },
602
+ "review": {
603
+ "metrics": {
604
+ "critical_findings": { "target": 0, "maximum": 0 },
605
+ "high_findings": { "target": 0, "maximum": 3 }
606
+ },
607
+ "routing": {
608
+ "critical == 0 AND high <= 3": "complete_or_optional_fix",
609
+ "critical > 0": "mandatory_fix",
610
+ "high > 3": "recommended_fix"
611
+ }
612
+ }
613
+ },
614
+
615
+ "flow_decisions": {
616
+ "_description": "根据产出完成度决定下一步",
617
+ "patterns": {
618
+ "plan_execute_test": {
619
+ "sequence": ["plan", "execute", "test"],
620
+ "on_test_fail": {
621
+ "action": "extract_failures_and_fix",
622
+ "max_iterations": 3,
623
+ "fallback": "manual_intervention"
624
+ }
625
+ },
626
+ "plan_execute_review": {
627
+ "sequence": ["plan", "execute", "review"],
628
+ "on_review_issues": {
629
+ "action": "prioritize_and_fix",
630
+ "auto_fix_threshold": "severity < high"
631
+ }
632
+ },
633
+ "iterative_improvement": {
634
+ "sequence": ["execute", "test", "fix"],
635
+ "loop_until": "pass_rate >= 0.95 OR iterations >= 3",
636
+ "on_loop_exit": "report_status"
637
+ }
638
+ }
639
+ }
640
+ }
641
+ }