claude-code-workflow 7.2.23 → 7.2.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (181) hide show
  1. package/.codex/skills/team-arch-opt/SKILL.md +242 -175
  2. package/.codex/skills/team-arch-opt/roles/analyzer/role.md +78 -78
  3. package/.codex/skills/team-arch-opt/roles/coordinator/commands/analyze.md +57 -57
  4. package/.codex/skills/team-arch-opt/roles/coordinator/commands/monitor.md +246 -204
  5. package/.codex/skills/team-arch-opt/roles/coordinator/role.md +196 -184
  6. package/.codex/skills/team-arch-opt/roles/designer/role.md +115 -115
  7. package/.codex/skills/team-arch-opt/roles/refactorer/role.md +102 -102
  8. package/.codex/skills/team-arch-opt/roles/reviewer/role.md +111 -111
  9. package/.codex/skills/team-arch-opt/roles/validator/role.md +115 -115
  10. package/.codex/skills/team-arch-opt/specs/pipelines.md +102 -102
  11. package/.codex/skills/team-brainstorm/SKILL.md +72 -4
  12. package/.codex/skills/team-brainstorm/roles/challenger/role.md +61 -61
  13. package/.codex/skills/team-brainstorm/roles/coordinator/commands/analyze.md +58 -58
  14. package/.codex/skills/team-brainstorm/roles/coordinator/commands/monitor.md +212 -171
  15. package/.codex/skills/team-brainstorm/roles/coordinator/role.md +172 -160
  16. package/.codex/skills/team-brainstorm/roles/evaluator/role.md +56 -56
  17. package/.codex/skills/team-brainstorm/roles/ideator/role.md +69 -69
  18. package/.codex/skills/team-brainstorm/roles/synthesizer/role.md +57 -57
  19. package/.codex/skills/team-brainstorm/specs/pipelines.md +72 -72
  20. package/.codex/skills/team-coordinate/SKILL.md +71 -3
  21. package/.codex/skills/team-coordinate/roles/coordinator/commands/monitor.md +45 -5
  22. package/.codex/skills/team-coordinate/roles/coordinator/role.md +402 -389
  23. package/.codex/skills/team-coordinate/specs/knowledge-transfer.md +111 -111
  24. package/.codex/skills/team-coordinate/specs/pipelines.md +97 -97
  25. package/.codex/skills/team-coordinate/specs/quality-gates.md +112 -112
  26. package/.codex/skills/team-designer/SKILL.md +153 -153
  27. package/.codex/skills/team-designer/phases/01-requirements-analysis.md +250 -250
  28. package/.codex/skills/team-designer/phases/02-scaffold-generation.md +228 -228
  29. package/.codex/skills/team-designer/phases/03-content-generation.md +330 -330
  30. package/.codex/skills/team-designer/phases/04-validation.md +320 -320
  31. package/.codex/skills/team-executor/SKILL.md +29 -2
  32. package/.codex/skills/team-executor/roles/executor/commands/monitor.md +23 -15
  33. package/.codex/skills/team-frontend/SKILL.md +77 -3
  34. package/.codex/skills/team-frontend/roles/analyst/role.md +92 -92
  35. package/.codex/skills/team-frontend/roles/architect/role.md +86 -86
  36. package/.codex/skills/team-frontend/roles/coordinator/commands/analyze.md +52 -52
  37. package/.codex/skills/team-frontend/roles/coordinator/commands/monitor.md +222 -188
  38. package/.codex/skills/team-frontend/roles/coordinator/role.md +189 -177
  39. package/.codex/skills/team-frontend/roles/developer/role.md +93 -93
  40. package/.codex/skills/team-frontend/roles/qa/role.md +79 -79
  41. package/.codex/skills/team-frontend/specs/pipelines.md +76 -76
  42. package/.codex/skills/team-frontend-debug/SKILL.md +66 -3
  43. package/.codex/skills/team-frontend-debug/roles/analyzer/role.md +208 -208
  44. package/.codex/skills/team-frontend-debug/roles/coordinator/commands/analyze.md +174 -174
  45. package/.codex/skills/team-frontend-debug/roles/coordinator/commands/dispatch.md +198 -198
  46. package/.codex/skills/team-frontend-debug/roles/coordinator/commands/monitor.md +177 -143
  47. package/.codex/skills/team-frontend-debug/roles/coordinator/role.md +164 -152
  48. package/.codex/skills/team-frontend-debug/roles/fixer/role.md +147 -147
  49. package/.codex/skills/team-frontend-debug/roles/reproducer/role.md +147 -147
  50. package/.codex/skills/team-frontend-debug/roles/tester/role.md +231 -231
  51. package/.codex/skills/team-frontend-debug/roles/verifier/role.md +172 -172
  52. package/.codex/skills/team-frontend-debug/specs/debug-tools.md +215 -215
  53. package/.codex/skills/team-frontend-debug/specs/pipelines.md +94 -94
  54. package/.codex/skills/team-issue/SKILL.md +83 -4
  55. package/.codex/skills/team-issue/roles/coordinator/commands/analyze.md +64 -64
  56. package/.codex/skills/team-issue/roles/coordinator/commands/dispatch.md +273 -273
  57. package/.codex/skills/team-issue/roles/coordinator/commands/monitor.md +235 -194
  58. package/.codex/skills/team-issue/roles/coordinator/role.md +206 -194
  59. package/.codex/skills/team-issue/roles/explorer/role.md +94 -94
  60. package/.codex/skills/team-issue/roles/implementer/role.md +87 -87
  61. package/.codex/skills/team-issue/roles/integrator/role.md +84 -84
  62. package/.codex/skills/team-issue/roles/planner/role.md +81 -81
  63. package/.codex/skills/team-issue/roles/reviewer/role.md +86 -86
  64. package/.codex/skills/team-issue/specs/pipelines.md +124 -124
  65. package/.codex/skills/team-iterdev/SKILL.md +64 -3
  66. package/.codex/skills/team-iterdev/roles/architect/role.md +65 -65
  67. package/.codex/skills/team-iterdev/roles/coordinator/commands/analyze.md +62 -62
  68. package/.codex/skills/team-iterdev/roles/coordinator/commands/monitor.md +227 -186
  69. package/.codex/skills/team-iterdev/roles/coordinator/role.md +193 -181
  70. package/.codex/skills/team-iterdev/roles/developer/role.md +74 -74
  71. package/.codex/skills/team-iterdev/roles/reviewer/role.md +66 -66
  72. package/.codex/skills/team-iterdev/roles/tester/role.md +88 -88
  73. package/.codex/skills/team-iterdev/specs/pipelines.md +94 -94
  74. package/.codex/skills/team-lifecycle-v4/MIGRATION-PLAN.md +6 -6
  75. package/.codex/skills/team-lifecycle-v4/SKILL.md +305 -242
  76. package/.codex/skills/team-lifecycle-v4/roles/coordinator/commands/dispatch.md +1 -1
  77. package/.codex/skills/team-lifecycle-v4/roles/coordinator/commands/monitor.md +66 -24
  78. package/.codex/skills/team-lifecycle-v4/roles/coordinator/role.md +13 -1
  79. package/.codex/skills/team-lifecycle-v4/roles/supervisor/role.md +1 -1
  80. package/.codex/skills/team-lifecycle-v4/templates/architecture.md +254 -254
  81. package/.codex/skills/team-lifecycle-v4/templates/epics.md +196 -196
  82. package/.codex/skills/team-lifecycle-v4/templates/product-brief.md +133 -133
  83. package/.codex/skills/team-lifecycle-v4/templates/requirements.md +224 -224
  84. package/.codex/skills/team-perf-opt/SKILL.md +68 -3
  85. package/.codex/skills/team-perf-opt/roles/benchmarker/role.md +89 -89
  86. package/.codex/skills/team-perf-opt/roles/coordinator/commands/analyze.md +61 -61
  87. package/.codex/skills/team-perf-opt/roles/coordinator/commands/monitor.md +35 -1
  88. package/.codex/skills/team-perf-opt/roles/coordinator/role.md +179 -167
  89. package/.codex/skills/team-perf-opt/roles/optimizer/role.md +97 -97
  90. package/.codex/skills/team-perf-opt/roles/profiler/role.md +73 -73
  91. package/.codex/skills/team-perf-opt/roles/reviewer/role.md +75 -75
  92. package/.codex/skills/team-perf-opt/roles/strategist/role.md +94 -94
  93. package/.codex/skills/team-perf-opt/specs/pipelines.md +65 -65
  94. package/.codex/skills/team-planex/SKILL.md +65 -3
  95. package/.codex/skills/team-planex/roles/coordinator/commands/analyze.md +52 -52
  96. package/.codex/skills/team-planex/roles/coordinator/commands/monitor.md +210 -164
  97. package/.codex/skills/team-planex/roles/coordinator/role.md +171 -159
  98. package/.codex/skills/team-planex/roles/executor/role.md +91 -91
  99. package/.codex/skills/team-planex/roles/planner/role.md +112 -112
  100. package/.codex/skills/team-planex/specs/pipelines.md +93 -93
  101. package/.codex/skills/team-quality-assurance/SKILL.md +60 -3
  102. package/.codex/skills/team-quality-assurance/roles/analyst/role.md +80 -80
  103. package/.codex/skills/team-quality-assurance/roles/coordinator/commands/analyze.md +72 -72
  104. package/.codex/skills/team-quality-assurance/roles/coordinator/commands/dispatch.md +108 -108
  105. package/.codex/skills/team-quality-assurance/roles/coordinator/commands/monitor.md +243 -209
  106. package/.codex/skills/team-quality-assurance/roles/coordinator/role.md +176 -164
  107. package/.codex/skills/team-quality-assurance/roles/executor/role.md +66 -66
  108. package/.codex/skills/team-quality-assurance/roles/generator/role.md +68 -68
  109. package/.codex/skills/team-quality-assurance/roles/scout/role.md +67 -67
  110. package/.codex/skills/team-quality-assurance/roles/strategist/role.md +71 -71
  111. package/.codex/skills/team-quality-assurance/specs/pipelines.md +115 -115
  112. package/.codex/skills/team-review/SKILL.md +58 -3
  113. package/.codex/skills/team-review/roles/coordinator/commands/analyze.md +71 -71
  114. package/.codex/skills/team-review/roles/coordinator/commands/dispatch.md +90 -90
  115. package/.codex/skills/team-review/roles/coordinator/commands/monitor.md +225 -185
  116. package/.codex/skills/team-review/roles/coordinator/role.md +175 -163
  117. package/.codex/skills/team-review/roles/fixer/role.md +76 -76
  118. package/.codex/skills/team-review/roles/reviewer/role.md +68 -68
  119. package/.codex/skills/team-review/roles/scanner/role.md +71 -71
  120. package/.codex/skills/team-review/specs/pipelines.md +102 -102
  121. package/.codex/skills/team-roadmap-dev/SKILL.md +55 -3
  122. package/.codex/skills/team-roadmap-dev/roles/coordinator/commands/analyze.md +61 -61
  123. package/.codex/skills/team-roadmap-dev/roles/coordinator/commands/monitor.md +502 -468
  124. package/.codex/skills/team-roadmap-dev/roles/coordinator/role.md +335 -322
  125. package/.codex/skills/team-roadmap-dev/roles/executor/role.md +71 -71
  126. package/.codex/skills/team-roadmap-dev/roles/planner/role.md +76 -76
  127. package/.codex/skills/team-roadmap-dev/roles/verifier/role.md +74 -74
  128. package/.codex/skills/team-roadmap-dev/specs/pipelines.md +93 -93
  129. package/.codex/skills/team-tech-debt/SKILL.md +56 -3
  130. package/.codex/skills/team-tech-debt/roles/assessor/role.md +69 -69
  131. package/.codex/skills/team-tech-debt/roles/coordinator/commands/analyze.md +47 -47
  132. package/.codex/skills/team-tech-debt/roles/coordinator/commands/monitor.md +272 -231
  133. package/.codex/skills/team-tech-debt/roles/coordinator/role.md +172 -160
  134. package/.codex/skills/team-tech-debt/roles/executor/role.md +76 -76
  135. package/.codex/skills/team-tech-debt/roles/planner/role.md +69 -69
  136. package/.codex/skills/team-tech-debt/roles/scanner/role.md +82 -82
  137. package/.codex/skills/team-tech-debt/roles/validator/role.md +75 -75
  138. package/.codex/skills/team-tech-debt/specs/pipelines.md +47 -47
  139. package/.codex/skills/team-testing/SKILL.md +72 -3
  140. package/.codex/skills/team-testing/roles/analyst/role.md +95 -95
  141. package/.codex/skills/team-testing/roles/coordinator/commands/analyze.md +70 -70
  142. package/.codex/skills/team-testing/roles/coordinator/commands/dispatch.md +106 -106
  143. package/.codex/skills/team-testing/roles/coordinator/commands/monitor.md +283 -242
  144. package/.codex/skills/team-testing/roles/coordinator/role.md +184 -172
  145. package/.codex/skills/team-testing/roles/executor/role.md +96 -96
  146. package/.codex/skills/team-testing/roles/generator/role.md +95 -95
  147. package/.codex/skills/team-testing/roles/strategist/role.md +83 -83
  148. package/.codex/skills/team-testing/specs/pipelines.md +101 -101
  149. package/.codex/skills/team-uidesign/SKILL.md +65 -3
  150. package/.codex/skills/team-uidesign/roles/coordinator/commands/analyze.md +59 -59
  151. package/.codex/skills/team-uidesign/roles/coordinator/commands/dispatch.md +156 -156
  152. package/.codex/skills/team-uidesign/roles/coordinator/commands/monitor.md +234 -194
  153. package/.codex/skills/team-uidesign/roles/coordinator/role.md +211 -199
  154. package/.codex/skills/team-uidesign/roles/designer/role.md +69 -69
  155. package/.codex/skills/team-uidesign/roles/implementer/role.md +72 -72
  156. package/.codex/skills/team-uidesign/roles/researcher/role.md +82 -82
  157. package/.codex/skills/team-uidesign/roles/reviewer/role.md +67 -67
  158. package/.codex/skills/team-uidesign/specs/pipelines.md +76 -76
  159. package/.codex/skills/team-ultra-analyze/SKILL.md +73 -3
  160. package/.codex/skills/team-ultra-analyze/roles/analyst/role.md +90 -90
  161. package/.codex/skills/team-ultra-analyze/roles/coordinator/commands/analyze.md +73 -73
  162. package/.codex/skills/team-ultra-analyze/roles/coordinator/commands/monitor.md +50 -9
  163. package/.codex/skills/team-ultra-analyze/roles/coordinator/role.md +255 -243
  164. package/.codex/skills/team-ultra-analyze/roles/discussant/role.md +104 -104
  165. package/.codex/skills/team-ultra-analyze/roles/explorer/role.md +74 -74
  166. package/.codex/skills/team-ultra-analyze/roles/synthesizer/role.md +78 -78
  167. package/.codex/skills/team-ultra-analyze/specs/pipelines.md +64 -64
  168. package/.codex/skills/team-ux-improve/SKILL.md +64 -3
  169. package/.codex/skills/team-ux-improve/roles/coordinator/commands/analyze.md +62 -62
  170. package/.codex/skills/team-ux-improve/roles/coordinator/commands/dispatch.md +233 -233
  171. package/.codex/skills/team-ux-improve/roles/coordinator/commands/monitor.md +195 -160
  172. package/.codex/skills/team-ux-improve/roles/coordinator/role.md +170 -158
  173. package/.codex/skills/team-ux-improve/roles/designer/role.md +122 -122
  174. package/.codex/skills/team-ux-improve/roles/diagnoser/role.md +93 -93
  175. package/.codex/skills/team-ux-improve/roles/explorer/role.md +77 -77
  176. package/.codex/skills/team-ux-improve/roles/implementer/role.md +102 -102
  177. package/.codex/skills/team-ux-improve/roles/scanner/role.md +93 -93
  178. package/.codex/skills/team-ux-improve/roles/tester/role.md +84 -84
  179. package/.codex/skills/team-ux-improve/specs/pipelines.md +54 -54
  180. package/README.md +1 -0
  181. package/package.json +1 -1
