claude-code-workflow 7.2.30 → 7.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/commands/workflow-skill.md +130 -0
- package/.claude/skills/ccw-chain/SKILL.md +44 -71
- package/.claude/skills/ccw-chain/chains/ccw-cycle.json +13 -3
- package/.claude/skills/ccw-chain/chains/ccw-exploration.json +33 -22
- package/.claude/skills/ccw-chain/chains/ccw-issue.json +23 -12
- package/.claude/skills/ccw-chain/chains/ccw-lightweight.json +23 -9
- package/.claude/skills/ccw-chain/chains/ccw-main.json +15 -2
- package/.claude/skills/ccw-chain/chains/ccw-standard.json +28 -16
- package/.claude/skills/ccw-chain/chains/ccw-team.json +7 -2
- package/.claude/skills/ccw-chain/chains/ccw-with-file.json +25 -9
- package/.claude/skills/chain-loader/phases/01-analyze-skill.md +53 -53
- package/.claude/skills/chain-loader/specs/chain-schema.md +30 -3
- package/.claude/skills/chain-loader/templates/chain-json.md +63 -63
- package/.claude/skills/workflow-plan/SKILL.md +1 -0
- package/.claude/skills/workflow-plan/phases/01-session-discovery.md +19 -2
- package/.claude/skills/workflow-plan/phases/02-context-gathering.md +2 -2
- package/.claude/skills/workflow-plan/phases/04-task-generation.md +9 -1
- package/.codex/skills/analyze-with-file/SKILL.md +383 -134
- package/.codex/skills/brainstorm/SKILL.md +3 -3
- package/.codex/skills/brainstorm-with-file/SKILL.md +208 -88
- package/.codex/skills/clean/SKILL.md +1 -1
- package/.codex/skills/csv-wave-pipeline/SKILL.md +2 -2
- package/.codex/skills/investigate/orchestrator.md +24 -0
- package/.codex/skills/issue-discover/SKILL.md +374 -361
- package/.codex/skills/issue-discover/phases/01-issue-new.md +1 -1
- package/.codex/skills/issue-discover/phases/02-discover.md +2 -2
- package/.codex/skills/issue-discover/phases/03-discover-by-prompt.md +1 -1
- package/.codex/skills/issue-discover/phases/04-quick-execute.md +2 -2
- package/.codex/skills/parallel-dev-cycle/SKILL.md +44 -37
- package/.codex/skills/project-documentation-workflow/SKILL.md +1 -1
- package/.codex/skills/review-cycle/SKILL.md +31 -12
- package/.codex/skills/roadmap-with-file/SKILL.md +141 -133
- package/.codex/skills/security-audit/orchestrator.md +29 -0
- package/.codex/skills/session-sync/SKILL.md +1 -1
- package/.codex/skills/ship/orchestrator.md +24 -0
- package/.codex/skills/spec-add/SKILL.md +5 -5
- package/.codex/skills/spec-generator/SKILL.md +33 -2
- package/.codex/skills/spec-generator/phases/01-5-requirement-clarification.md +3 -3
- package/.codex/skills/spec-generator/phases/01-discovery.md +1 -1
- package/.codex/skills/spec-generator/phases/02-product-brief.md +1 -1
- package/.codex/skills/spec-generator/phases/03-requirements.md +1 -1
- package/.codex/skills/spec-generator/phases/04-architecture.md +1 -1
- package/.codex/skills/spec-generator/phases/05-epics-stories.md +1 -1
- package/.codex/skills/spec-generator/phases/06-readiness-check.md +1 -1
- package/.codex/skills/spec-generator/phases/07-issue-export.md +1 -1
- package/.codex/skills/spec-setup/SKILL.md +669 -669
- package/.codex/skills/team-arch-opt/specs/team-config.json +1 -1
- package/.codex/skills/team-brainstorm/SKILL.md +259 -259
- package/.codex/skills/team-coordinate/SKILL.md +359 -359
- package/.codex/skills/team-coordinate/roles/coordinator/commands/monitor.md +1 -1
- package/.codex/skills/team-designer/SKILL.md +27 -1
- package/.codex/skills/team-designer/phases/01-requirements-analysis.md +2 -2
- package/.codex/skills/team-designer/phases/02-scaffold-generation.md +1 -1
- package/.codex/skills/team-designer/phases/04-validation.md +1 -1
- package/.codex/skills/team-executor/SKILL.md +218 -218
- package/.codex/skills/team-frontend/SKILL.md +227 -227
- package/.codex/skills/team-frontend-debug/SKILL.md +278 -278
- package/.codex/skills/team-frontend-debug/roles/coordinator/commands/analyze.md +2 -2
- package/.codex/skills/team-interactive-craft/SKILL.md +220 -220
- package/.codex/skills/team-interactive-craft/roles/coordinator/role.md +209 -209
- package/.codex/skills/team-issue/SKILL.md +269 -269
- package/.codex/skills/team-issue/roles/coordinator/role.md +1 -1
- package/.codex/skills/team-lifecycle-v4/SKILL.md +305 -305
- package/.codex/skills/team-motion-design/SKILL.md +222 -222
- package/.codex/skills/team-motion-design/roles/coordinator/role.md +210 -210
- package/.codex/skills/team-perf-opt/SKILL.md +258 -258
- package/.codex/skills/team-perf-opt/specs/team-config.json +1 -1
- package/.codex/skills/team-planex/SKILL.md +216 -216
- package/.codex/skills/team-quality-assurance/SKILL.md +229 -229
- package/.codex/skills/team-review/SKILL.md +227 -227
- package/.codex/skills/team-roadmap-dev/SKILL.md +238 -238
- package/.codex/skills/team-roadmap-dev/roles/coordinator/commands/roadmap-discuss.md +5 -5
- package/.codex/skills/team-tech-debt/SKILL.md +206 -206
- package/.codex/skills/team-tech-debt/roles/coordinator/commands/monitor.md +1 -1
- package/.codex/skills/team-testing/SKILL.md +237 -237
- package/.codex/skills/team-ui-polish/SKILL.md +218 -218
- package/.codex/skills/team-ui-polish/roles/coordinator/role.md +213 -213
- package/.codex/skills/team-uidesign/SKILL.md +219 -219
- package/.codex/skills/team-uidesign/roles/coordinator/role.md +2 -2
- package/.codex/skills/team-ultra-analyze/SKILL.md +260 -260
- package/.codex/skills/team-ultra-analyze/roles/coordinator/commands/monitor.md +1 -1
- package/.codex/skills/team-ultra-analyze/roles/coordinator/role.md +1 -1
- package/.codex/skills/team-ux-improve/SKILL.md +227 -227
- package/.codex/skills/team-ux-improve/roles/coordinator/role.md +1 -1
- package/.codex/skills/team-ux-improve/specs/team-config.json +1 -1
- package/.codex/skills/team-visual-a11y/SKILL.md +319 -319
- package/.codex/skills/team-visual-a11y/roles/coordinator/role.md +213 -213
- package/.codex/skills/workflow-execute/SKILL.md +5 -5
- package/.codex/skills/workflow-lite-planex/SKILL.md +3 -3
- package/.codex/skills/workflow-plan/SKILL.md +3 -3
- package/.codex/skills/workflow-tdd-plan/SKILL.md +4 -4
- package/.codex/skills/workflow-test-fix-cycle/SKILL.md +403 -402
- package/ccw/dist/cli.d.ts.map +1 -1
- package/ccw/dist/cli.js +16 -0
- package/ccw/dist/cli.js.map +1 -1
- package/ccw/dist/commands/chain-loader.d.ts +2 -0
- package/ccw/dist/commands/chain-loader.d.ts.map +1 -0
- package/ccw/dist/commands/chain-loader.js +11 -0
- package/ccw/dist/commands/chain-loader.js.map +1 -0
- package/ccw/dist/commands/install.d.ts.map +1 -1
- package/ccw/dist/commands/install.js +52 -1
- package/ccw/dist/commands/install.js.map +1 -1
- package/ccw/dist/commands/launcher.d.ts +2 -0
- package/ccw/dist/commands/launcher.d.ts.map +1 -0
- package/ccw/dist/commands/launcher.js +434 -0
- package/ccw/dist/commands/launcher.js.map +1 -0
- package/ccw/dist/tools/chain-loader.d.ts.map +1 -1
- package/ccw/dist/tools/chain-loader.js +457 -45
- package/ccw/dist/tools/chain-loader.js.map +1 -1
- package/ccw/dist/tools/skill-context-loader.d.ts.map +1 -1
- package/ccw/dist/tools/skill-context-loader.js +12 -26
- package/ccw/dist/tools/skill-context-loader.js.map +1 -1
- package/ccw/dist/types/chain-types.d.ts +41 -1
- package/ccw/dist/types/chain-types.d.ts.map +1 -1
- package/ccw/dist/utils/chain-visualizer.d.ts +13 -0
- package/ccw/dist/utils/chain-visualizer.d.ts.map +1 -0
- package/ccw/dist/utils/chain-visualizer.js +164 -0
- package/ccw/dist/utils/chain-visualizer.js.map +1 -0
- package/package.json +1 -1
- package/.claude/commands/cli/cli-init.md +0 -441
- package/.claude/commands/cli/codex-review.md +0 -361
- package/.claude/commands/flow-create.md +0 -663
- package/.claude/skills/ccw-chain/phases/analyze-with-file.md +0 -788
- package/.claude/skills/ccw-chain/phases/brainstorm/SKILL.md +0 -408
- package/.claude/skills/ccw-chain/phases/brainstorm/phases/01-mode-routing.md +0 -207
- package/.claude/skills/ccw-chain/phases/brainstorm/phases/02-artifacts.md +0 -567
- package/.claude/skills/ccw-chain/phases/brainstorm/phases/03-role-analysis.md +0 -748
- package/.claude/skills/ccw-chain/phases/brainstorm/phases/04-synthesis.md +0 -827
- package/.claude/skills/ccw-chain/phases/brainstorm-with-file.md +0 -482
- package/.claude/skills/ccw-chain/phases/collaborative-plan-with-file.md +0 -639
- package/.claude/skills/ccw-chain/phases/debug-with-file.md +0 -656
- package/.claude/skills/ccw-chain/phases/integration-test-cycle.md +0 -936
- package/.claude/skills/ccw-chain/phases/issue-convert-to-plan.md +0 -720
- package/.claude/skills/ccw-chain/phases/issue-discover.md +0 -483
- package/.claude/skills/ccw-chain/phases/issue-execute.md +0 -629
- package/.claude/skills/ccw-chain/phases/issue-from-brainstorm.md +0 -382
- package/.claude/skills/ccw-chain/phases/issue-plan.md +0 -343
- package/.claude/skills/ccw-chain/phases/issue-queue.md +0 -464
- package/.claude/skills/ccw-chain/phases/refactor-cycle.md +0 -852
- package/.claude/skills/ccw-chain/phases/review-cycle/SKILL.md +0 -132
- package/.claude/skills/ccw-chain/phases/review-cycle/phases/review-fix.md +0 -760
- package/.claude/skills/ccw-chain/phases/review-cycle/phases/review-module.md +0 -764
- package/.claude/skills/ccw-chain/phases/review-cycle/phases/review-session.md +0 -775
- package/.claude/skills/ccw-chain/phases/roadmap-with-file.md +0 -544
- package/.claude/skills/ccw-chain/phases/spec-generator/SKILL.md +0 -338
- package/.claude/skills/ccw-chain/phases/spec-generator/phases/01-5-requirement-clarification.md +0 -404
- package/.claude/skills/ccw-chain/phases/spec-generator/phases/01-discovery.md +0 -257
- package/.claude/skills/ccw-chain/phases/spec-generator/phases/02-product-brief.md +0 -274
- package/.claude/skills/ccw-chain/phases/spec-generator/phases/03-requirements.md +0 -184
- package/.claude/skills/ccw-chain/phases/spec-generator/phases/04-architecture.md +0 -248
- package/.claude/skills/ccw-chain/phases/spec-generator/phases/05-epics-stories.md +0 -178
- package/.claude/skills/ccw-chain/phases/spec-generator/phases/06-5-auto-fix.md +0 -144
- package/.claude/skills/ccw-chain/phases/spec-generator/phases/06-readiness-check.md +0 -480
- package/.claude/skills/ccw-chain/phases/team-planex.md +0 -123
- package/.claude/skills/ccw-chain/phases/ui-design-explore-auto.md +0 -678
- package/.claude/skills/ccw-chain/phases/unified-execute-with-file.md +0 -870
- package/.claude/skills/ccw-chain/phases/workflow-execute/SKILL.md +0 -625
- package/.claude/skills/ccw-chain/phases/workflow-execute/phases/06-review.md +0 -215
- package/.claude/skills/ccw-chain/phases/workflow-lite-plan.md +0 -616
- package/.claude/skills/ccw-chain/phases/workflow-multi-cli-plan.md +0 -424
- package/.claude/skills/ccw-chain/phases/workflow-plan/SKILL.md +0 -466
- package/.claude/skills/ccw-chain/phases/workflow-plan/phases/01-session-discovery.md +0 -99
- package/.claude/skills/ccw-chain/phases/workflow-plan/phases/02-context-gathering.md +0 -338
- package/.claude/skills/ccw-chain/phases/workflow-plan/phases/03-conflict-resolution.md +0 -422
- package/.claude/skills/ccw-chain/phases/workflow-plan/phases/04-task-generation.md +0 -440
- package/.claude/skills/ccw-chain/phases/workflow-plan/phases/05-plan-verify.md +0 -395
- package/.claude/skills/ccw-chain/phases/workflow-plan/phases/06-replan.md +0 -594
- package/.claude/skills/ccw-chain/phases/workflow-tdd-plan/SKILL.md +0 -527
- package/.claude/skills/ccw-chain/phases/workflow-tdd-plan/phases/01-session-discovery.md +0 -57
- package/.claude/skills/ccw-chain/phases/workflow-tdd-plan/phases/02-context-gathering.md +0 -407
- package/.claude/skills/ccw-chain/phases/workflow-tdd-plan/phases/03-test-coverage-analysis.md +0 -172
- package/.claude/skills/ccw-chain/phases/workflow-tdd-plan/phases/04-conflict-resolution.md +0 -426
- package/.claude/skills/ccw-chain/phases/workflow-tdd-plan/phases/05-tdd-task-generation.md +0 -473
- package/.claude/skills/ccw-chain/phases/workflow-tdd-plan/phases/06-tdd-structure-validation.md +0 -189
- package/.claude/skills/ccw-chain/phases/workflow-tdd-plan/phases/07-tdd-verify.md +0 -635
- package/.claude/skills/ccw-chain/phases/workflow-test-fix/SKILL.md +0 -482
- package/.claude/skills/ccw-chain/phases/workflow-test-fix/phases/01-session-start.md +0 -60
- package/.claude/skills/ccw-chain/phases/workflow-test-fix/phases/02-test-context-gather.md +0 -493
- package/.claude/skills/ccw-chain/phases/workflow-test-fix/phases/03-test-concept-enhanced.md +0 -150
- package/.claude/skills/ccw-chain/phases/workflow-test-fix/phases/04-test-task-generate.md +0 -346
- package/.claude/skills/ccw-chain/phases/workflow-test-fix/phases/05-test-cycle-execute.md +0 -538
- package/.claude/skills/ccw-chain/specs/intent-patterns.md +0 -60
- package/.claude/skills/team-edict.zip +0 -0
|
@@ -1,538 +0,0 @@
|
|
|
1
|
-
# Phase 2: Test Cycle Execution (test-cycle-execute)
|
|
2
|
-
|
|
3
|
-
> **📌 COMPACT SENTINEL [Phase 5: Test-Cycle-Execute]**
|
|
4
|
-
> This phase contains 4 execution steps (Step 2.1 — 2.4).
|
|
5
|
-
> If you can read this sentinel but cannot find the full Step protocol below, context has been compressed.
|
|
6
|
-
> Recovery: `Read("phases/05-test-cycle-execute.md")`
|
|
7
|
-
|
|
8
|
-
Execute test-fix workflow with dynamic task generation and iterative fix cycles until test pass rate >= 95% or max iterations reached. Uses @cli-planning-agent for failure analysis and task generation.
|
|
9
|
-
|
|
10
|
-
## Objective
|
|
11
|
-
|
|
12
|
-
- Discover and load test session with generated tasks
|
|
13
|
-
- Execute initial task pipeline (IMPL-001 → 001.3 → 001.5 → 002)
|
|
14
|
-
- Run iterative fix loop with adaptive strategy engine
|
|
15
|
-
- Achieve pass rate >= 95% or exhaust max iterations
|
|
16
|
-
- Complete session with summary and post-expansion options
|
|
17
|
-
|
|
18
|
-
## Quick Start
|
|
19
|
-
|
|
20
|
-
```bash
|
|
21
|
-
# Execute test-fix workflow (auto-discovers active session)
|
|
22
|
-
/workflow-test-fix
|
|
23
|
-
|
|
24
|
-
# Resume interrupted session
|
|
25
|
-
/workflow-test-fix --resume-session="WFS-test-user-auth"
|
|
26
|
-
|
|
27
|
-
# Custom iteration limit (default: 10)
|
|
28
|
-
/workflow-test-fix --max-iterations=15
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
**Quality Gate**: Test pass rate >= 95% (criticality-aware) or 100%
|
|
32
|
-
**Max Iterations**: 10 (default, adjustable)
|
|
33
|
-
**CLI Tools**: Gemini → Qwen → Codex (fallback chain)
|
|
34
|
-
|
|
35
|
-
## Core Concept
|
|
36
|
-
|
|
37
|
-
Dynamic test-fix orchestrator with **adaptive task generation** based on runtime analysis.
|
|
38
|
-
|
|
39
|
-
**Orchestrator Boundary**: The orchestrator (this phase) is responsible ONLY for:
|
|
40
|
-
- Loop control and iteration tracking
|
|
41
|
-
- Strategy selection and threshold decisions
|
|
42
|
-
- Delegating analysis to @cli-planning-agent and execution to @test-fix-agent
|
|
43
|
-
- Reading results and making pass/fail decisions
|
|
44
|
-
- The orchestrator does NOT directly modify source code, run tests, or perform root cause analysis
|
|
45
|
-
|
|
46
|
-
**vs Standard Execute**:
|
|
47
|
-
- **Standard**: Pre-defined tasks → Execute sequentially → Done
|
|
48
|
-
- **Test-Cycle**: Initial tasks → **Test → Analyze failures → Generate fix tasks → Fix → Re-test** → Repeat until pass
|
|
49
|
-
|
|
50
|
-
## Execution
|
|
51
|
-
|
|
52
|
-
### Step 2.1: Discovery
|
|
53
|
-
|
|
54
|
-
Load session, tasks, and iteration state.
|
|
55
|
-
|
|
56
|
-
```
|
|
57
|
-
1. Discovery
|
|
58
|
-
└─ Load session, tasks, iteration state
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
**For full-pipeline entry (from Phase 1-4)**: Use `testSessionId` passed from Phase 4.
|
|
62
|
-
|
|
63
|
-
**For direct entry (/workflow-test-fix)**:
|
|
64
|
-
- `--resume-session="WFS-xxx"` → Use specified session
|
|
65
|
-
- No args → Auto-discover active test session (find `.workflow/active/WFS-test-*`)
|
|
66
|
-
|
|
67
|
-
### Step 2.2: Execute Initial Tasks
|
|
68
|
-
|
|
69
|
-
Execute the generated task pipeline sequentially:
|
|
70
|
-
|
|
71
|
-
```
|
|
72
|
-
IMPL-001 (test-gen, @code-developer) →
|
|
73
|
-
IMPL-001.3 (code-validation, @test-fix-agent) →
|
|
74
|
-
IMPL-001.5 (test-quality-review, @test-fix-agent) →
|
|
75
|
-
IMPL-002 (test-fix, @test-fix-agent) →
|
|
76
|
-
Calculate pass_rate from test-results.json
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
**Agent Invocation - @test-fix-agent** (execution):
|
|
80
|
-
```javascript
|
|
81
|
-
Task(
|
|
82
|
-
subagent_type="test-fix-agent",
|
|
83
|
-
run_in_background=false,
|
|
84
|
-
description=`Execute ${task.meta.type}: ${task.title}`,
|
|
85
|
-
prompt=`
|
|
86
|
-
## Task Objective
|
|
87
|
-
${taskTypeObjective[task.meta.type]}
|
|
88
|
-
|
|
89
|
-
## MANDATORY FIRST STEPS
|
|
90
|
-
1. Read task JSON: ${session.task_json_path}
|
|
91
|
-
2. Read iteration state: ${session.iteration_state_path}
|
|
92
|
-
3. ${taskTypeSpecificReads[task.meta.type]}
|
|
93
|
-
|
|
94
|
-
## CRITICAL: Syntax Check Priority
|
|
95
|
-
**Before any code modification or test execution:**
|
|
96
|
-
- Run project syntax checker (TypeScript: tsc --noEmit, ESLint, etc.)
|
|
97
|
-
- Verify zero syntax errors before proceeding
|
|
98
|
-
- If syntax errors found: Fix immediately before other work
|
|
99
|
-
- Syntax validation is MANDATORY gate - no exceptions
|
|
100
|
-
|
|
101
|
-
## Session Paths
|
|
102
|
-
- Workflow Dir: ${session.workflow_dir}
|
|
103
|
-
- Task JSON: ${session.task_json_path}
|
|
104
|
-
- Test Results Output: ${session.test_results_path}
|
|
105
|
-
- Test Output Log: ${session.test_output_path}
|
|
106
|
-
- Iteration State: ${session.iteration_state_path}
|
|
107
|
-
|
|
108
|
-
## Task Type: ${task.meta.type}
|
|
109
|
-
${taskTypeGuidance[task.meta.type]}
|
|
110
|
-
|
|
111
|
-
## Expected Deliverables
|
|
112
|
-
${taskTypeDeliverables[task.meta.type]}
|
|
113
|
-
|
|
114
|
-
## Success Criteria
|
|
115
|
-
- ${taskTypeSuccessCriteria[task.meta.type]}
|
|
116
|
-
- Update task status in task JSON
|
|
117
|
-
- Save all outputs to specified paths
|
|
118
|
-
- Report completion to orchestrator
|
|
119
|
-
`
|
|
120
|
-
)
|
|
121
|
-
|
|
122
|
-
// Task Type Configurations
|
|
123
|
-
const taskTypeObjective = {
|
|
124
|
-
"test-gen": "Generate comprehensive tests based on requirements",
|
|
125
|
-
"test-fix": "Execute test suite and report results with criticality assessment",
|
|
126
|
-
"test-fix-iteration": "Apply fixes from strategy and validate with tests"
|
|
127
|
-
};
|
|
128
|
-
|
|
129
|
-
const taskTypeSpecificReads = {
|
|
130
|
-
"test-gen": "Read test context: ${session.test_context_path}",
|
|
131
|
-
"test-fix": "Read previous results (if exists): ${session.test_results_path}",
|
|
132
|
-
"test-fix-iteration": "Read fix strategy: ${session.analysis_path}, fix history: ${session.fix_history_path}"
|
|
133
|
-
};
|
|
134
|
-
|
|
135
|
-
const taskTypeGuidance = {
|
|
136
|
-
"test-gen": `
|
|
137
|
-
- Read task.context.requirements for test scenarios
|
|
138
|
-
- Generate tests following existing patterns and framework conventions
|
|
139
|
-
`,
|
|
140
|
-
"test-fix": `
|
|
141
|
-
- Execute multi-layer test suite (follow your Layer-Aware Diagnosis spec)
|
|
142
|
-
- Save structured results to ${session.test_results_path}
|
|
143
|
-
- Apply criticality assessment per your spec (high/medium/low)
|
|
144
|
-
`,
|
|
145
|
-
"test-fix-iteration": `
|
|
146
|
-
- Load fix_strategy from task.context.fix_strategy
|
|
147
|
-
- Identify modification_points: ${task.context.fix_strategy.modification_points}
|
|
148
|
-
- Apply surgical fixes (minimal changes)
|
|
149
|
-
- Test execution mode: ${task.context.fix_strategy.test_execution.mode}
|
|
150
|
-
* affected_only: Run ${task.context.fix_strategy.test_execution.affected_tests}
|
|
151
|
-
* full_suite: Run complete test suite
|
|
152
|
-
- If failures persist: Document in test-results.json, DO NOT analyze (orchestrator handles)
|
|
153
|
-
`
|
|
154
|
-
};
|
|
155
|
-
|
|
156
|
-
const taskTypeDeliverables = {
|
|
157
|
-
"test-gen": "- Test files in target directories\n - Test coverage report\n - Summary in .summaries/",
|
|
158
|
-
"test-fix": "- test-results.json (pass_rate, criticality, failures)\n - test-output.log (full test output)\n - Summary in .summaries/",
|
|
159
|
-
"test-fix-iteration": "- Modified source files\n - test-results.json (updated pass_rate)\n - test-output.log\n - Summary in .summaries/"
|
|
160
|
-
};
|
|
161
|
-
|
|
162
|
-
const taskTypeSuccessCriteria = {
|
|
163
|
-
"test-gen": "All test files created, executable without errors, coverage documented",
|
|
164
|
-
"test-fix": "Test results saved with accurate pass_rate and criticality, all failures documented",
|
|
165
|
-
"test-fix-iteration": "Fixes applied per strategy, tests executed, results reported (pass/fail to orchestrator)"
|
|
166
|
-
};
|
|
167
|
-
```
|
|
168
|
-
|
|
169
|
-
**Decision after IMPL-002 execution**:
|
|
170
|
-
```
|
|
171
|
-
pass_rate = Read(test-results.json).pass_rate
|
|
172
|
-
├─ 100% → SUCCESS: Proceed to Step 2.4 (Completion)
|
|
173
|
-
├─ 95-99% + all failures low criticality → PARTIAL SUCCESS: Proceed to Step 2.4
|
|
174
|
-
└─ <95% or critical failures → Enter Step 2.3 (Fix Loop)
|
|
175
|
-
```
|
|
176
|
-
|
|
177
|
-
### Step 2.3: Iterative Fix Loop
|
|
178
|
-
|
|
179
|
-
**Conditional**: Only enters when pass_rate < 95% or critical failures exist.
|
|
180
|
-
|
|
181
|
-
#### Intelligent Strategy Engine
|
|
182
|
-
|
|
183
|
-
**Auto-selects optimal strategy based on iteration context:**
|
|
184
|
-
|
|
185
|
-
| Strategy | Trigger | Behavior |
|
|
186
|
-
|----------|---------|----------|
|
|
187
|
-
| **Conservative** | Iteration 1-2 (default) | Single targeted fix, full validation |
|
|
188
|
-
| **Aggressive** | Pass rate >80% + similar failures | Batch fix related issues |
|
|
189
|
-
| **Surgical** | Regression detected (pass rate drops >10%) | Minimal changes, rollback focus |
|
|
190
|
-
|
|
191
|
-
**Selection Logic** (in orchestrator):
|
|
192
|
-
```javascript
|
|
193
|
-
if (iteration <= 2) return "conservative";
|
|
194
|
-
if (passRate > 80 && failurePattern.similarity > 0.7) return "aggressive";
|
|
195
|
-
if (regressionDetected) return "surgical";
|
|
196
|
-
return "conservative";
|
|
197
|
-
```
|
|
198
|
-
|
|
199
|
-
**Integration**: Strategy passed to @cli-planning-agent in prompt for tailored analysis.
|
|
200
|
-
|
|
201
|
-
#### Progressive Testing
|
|
202
|
-
|
|
203
|
-
**Runs affected tests during iterations, full suite only for final validation.**
|
|
204
|
-
|
|
205
|
-
**How It Works**:
|
|
206
|
-
1. @cli-planning-agent analyzes fix_strategy.modification_points
|
|
207
|
-
2. Maps modified files to test files (via imports + integration patterns)
|
|
208
|
-
3. Returns `affected_tests[]` in task JSON
|
|
209
|
-
4. @test-fix-agent runs: `npm test -- ${affected_tests.join(' ')}`
|
|
210
|
-
5. Final validation: `npm test` (full suite)
|
|
211
|
-
|
|
212
|
-
**Benefits**: 70-90% iteration speed improvement, instant feedback on fix effectiveness.
|
|
213
|
-
|
|
214
|
-
#### Orchestrator Runtime Calculations
|
|
215
|
-
|
|
216
|
-
**From iteration-state.json**:
|
|
217
|
-
- Current iteration: `iterations.length + 1`
|
|
218
|
-
- Stuck tests: Tests appearing in `failed_tests` for 3+ consecutive iterations
|
|
219
|
-
- Regression: Compare consecutive `pass_rate` values (>10% drop)
|
|
220
|
-
- Max iterations: Read from `task.meta.max_iterations`
|
|
221
|
-
|
|
222
|
-
#### Fix Loop Flow
|
|
223
|
-
|
|
224
|
-
```
|
|
225
|
-
for each iteration (N = 1 to maxIterations):
|
|
226
|
-
1. Detect: stuck tests, regression, progress trend
|
|
227
|
-
2. Select strategy: conservative/aggressive/surgical
|
|
228
|
-
3. Generate fix task via @cli-planning-agent
|
|
229
|
-
4. Execute fix via @test-fix-agent
|
|
230
|
-
5. Re-test → Calculate pass_rate
|
|
231
|
-
6. Decision:
|
|
232
|
-
├─ pass_rate >= 95% → EXIT loop → Step 2.4
|
|
233
|
-
├─ regression detected → Rollback, switch to surgical
|
|
234
|
-
└─ continue → Next iteration
|
|
235
|
-
```
|
|
236
|
-
|
|
237
|
-
#### Agent Invocation - @cli-planning-agent (failure analysis)
|
|
238
|
-
|
|
239
|
-
```javascript
|
|
240
|
-
Task(
|
|
241
|
-
subagent_type="cli-planning-agent",
|
|
242
|
-
run_in_background=false,
|
|
243
|
-
description=`Analyze test failures (iteration ${N}) - ${strategy} strategy`,
|
|
244
|
-
prompt=`
|
|
245
|
-
## Task Objective
|
|
246
|
-
Analyze test failures and generate fix task JSON for iteration ${N}
|
|
247
|
-
|
|
248
|
-
## Strategy
|
|
249
|
-
${selectedStrategy} - ${strategyDescription}
|
|
250
|
-
|
|
251
|
-
## PROJECT CONTEXT (MANDATORY)
|
|
252
|
-
1. Run: \`ccw spec load --category execution\` (tech stack, build system, constraints)
|
|
253
|
-
2. Run: \`ccw spec load --category test\` (test framework, coverage targets, conventions)
|
|
254
|
-
|
|
255
|
-
## MANDATORY FIRST STEPS
|
|
256
|
-
1. Read test results: ${session.test_results_path}
|
|
257
|
-
2. Read test output: ${session.test_output_path}
|
|
258
|
-
3. Read iteration state: ${session.iteration_state_path}
|
|
259
|
-
|
|
260
|
-
## Context Metadata (Orchestrator-Calculated)
|
|
261
|
-
- Session ID: ${sessionId} (from file path)
|
|
262
|
-
- Current Iteration: ${N} (= iterations.length + 1)
|
|
263
|
-
- Max Iterations: ${maxIterations} (from task.meta.max_iterations)
|
|
264
|
-
- Current Pass Rate: ${passRate}%
|
|
265
|
-
- Selected Strategy: ${selectedStrategy} (from iteration-state.json)
|
|
266
|
-
- Stuck Tests: ${stuckTests} (calculated from iterations[].failed_tests history)
|
|
267
|
-
|
|
268
|
-
## CLI Configuration
|
|
269
|
-
- Tool Priority: gemini & codex
|
|
270
|
-
- Template: 01-diagnose-bug-root-cause.txt
|
|
271
|
-
- Timeout: 2400000ms
|
|
272
|
-
|
|
273
|
-
## Expected Deliverables
|
|
274
|
-
1. Task JSON: ${session.task_dir}/IMPL-fix-${N}.json
|
|
275
|
-
- Must include: fix_strategy.test_execution.affected_tests[]
|
|
276
|
-
- Must include: fix_strategy.confidence_score
|
|
277
|
-
2. Analysis report: ${session.process_dir}/iteration-${N}-analysis.md
|
|
278
|
-
3. CLI output: ${session.process_dir}/iteration-${N}-cli-output.txt
|
|
279
|
-
|
|
280
|
-
## Strategy-Specific Requirements
|
|
281
|
-
- Conservative: Single targeted fix, high confidence required
|
|
282
|
-
- Aggressive: Batch fix similar failures, pattern-based approach
|
|
283
|
-
- Surgical: Minimal changes, focus on rollback safety
|
|
284
|
-
|
|
285
|
-
## Success Criteria
|
|
286
|
-
- Concrete fix strategy with modification points (file:function:lines)
|
|
287
|
-
- Affected tests list for progressive testing
|
|
288
|
-
- Root cause analysis (not just symptoms)
|
|
289
|
-
`
|
|
290
|
-
)
|
|
291
|
-
```
|
|
292
|
-
|
|
293
|
-
#### CLI Tool Configuration
|
|
294
|
-
|
|
295
|
-
**Fallback Chain**: Gemini → Qwen → Codex
|
|
296
|
-
**Template**: `~/.ccw/workflows/cli-templates/prompts/analysis/01-diagnose-bug-root-cause.txt`
|
|
297
|
-
**Timeout**: 40min (2400000ms)
|
|
298
|
-
|
|
299
|
-
**Tool Details**:
|
|
300
|
-
1. **Gemini** (primary): `gemini-2.5-pro`
|
|
301
|
-
2. **Qwen** (fallback): `coder-model`
|
|
302
|
-
3. **Codex** (fallback): `gpt-5.1-codex`
|
|
303
|
-
|
|
304
|
-
**When to Fallback**: HTTP 429, timeout, analysis quality degraded
|
|
305
|
-
|
|
306
|
-
**CLI Fallback Triggers** (Gemini → Qwen → Codex → manual):
|
|
307
|
-
|
|
308
|
-
Fallback is triggered when any of these conditions occur:
|
|
309
|
-
|
|
310
|
-
1. **Invalid Output**:
|
|
311
|
-
- CLI tool fails to generate valid `IMPL-fix-N.json` (JSON parse error)
|
|
312
|
-
- Missing required fields: `fix_strategy.modification_points` or `fix_strategy.affected_tests`
|
|
313
|
-
|
|
314
|
-
2. **Low Confidence**:
|
|
315
|
-
- `fix_strategy.confidence_score < 0.4` (indicates uncertain analysis)
|
|
316
|
-
|
|
317
|
-
3. **Technical Failures**:
|
|
318
|
-
- HTTP 429 (rate limit) or 5xx errors
|
|
319
|
-
- Timeout (exceeds 2400000ms / 40min)
|
|
320
|
-
- Connection errors
|
|
321
|
-
|
|
322
|
-
4. **Quality Degradation**:
|
|
323
|
-
- Analysis report < 100 words (too brief, likely incomplete)
|
|
324
|
-
- No concrete modification points provided (only general suggestions)
|
|
325
|
-
- Same root cause identified 3+ consecutive times (stuck analysis)
|
|
326
|
-
|
|
327
|
-
**Fallback Sequence**:
|
|
328
|
-
- Try primary tool (Gemini)
|
|
329
|
-
- If trigger detected → Try fallback (Qwen)
|
|
330
|
-
- If trigger detected again → Try final fallback (Codex)
|
|
331
|
-
- If all fail → Mark as degraded, use basic pattern matching from fix-history.json, notify user
|
|
332
|
-
|
|
333
|
-
#### Iteration State JSON
|
|
334
|
-
|
|
335
|
-
**Purpose**: Persisted state machine for iteration loop - enables Resume and historical analysis.
|
|
336
|
-
|
|
337
|
-
```json
|
|
338
|
-
{
|
|
339
|
-
"current_task": "IMPL-002",
|
|
340
|
-
"selected_strategy": "aggressive",
|
|
341
|
-
"next_action": "execute_fix_task",
|
|
342
|
-
"iterations": [
|
|
343
|
-
{
|
|
344
|
-
"iteration": 1,
|
|
345
|
-
"pass_rate": 70,
|
|
346
|
-
"strategy": "conservative",
|
|
347
|
-
"failed_tests": ["test_auth_flow", "test_user_permissions"]
|
|
348
|
-
},
|
|
349
|
-
{
|
|
350
|
-
"iteration": 2,
|
|
351
|
-
"pass_rate": 82,
|
|
352
|
-
"strategy": "conservative",
|
|
353
|
-
"failed_tests": ["test_user_permissions", "test_token_expiry"]
|
|
354
|
-
},
|
|
355
|
-
{
|
|
356
|
-
"iteration": 3,
|
|
357
|
-
"pass_rate": 89,
|
|
358
|
-
"strategy": "aggressive",
|
|
359
|
-
"failed_tests": ["test_auth_edge_case"]
|
|
360
|
-
}
|
|
361
|
-
]
|
|
362
|
-
}
|
|
363
|
-
```
|
|
364
|
-
|
|
365
|
-
**Field Descriptions**:
|
|
366
|
-
- `current_task`: Pointer to active task (essential for Resume)
|
|
367
|
-
- `selected_strategy`: Current iteration strategy (runtime state)
|
|
368
|
-
- `next_action`: State machine next step (`execute_fix_task` | `retest` | `complete`)
|
|
369
|
-
- `iterations[]`: Historical log of all iterations (source of truth for trends)
|
|
370
|
-
|
|
371
|
-
#### TodoWrite Update (Fix Loop)
|
|
372
|
-
|
|
373
|
-
```javascript
|
|
374
|
-
TodoWrite({
|
|
375
|
-
todos: [
|
|
376
|
-
{
|
|
377
|
-
content: "Execute IMPL-001: Generate tests [code-developer]",
|
|
378
|
-
status: "completed",
|
|
379
|
-
activeForm: "Executing test generation"
|
|
380
|
-
},
|
|
381
|
-
{
|
|
382
|
-
content: "Execute IMPL-002: Test & Fix Cycle [ITERATION]",
|
|
383
|
-
status: "in_progress",
|
|
384
|
-
activeForm: "Running test-fix iteration cycle"
|
|
385
|
-
},
|
|
386
|
-
{
|
|
387
|
-
content: " → Iteration 1: Initial test (pass: 70%, conservative)",
|
|
388
|
-
status: "completed",
|
|
389
|
-
activeForm: "Running initial tests"
|
|
390
|
-
},
|
|
391
|
-
{
|
|
392
|
-
content: " → Iteration 2: Fix validation (pass: 82%, conservative)",
|
|
393
|
-
status: "completed",
|
|
394
|
-
activeForm: "Fixing validation issues"
|
|
395
|
-
},
|
|
396
|
-
{
|
|
397
|
-
content: " → Iteration 3: Batch fix auth (pass: 89%, aggressive)",
|
|
398
|
-
status: "in_progress",
|
|
399
|
-
activeForm: "Fixing authentication issues"
|
|
400
|
-
}
|
|
401
|
-
]
|
|
402
|
-
});
|
|
403
|
-
```
|
|
404
|
-
|
|
405
|
-
**Update Rules**:
|
|
406
|
-
- Add iteration item with: strategy, pass rate
|
|
407
|
-
- Mark completed after each iteration
|
|
408
|
-
- Update parent task when all complete
|
|
409
|
-
|
|
410
|
-
### Step 2.4: Completion
|
|
411
|
-
|
|
412
|
-
#### Completion Conditions
|
|
413
|
-
|
|
414
|
-
**Full Success**:
|
|
415
|
-
- All tasks completed
|
|
416
|
-
- Pass rate === 100%
|
|
417
|
-
- Action: Auto-complete session
|
|
418
|
-
|
|
419
|
-
**Partial Success**:
|
|
420
|
-
- All tasks completed
|
|
421
|
-
- Pass rate >= 95% and < 100%
|
|
422
|
-
- All failures are "low" criticality
|
|
423
|
-
- Action: Auto-approve with review note
|
|
424
|
-
|
|
425
|
-
**Failure**:
|
|
426
|
-
- Max iterations (10) reached without 95% pass rate
|
|
427
|
-
- Pass rate < 95% after max iterations
|
|
428
|
-
- Action: Generate failure report, mark blocked, return to user
|
|
429
|
-
|
|
430
|
-
#### Commit Strategy
|
|
431
|
-
|
|
432
|
-
**Automatic Commits** (orchestrator-managed):
|
|
433
|
-
|
|
434
|
-
The orchestrator automatically creates git commits at key checkpoints to enable safe rollback:
|
|
435
|
-
|
|
436
|
-
1. **After Successful Iteration** (pass rate increased):
|
|
437
|
-
```bash
|
|
438
|
-
git add .
|
|
439
|
-
git commit -m "test-cycle: iteration ${N} - ${strategy} strategy (pass: ${oldRate}% → ${newRate}%)"
|
|
440
|
-
```
|
|
441
|
-
|
|
442
|
-
2. **Before Rollback** (regression detected):
|
|
443
|
-
```bash
|
|
444
|
-
# Current state preserved, then:
|
|
445
|
-
git revert HEAD
|
|
446
|
-
git commit -m "test-cycle: rollback iteration ${N} - regression detected (pass: ${newRate}% < ${oldRate}%)"
|
|
447
|
-
```
|
|
448
|
-
|
|
449
|
-
**Commit Content**:
|
|
450
|
-
- Modified source files from fix application
|
|
451
|
-
- Updated test-results.json, iteration-state.json
|
|
452
|
-
- Excludes: temporary files, logs
|
|
453
|
-
|
|
454
|
-
**Benefits**:
|
|
455
|
-
- Each successful iteration is a safe rollback point
|
|
456
|
-
- Regression detection can instantly revert to last known-good state
|
|
457
|
-
- Full iteration history visible in git log for post-mortem analysis
|
|
458
|
-
- No manual intervention needed for rollback — orchestrator handles automatically
|
|
459
|
-
|
|
460
|
-
#### Post-Completion Expansion
|
|
461
|
-
|
|
462
|
-
**Auto-sync**: 执行 `/workflow:session:sync -y "{summary}"` 更新 specs/*.md + project-tech。
|
|
463
|
-
|
|
464
|
-
完成后询问用户是否扩展为issue(test/enhance/refactor/doc),选中项调用 `/issue:new "{summary} - {dimension}"`
|
|
465
|
-
|
|
466
|
-
## Agent Roles Summary
|
|
467
|
-
|
|
468
|
-
| Agent | Responsibility |
|
|
469
|
-
|-------|---------------|
|
|
470
|
-
| **Orchestrator** | Loop control, strategy selection, pass rate calculation, threshold decisions |
|
|
471
|
-
| **@cli-planning-agent** | CLI analysis (Gemini/Qwen/Codex), root cause extraction, task generation, affected test detection |
|
|
472
|
-
| **@test-fix-agent** | Test execution, code fixes, criticality assignment, result reporting |
|
|
473
|
-
|
|
474
|
-
**Core Responsibilities (Detailed)**:
|
|
475
|
-
|
|
476
|
-
- **Orchestrator** (this skill):
|
|
477
|
-
- Loop control: iteration count, max iterations enforcement, exit conditions
|
|
478
|
-
- Strategy selection based on iteration context (conservative → aggressive → surgical)
|
|
479
|
-
- Pass rate calculation from test-results.json after each iteration
|
|
480
|
-
- Threshold decisions: 95% gate, criticality-aware partial success
|
|
481
|
-
- Commit management: auto-commit on improvement, rollback on regression
|
|
482
|
-
- Regression detection: compare consecutive pass_rate values (>10% drop triggers surgical)
|
|
483
|
-
- Stuck test tracking: tests failing 3+ consecutive iterations flagged for alternative strategy
|
|
484
|
-
|
|
485
|
-
- **@cli-planning-agent** (failure analysis):
|
|
486
|
-
- Execute CLI tools (Gemini/Qwen/Codex) with fallback chain for root cause analysis
|
|
487
|
-
- Extract concrete modification points (file:function:lines) from analysis
|
|
488
|
-
- Generate fix task JSON (IMPL-fix-N.json) with fix_strategy and confidence_score
|
|
489
|
-
- Detect affected tests for progressive testing (map modified files → test files)
|
|
490
|
-
- Apply strategy-specific analysis (conservative: single fix, aggressive: batch, surgical: minimal)
|
|
491
|
-
|
|
492
|
-
- **@test-fix-agent** (execution):
|
|
493
|
-
- Execute test suite and capture pass/fail counts, error messages, stack traces
|
|
494
|
-
- Apply code fixes per fix_strategy.modification_points (surgical, minimal changes)
|
|
495
|
-
- Assess criticality for each failure (high/medium/low based on impact)
|
|
496
|
-
- Report structured results to test-results.json with pass_rate and failure details
|
|
497
|
-
- Validate syntax before any code modification (TypeScript: tsc --noEmit, ESLint)
|
|
498
|
-
|
|
499
|
-
## Error Handling
|
|
500
|
-
|
|
501
|
-
| Scenario | Action |
|
|
502
|
-
|----------|--------|
|
|
503
|
-
| Test execution error | Log, retry with error context |
|
|
504
|
-
| CLI analysis failure | Fallback: Gemini → Qwen → Codex → manual |
|
|
505
|
-
| Agent execution error | Save state, retry with simplified context |
|
|
506
|
-
| Max iterations reached | Generate failure report, mark blocked |
|
|
507
|
-
| Regression detected | Rollback last fix, switch to surgical strategy |
|
|
508
|
-
| Stuck tests detected | Continue with alternative strategy, document in failure report |
|
|
509
|
-
|
|
510
|
-
## Session File Structure
|
|
511
|
-
|
|
512
|
-
```
|
|
513
|
-
.workflow/active/WFS-test-{session}/
|
|
514
|
-
├── workflow-session.json # Session metadata
|
|
515
|
-
├── IMPL_PLAN.md, TODO_LIST.md
|
|
516
|
-
├── .task/
|
|
517
|
-
│ ├── IMPL-{001,002}.json # Initial tasks
|
|
518
|
-
│ └── IMPL-fix-{N}.json # Generated fix tasks
|
|
519
|
-
├── .process/
|
|
520
|
-
│ ├── iteration-state.json # Current iteration + strategy + stuck tests
|
|
521
|
-
│ ├── test-results.json # Latest results (pass_rate, criticality)
|
|
522
|
-
│ ├── test-output.log # Full test output
|
|
523
|
-
│ ├── fix-history.json # All fix attempts
|
|
524
|
-
│ ├── iteration-{N}-analysis.md # CLI analysis report
|
|
525
|
-
│ └── iteration-{N}-cli-output.txt
|
|
526
|
-
└── .summaries/iteration-summaries/
|
|
527
|
-
```
|
|
528
|
-
|
|
529
|
-
## Output
|
|
530
|
-
|
|
531
|
-
- **Variable**: `finalPassRate` (percentage)
|
|
532
|
-
- **File**: `test-results.json` (final results)
|
|
533
|
-
- **File**: `iteration-state.json` (full iteration history)
|
|
534
|
-
- **TodoWrite**: Mark Phase 5 completed
|
|
535
|
-
|
|
536
|
-
## Next Phase
|
|
537
|
-
|
|
538
|
-
Return to orchestrator. Workflow complete. Offer post-completion expansion options.
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
# Intent Detection Patterns
|
|
2
|
-
|
|
3
|
-
Complete reference for task_type pattern matching used in Phase 1.
|
|
4
|
-
|
|
5
|
-
## Pattern Priority Order
|
|
6
|
-
|
|
7
|
-
Patterns are matched in this order — first match wins.
|
|
8
|
-
|
|
9
|
-
| # | task_type | Regex Pattern | Category | Level |
|
|
10
|
-
|---|-----------|--------------|----------|-------|
|
|
11
|
-
| 1 | `bugfix-hotfix` | `(urgent\|production\|critical)` AND `(fix\|bug)` | Lightweight | 2 |
|
|
12
|
-
| 2 | `greenfield` | `从零开始\|from scratch\|0.*to.*1\|greenfield\|全新.*开发\|新项目\|new project\|build.*from.*ground` | Exploration | 3-4 |
|
|
13
|
-
| 3 | `brainstorm` | `brainstorm\|ideation\|头脑风暴\|创意\|发散思维\|creative thinking\|multi-perspective.*think\|compare perspectives\|探索.*可能` | Exploration | 4 |
|
|
14
|
-
| 4 | `brainstorm-to-issue` | `brainstorm.*issue\|头脑风暴.*issue\|idea.*issue\|想法.*issue\|从.*头脑风暴\|convert.*brainstorm` | Issue | 4 |
|
|
15
|
-
| 5 | `debug-file` | `debug.*document\|hypothesis.*debug\|troubleshoot.*track\|investigate.*log\|调试.*记录\|假设.*验证\|systematic debug\|深度调试` | With-File | 3 |
|
|
16
|
-
| 6 | `analyze-file` | `analyze.*document\|explore.*concept\|understand.*architecture\|investigate.*discuss\|collaborative analysis\|分析.*讨论\|深度.*理解\|协作.*分析` | With-File | 3 |
|
|
17
|
-
| 7 | `collaborative-plan` | `collaborative.*plan\|协作.*规划\|多人.*规划\|multi.*agent.*plan\|Plan Note\|分工.*规划` | With-File | 3 |
|
|
18
|
-
| 8 | `roadmap` | `roadmap\|路线.*图` | With-File | 4 |
|
|
19
|
-
| 9 | `spec-driven` | `spec.*gen\|specification\|PRD\|产品需求\|产品文档\|产品规格` | Exploration | 4 |
|
|
20
|
-
| 10 | `integration-test` | `integration.*test\|集成测试\|端到端.*测试\|e2e.*test\|integration.*cycle` | Cycle | 3 |
|
|
21
|
-
| 11 | `refactor` | `refactor\|重构\|tech.*debt\|技术债务` | Cycle | 3 |
|
|
22
|
-
| 12 | `team-planex` | `team.*plan.*exec\|team.*planex\|团队.*规划.*执行\|并行.*规划.*执行\|wave.*pipeline` | Team | Team |
|
|
23
|
-
| 13 | `multi-cli` | `multi.*cli\|多.*CLI\|多模型.*协作\|multi.*model.*collab` | Standard | 3 |
|
|
24
|
-
| 14 | `bugfix` | `fix\|bug\|error\|crash\|fail\|debug` | Lightweight | 2 |
|
|
25
|
-
| 15 | `issue-batch` | `(issues?\|batch)` AND `(fix\|resolve)` | Issue | Issue |
|
|
26
|
-
| 16 | `issue-transition` | `issue workflow\|structured workflow\|queue\|multi-stage` | Issue | 2.5 |
|
|
27
|
-
| 17 | `exploration` | `uncertain\|explore\|research\|what if` | Exploration | 4 |
|
|
28
|
-
| 18 | `quick-task` | `(quick\|simple\|small)` AND `(feature\|function)` | Lightweight | 2 |
|
|
29
|
-
| 19 | `ui-design` | `ui\|design\|component\|style` | Standard/Exploration | 3-4 |
|
|
30
|
-
| 20 | `tdd` | `tdd\|test-driven\|test first` | Standard | 3 |
|
|
31
|
-
| 21 | `test-fix` | `test fail\|fix test\|failing test` | Standard | 3 |
|
|
32
|
-
| 22 | `test-gen` | `generate test\|写测试\|add test\|补充测试` | Standard | 3 |
|
|
33
|
-
| 23 | `review` | `review\|code review` | Standard | 3 |
|
|
34
|
-
| 24 | `documentation` | `docs\|documentation\|readme` | Lightweight | 2 |
|
|
35
|
-
| — | `feature` | (default) | Lightweight/Standard | 2-3 |
|
|
36
|
-
|
|
37
|
-
## Complexity-Dependent Routing
|
|
38
|
-
|
|
39
|
-
Some task_types route differently based on complexity:
|
|
40
|
-
|
|
41
|
-
| task_type | Low | Medium | High |
|
|
42
|
-
|-----------|-----|--------|------|
|
|
43
|
-
| `feature` | Lightweight (rapid) | Lightweight (rapid) | Standard (coupled) |
|
|
44
|
-
| `greenfield` | Exploration (brainstorm-to-plan) | Exploration (greenfield-plan) | Exploration (greenfield-phased) |
|
|
45
|
-
| `ui-design` | Standard (ui) | Standard (ui) | Exploration (ui) |
|
|
46
|
-
|
|
47
|
-
## Example Inputs → Detected Types
|
|
48
|
-
|
|
49
|
-
| Input | Detected task_type | Category |
|
|
50
|
-
|-------|-------------------|----------|
|
|
51
|
-
| "Add API endpoint" | feature (low) | Lightweight |
|
|
52
|
-
| "Fix login timeout" | bugfix | Lightweight |
|
|
53
|
-
| "从零开始: 用户系统" | greenfield | Exploration |
|
|
54
|
-
| "头脑风暴: 通知系统" | brainstorm | Exploration |
|
|
55
|
-
| "深度调试 WebSocket" | debug-file | With-File |
|
|
56
|
-
| "协作分析: 认证架构" | analyze-file | With-File |
|
|
57
|
-
| "roadmap: OAuth + 2FA" | roadmap | With-File |
|
|
58
|
-
| "集成测试: 支付流程" | integration-test | Cycle |
|
|
59
|
-
| "重构 auth 模块" | refactor | Cycle |
|
|
60
|
-
| "OAuth2 system" (high) | feature (high) | Standard |
|
|
Binary file
|