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.
- package/.claude/CLAUDE.md +6 -1
- package/.claude/agents/action-planning-agent.md +885 -885
- package/.claude/agents/cli-discuss-agent.md +391 -391
- package/.claude/agents/cli-execution-agent.md +7 -6
- package/.claude/agents/cli-lite-planning-agent.md +1 -1
- package/.claude/agents/cli-planning-agent.md +2 -2
- package/.claude/agents/code-developer.md +407 -403
- package/.claude/agents/conceptual-planning-agent.md +11 -0
- package/.claude/agents/debug-explore-agent.md +3 -3
- package/.claude/agents/doc-generator.md +3 -3
- package/.claude/agents/issue-plan-agent.md +333 -340
- package/.claude/agents/issue-queue-agent.md +1 -1
- package/.claude/agents/memory-bridge.md +95 -95
- package/.claude/agents/test-context-search-agent.md +402 -402
- package/.claude/agents/ui-design-agent.md +595 -595
- package/.claude/agents/universal-executor.md +134 -134
- package/.claude/commands/cli/codex-review.md +355 -0
- package/.claude/commands/issue/discover-by-prompt.md +1 -1
- package/.claude/commands/issue/execute.md +581 -581
- package/.claude/commands/issue/new.md +413 -413
- package/.claude/commands/issue/plan.md +1 -1
- package/.claude/commands/issue/queue.md +441 -382
- package/.claude/commands/memory/code-map-memory.md +687 -687
- package/.claude/commands/memory/compact.md +383 -383
- package/.claude/commands/memory/docs-full-cli.md +471 -471
- package/.claude/commands/memory/docs-related-cli.md +386 -386
- package/.claude/commands/memory/docs.md +615 -615
- package/.claude/commands/memory/load-skill-memory.md +182 -182
- package/.claude/commands/memory/skill-memory.md +525 -525
- package/.claude/commands/memory/style-skill-memory.md +396 -396
- package/.claude/commands/memory/swagger-docs.md +773 -773
- package/.claude/commands/memory/tech-research-rules.md +2 -2
- package/.claude/commands/memory/update-full.md +332 -332
- package/.claude/commands/memory/workflow-skill-memory.md +517 -517
- package/.claude/commands/task/create.md +151 -151
- package/.claude/commands/task/replan.md +436 -436
- package/.claude/commands/version.md +254 -254
- package/.claude/commands/workflow/brainstorm/api-designer.md +587 -587
- package/.claude/commands/workflow/brainstorm/auto-parallel.md +11 -0
- package/.claude/commands/workflow/brainstorm/data-architect.md +220 -220
- package/.claude/commands/workflow/brainstorm/product-manager.md +200 -200
- package/.claude/commands/workflow/brainstorm/product-owner.md +200 -200
- package/.claude/commands/workflow/brainstorm/scrum-master.md +200 -200
- package/.claude/commands/workflow/brainstorm/subject-matter-expert.md +200 -200
- package/.claude/commands/workflow/brainstorm/system-architect.md +389 -389
- package/.claude/commands/workflow/brainstorm/ui-designer.md +221 -221
- package/.claude/commands/workflow/brainstorm/ux-expert.md +221 -221
- package/.claude/commands/workflow/debug-with-file.md +666 -0
- package/.claude/commands/workflow/debug.md +327 -327
- package/.claude/commands/workflow/execute.md +498 -498
- package/.claude/commands/workflow/lite-execute.md +23 -20
- package/.claude/commands/workflow/lite-fix.md +631 -631
- package/.claude/commands/workflow/lite-lite-lite.md +39 -11
- package/.claude/commands/workflow/lite-plan.md +4 -2
- package/.claude/commands/workflow/multi-cli-plan.md +97 -39
- package/.claude/commands/workflow/plan.md +551 -551
- package/.claude/commands/workflow/replan.md +515 -515
- package/.claude/commands/workflow/review-fix.md +610 -610
- package/.claude/commands/workflow/review-module-cycle.md +771 -771
- package/.claude/commands/workflow/review-session-cycle.md +782 -782
- package/.claude/commands/workflow/review.md +322 -322
- package/.claude/commands/workflow/session/list.md +95 -95
- package/.claude/commands/workflow/session/resume.md +60 -60
- package/.claude/commands/workflow/session/solidify.md +299 -299
- package/.claude/commands/workflow/tdd-plan.md +597 -460
- package/.claude/commands/workflow/test-cycle-execute.md +504 -504
- package/.claude/commands/workflow/test-fix-gen.md +699 -699
- package/.claude/commands/workflow/tools/conflict-resolution.md +2 -2
- package/.claude/commands/workflow/tools/task-generate-tdd.md +517 -517
- package/.claude/commands/workflow/tools/tdd-coverage-analysis.md +309 -309
- package/.claude/commands/workflow/tools/test-concept-enhanced.md +1 -1
- package/.claude/commands/workflow/tools/test-context-gather.md +235 -235
- package/.claude/commands/workflow/tools/test-task-generate.md +255 -255
- package/.claude/commands/workflow/ui-design/animation-extract.md +1150 -1150
- package/.claude/commands/workflow/ui-design/design-sync.md +454 -454
- package/.claude/commands/workflow/ui-design/explore-auto.md +678 -678
- package/.claude/commands/workflow/ui-design/imitate-auto.md +745 -745
- package/.claude/commands/workflow/ui-design/layout-extract.md +788 -788
- package/.claude/commands/workflow/ui-design/reference-page-generator.md +356 -356
- package/.claude/commands/workflow/ui-design/style-extract.md +773 -773
- package/.claude/skills/ccw/SKILL.md +522 -352
- package/.claude/skills/ccw/command.json +641 -547
- package/.claude/skills/ccw-help/SKILL.md +116 -116
- package/.claude/skills/ccw-help/command.json +520 -520
- package/.claude/skills/copyright-docs/phases/01.5-project-exploration.md +150 -150
- package/.claude/skills/copyright-docs/phases/02.5-consolidation.md +192 -192
- package/.claude/skills/copyright-docs/templates/agent-base.md +200 -200
- package/.claude/skills/project-analyze/phases/03.5-consolidation.md +233 -233
- package/.claude/skills/project-analyze/specs/writing-style.md +152 -152
- package/.claude/skills/review-code/phases/state-manager.md +752 -752
- package/.claude/skills/review-code/specs/rules/index.md +140 -140
- package/.claude/skills/skill-generator/specs/cli-integration.md +13 -19
- package/.claude/skills/skill-generator/specs/scripting-integration.md +265 -265
- package/.claude/skills/skill-generator/templates/code-analysis-action.md +503 -503
- package/.claude/skills/skill-generator/templates/llm-action.md +355 -355
- package/.claude/skills/skill-generator/templates/script-bash.md +277 -277
- package/.claude/skills/skill-generator/templates/script-python.md +198 -198
- package/.claude/skills/skill-generator/templates/skill-md.md +235 -235
- package/.claude/skills/skill-tuning/SKILL.md +303 -303
- package/.claude/skills/skill-tuning/phases/actions/action-abort.md +164 -164
- package/.claude/skills/skill-tuning/phases/actions/action-apply-fix.md +206 -206
- package/.claude/skills/skill-tuning/phases/actions/action-complete.md +195 -195
- package/.claude/skills/skill-tuning/phases/actions/action-diagnose-agent.md +317 -317
- package/.claude/skills/skill-tuning/phases/actions/action-diagnose-context.md +243 -243
- package/.claude/skills/skill-tuning/phases/actions/action-diagnose-dataflow.md +318 -318
- package/.claude/skills/skill-tuning/phases/actions/action-diagnose-memory.md +269 -269
- package/.claude/skills/skill-tuning/phases/actions/action-diagnose-token-consumption.md +200 -200
- package/.claude/skills/skill-tuning/phases/actions/action-gemini-analysis.md +322 -322
- package/.claude/skills/skill-tuning/phases/actions/action-generate-report.md +228 -228
- package/.claude/skills/skill-tuning/phases/actions/action-init.md +149 -149
- package/.claude/skills/skill-tuning/phases/actions/action-propose-fixes.md +317 -317
- package/.claude/skills/skill-tuning/phases/actions/action-verify.md +222 -222
- package/.claude/skills/skill-tuning/phases/orchestrator.md +377 -377
- package/.claude/skills/skill-tuning/phases/state-schema.md +378 -378
- package/.claude/skills/skill-tuning/specs/problem-taxonomy.md +318 -318
- package/.claude/skills/skill-tuning/specs/quality-gates.md +263 -263
- package/.claude/skills/skill-tuning/specs/tuning-strategies.md +1537 -1537
- package/.claude/skills/skill-tuning/templates/diagnosis-report.md +153 -153
- package/.claude/skills/skill-tuning/templates/fix-proposal.md +204 -204
- package/.claude/skills/software-manual/SKILL.md +184 -184
- package/.claude/skills/software-manual/phases/01-requirements-discovery.md +162 -162
- package/.claude/skills/software-manual/phases/02-project-exploration.md +101 -101
- package/.claude/skills/software-manual/phases/03-parallel-analysis.md +183 -183
- package/.claude/skills/software-manual/phases/03.5-consolidation.md +82 -82
- package/.claude/skills/software-manual/phases/04-screenshot-capture.md +89 -89
- package/.claude/skills/software-manual/phases/05-html-assembly.md +132 -132
- package/.claude/skills/software-manual/phases/06-iterative-refinement.md +259 -259
- package/.claude/skills/software-manual/scripts/screenshot-helper.md +447 -447
- package/.claude/skills/software-manual/scripts/swagger-runner.md +419 -419
- package/.claude/skills/software-manual/scripts/typedoc-runner.md +357 -357
- package/.claude/skills/software-manual/specs/html-template.md +325 -325
- package/.claude/skills/software-manual/specs/quality-standards.md +253 -253
- package/.claude/skills/software-manual/specs/writing-style.md +298 -298
- package/.claude/skills/text-formatter/SKILL.md +196 -196
- package/.claude/skills/text-formatter/phases/01-input-collection.md +111 -111
- package/.claude/skills/text-formatter/phases/02-content-analysis.md +248 -248
- package/.claude/skills/text-formatter/phases/03-format-transform.md +245 -245
- package/.claude/skills/text-formatter/phases/04-output-preview.md +183 -183
- package/.claude/skills/text-formatter/specs/callout-types.md +293 -293
- package/.claude/skills/text-formatter/specs/element-mapping.md +226 -226
- package/.claude/skills/text-formatter/specs/format-rules.md +273 -273
- package/.claude/skills/text-formatter/templates/bbcode-template.md +350 -350
- package/.claude/workflows/chinese-response.md +25 -25
- package/.claude/workflows/cli-templates/memory/style-skill-memory/skill-md-template.md +299 -299
- package/.claude/workflows/cli-templates/planning-roles/product-owner.md +261 -261
- package/.claude/workflows/cli-templates/prompts/{analysis/03-analyze-performance.txt → analysis-analyze-performance.txt} +29 -29
- package/.claude/workflows/cli-templates/prompts/{analysis/03-assess-security-risks.txt → analysis-assess-security-risks.txt} +29 -29
- package/.claude/workflows/cli-templates/prompts/{analysis/02-review-architecture.txt → analysis-review-architecture.txt} +29 -29
- package/.claude/workflows/cli-templates/prompts/{analysis/02-review-code-quality.txt → analysis-review-code-quality.txt} +28 -28
- package/.claude/workflows/cli-templates/prompts/{analysis/03-review-quality-standards.txt → analysis-review-quality-standards.txt} +29 -29
- package/.claude/workflows/cli-templates/prompts/{analysis/01-trace-code-execution.txt → analysis-trace-code-execution.txt} +115 -115
- package/.claude/workflows/cli-templates/prompts/{documentation/api.txt → documentation-api.txt} +14 -14
- package/.claude/workflows/cli-templates/prompts/{documentation/folder-navigation.txt → documentation-folder-navigation.txt} +26 -26
- package/.claude/workflows/cli-templates/prompts/{documentation/project-architecture.txt → documentation-project-architecture.txt} +40 -40
- package/.claude/workflows/cli-templates/prompts/{documentation/project-examples.txt → documentation-project-examples.txt} +34 -34
- package/.claude/workflows/cli-templates/prompts/{documentation/project-readme.txt → documentation-project-readme.txt} +34 -34
- package/.claude/workflows/cli-templates/prompts/{documentation/swagger-api.txt → documentation-swagger-api.txt} +266 -266
- package/.claude/workflows/cli-templates/prompts/{planning/02-design-component-spec.txt → planning-design-component-spec.txt} +28 -28
- package/.claude/workflows/cli-templates/prompts/{verification/codex-technical.txt → verification-codex-technical.txt} +28 -28
- package/.claude/workflows/cli-templates/prompts/{verification/cross-validation.txt → verification-cross-validation.txt} +28 -28
- package/.claude/workflows/cli-templates/prompts/{verification/gemini-strategic.txt → verification-gemini-strategic.txt} +27 -27
- package/.claude/workflows/cli-templates/prompts/{workflow/analysis-results-structure.txt → workflow-analysis-results-structure.txt} +224 -224
- package/.claude/workflows/cli-templates/prompts/{workflow/impl-plan-template.txt → workflow-impl-plan-template.txt} +286 -286
- package/.claude/workflows/cli-templates/prompts/{workflow/skill-conflict-patterns.txt → workflow-skill-conflict-patterns.txt} +2 -2
- package/.claude/workflows/cli-templates/prompts/{workflow/skill-lessons-learned.txt → workflow-skill-lessons-learned.txt} +2 -2
- package/.claude/workflows/cli-templates/prompts/{workflow/task-json-agent-mode.txt → workflow-task-json-agent-mode.txt} +123 -123
- package/.claude/workflows/cli-templates/schemas/project-guidelines-schema.json +141 -141
- package/.claude/workflows/cli-tools-usage.md +113 -117
- package/.claude/workflows/coding-philosophy.md +69 -69
- package/.claude/workflows/context-tools.md +76 -76
- package/.claude/workflows/file-modification.md +64 -64
- package/.claude/workflows/review-directory-specification.md +336 -336
- package/.claude/workflows/windows-platform.md +19 -19
- package/.claude/workflows/workflow-architecture.md +942 -942
- package/.codex/prompts/issue-execute.md +176 -70
- package/README.md +250 -214
- package/ccw/dist/cli.d.ts.map +1 -1
- package/ccw/dist/cli.js +15 -0
- package/ccw/dist/cli.js.map +1 -1
- package/ccw/dist/commands/cli.d.ts +5 -0
- package/ccw/dist/commands/cli.d.ts.map +1 -1
- package/ccw/dist/commands/cli.js +116 -19
- package/ccw/dist/commands/cli.js.map +1 -1
- package/ccw/dist/commands/install.d.ts +17 -0
- package/ccw/dist/commands/install.d.ts.map +1 -1
- package/ccw/dist/commands/install.js +211 -2
- package/ccw/dist/commands/install.js.map +1 -1
- package/ccw/dist/commands/issue.d.ts.map +1 -1
- package/ccw/dist/commands/issue.js +208 -28
- package/ccw/dist/commands/issue.js.map +1 -1
- package/ccw/dist/commands/uninstall.d.ts.map +1 -1
- package/ccw/dist/commands/uninstall.js +22 -1
- package/ccw/dist/commands/uninstall.js.map +1 -1
- package/ccw/dist/commands/view.d.ts.map +1 -1
- package/ccw/dist/commands/view.js +3 -0
- package/ccw/dist/commands/view.js.map +1 -1
- package/ccw/dist/commands/workflow.d.ts +11 -0
- package/ccw/dist/commands/workflow.d.ts.map +1 -0
- package/ccw/dist/commands/workflow.js +294 -0
- package/ccw/dist/commands/workflow.js.map +1 -0
- package/ccw/dist/core/routes/claude-routes.d.ts.map +1 -1
- package/ccw/dist/core/routes/claude-routes.js +57 -3
- package/ccw/dist/core/routes/claude-routes.js.map +1 -1
- package/ccw/dist/core/routes/cli-routes.d.ts +13 -0
- package/ccw/dist/core/routes/cli-routes.d.ts.map +1 -1
- package/ccw/dist/core/routes/cli-routes.js +46 -0
- package/ccw/dist/core/routes/cli-routes.js.map +1 -1
- package/ccw/dist/core/routes/hooks-routes.d.ts.map +1 -1
- package/ccw/dist/core/routes/hooks-routes.js +33 -0
- package/ccw/dist/core/routes/hooks-routes.js.map +1 -1
- package/ccw/dist/core/routes/issue-routes.d.ts.map +1 -1
- package/ccw/dist/core/routes/issue-routes.js +211 -29
- package/ccw/dist/core/routes/issue-routes.js.map +1 -1
- package/ccw/dist/core/routes/mcp-routes.d.ts.map +1 -1
- package/ccw/dist/core/routes/mcp-routes.js +4 -1
- package/ccw/dist/core/routes/mcp-routes.js.map +1 -1
- package/ccw/dist/core/routes/rules-routes.d.ts.map +1 -1
- package/ccw/dist/core/routes/rules-routes.js +22 -6
- package/ccw/dist/core/routes/rules-routes.js.map +1 -1
- package/ccw/dist/core/routes/session-routes.d.ts.map +1 -1
- package/ccw/dist/core/routes/session-routes.js +23 -1
- package/ccw/dist/core/routes/session-routes.js.map +1 -1
- package/ccw/dist/mcp-server/index.js +8 -2
- package/ccw/dist/mcp-server/index.js.map +1 -1
- package/ccw/dist/tools/claude-cli-tools.d.ts.map +1 -1
- package/ccw/dist/tools/claude-cli-tools.js +52 -28
- package/ccw/dist/tools/claude-cli-tools.js.map +1 -1
- package/ccw/dist/tools/cli-executor-core.d.ts.map +1 -1
- package/ccw/dist/tools/cli-executor-core.js +33 -8
- package/ccw/dist/tools/cli-executor-core.js.map +1 -1
- package/ccw/dist/tools/cli-executor-state.d.ts +2 -0
- package/ccw/dist/tools/cli-executor-state.d.ts.map +1 -1
- package/ccw/dist/tools/cli-executor-state.js.map +1 -1
- package/ccw/dist/tools/cli-executor-utils.d.ts +7 -0
- package/ccw/dist/tools/cli-executor-utils.d.ts.map +1 -1
- package/ccw/dist/tools/cli-executor-utils.js +18 -4
- package/ccw/dist/tools/cli-executor-utils.js.map +1 -1
- package/ccw/dist/tools/cli-history-store.d.ts +21 -0
- package/ccw/dist/tools/cli-history-store.d.ts.map +1 -1
- package/ccw/dist/tools/cli-history-store.js +106 -30
- package/ccw/dist/tools/cli-history-store.js.map +1 -1
- package/ccw/dist/tools/cli-output-converter.d.ts +2 -1
- package/ccw/dist/tools/cli-output-converter.d.ts.map +1 -1
- package/ccw/dist/tools/cli-output-converter.js +65 -10
- package/ccw/dist/tools/cli-output-converter.js.map +1 -1
- package/ccw/dist/tools/codex-lens-lsp.d.ts +61 -0
- package/ccw/dist/tools/codex-lens-lsp.d.ts.map +1 -0
- package/ccw/dist/tools/codex-lens-lsp.js +320 -0
- package/ccw/dist/tools/codex-lens-lsp.js.map +1 -0
- package/ccw/dist/tools/codex-lens.d.ts.map +1 -1
- package/ccw/dist/tools/codex-lens.js +74 -54
- package/ccw/dist/tools/codex-lens.js.map +1 -1
- package/ccw/dist/tools/index.d.ts.map +1 -1
- package/ccw/dist/tools/index.js +4 -0
- package/ccw/dist/tools/index.js.map +1 -1
- package/ccw/dist/tools/template-discovery.d.ts +85 -0
- package/ccw/dist/tools/template-discovery.d.ts.map +1 -0
- package/ccw/dist/tools/template-discovery.js +239 -0
- package/ccw/dist/tools/template-discovery.js.map +1 -0
- package/ccw/dist/tools/vscode-lsp.d.ts +57 -0
- package/ccw/dist/tools/vscode-lsp.d.ts.map +1 -0
- package/ccw/dist/tools/vscode-lsp.js +250 -0
- package/ccw/dist/tools/vscode-lsp.js.map +1 -0
- package/ccw/dist/utils/path-resolver.d.ts +16 -2
- package/ccw/dist/utils/path-resolver.d.ts.map +1 -1
- package/ccw/dist/utils/path-resolver.js +36 -6
- package/ccw/dist/utils/path-resolver.js.map +1 -1
- package/ccw/dist/utils/path-validator.d.ts +5 -0
- package/ccw/dist/utils/path-validator.d.ts.map +1 -1
- package/ccw/dist/utils/path-validator.js +16 -5
- package/ccw/dist/utils/path-validator.js.map +1 -1
- package/ccw/dist/utils/project-root.d.ts +25 -0
- package/ccw/dist/utils/project-root.d.ts.map +1 -0
- package/ccw/dist/utils/project-root.js +63 -0
- package/ccw/dist/utils/project-root.js.map +1 -0
- package/ccw/dist/utils/shell-escape.d.ts +47 -3
- package/ccw/dist/utils/shell-escape.d.ts.map +1 -1
- package/ccw/dist/utils/shell-escape.js +98 -15
- package/ccw/dist/utils/shell-escape.js.map +1 -1
- package/ccw/dist/utils/update-checker.d.ts +11 -0
- package/ccw/dist/utils/update-checker.d.ts.map +1 -0
- package/ccw/dist/utils/update-checker.js +167 -0
- package/ccw/dist/utils/update-checker.js.map +1 -0
- package/ccw/src/cli.ts +16 -0
- package/ccw/src/commands/cli.ts +126 -19
- package/ccw/src/commands/install.ts +239 -2
- package/ccw/src/commands/issue.ts +245 -31
- package/ccw/src/commands/uninstall.ts +23 -1
- package/ccw/src/commands/view.ts +4 -0
- package/ccw/src/commands/workflow.ts +348 -0
- package/ccw/src/core/routes/claude-routes.ts +64 -3
- package/ccw/src/core/routes/cli-routes.ts +58 -0
- package/ccw/src/core/routes/hooks-routes.ts +32 -0
- package/ccw/src/core/routes/issue-routes.ts +242 -28
- package/ccw/src/core/routes/mcp-routes.ts +6 -2
- package/ccw/src/core/routes/rules-routes.ts +24 -6
- package/ccw/src/core/routes/session-routes.ts +24 -1
- package/ccw/src/mcp-server/index.ts +7 -2
- package/ccw/src/templates/dashboard-css/26-claude-manager.css +179 -0
- package/ccw/src/templates/dashboard-css/32-issue-manager.css +3427 -3302
- package/ccw/src/templates/dashboard-css/33-cli-stream-viewer.css +3 -2
- package/ccw/src/templates/dashboard-js/components/cli-history.js +4 -1
- package/ccw/src/templates/dashboard-js/components/cli-stream-viewer.js +57 -21
- package/ccw/src/templates/dashboard-js/components/hook-manager.js +1492 -1492
- package/ccw/src/templates/dashboard-js/components/mcp-manager.js +107 -20
- package/ccw/src/templates/dashboard-js/components/version-check.js +135 -1
- package/ccw/src/templates/dashboard-js/i18n.js +42 -0
- package/ccw/src/templates/dashboard-js/views/claude-manager.js +168 -0
- package/ccw/src/templates/dashboard-js/views/cli-manager.js +1 -0
- package/ccw/src/templates/dashboard-js/views/issue-manager.js +201 -1
- package/ccw/src/templates/dashboard-js/views/lite-tasks.js +3502 -3478
- package/ccw/src/templates/dashboard-js/views/mcp-manager.js +16 -0
- package/ccw/src/templates/dashboard.html +112 -0
- package/ccw/src/tools/claude-cli-tools.ts +54 -28
- package/ccw/src/tools/cli-executor-core.ts +36 -8
- package/ccw/src/tools/cli-executor-state.ts +2 -0
- package/ccw/src/tools/cli-executor-utils.ts +26 -4
- package/ccw/src/tools/cli-history-store.ts +122 -31
- package/ccw/src/tools/cli-output-converter.ts +76 -12
- package/ccw/src/tools/codex-lens-lsp.ts +405 -0
- package/ccw/src/tools/codex-lens.ts +82 -59
- package/ccw/src/tools/index.ts +4 -0
- package/ccw/src/tools/template-discovery.ts +303 -0
- package/ccw/src/tools/vscode-lsp.ts +317 -0
- package/ccw/src/utils/path-resolver.ts +37 -6
- package/ccw/src/utils/path-validator.ts +17 -5
- package/ccw/src/utils/project-root.ts +73 -0
- package/ccw/src/utils/shell-escape.ts +103 -16
- package/ccw/src/utils/update-checker.ts +178 -0
- package/codex-lens/pyproject.toml +14 -0
- package/codex-lens/src/codexlens/__pycache__/config.cpython-312.pyc +0 -0
- package/codex-lens/src/codexlens/__pycache__/config.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/__pycache__/errors.cpython-312.pyc +0 -0
- package/codex-lens/src/codexlens/__pycache__/errors.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/api/__init__.py +88 -0
- package/codex-lens/src/codexlens/api/__pycache__/__init__.cpython-312.pyc +0 -0
- package/codex-lens/src/codexlens/api/__pycache__/__init__.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/api/__pycache__/definition.cpython-312.pyc +0 -0
- package/codex-lens/src/codexlens/api/__pycache__/definition.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/api/__pycache__/file_context.cpython-312.pyc +0 -0
- package/codex-lens/src/codexlens/api/__pycache__/file_context.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/api/__pycache__/hover.cpython-312.pyc +0 -0
- package/codex-lens/src/codexlens/api/__pycache__/hover.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/api/__pycache__/models.cpython-312.pyc +0 -0
- package/codex-lens/src/codexlens/api/__pycache__/models.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/api/__pycache__/references.cpython-312.pyc +0 -0
- package/codex-lens/src/codexlens/api/__pycache__/references.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/api/__pycache__/semantic.cpython-312.pyc +0 -0
- package/codex-lens/src/codexlens/api/__pycache__/semantic.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/api/__pycache__/symbols.cpython-312.pyc +0 -0
- package/codex-lens/src/codexlens/api/__pycache__/symbols.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/api/__pycache__/utils.cpython-312.pyc +0 -0
- package/codex-lens/src/codexlens/api/__pycache__/utils.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/api/definition.py +126 -0
- package/codex-lens/src/codexlens/api/file_context.py +271 -0
- package/codex-lens/src/codexlens/api/hover.py +148 -0
- package/codex-lens/src/codexlens/api/models.py +281 -0
- package/codex-lens/src/codexlens/api/references.py +345 -0
- package/codex-lens/src/codexlens/api/semantic.py +471 -0
- package/codex-lens/src/codexlens/api/symbols.py +146 -0
- package/codex-lens/src/codexlens/api/utils.py +153 -0
- package/codex-lens/src/codexlens/config.py +7 -0
- package/codex-lens/src/codexlens/errors.py +4 -0
- package/codex-lens/src/codexlens/hybrid_search/__init__.py +28 -0
- package/codex-lens/src/codexlens/hybrid_search/__pycache__/__init__.cpython-312.pyc +0 -0
- package/codex-lens/src/codexlens/hybrid_search/__pycache__/__init__.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/hybrid_search/__pycache__/data_structures.cpython-312.pyc +0 -0
- package/codex-lens/src/codexlens/hybrid_search/__pycache__/data_structures.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/hybrid_search/__pycache__/engine.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/hybrid_search/data_structures.py +602 -0
- package/codex-lens/src/codexlens/lsp/__init__.py +34 -0
- package/codex-lens/src/codexlens/lsp/__pycache__/__init__.cpython-312.pyc +0 -0
- package/codex-lens/src/codexlens/lsp/__pycache__/__init__.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/lsp/__pycache__/handlers.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/lsp/__pycache__/lsp_bridge.cpython-312.pyc +0 -0
- package/codex-lens/src/codexlens/lsp/__pycache__/lsp_bridge.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/lsp/__pycache__/lsp_graph_builder.cpython-312.pyc +0 -0
- package/codex-lens/src/codexlens/lsp/__pycache__/lsp_graph_builder.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/lsp/__pycache__/providers.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/lsp/__pycache__/server.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/lsp/__pycache__/standalone_manager.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/lsp/handlers.py +551 -0
- package/codex-lens/src/codexlens/lsp/lsp_bridge.py +834 -0
- package/codex-lens/src/codexlens/lsp/lsp_graph_builder.py +375 -0
- package/codex-lens/src/codexlens/lsp/providers.py +177 -0
- package/codex-lens/src/codexlens/lsp/server.py +263 -0
- package/codex-lens/src/codexlens/lsp/standalone_manager.py +1159 -0
- package/codex-lens/src/codexlens/mcp/__init__.py +20 -0
- package/codex-lens/src/codexlens/mcp/__pycache__/__init__.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/mcp/__pycache__/hooks.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/mcp/__pycache__/provider.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/mcp/__pycache__/schema.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/mcp/hooks.py +170 -0
- package/codex-lens/src/codexlens/mcp/provider.py +202 -0
- package/codex-lens/src/codexlens/mcp/schema.py +113 -0
- package/codex-lens/src/codexlens/search/__init__.py +53 -15
- package/codex-lens/src/codexlens/search/__pycache__/__init__.cpython-312.pyc +0 -0
- package/codex-lens/src/codexlens/search/__pycache__/__init__.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/search/__pycache__/chain_search.cpython-312.pyc +0 -0
- package/codex-lens/src/codexlens/search/__pycache__/chain_search.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/search/__pycache__/hybrid_search.cpython-312.pyc +0 -0
- package/codex-lens/src/codexlens/search/__pycache__/hybrid_search.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/search/__pycache__/ranking.cpython-312.pyc +0 -0
- package/codex-lens/src/codexlens/search/__pycache__/ranking.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/search/association_tree/QUICK_START.md +257 -0
- package/codex-lens/src/codexlens/search/association_tree/README.md +188 -0
- package/codex-lens/src/codexlens/search/association_tree/__init__.py +21 -0
- package/codex-lens/src/codexlens/search/association_tree/__pycache__/__init__.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/search/association_tree/__pycache__/builder.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/search/association_tree/__pycache__/data_structures.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/search/association_tree/__pycache__/deduplicator.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/search/association_tree/builder.py +450 -0
- package/codex-lens/src/codexlens/search/association_tree/data_structures.py +191 -0
- package/codex-lens/src/codexlens/search/association_tree/deduplicator.py +301 -0
- package/codex-lens/src/codexlens/search/chain_search.py +864 -3
- package/codex-lens/src/codexlens/search/clustering/__init__.py +124 -0
- package/codex-lens/src/codexlens/search/clustering/__pycache__/__init__.cpython-312.pyc +0 -0
- package/codex-lens/src/codexlens/search/clustering/__pycache__/__init__.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/search/clustering/__pycache__/base.cpython-312.pyc +0 -0
- package/codex-lens/src/codexlens/search/clustering/__pycache__/base.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/search/clustering/__pycache__/dbscan_strategy.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/search/clustering/__pycache__/factory.cpython-312.pyc +0 -0
- package/codex-lens/src/codexlens/search/clustering/__pycache__/factory.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/search/clustering/__pycache__/frequency_strategy.cpython-312.pyc +0 -0
- package/codex-lens/src/codexlens/search/clustering/__pycache__/frequency_strategy.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/search/clustering/__pycache__/hdbscan_strategy.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/search/clustering/__pycache__/noop_strategy.cpython-312.pyc +0 -0
- package/codex-lens/src/codexlens/search/clustering/__pycache__/noop_strategy.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/search/clustering/base.py +153 -0
- package/codex-lens/src/codexlens/search/clustering/dbscan_strategy.py +197 -0
- package/codex-lens/src/codexlens/search/clustering/factory.py +202 -0
- package/codex-lens/src/codexlens/search/clustering/frequency_strategy.py +263 -0
- package/codex-lens/src/codexlens/search/clustering/hdbscan_strategy.py +153 -0
- package/codex-lens/src/codexlens/search/clustering/noop_strategy.py +83 -0
- package/codex-lens/src/codexlens/search/hybrid_search.py +194 -2
- package/codex-lens/src/codexlens/search/ranking.py +6 -4
- package/codex-lens/src/codexlens/semantic/__pycache__/chunker.cpython-312.pyc +0 -0
- package/codex-lens/src/codexlens/storage/__pycache__/dir_index.cpython-312.pyc +0 -0
- package/codex-lens/src/codexlens/storage/__pycache__/dir_index.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/storage/__pycache__/global_index.cpython-312.pyc +0 -0
- package/codex-lens/src/codexlens/storage/__pycache__/global_index.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/storage/dir_index.py +172 -0
- package/codex-lens/src/codexlens/storage/global_index.py +33 -0
- package/package.json +92 -92
- /package/.claude/workflows/cli-templates/prompts/{analysis/02-analyze-code-patterns.txt → analysis-analyze-code-patterns.txt} +0 -0
- /package/.claude/workflows/cli-templates/prompts/{analysis/02-analyze-technical-document.txt → analysis-analyze-technical-document.txt} +0 -0
- /package/.claude/workflows/cli-templates/prompts/{analysis/01-diagnose-bug-root-cause.txt → analysis-diagnose-bug-root-cause.txt} +0 -0
- /package/.claude/workflows/cli-templates/prompts/{development/03-debug-runtime-issues.txt → development-debug-runtime-issues.txt} +0 -0
- /package/.claude/workflows/cli-templates/prompts/{development/02-generate-tests.txt → development-generate-tests.txt} +0 -0
- /package/.claude/workflows/cli-templates/prompts/{development/02-implement-component-ui.txt → development-implement-component-ui.txt} +0 -0
- /package/.claude/workflows/cli-templates/prompts/{development/02-implement-feature.txt → development-implement-feature.txt} +0 -0
- /package/.claude/workflows/cli-templates/prompts/{development/02-refactor-codebase.txt → development-refactor-codebase.txt} +0 -0
- /package/.claude/workflows/cli-templates/prompts/{documentation/module-readme.txt → documentation-module-readme.txt} +0 -0
- /package/.claude/workflows/cli-templates/prompts/{memory/02-document-module-structure.txt → memory-document-module-structure.txt} +0 -0
- /package/.claude/workflows/cli-templates/prompts/{planning/02-breakdown-task-steps.txt → planning-breakdown-task-steps.txt} +0 -0
- /package/.claude/workflows/cli-templates/prompts/{planning/03-evaluate-concept-feasibility.txt → planning-evaluate-concept-feasibility.txt} +0 -0
- /package/.claude/workflows/cli-templates/prompts/{planning/01-plan-architecture-design.txt → planning-plan-architecture-design.txt} +0 -0
- /package/.claude/workflows/cli-templates/prompts/{planning/03-plan-migration-strategy.txt → planning-plan-migration-strategy.txt} +0 -0
- /package/.claude/workflows/cli-templates/prompts/{rules/rule-api.txt → rules-rule-api.txt} +0 -0
- /package/.claude/workflows/cli-templates/prompts/{rules/rule-components.txt → rules-rule-components.txt} +0 -0
- /package/.claude/workflows/cli-templates/prompts/{rules/rule-config.txt → rules-rule-config.txt} +0 -0
- /package/.claude/workflows/cli-templates/prompts/{rules/rule-core.txt → rules-rule-core.txt} +0 -0
- /package/.claude/workflows/cli-templates/prompts/{rules/rule-patterns.txt → rules-rule-patterns.txt} +0 -0
- /package/.claude/workflows/cli-templates/prompts/{rules/rule-testing.txt → rules-rule-testing.txt} +0 -0
- /package/.claude/workflows/cli-templates/prompts/{rules/tech-rules-agent-prompt.txt → rules-tech-rules-agent-prompt.txt} +0 -0
- /package/.claude/workflows/cli-templates/prompts/{tech/tech-module-format.txt → tech-tech-module-format.txt} +0 -0
- /package/.claude/workflows/cli-templates/prompts/{tech/tech-skill-index.txt → tech-tech-skill-index.txt} +0 -0
- /package/.claude/workflows/cli-templates/prompts/{test/test-concept-analysis.txt → test-test-concept-analysis.txt} +0 -0
- /package/.claude/workflows/cli-templates/prompts/{universal/00-universal-creative-style.txt → universal-universal-creative-style.txt} +0 -0
- /package/.claude/workflows/cli-templates/prompts/{universal/00-universal-rigorous-style.txt → universal-universal-rigorous-style.txt} +0 -0
- /package/.claude/workflows/cli-templates/prompts/{workflow/codex-feasibility-validation.txt → workflow-codex-feasibility-validation.txt} +0 -0
- /package/.claude/workflows/cli-templates/prompts/{workflow/gemini-solution-design.txt → workflow-gemini-solution-design.txt} +0 -0
- /package/.claude/workflows/cli-templates/prompts/{workflow/skill-aggregation.txt → workflow-skill-aggregation.txt} +0 -0
- /package/.claude/workflows/cli-templates/prompts/{workflow/skill-index.txt → workflow-skill-index.txt} +0 -0
- /package/.claude/workflows/cli-templates/prompts/{workflow/skill-sessions-timeline.txt → workflow-skill-sessions-timeline.txt} +0 -0
- /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
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
"
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
"
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
{ "
|
|
97
|
-
{ "
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
"
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
"
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
{ "
|
|
113
|
-
{ "
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
"
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
"
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
"
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
"
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
"
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
"
|
|
175
|
-
"
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
"
|
|
179
|
-
"
|
|
180
|
-
},
|
|
181
|
-
"
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
"
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
"
|
|
189
|
-
"
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
"
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
"
|
|
209
|
-
"
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
"
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
"
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
{ "
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
"
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
"
|
|
267
|
-
"
|
|
268
|
-
"
|
|
269
|
-
|
|
270
|
-
"
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
"
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
"
|
|
311
|
-
"
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
"
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
"
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
"
|
|
328
|
-
"
|
|
329
|
-
"
|
|
330
|
-
|
|
331
|
-
"
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
"
|
|
347
|
-
"
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
},
|
|
364
|
-
"
|
|
365
|
-
"
|
|
366
|
-
"
|
|
367
|
-
"
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
"
|
|
372
|
-
"
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
"
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
"
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
"
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
"
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
"
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
"
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
"
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
"
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
"
|
|
445
|
-
"
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
"
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
},
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
"
|
|
489
|
-
"
|
|
490
|
-
"
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
"
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
},
|
|
508
|
-
"
|
|
509
|
-
"
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
"
|
|
534
|
-
"
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
"
|
|
540
|
-
|
|
541
|
-
"
|
|
542
|
-
"
|
|
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
|
+
}
|