@@ -1,66 +1,66 @@
1
- ---
2
- role: reviewer
3
- prefix: REVIEW
4
- inner_loop: false
5
- message_types:
6
- success: review_passed
7
- revision: review_revision
8
- critical: review_critical
9
- error: error
10
- ---
11
-
12
- # Reviewer
13
-
14
- Code reviewer. Multi-dimensional review, quality scoring, improvement suggestions. Acts as Critic in Generator-Critic loop (paired with developer).
15
-
16
- ## Phase 2: Context Loading
17
-
18
- | Input | Source | Required |
19
- |-------|--------|----------|
20
- | Task description | From task subject/description | Yes |
21
- | Session path | Extracted from task description | Yes |
22
- | .msg/meta.json | <session>/.msg/meta.json | Yes |
23
- | Design document | <session>/design/design-001.md | For requirements alignment |
24
- | Changed files | Git diff | Yes |
25
-
26
- 1. Extract session path from task description
27
- 2. Read .msg/meta.json for shared context and previous review_feedback_trends
28
- 3. Read design document for requirements alignment
29
- 4. Get changed files via git diff, read file contents (limit 20 files)
30
-
31
- ## Phase 3: Multi-Dimensional Review
32
-
33
- **Review dimensions**:
34
-
35
- | Dimension | Weight | Focus Areas |
36
- |-----------|--------|-------------|
37
- | Correctness | 30% | Logic correctness, boundary handling |
38
- | Completeness | 25% | Coverage of design requirements |
39
- | Maintainability | 25% | Readability, code style, DRY |
40
- | Security | 20% | Vulnerabilities, input validation |
41
-
42
- Per-dimension: scan modified files, record findings with severity (CRITICAL/HIGH/MEDIUM/LOW), include file:line references and suggestions.
43
-
44
- **Scoring**: Weighted average of dimension scores (1-10 each).
45
-
46
- **Output review report** (`<session>/review/review-<num>.md`):
47
- - Files reviewed count, quality score, issue counts by severity
48
- - Per-finding: severity, file:line, dimension, description, suggestion
49
- - Scoring breakdown by dimension
50
- - Signal: CRITICAL / REVISION_NEEDED / APPROVED
51
- - Design alignment notes
52
-
53
- ## Phase 4: Trend Analysis + Verdict
54
-
55
- 1. Compare with previous review_feedback_trends from .msg/meta.json
56
- 2. Identify recurring issues, improvement areas, new issues
57
-
58
- | Verdict Condition | Message Type |
59
- |-------------------|--------------|
60
- | criticalCount > 0 | review_critical |
61
- | score < 7 | review_revision |
62
- | else | review_passed |
63
-
64
- 3. Update review_feedback_trends in .msg/meta.json:
65
- - review_id, score, critical count, high count, dimensions, gc_round
66
- 4. Write discoveries to wisdom/learnings.md
1
+ ---
2
+ role: reviewer
3
+ prefix: REVIEW
4
+ inner_loop: false
5
+ message_types:
6
+ success: review_passed
7
+ revision: review_revision
8
+ critical: review_critical
9
+ error: error
10
+ ---
11
+
12
+ # Reviewer
13
+
14
+ Code reviewer. Multi-dimensional review, quality scoring, improvement suggestions. Acts as Critic in Generator-Critic loop (paired with developer).
15
+
16
+ ## Phase 2: Context Loading
17
+
18
+ | Input | Source | Required |
19
+ |-------|--------|----------|
20
+ | Task description | From task subject/description | Yes |
21
+ | Session path | Extracted from task description | Yes |
22
+ | .msg/meta.json | <session>/.msg/meta.json | Yes |
23
+ | Design document | <session>/design/design-001.md | For requirements alignment |
24
+ | Changed files | Git diff | Yes |
25
+
26
+ 1. Extract session path from task description
27
+ 2. Read .msg/meta.json for shared context and previous review_feedback_trends
28
+ 3. Read design document for requirements alignment
29
+ 4. Get changed files via git diff, read file contents (limit 20 files)
30
+
31
+ ## Phase 3: Multi-Dimensional Review
32
+
33
+ **Review dimensions**:
34
+
35
+ | Dimension | Weight | Focus Areas |
36
+ |-----------|--------|-------------|
37
+ | Correctness | 30% | Logic correctness, boundary handling |
38
+ | Completeness | 25% | Coverage of design requirements |
39
+ | Maintainability | 25% | Readability, code style, DRY |
40
+ | Security | 20% | Vulnerabilities, input validation |
41
+
42
+ Per-dimension: scan modified files, record findings with severity (CRITICAL/HIGH/MEDIUM/LOW), include file:line references and suggestions.
43
+
44
+ **Scoring**: Weighted average of dimension scores (1-10 each).
45
+
46
+ **Output review report** (`<session>/review/review-<num>.md`):
47
+ - Files reviewed count, quality score, issue counts by severity
48
+ - Per-finding: severity, file:line, dimension, description, suggestion
49
+ - Scoring breakdown by dimension
50
+ - Signal: CRITICAL / REVISION_NEEDED / APPROVED
51
+ - Design alignment notes
52
+
53
+ ## Phase 4: Trend Analysis + Verdict
54
+
55
+ 1. Compare with previous review_feedback_trends from .msg/meta.json
56
+ 2. Identify recurring issues, improvement areas, new issues
57
+
58
+ | Verdict Condition | Message Type |
59
+ |-------------------|--------------|
60
+ | criticalCount > 0 | review_critical |
61
+ | score < 7 | review_revision |
62
+ | else | review_passed |
63
+
64
+ 3. Update review_feedback_trends in .msg/meta.json:
65
+ - review_id, score, critical count, high count, dimensions, gc_round
66
+ 4. Write discoveries to wisdom/learnings.md
@@ -1,88 +1,88 @@
1
- ---
2
- role: tester
3
- prefix: VERIFY
4
- inner_loop: false
5
- message_types:
6
- success: verify_passed
7
- failure: verify_failed
8
- fix: fix_required
9
- error: error
10
- ---
11
-
12
- # Tester
13
-
14
- Test validator. Test execution, fix cycles, and regression detection.
15
-
16
- ## Phase 2: Environment Detection
17
-
18
- | Input | Source | Required |
19
- |-------|--------|----------|
20
- | Task description | From task subject/description | Yes |
21
- | Session path | Extracted from task description | Yes |
22
- | .msg/meta.json | <session>/.msg/meta.json | Yes |
23
- | Changed files | Git diff | Yes |
24
-
25
- 1. Extract session path from task description
26
- 2. Read .msg/meta.json for shared context
27
- 3. Get changed files via git diff
28
- 4. Detect test framework and command:
29
-
30
- | Detection | Method |
31
- |-----------|--------|
32
- | Test command | Check package.json scripts, pytest.ini, Makefile |
33
- | Coverage tool | Check for nyc, coverage.py, jest --coverage config |
34
-
35
- Common commands: npm test, pytest, go test ./..., cargo test
36
-
37
- ## Phase 3: Execution + Fix Cycle
38
-
39
- **Iterative test-fix cycle** (max 5 iterations):
40
-
41
- | Step | Action |
42
- |------|--------|
43
- | 1 | Run test command |
44
- | 2 | Parse results, check pass rate |
45
- | 3 | Pass rate >= 95% -> exit loop (success) |
46
- | 4 | Extract failing test details |
47
- | 5 | Apply fix using CLI tool |
48
- | 6 | Increment iteration counter |
49
- | 7 | iteration >= MAX (5) -> exit loop (report failures) |
50
- | 8 | Go to Step 1 |
51
-
52
- **Fix delegation**: Use CLI tool to fix failing tests:
53
-
54
- ```bash
55
- ccw cli -p "PURPOSE: Fix failing tests; success = all listed tests pass
56
- TASK: • Analyze test failure output • Identify root cause in changed files • Apply minimal fix
57
- MODE: write
58
- CONTEXT: @<changed-files> | Memory: Test output from current iteration
59
- EXPECTED: Code fixes that make failing tests pass without breaking other tests
60
- CONSTRAINTS: Only modify files in changed list | Minimal changes
61
- Test output: <test-failure-details>
62
- Changed files: <file-list>" --tool gemini --mode write --rule development-debug-runtime-issues
63
- ```
64
-
65
- Wait for CLI completion before re-running tests.
66
-
67
- ## Phase 4: Regression Check + Report
68
-
69
- 1. Run full test suite for regression: `<test-command> --all`
70
-
71
- | Check | Method | Pass Criteria |
72
- |-------|--------|---------------|
73
- | Regression | Run full test suite | No FAIL in output |
74
- | Coverage | Run coverage tool | >= 80% (if configured) |
75
-
76
- 2. Write verification results to `<session>/verify/verify-<num>.json`:
77
- - verify_id, pass_rate, iterations, passed, timestamp, regression_passed
78
-
79
- 3. Determine message type:
80
-
81
- | Condition | Message Type |
82
- |-----------|--------------|
83
- | passRate >= 0.95 | verify_passed |
84
- | passRate < 0.95 && iterations >= MAX | fix_required |
85
- | passRate < 0.95 | verify_failed |
86
-
87
- 4. Update .msg/meta.json with test_patterns entry
88
- 5. Write discoveries to wisdom/issues.md
1
+ ---
2
+ role: tester
3
+ prefix: VERIFY
4
+ inner_loop: false
5
+ message_types:
6
+ success: verify_passed
7
+ failure: verify_failed
8
+ fix: fix_required
9
+ error: error
10
+ ---
11
+
12
+ # Tester
13
+
14
+ Test validator. Test execution, fix cycles, and regression detection.
15
+
16
+ ## Phase 2: Environment Detection
17
+
18
+ | Input | Source | Required |
19
+ |-------|--------|----------|
20
+ | Task description | From task subject/description | Yes |
21
+ | Session path | Extracted from task description | Yes |
22
+ | .msg/meta.json | <session>/.msg/meta.json | Yes |
23
+ | Changed files | Git diff | Yes |
24
+
25
+ 1. Extract session path from task description
26
+ 2. Read .msg/meta.json for shared context
27
+ 3. Get changed files via git diff
28
+ 4. Detect test framework and command:
29
+
30
+ | Detection | Method |
31
+ |-----------|--------|
32
+ | Test command | Check package.json scripts, pytest.ini, Makefile |
33
+ | Coverage tool | Check for nyc, coverage.py, jest --coverage config |
34
+
35
+ Common commands: npm test, pytest, go test ./..., cargo test
36
+
37
+ ## Phase 3: Execution + Fix Cycle
38
+
39
+ **Iterative test-fix cycle** (max 5 iterations):
40
+
41
+ | Step | Action |
42
+ |------|--------|
43
+ | 1 | Run test command |
44
+ | 2 | Parse results, check pass rate |
45
+ | 3 | Pass rate >= 95% -> exit loop (success) |
46
+ | 4 | Extract failing test details |
47
+ | 5 | Apply fix using CLI tool |
48
+ | 6 | Increment iteration counter |
49
+ | 7 | iteration >= MAX (5) -> exit loop (report failures) |
50
+ | 8 | Go to Step 1 |
51
+
52
+ **Fix delegation**: Use CLI tool to fix failing tests:
53
+
54
+ ```bash
55
+ ccw cli -p "PURPOSE: Fix failing tests; success = all listed tests pass
56
+ TASK: • Analyze test failure output • Identify root cause in changed files • Apply minimal fix
57
+ MODE: write
58
+ CONTEXT: @<changed-files> | Memory: Test output from current iteration
59
+ EXPECTED: Code fixes that make failing tests pass without breaking other tests
60
+ CONSTRAINTS: Only modify files in changed list | Minimal changes
61
+ Test output: <test-failure-details>
62
+ Changed files: <file-list>" --tool gemini --mode write --rule development-debug-runtime-issues
63
+ ```
64
+
65
+ Wait for CLI completion before re-running tests.
66
+
67
+ ## Phase 4: Regression Check + Report
68
+
69
+ 1. Run full test suite for regression: `<test-command> --all`
70
+
71
+ | Check | Method | Pass Criteria |
72
+ |-------|--------|---------------|
73
+ | Regression | Run full test suite | No FAIL in output |
74
+ | Coverage | Run coverage tool | >= 80% (if configured) |
75
+
76
+ 2. Write verification results to `<session>/verify/verify-<num>.json`:
77
+ - verify_id, pass_rate, iterations, passed, timestamp, regression_passed
78
+
79
+ 3. Determine message type:
80
+
81
+ | Condition | Message Type |
82
+ |-----------|--------------|
83
+ | passRate >= 0.95 | verify_passed |
84
+ | passRate < 0.95 && iterations >= MAX | fix_required |
85
+ | passRate < 0.95 | verify_failed |
86
+
87
+ 4. Update .msg/meta.json with test_patterns entry
88
+ 5. Write discoveries to wisdom/issues.md
@@ -1,94 +1,94 @@
1
- # IterDev Pipeline Definitions
2
-
3
- ## Three-Pipeline Architecture
4
-
5
- ### Patch Pipeline (2 beats, serial)
6
-
7
- ```
8
- DEV-001 -> VERIFY-001
9
- [developer] [tester]
10
- ```
11
-
12
- ### Sprint Pipeline (4 beats, with parallel window)
13
-
14
- ```
15
- DESIGN-001 -> DEV-001 -> [VERIFY-001 + REVIEW-001] (parallel)
16
- [architect] [developer] [tester] [reviewer]
17
- ```
18
-
19
- ### Multi-Sprint Pipeline (N beats, iterative)
20
-
21
- ```
22
- Sprint 1: DESIGN-001 -> DEV-001 -> DEV-002(incremental) -> VERIFY-001 -> DEV-fix -> REVIEW-001
23
- Sprint 2: DESIGN-002(refined) -> DEV-003 -> VERIFY-002 -> REVIEW-002
24
- ...
25
- ```
26
-
27
- ## Generator-Critic Loop (developer <-> reviewer)
28
-
29
- ```
30
- DEV -> REVIEW -> (if review.critical_count > 0 || review.score < 7)
31
- -> DEV-fix -> REVIEW-2 -> (if still issues) -> DEV-fix-2 -> REVIEW-3
32
- -> (max 3 rounds, then accept with warning)
33
- ```
34
-
35
- ## Pipeline Selection Logic
36
-
37
- | Signal | Score |
38
- |--------|-------|
39
- | Changed files > 10 | +3 |
40
- | Changed files 3-10 | +2 |
41
- | Structural change | +3 |
42
- | Cross-cutting concern | +2 |
43
- | Simple fix | -2 |
44
-
45
- | Score | Pipeline |
46
- |-------|----------|
47
- | >= 5 | multi-sprint |
48
- | 2-4 | sprint |
49
- | 0-1 | patch |
50
-
51
- ## Task Metadata Registry
52
-
53
- | Task ID | Role | Pipeline | Dependencies | Description |
54
- |---------|------|----------|-------------|-------------|
55
- | DESIGN-001 | architect | sprint/multi | (none) | Technical design and task breakdown |
56
- | DEV-001 | developer | all | DESIGN-001 (sprint/multi) or (none for patch) | Code implementation |
57
- | DEV-002 | developer | multi | DEV-001 | Incremental implementation |
58
- | DEV-fix | developer | sprint/multi | REVIEW-* (GC loop trigger) | Fix issues from review |
59
- | VERIFY-001 | tester | all | DEV-001 (or last DEV) | Test execution and fix cycles |
60
- | REVIEW-001 | reviewer | sprint/multi | DEV-001 (or last DEV) | Code review and quality scoring |
61
-
62
- ## Checkpoints
63
-
64
- | Trigger Condition | Location | Behavior |
65
- |-------------------|----------|----------|
66
- | GC loop exceeds max rounds | After REVIEW-3 | Stop iteration, accept with warning, record in wisdom |
67
- | Sprint transition | End of Sprint N | Pause, retrospective, user confirms `resume` for Sprint N+1 |
68
- | Pipeline stall | No ready + no running tasks | Check missing tasks, report blockedBy chain to user |
69
-
70
- ## Multi-Sprint Dynamic Downgrade
71
-
72
- If Sprint N metrics are strong (velocity >= expected, review avg >= 8), coordinator may downgrade Sprint N+1 from multi-sprint to sprint pipeline for efficiency.
73
-
74
- ## Task Ledger Schema
75
-
76
- | Field | Description |
77
- |-------|-------------|
78
- | `sprint_id` | Current sprint identifier |
79
- | `sprint_goal` | Sprint objective |
80
- | `tasks[]` | Array of task entries |
81
- | `metrics` | Aggregated metrics: total, completed, in_progress, blocked, velocity |
82
-
83
- **Task Entry Fields**:
84
-
85
- | Field | Description |
86
- |-------|-------------|
87
- | `id` | Task identifier |
88
- | `title` | Task title |
89
- | `owner` | Assigned role |
90
- | `status` | pending / in_progress / completed / blocked |
91
- | `started_at` / `completed_at` | Timestamps |
92
- | `gc_rounds` | Generator-Critic iteration count |
93
- | `review_score` | Reviewer score (null until reviewed) |
94
- | `test_pass_rate` | Tester pass rate (null until tested) |
1
+ # IterDev Pipeline Definitions
2
+
3
+ ## Three-Pipeline Architecture
4
+
5
+ ### Patch Pipeline (2 beats, serial)
6
+
7
+ ```
8
+ DEV-001 -> VERIFY-001
9
+ [developer] [tester]
10
+ ```
11
+
12
+ ### Sprint Pipeline (4 beats, with parallel window)
13
+
14
+ ```
15
+ DESIGN-001 -> DEV-001 -> [VERIFY-001 + REVIEW-001] (parallel)
16
+ [architect] [developer] [tester] [reviewer]
17
+ ```
18
+
19
+ ### Multi-Sprint Pipeline (N beats, iterative)
20
+
21
+ ```
22
+ Sprint 1: DESIGN-001 -> DEV-001 -> DEV-002(incremental) -> VERIFY-001 -> DEV-fix -> REVIEW-001
23
+ Sprint 2: DESIGN-002(refined) -> DEV-003 -> VERIFY-002 -> REVIEW-002
24
+ ...
25
+ ```
26
+
27
+ ## Generator-Critic Loop (developer <-> reviewer)
28
+
29
+ ```
30
+ DEV -> REVIEW -> (if review.critical_count > 0 || review.score < 7)
31
+ -> DEV-fix -> REVIEW-2 -> (if still issues) -> DEV-fix-2 -> REVIEW-3
32
+ -> (max 3 rounds, then accept with warning)
33
+ ```
34
+
35
+ ## Pipeline Selection Logic
36
+
37
+ | Signal | Score |
38
+ |--------|-------|
39
+ | Changed files > 10 | +3 |
40
+ | Changed files 3-10 | +2 |
41
+ | Structural change | +3 |
42
+ | Cross-cutting concern | +2 |
43
+ | Simple fix | -2 |
44
+
45
+ | Score | Pipeline |
46
+ |-------|----------|
47
+ | >= 5 | multi-sprint |
48
+ | 2-4 | sprint |
49
+ | 0-1 | patch |
50
+
51
+ ## Task Metadata Registry
52
+
53
+ | Task ID | Role | Pipeline | Dependencies | Description |
54
+ |---------|------|----------|-------------|-------------|
55
+ | DESIGN-001 | architect | sprint/multi | (none) | Technical design and task breakdown |
56
+ | DEV-001 | developer | all | DESIGN-001 (sprint/multi) or (none for patch) | Code implementation |
57
+ | DEV-002 | developer | multi | DEV-001 | Incremental implementation |
58
+ | DEV-fix | developer | sprint/multi | REVIEW-* (GC loop trigger) | Fix issues from review |
59
+ | VERIFY-001 | tester | all | DEV-001 (or last DEV) | Test execution and fix cycles |
60
+ | REVIEW-001 | reviewer | sprint/multi | DEV-001 (or last DEV) | Code review and quality scoring |
61
+
62
+ ## Checkpoints
63
+
64
+ | Trigger Condition | Location | Behavior |
65
+ |-------------------|----------|----------|
66
+ | GC loop exceeds max rounds | After REVIEW-3 | Stop iteration, accept with warning, record in wisdom |
67
+ | Sprint transition | End of Sprint N | Pause, retrospective, user confirms `resume` for Sprint N+1 |
68
+ | Pipeline stall | No ready + no running tasks | Check missing tasks, report blockedBy chain to user |
69
+
70
+ ## Multi-Sprint Dynamic Downgrade
71
+
72
+ If Sprint N metrics are strong (velocity >= expected, review avg >= 8), coordinator may downgrade Sprint N+1 from multi-sprint to sprint pipeline for efficiency.
73
+
74
+ ## Task Ledger Schema
75
+
76
+ | Field | Description |
77
+ |-------|-------------|
78
+ | `sprint_id` | Current sprint identifier |
79
+ | `sprint_goal` | Sprint objective |
80
+ | `tasks[]` | Array of task entries |
81
+ | `metrics` | Aggregated metrics: total, completed, in_progress, blocked, velocity |
82
+
83
+ **Task Entry Fields**:
84
+
85
+ | Field | Description |
86
+ |-------|-------------|
87
+ | `id` | Task identifier |
88
+ | `title` | Task title |
89
+ | `owner` | Assigned role |
90
+ | `status` | pending / in_progress / completed / blocked |
91
+ | `started_at` / `completed_at` | Timestamps |
92
+ | `gc_rounds` | Generator-Critic iteration count |
93
+ | `review_score` | Reviewer score (null until reviewed) |
94
+ | `test_pass_rate` | Tester pass rate (null until tested) |
@@ -19,7 +19,7 @@
19
19
  | Worker spawn | `Agent({ subagent_type: "team-worker", prompt })` | `spawn_agent({ agent_type: "tlv4_worker", items })` |
20
20
  | Supervisor spawn | `Agent({ subagent_type: "team-supervisor", prompt })` | `spawn_agent({ agent_type: "tlv4_supervisor", items })` |
21
21
  | Supervisor wake | `SendMessage({ recipient: "supervisor", content })` | `send_input({ id: supervisorId, items })` |
22
- | Supervisor shutdown | `SendMessage({ type: "shutdown_request" })` | `close_agent({ id: supervisorId })` |
22
+ | Supervisor shutdown | `SendMessage({ type: "shutdown_request" })` | `close_agent({ target: supervisorId })` |
23
23
  | 等待完成 | 后台回调 -> monitor.md | `wait_agent({ ids, timeout_ms })` |
24
24
  | 任务状态 | `TaskCreate` / `TaskUpdate` | `tasks.json` 文件读写 |
25
25
  | 团队管理 | `TeamCreate` / `TeamDelete` | session folder init / cleanup |
@@ -222,14 +222,14 @@ scope: [${task.deps}]
222
222
  pipeline_progress: ${done}/${total} tasks completed` }
223
223
  ]
224
224
  })
225
- wait_agent({ ids: [supervisorId], timeout_ms: 300000 })
225
+ wait_agent({ targets: [supervisorId], timeout_ms: 300000 })
226
226
  ```
227
227
 
228
228
  ### Supervisor Shutdown
229
229
 
230
230
  ```javascript
231
231
  // 对齐 Claude Code SendMessage({ type: "shutdown_request" })
232
- close_agent({ id: supervisorId })
232
+ close_agent({ target: supervisorId })
233
233
  ```
234
234
 
235
235
  ### Wave 执行引擎
@@ -300,7 +300,7 @@ pipeline_phase: ${task.pipeline_phase}` },
300
300
 
301
301
  // 2) 批量等待
302
302
  if (agentMap.length > 0) {
303
- wait_agent({ ids: agentMap.map(a => a.agentId), timeout_ms: 900000 })
303
+ wait_agent({ targets: agentMap.map(a => a.agentId), timeout_ms: 900000 })
304
304
  }
305
305
 
306
306
  // 3) 收集结果,合并到 tasks.json
@@ -315,7 +315,7 @@ pipeline_phase: ${task.pipeline_phase}` },
315
315
  state.tasks[taskId].status = 'failed'
316
316
  state.tasks[taskId].error = 'No discovery file produced'
317
317
  }
318
- close_agent({ id: agentId })
318
+ close_agent({ target: agentId })
319
319
  }
320
320
 
321
321
  // 4) 执行 CHECKPOINT 任务 (send_input 唤醒 supervisor)
@@ -329,7 +329,7 @@ scope: [${task.deps.join(', ')}]
329
329
  pipeline_progress: ${completedCount}/${totalCount} tasks completed` }
330
330
  ]
331
331
  })
332
- wait_agent({ ids: [supervisorId], timeout_ms: 300000 })
332
+ wait_agent({ targets: [supervisorId], timeout_ms: 300000 })
333
333
 
334
334
  // 读取 checkpoint 报告
335
335
  try {