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.
- package/.codex/skills/team-arch-opt/SKILL.md +242 -175
- package/.codex/skills/team-arch-opt/roles/analyzer/role.md +78 -78
- package/.codex/skills/team-arch-opt/roles/coordinator/commands/analyze.md +57 -57
- package/.codex/skills/team-arch-opt/roles/coordinator/commands/monitor.md +246 -204
- package/.codex/skills/team-arch-opt/roles/coordinator/role.md +196 -184
- package/.codex/skills/team-arch-opt/roles/designer/role.md +115 -115
- package/.codex/skills/team-arch-opt/roles/refactorer/role.md +102 -102
- package/.codex/skills/team-arch-opt/roles/reviewer/role.md +111 -111
- package/.codex/skills/team-arch-opt/roles/validator/role.md +115 -115
- package/.codex/skills/team-arch-opt/specs/pipelines.md +102 -102
- package/.codex/skills/team-brainstorm/SKILL.md +72 -4
- package/.codex/skills/team-brainstorm/roles/challenger/role.md +61 -61
- package/.codex/skills/team-brainstorm/roles/coordinator/commands/analyze.md +58 -58
- package/.codex/skills/team-brainstorm/roles/coordinator/commands/monitor.md +212 -171
- package/.codex/skills/team-brainstorm/roles/coordinator/role.md +172 -160
- package/.codex/skills/team-brainstorm/roles/evaluator/role.md +56 -56
- package/.codex/skills/team-brainstorm/roles/ideator/role.md +69 -69
- package/.codex/skills/team-brainstorm/roles/synthesizer/role.md +57 -57
- package/.codex/skills/team-brainstorm/specs/pipelines.md +72 -72
- package/.codex/skills/team-coordinate/SKILL.md +71 -3
- package/.codex/skills/team-coordinate/roles/coordinator/commands/monitor.md +45 -5
- package/.codex/skills/team-coordinate/roles/coordinator/role.md +402 -389
- package/.codex/skills/team-coordinate/specs/knowledge-transfer.md +111 -111
- package/.codex/skills/team-coordinate/specs/pipelines.md +97 -97
- package/.codex/skills/team-coordinate/specs/quality-gates.md +112 -112
- package/.codex/skills/team-designer/SKILL.md +153 -153
- package/.codex/skills/team-designer/phases/01-requirements-analysis.md +250 -250
- package/.codex/skills/team-designer/phases/02-scaffold-generation.md +228 -228
- package/.codex/skills/team-designer/phases/03-content-generation.md +330 -330
- package/.codex/skills/team-designer/phases/04-validation.md +320 -320
- package/.codex/skills/team-executor/SKILL.md +29 -2
- package/.codex/skills/team-executor/roles/executor/commands/monitor.md +23 -15
- package/.codex/skills/team-frontend/SKILL.md +77 -3
- package/.codex/skills/team-frontend/roles/analyst/role.md +92 -92
- package/.codex/skills/team-frontend/roles/architect/role.md +86 -86
- package/.codex/skills/team-frontend/roles/coordinator/commands/analyze.md +52 -52
- package/.codex/skills/team-frontend/roles/coordinator/commands/monitor.md +222 -188
- package/.codex/skills/team-frontend/roles/coordinator/role.md +189 -177
- package/.codex/skills/team-frontend/roles/developer/role.md +93 -93
- package/.codex/skills/team-frontend/roles/qa/role.md +79 -79
- package/.codex/skills/team-frontend/specs/pipelines.md +76 -76
- package/.codex/skills/team-frontend-debug/SKILL.md +66 -3
- package/.codex/skills/team-frontend-debug/roles/analyzer/role.md +208 -208
- package/.codex/skills/team-frontend-debug/roles/coordinator/commands/analyze.md +174 -174
- package/.codex/skills/team-frontend-debug/roles/coordinator/commands/dispatch.md +198 -198
- package/.codex/skills/team-frontend-debug/roles/coordinator/commands/monitor.md +177 -143
- package/.codex/skills/team-frontend-debug/roles/coordinator/role.md +164 -152
- package/.codex/skills/team-frontend-debug/roles/fixer/role.md +147 -147
- package/.codex/skills/team-frontend-debug/roles/reproducer/role.md +147 -147
- package/.codex/skills/team-frontend-debug/roles/tester/role.md +231 -231
- package/.codex/skills/team-frontend-debug/roles/verifier/role.md +172 -172
- package/.codex/skills/team-frontend-debug/specs/debug-tools.md +215 -215
- package/.codex/skills/team-frontend-debug/specs/pipelines.md +94 -94
- package/.codex/skills/team-issue/SKILL.md +83 -4
- package/.codex/skills/team-issue/roles/coordinator/commands/analyze.md +64 -64
- package/.codex/skills/team-issue/roles/coordinator/commands/dispatch.md +273 -273
- package/.codex/skills/team-issue/roles/coordinator/commands/monitor.md +235 -194
- package/.codex/skills/team-issue/roles/coordinator/role.md +206 -194
- package/.codex/skills/team-issue/roles/explorer/role.md +94 -94
- package/.codex/skills/team-issue/roles/implementer/role.md +87 -87
- package/.codex/skills/team-issue/roles/integrator/role.md +84 -84
- package/.codex/skills/team-issue/roles/planner/role.md +81 -81
- package/.codex/skills/team-issue/roles/reviewer/role.md +86 -86
- package/.codex/skills/team-issue/specs/pipelines.md +124 -124
- package/.codex/skills/team-iterdev/SKILL.md +64 -3
- package/.codex/skills/team-iterdev/roles/architect/role.md +65 -65
- package/.codex/skills/team-iterdev/roles/coordinator/commands/analyze.md +62 -62
- package/.codex/skills/team-iterdev/roles/coordinator/commands/monitor.md +227 -186
- package/.codex/skills/team-iterdev/roles/coordinator/role.md +193 -181
- package/.codex/skills/team-iterdev/roles/developer/role.md +74 -74
- package/.codex/skills/team-iterdev/roles/reviewer/role.md +66 -66
- package/.codex/skills/team-iterdev/roles/tester/role.md +88 -88
- package/.codex/skills/team-iterdev/specs/pipelines.md +94 -94
- package/.codex/skills/team-lifecycle-v4/MIGRATION-PLAN.md +6 -6
- package/.codex/skills/team-lifecycle-v4/SKILL.md +305 -242
- package/.codex/skills/team-lifecycle-v4/roles/coordinator/commands/dispatch.md +1 -1
- package/.codex/skills/team-lifecycle-v4/roles/coordinator/commands/monitor.md +66 -24
- package/.codex/skills/team-lifecycle-v4/roles/coordinator/role.md +13 -1
- package/.codex/skills/team-lifecycle-v4/roles/supervisor/role.md +1 -1
- package/.codex/skills/team-lifecycle-v4/templates/architecture.md +254 -254
- package/.codex/skills/team-lifecycle-v4/templates/epics.md +196 -196
- package/.codex/skills/team-lifecycle-v4/templates/product-brief.md +133 -133
- package/.codex/skills/team-lifecycle-v4/templates/requirements.md +224 -224
- package/.codex/skills/team-perf-opt/SKILL.md +68 -3
- package/.codex/skills/team-perf-opt/roles/benchmarker/role.md +89 -89
- package/.codex/skills/team-perf-opt/roles/coordinator/commands/analyze.md +61 -61
- package/.codex/skills/team-perf-opt/roles/coordinator/commands/monitor.md +35 -1
- package/.codex/skills/team-perf-opt/roles/coordinator/role.md +179 -167
- package/.codex/skills/team-perf-opt/roles/optimizer/role.md +97 -97
- package/.codex/skills/team-perf-opt/roles/profiler/role.md +73 -73
- package/.codex/skills/team-perf-opt/roles/reviewer/role.md +75 -75
- package/.codex/skills/team-perf-opt/roles/strategist/role.md +94 -94
- package/.codex/skills/team-perf-opt/specs/pipelines.md +65 -65
- package/.codex/skills/team-planex/SKILL.md +65 -3
- package/.codex/skills/team-planex/roles/coordinator/commands/analyze.md +52 -52
- package/.codex/skills/team-planex/roles/coordinator/commands/monitor.md +210 -164
- package/.codex/skills/team-planex/roles/coordinator/role.md +171 -159
- package/.codex/skills/team-planex/roles/executor/role.md +91 -91
- package/.codex/skills/team-planex/roles/planner/role.md +112 -112
- package/.codex/skills/team-planex/specs/pipelines.md +93 -93
- package/.codex/skills/team-quality-assurance/SKILL.md +60 -3
- package/.codex/skills/team-quality-assurance/roles/analyst/role.md +80 -80
- package/.codex/skills/team-quality-assurance/roles/coordinator/commands/analyze.md +72 -72
- package/.codex/skills/team-quality-assurance/roles/coordinator/commands/dispatch.md +108 -108
- package/.codex/skills/team-quality-assurance/roles/coordinator/commands/monitor.md +243 -209
- package/.codex/skills/team-quality-assurance/roles/coordinator/role.md +176 -164
- package/.codex/skills/team-quality-assurance/roles/executor/role.md +66 -66
- package/.codex/skills/team-quality-assurance/roles/generator/role.md +68 -68
- package/.codex/skills/team-quality-assurance/roles/scout/role.md +67 -67
- package/.codex/skills/team-quality-assurance/roles/strategist/role.md +71 -71
- package/.codex/skills/team-quality-assurance/specs/pipelines.md +115 -115
- package/.codex/skills/team-review/SKILL.md +58 -3
- package/.codex/skills/team-review/roles/coordinator/commands/analyze.md +71 -71
- package/.codex/skills/team-review/roles/coordinator/commands/dispatch.md +90 -90
- package/.codex/skills/team-review/roles/coordinator/commands/monitor.md +225 -185
- package/.codex/skills/team-review/roles/coordinator/role.md +175 -163
- package/.codex/skills/team-review/roles/fixer/role.md +76 -76
- package/.codex/skills/team-review/roles/reviewer/role.md +68 -68
- package/.codex/skills/team-review/roles/scanner/role.md +71 -71
- package/.codex/skills/team-review/specs/pipelines.md +102 -102
- package/.codex/skills/team-roadmap-dev/SKILL.md +55 -3
- package/.codex/skills/team-roadmap-dev/roles/coordinator/commands/analyze.md +61 -61
- package/.codex/skills/team-roadmap-dev/roles/coordinator/commands/monitor.md +502 -468
- package/.codex/skills/team-roadmap-dev/roles/coordinator/role.md +335 -322
- package/.codex/skills/team-roadmap-dev/roles/executor/role.md +71 -71
- package/.codex/skills/team-roadmap-dev/roles/planner/role.md +76 -76
- package/.codex/skills/team-roadmap-dev/roles/verifier/role.md +74 -74
- package/.codex/skills/team-roadmap-dev/specs/pipelines.md +93 -93
- package/.codex/skills/team-tech-debt/SKILL.md +56 -3
- package/.codex/skills/team-tech-debt/roles/assessor/role.md +69 -69
- package/.codex/skills/team-tech-debt/roles/coordinator/commands/analyze.md +47 -47
- package/.codex/skills/team-tech-debt/roles/coordinator/commands/monitor.md +272 -231
- package/.codex/skills/team-tech-debt/roles/coordinator/role.md +172 -160
- package/.codex/skills/team-tech-debt/roles/executor/role.md +76 -76
- package/.codex/skills/team-tech-debt/roles/planner/role.md +69 -69
- package/.codex/skills/team-tech-debt/roles/scanner/role.md +82 -82
- package/.codex/skills/team-tech-debt/roles/validator/role.md +75 -75
- package/.codex/skills/team-tech-debt/specs/pipelines.md +47 -47
- package/.codex/skills/team-testing/SKILL.md +72 -3
- package/.codex/skills/team-testing/roles/analyst/role.md +95 -95
- package/.codex/skills/team-testing/roles/coordinator/commands/analyze.md +70 -70
- package/.codex/skills/team-testing/roles/coordinator/commands/dispatch.md +106 -106
- package/.codex/skills/team-testing/roles/coordinator/commands/monitor.md +283 -242
- package/.codex/skills/team-testing/roles/coordinator/role.md +184 -172
- package/.codex/skills/team-testing/roles/executor/role.md +96 -96
- package/.codex/skills/team-testing/roles/generator/role.md +95 -95
- package/.codex/skills/team-testing/roles/strategist/role.md +83 -83
- package/.codex/skills/team-testing/specs/pipelines.md +101 -101
- package/.codex/skills/team-uidesign/SKILL.md +65 -3
- package/.codex/skills/team-uidesign/roles/coordinator/commands/analyze.md +59 -59
- package/.codex/skills/team-uidesign/roles/coordinator/commands/dispatch.md +156 -156
- package/.codex/skills/team-uidesign/roles/coordinator/commands/monitor.md +234 -194
- package/.codex/skills/team-uidesign/roles/coordinator/role.md +211 -199
- package/.codex/skills/team-uidesign/roles/designer/role.md +69 -69
- package/.codex/skills/team-uidesign/roles/implementer/role.md +72 -72
- package/.codex/skills/team-uidesign/roles/researcher/role.md +82 -82
- package/.codex/skills/team-uidesign/roles/reviewer/role.md +67 -67
- package/.codex/skills/team-uidesign/specs/pipelines.md +76 -76
- package/.codex/skills/team-ultra-analyze/SKILL.md +73 -3
- package/.codex/skills/team-ultra-analyze/roles/analyst/role.md +90 -90
- package/.codex/skills/team-ultra-analyze/roles/coordinator/commands/analyze.md +73 -73
- package/.codex/skills/team-ultra-analyze/roles/coordinator/commands/monitor.md +50 -9
- package/.codex/skills/team-ultra-analyze/roles/coordinator/role.md +255 -243
- package/.codex/skills/team-ultra-analyze/roles/discussant/role.md +104 -104
- package/.codex/skills/team-ultra-analyze/roles/explorer/role.md +74 -74
- package/.codex/skills/team-ultra-analyze/roles/synthesizer/role.md +78 -78
- package/.codex/skills/team-ultra-analyze/specs/pipelines.md +64 -64
- package/.codex/skills/team-ux-improve/SKILL.md +64 -3
- package/.codex/skills/team-ux-improve/roles/coordinator/commands/analyze.md +62 -62
- package/.codex/skills/team-ux-improve/roles/coordinator/commands/dispatch.md +233 -233
- package/.codex/skills/team-ux-improve/roles/coordinator/commands/monitor.md +195 -160
- package/.codex/skills/team-ux-improve/roles/coordinator/role.md +170 -158
- package/.codex/skills/team-ux-improve/roles/designer/role.md +122 -122
- package/.codex/skills/team-ux-improve/roles/diagnoser/role.md +93 -93
- package/.codex/skills/team-ux-improve/roles/explorer/role.md +77 -77
- package/.codex/skills/team-ux-improve/roles/implementer/role.md +102 -102
- package/.codex/skills/team-ux-improve/roles/scanner/role.md +93 -93
- package/.codex/skills/team-ux-improve/roles/tester/role.md +84 -84
- package/.codex/skills/team-ux-improve/specs/pipelines.md +54 -54
- package/README.md +1 -0
- package/package.json +1 -1
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
---
|
|
2
|
-
role: reviewer
|
|
3
|
-
prefix: AUDIT
|
|
4
|
-
inner_loop: false
|
|
5
|
-
message_types: [approved, concerns, rejected, error]
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
# Issue Reviewer
|
|
9
|
-
|
|
10
|
-
Review solution plans for technical feasibility, risk, and completeness. Quality gate role between plan and execute phases. Provides clear verdicts: approved, rejected, or concerns.
|
|
11
|
-
|
|
12
|
-
## Phase 2: Context & Solution Loading
|
|
13
|
-
|
|
14
|
-
| Input | Source | Required |
|
|
15
|
-
|-------|--------|----------|
|
|
16
|
-
| Issue IDs | Task description (GH-\d+ or ISS-\d{8}-\d{6}) | Yes |
|
|
17
|
-
| Explorer context | `<session>/explorations/context-<issueId>.json` | No |
|
|
18
|
-
| Bound solution | `ccw issue solutions <id> --json` | Yes |
|
|
19
|
-
| wisdom meta | <session>/wisdom/.msg/meta.json | No |
|
|
20
|
-
|
|
21
|
-
1. Extract issue IDs from task description via regex
|
|
22
|
-
2. Load explorer context reports for each issue
|
|
23
|
-
3. Load bound solutions for each issue:
|
|
24
|
-
|
|
25
|
-
```
|
|
26
|
-
Bash("ccw issue solutions <issueId> --json")
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
## Phase 3: Multi-Dimensional Review
|
|
30
|
-
|
|
31
|
-
Review each solution across three weighted dimensions:
|
|
32
|
-
|
|
33
|
-
**Technical Feasibility (40%)**:
|
|
34
|
-
|
|
35
|
-
| Criterion | Check |
|
|
36
|
-
|-----------|-------|
|
|
37
|
-
| File Coverage | Solution covers all affected files from explorer context |
|
|
38
|
-
| Dependency Awareness | Considers dependency cascade effects |
|
|
39
|
-
| API Compatibility | Maintains backward compatibility |
|
|
40
|
-
| Pattern Conformance | Follows existing code patterns (ACE semantic validation) |
|
|
41
|
-
|
|
42
|
-
**Risk Assessment (30%)**:
|
|
43
|
-
|
|
44
|
-
| Criterion | Check |
|
|
45
|
-
|-----------|-------|
|
|
46
|
-
| Scope Creep | Solution stays within issue boundary (task_count <= 10) |
|
|
47
|
-
| Breaking Changes | No destructive modifications |
|
|
48
|
-
| Side Effects | No unforeseen side effects |
|
|
49
|
-
| Rollback Path | Can rollback if issues occur |
|
|
50
|
-
|
|
51
|
-
**Completeness (30%)**:
|
|
52
|
-
|
|
53
|
-
| Criterion | Check |
|
|
54
|
-
|-----------|-------|
|
|
55
|
-
| All Tasks Defined | Task decomposition is complete (count > 0) |
|
|
56
|
-
| Test Coverage | Includes test plan |
|
|
57
|
-
| Edge Cases | Considers boundary conditions |
|
|
58
|
-
|
|
59
|
-
**Score calculation**:
|
|
60
|
-
|
|
61
|
-
```
|
|
62
|
-
total_score = round(
|
|
63
|
-
technical_feasibility.score * 0.4 +
|
|
64
|
-
risk_assessment.score * 0.3 +
|
|
65
|
-
completeness.score * 0.3
|
|
66
|
-
)
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
**Verdict rules**:
|
|
70
|
-
|
|
71
|
-
| Score | Verdict | Message Type |
|
|
72
|
-
|-------|---------|-------------|
|
|
73
|
-
| >= 80 | approved | `approved` |
|
|
74
|
-
| 60-79 | concerns | `concerns` |
|
|
75
|
-
| < 60 | rejected | `rejected` |
|
|
76
|
-
|
|
77
|
-
## Phase 4: Compile Audit Report
|
|
78
|
-
|
|
79
|
-
1. Write audit report to `<session>/audits/audit-report.json`:
|
|
80
|
-
- Per-issue: issueId, solutionId, total_score, verdict, per-dimension scores and findings
|
|
81
|
-
- Overall verdict (any rejected -> overall rejected)
|
|
82
|
-
|
|
83
|
-
2. Update `<session>/wisdom/.msg/meta.json` under `reviewer` namespace:
|
|
84
|
-
- Read existing -> merge `{ "reviewer": { overall_verdict, review_count, scores } }` -> write back
|
|
85
|
-
|
|
86
|
-
3. For rejected solutions, include specific rejection reasons and actionable feedback for SOLVE-fix task creation
|
|
1
|
+
---
|
|
2
|
+
role: reviewer
|
|
3
|
+
prefix: AUDIT
|
|
4
|
+
inner_loop: false
|
|
5
|
+
message_types: [approved, concerns, rejected, error]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Issue Reviewer
|
|
9
|
+
|
|
10
|
+
Review solution plans for technical feasibility, risk, and completeness. Quality gate role between plan and execute phases. Provides clear verdicts: approved, rejected, or concerns.
|
|
11
|
+
|
|
12
|
+
## Phase 2: Context & Solution Loading
|
|
13
|
+
|
|
14
|
+
| Input | Source | Required |
|
|
15
|
+
|-------|--------|----------|
|
|
16
|
+
| Issue IDs | Task description (GH-\d+ or ISS-\d{8}-\d{6}) | Yes |
|
|
17
|
+
| Explorer context | `<session>/explorations/context-<issueId>.json` | No |
|
|
18
|
+
| Bound solution | `ccw issue solutions <id> --json` | Yes |
|
|
19
|
+
| wisdom meta | <session>/wisdom/.msg/meta.json | No |
|
|
20
|
+
|
|
21
|
+
1. Extract issue IDs from task description via regex
|
|
22
|
+
2. Load explorer context reports for each issue
|
|
23
|
+
3. Load bound solutions for each issue:
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
Bash("ccw issue solutions <issueId> --json")
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Phase 3: Multi-Dimensional Review
|
|
30
|
+
|
|
31
|
+
Review each solution across three weighted dimensions:
|
|
32
|
+
|
|
33
|
+
**Technical Feasibility (40%)**:
|
|
34
|
+
|
|
35
|
+
| Criterion | Check |
|
|
36
|
+
|-----------|-------|
|
|
37
|
+
| File Coverage | Solution covers all affected files from explorer context |
|
|
38
|
+
| Dependency Awareness | Considers dependency cascade effects |
|
|
39
|
+
| API Compatibility | Maintains backward compatibility |
|
|
40
|
+
| Pattern Conformance | Follows existing code patterns (ACE semantic validation) |
|
|
41
|
+
|
|
42
|
+
**Risk Assessment (30%)**:
|
|
43
|
+
|
|
44
|
+
| Criterion | Check |
|
|
45
|
+
|-----------|-------|
|
|
46
|
+
| Scope Creep | Solution stays within issue boundary (task_count <= 10) |
|
|
47
|
+
| Breaking Changes | No destructive modifications |
|
|
48
|
+
| Side Effects | No unforeseen side effects |
|
|
49
|
+
| Rollback Path | Can rollback if issues occur |
|
|
50
|
+
|
|
51
|
+
**Completeness (30%)**:
|
|
52
|
+
|
|
53
|
+
| Criterion | Check |
|
|
54
|
+
|-----------|-------|
|
|
55
|
+
| All Tasks Defined | Task decomposition is complete (count > 0) |
|
|
56
|
+
| Test Coverage | Includes test plan |
|
|
57
|
+
| Edge Cases | Considers boundary conditions |
|
|
58
|
+
|
|
59
|
+
**Score calculation**:
|
|
60
|
+
|
|
61
|
+
```
|
|
62
|
+
total_score = round(
|
|
63
|
+
technical_feasibility.score * 0.4 +
|
|
64
|
+
risk_assessment.score * 0.3 +
|
|
65
|
+
completeness.score * 0.3
|
|
66
|
+
)
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
**Verdict rules**:
|
|
70
|
+
|
|
71
|
+
| Score | Verdict | Message Type |
|
|
72
|
+
|-------|---------|-------------|
|
|
73
|
+
| >= 80 | approved | `approved` |
|
|
74
|
+
| 60-79 | concerns | `concerns` |
|
|
75
|
+
| < 60 | rejected | `rejected` |
|
|
76
|
+
|
|
77
|
+
## Phase 4: Compile Audit Report
|
|
78
|
+
|
|
79
|
+
1. Write audit report to `<session>/audits/audit-report.json`:
|
|
80
|
+
- Per-issue: issueId, solutionId, total_score, verdict, per-dimension scores and findings
|
|
81
|
+
- Overall verdict (any rejected -> overall rejected)
|
|
82
|
+
|
|
83
|
+
2. Update `<session>/wisdom/.msg/meta.json` under `reviewer` namespace:
|
|
84
|
+
- Read existing -> merge `{ "reviewer": { overall_verdict, review_count, scores } }` -> write back
|
|
85
|
+
|
|
86
|
+
3. For rejected solutions, include specific rejection reasons and actionable feedback for SOLVE-fix task creation
|
|
@@ -1,124 +1,124 @@
|
|
|
1
|
-
# Pipeline Definitions — team-issue
|
|
2
|
-
|
|
3
|
-
## Available Pipelines
|
|
4
|
-
|
|
5
|
-
### Quick Pipeline (4 beats, strictly serial)
|
|
6
|
-
|
|
7
|
-
```
|
|
8
|
-
EXPLORE-001 → SOLVE-001 → MARSHAL-001 → BUILD-001
|
|
9
|
-
[explorer] [planner] [integrator] [implementer]
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
Use when: 1-2 simple issues, no high-priority (priority < 4).
|
|
13
|
-
|
|
14
|
-
### Full Pipeline (5 beats, with review gate)
|
|
15
|
-
|
|
16
|
-
```
|
|
17
|
-
EXPLORE-001 → SOLVE-001 → AUDIT-001 ─┬─(approved/concerns)→ MARSHAL-001 → BUILD-001
|
|
18
|
-
[explorer] [planner] [reviewer] │
|
|
19
|
-
└─(rejected, round<2)→ SOLVE-fix-001 → AUDIT-002 → MARSHAL-001 → BUILD-001
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
Use when: 1-4 issues with high-priority, or 3-4 issues regardless of priority.
|
|
23
|
-
|
|
24
|
-
### Batch Pipeline (parallel windows)
|
|
25
|
-
|
|
26
|
-
```
|
|
27
|
-
[EXPLORE-001..N](parallel, max 5) → [SOLVE-001..N](sequential) → AUDIT-001 → MARSHAL-001 → [BUILD-001..M](parallel, max 3, deferred)
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
Use when: 5+ issues.
|
|
31
|
-
|
|
32
|
-
Note: BUILD tasks are created dynamically after MARSHAL completes and execution-queue.json is available.
|
|
33
|
-
|
|
34
|
-
## Task Metadata Registry
|
|
35
|
-
|
|
36
|
-
| Task ID | Role | Phase | Dependencies | Description |
|
|
37
|
-
|---------|------|-------|-------------|-------------|
|
|
38
|
-
| EXPLORE-001 | explorer | explore | (none) | Context analysis and impact assessment |
|
|
39
|
-
| EXPLORE-002..N | explorer | explore | (none) | Parallel exploration (Batch mode only, max 5) |
|
|
40
|
-
| SOLVE-001 | planner | plan | EXPLORE-001 (or all EXPLORE-*) | Solution design and task decomposition |
|
|
41
|
-
| SOLVE-002..N | planner | plan | all EXPLORE-* | Parallel solution design (Batch mode only) |
|
|
42
|
-
| AUDIT-001 | reviewer | review | SOLVE-001 (or all SOLVE-*) | Technical feasibility and risk review (Full/Batch) |
|
|
43
|
-
| SOLVE-fix-001 | planner | fix | AUDIT-001 | Revised solution addressing reviewer feedback |
|
|
44
|
-
| AUDIT-002 | reviewer | re-review | SOLVE-fix-001 | Re-review of revised solution |
|
|
45
|
-
| MARSHAL-001 | integrator | integrate | AUDIT-001 (or last SOLVE-* in quick) | Conflict detection and queue orchestration |
|
|
46
|
-
| BUILD-001 | implementer | implement | MARSHAL-001 | Code implementation and result submission |
|
|
47
|
-
| BUILD-002..M | implementer | implement | MARSHAL-001 | Parallel implementation (Batch, deferred creation) |
|
|
48
|
-
|
|
49
|
-
## Mode Auto-Detection
|
|
50
|
-
|
|
51
|
-
| Condition | Mode |
|
|
52
|
-
|-----------|------|
|
|
53
|
-
| User specifies `--mode=<M>` | Use specified mode |
|
|
54
|
-
| Issue count <= 2 AND no high-priority (priority < 4) | `quick` |
|
|
55
|
-
| Issue count <= 2 AND has high-priority (priority >= 4) | `full` |
|
|
56
|
-
| 3-4 issues | `full` |
|
|
57
|
-
| Issue count >= 5 | `batch` |
|
|
58
|
-
|
|
59
|
-
## Checkpoints
|
|
60
|
-
|
|
61
|
-
| Trigger | Location | Behavior |
|
|
62
|
-
|---------|----------|----------|
|
|
63
|
-
| Review gate | After AUDIT-* | approved/concerns → MARSHAL; rejected → SOLVE-fix (max 2 rounds) |
|
|
64
|
-
| Review loop limit | fix_cycles >= 2 | Force proceed to MARSHAL with warnings |
|
|
65
|
-
| Deferred BUILD creation | After MARSHAL-* (batch) | Read execution-queue.json, create BUILD tasks |
|
|
66
|
-
| Pipeline stall | No ready + no running | Check missing tasks, report to user |
|
|
67
|
-
|
|
68
|
-
## Completion Conditions
|
|
69
|
-
|
|
70
|
-
| Mode | Completion Condition |
|
|
71
|
-
|------|---------------------|
|
|
72
|
-
| quick | All 4 tasks completed |
|
|
73
|
-
| full | All 5 tasks (+ any fix cycle tasks) completed |
|
|
74
|
-
| batch | All N EXPLORE + N SOLVE + 1 AUDIT + 1 MARSHAL + M BUILD (+ any fix cycle tasks) completed |
|
|
75
|
-
|
|
76
|
-
## Parallel Spawn Rules
|
|
77
|
-
|
|
78
|
-
| Pipeline | Stage | Max Parallel |
|
|
79
|
-
|----------|-------|-------------|
|
|
80
|
-
| Batch | EXPLORE-001..N | min(N, 5) |
|
|
81
|
-
| Batch | BUILD-001..M | min(M, 3) |
|
|
82
|
-
| All | All other stages | 1 |
|
|
83
|
-
|
|
84
|
-
## Shared State (meta.json)
|
|
85
|
-
|
|
86
|
-
| Role | State Key |
|
|
87
|
-
|------|-----------|
|
|
88
|
-
| explorer | `explorer` (issue_id, complexity, impact_scope, file_count) |
|
|
89
|
-
| planner | `planner` (issue_id, solution_id, task_count, is_revision) |
|
|
90
|
-
| reviewer | `reviewer` (overall_verdict, review_count, scores) |
|
|
91
|
-
| integrator | `integrator` (queue_size, parallel_groups, conflict_count) |
|
|
92
|
-
| implementer | `implementer` (issue_id, executor, test_status, review_status) |
|
|
93
|
-
|
|
94
|
-
## Message Types
|
|
95
|
-
|
|
96
|
-
| Role | Types |
|
|
97
|
-
|------|-------|
|
|
98
|
-
| coordinator | `pipeline_selected`, `review_result`, `fix_required`, `task_unblocked`, `error`, `shutdown` |
|
|
99
|
-
| explorer | `context_ready`, `error` |
|
|
100
|
-
| planner | `solution_ready`, `multi_solution`, `error` |
|
|
101
|
-
| reviewer | `approved`, `concerns`, `rejected`, `error` |
|
|
102
|
-
| integrator | `queue_ready`, `conflict_found`, `error` |
|
|
103
|
-
| implementer | `impl_complete`, `impl_failed`, `error` |
|
|
104
|
-
|
|
105
|
-
## Review-Fix Cycle
|
|
106
|
-
|
|
107
|
-
```
|
|
108
|
-
AUDIT verdict: rejected
|
|
109
|
-
│
|
|
110
|
-
├─ fix_cycles < 2 → create SOLVE-fix-<N> + AUDIT-<N+1> → spawn planner → wait
|
|
111
|
-
│ ↑
|
|
112
|
-
│ (repeat if rejected again)
|
|
113
|
-
│
|
|
114
|
-
└─ fix_cycles >= 2 → force proceed to MARSHAL with rejection warning logged
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
## Deferred BUILD Creation (Batch Mode)
|
|
118
|
-
|
|
119
|
-
BUILD tasks are not created during initial dispatch. After MARSHAL-001 completes:
|
|
120
|
-
1. Read `.workflow/issues/queue/execution-queue.json`
|
|
121
|
-
2. Parse `parallel_groups` to determine M
|
|
122
|
-
3. Create BUILD-001..M tasks with `addBlockedBy: ["MARSHAL-001"]`
|
|
123
|
-
4. Assign owners: M <= 2 → "implementer"; M > 2 → "implementer-1".."implementer-M" (max 3)
|
|
124
|
-
5. Spawn implementer workers via handleSpawnNext
|
|
1
|
+
# Pipeline Definitions — team-issue
|
|
2
|
+
|
|
3
|
+
## Available Pipelines
|
|
4
|
+
|
|
5
|
+
### Quick Pipeline (4 beats, strictly serial)
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
EXPLORE-001 → SOLVE-001 → MARSHAL-001 → BUILD-001
|
|
9
|
+
[explorer] [planner] [integrator] [implementer]
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Use when: 1-2 simple issues, no high-priority (priority < 4).
|
|
13
|
+
|
|
14
|
+
### Full Pipeline (5 beats, with review gate)
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
EXPLORE-001 → SOLVE-001 → AUDIT-001 ─┬─(approved/concerns)→ MARSHAL-001 → BUILD-001
|
|
18
|
+
[explorer] [planner] [reviewer] │
|
|
19
|
+
└─(rejected, round<2)→ SOLVE-fix-001 → AUDIT-002 → MARSHAL-001 → BUILD-001
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Use when: 1-4 issues with high-priority, or 3-4 issues regardless of priority.
|
|
23
|
+
|
|
24
|
+
### Batch Pipeline (parallel windows)
|
|
25
|
+
|
|
26
|
+
```
|
|
27
|
+
[EXPLORE-001..N](parallel, max 5) → [SOLVE-001..N](sequential) → AUDIT-001 → MARSHAL-001 → [BUILD-001..M](parallel, max 3, deferred)
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Use when: 5+ issues.
|
|
31
|
+
|
|
32
|
+
Note: BUILD tasks are created dynamically after MARSHAL completes and execution-queue.json is available.
|
|
33
|
+
|
|
34
|
+
## Task Metadata Registry
|
|
35
|
+
|
|
36
|
+
| Task ID | Role | Phase | Dependencies | Description |
|
|
37
|
+
|---------|------|-------|-------------|-------------|
|
|
38
|
+
| EXPLORE-001 | explorer | explore | (none) | Context analysis and impact assessment |
|
|
39
|
+
| EXPLORE-002..N | explorer | explore | (none) | Parallel exploration (Batch mode only, max 5) |
|
|
40
|
+
| SOLVE-001 | planner | plan | EXPLORE-001 (or all EXPLORE-*) | Solution design and task decomposition |
|
|
41
|
+
| SOLVE-002..N | planner | plan | all EXPLORE-* | Parallel solution design (Batch mode only) |
|
|
42
|
+
| AUDIT-001 | reviewer | review | SOLVE-001 (or all SOLVE-*) | Technical feasibility and risk review (Full/Batch) |
|
|
43
|
+
| SOLVE-fix-001 | planner | fix | AUDIT-001 | Revised solution addressing reviewer feedback |
|
|
44
|
+
| AUDIT-002 | reviewer | re-review | SOLVE-fix-001 | Re-review of revised solution |
|
|
45
|
+
| MARSHAL-001 | integrator | integrate | AUDIT-001 (or last SOLVE-* in quick) | Conflict detection and queue orchestration |
|
|
46
|
+
| BUILD-001 | implementer | implement | MARSHAL-001 | Code implementation and result submission |
|
|
47
|
+
| BUILD-002..M | implementer | implement | MARSHAL-001 | Parallel implementation (Batch, deferred creation) |
|
|
48
|
+
|
|
49
|
+
## Mode Auto-Detection
|
|
50
|
+
|
|
51
|
+
| Condition | Mode |
|
|
52
|
+
|-----------|------|
|
|
53
|
+
| User specifies `--mode=<M>` | Use specified mode |
|
|
54
|
+
| Issue count <= 2 AND no high-priority (priority < 4) | `quick` |
|
|
55
|
+
| Issue count <= 2 AND has high-priority (priority >= 4) | `full` |
|
|
56
|
+
| 3-4 issues | `full` |
|
|
57
|
+
| Issue count >= 5 | `batch` |
|
|
58
|
+
|
|
59
|
+
## Checkpoints
|
|
60
|
+
|
|
61
|
+
| Trigger | Location | Behavior |
|
|
62
|
+
|---------|----------|----------|
|
|
63
|
+
| Review gate | After AUDIT-* | approved/concerns → MARSHAL; rejected → SOLVE-fix (max 2 rounds) |
|
|
64
|
+
| Review loop limit | fix_cycles >= 2 | Force proceed to MARSHAL with warnings |
|
|
65
|
+
| Deferred BUILD creation | After MARSHAL-* (batch) | Read execution-queue.json, create BUILD tasks |
|
|
66
|
+
| Pipeline stall | No ready + no running | Check missing tasks, report to user |
|
|
67
|
+
|
|
68
|
+
## Completion Conditions
|
|
69
|
+
|
|
70
|
+
| Mode | Completion Condition |
|
|
71
|
+
|------|---------------------|
|
|
72
|
+
| quick | All 4 tasks completed |
|
|
73
|
+
| full | All 5 tasks (+ any fix cycle tasks) completed |
|
|
74
|
+
| batch | All N EXPLORE + N SOLVE + 1 AUDIT + 1 MARSHAL + M BUILD (+ any fix cycle tasks) completed |
|
|
75
|
+
|
|
76
|
+
## Parallel Spawn Rules
|
|
77
|
+
|
|
78
|
+
| Pipeline | Stage | Max Parallel |
|
|
79
|
+
|----------|-------|-------------|
|
|
80
|
+
| Batch | EXPLORE-001..N | min(N, 5) |
|
|
81
|
+
| Batch | BUILD-001..M | min(M, 3) |
|
|
82
|
+
| All | All other stages | 1 |
|
|
83
|
+
|
|
84
|
+
## Shared State (meta.json)
|
|
85
|
+
|
|
86
|
+
| Role | State Key |
|
|
87
|
+
|------|-----------|
|
|
88
|
+
| explorer | `explorer` (issue_id, complexity, impact_scope, file_count) |
|
|
89
|
+
| planner | `planner` (issue_id, solution_id, task_count, is_revision) |
|
|
90
|
+
| reviewer | `reviewer` (overall_verdict, review_count, scores) |
|
|
91
|
+
| integrator | `integrator` (queue_size, parallel_groups, conflict_count) |
|
|
92
|
+
| implementer | `implementer` (issue_id, executor, test_status, review_status) |
|
|
93
|
+
|
|
94
|
+
## Message Types
|
|
95
|
+
|
|
96
|
+
| Role | Types |
|
|
97
|
+
|------|-------|
|
|
98
|
+
| coordinator | `pipeline_selected`, `review_result`, `fix_required`, `task_unblocked`, `error`, `shutdown` |
|
|
99
|
+
| explorer | `context_ready`, `error` |
|
|
100
|
+
| planner | `solution_ready`, `multi_solution`, `error` |
|
|
101
|
+
| reviewer | `approved`, `concerns`, `rejected`, `error` |
|
|
102
|
+
| integrator | `queue_ready`, `conflict_found`, `error` |
|
|
103
|
+
| implementer | `impl_complete`, `impl_failed`, `error` |
|
|
104
|
+
|
|
105
|
+
## Review-Fix Cycle
|
|
106
|
+
|
|
107
|
+
```
|
|
108
|
+
AUDIT verdict: rejected
|
|
109
|
+
│
|
|
110
|
+
├─ fix_cycles < 2 → create SOLVE-fix-<N> + AUDIT-<N+1> → spawn planner → wait
|
|
111
|
+
│ ↑
|
|
112
|
+
│ (repeat if rejected again)
|
|
113
|
+
│
|
|
114
|
+
└─ fix_cycles >= 2 → force proceed to MARSHAL with rejection warning logged
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
## Deferred BUILD Creation (Batch Mode)
|
|
118
|
+
|
|
119
|
+
BUILD tasks are not created during initial dispatch. After MARSHAL-001 completes:
|
|
120
|
+
1. Read `.workflow/issues/queue/execution-queue.json`
|
|
121
|
+
2. Parse `parallel_groups` to determine M
|
|
122
|
+
3. Create BUILD-001..M tasks with `addBlockedBy: ["MARSHAL-001"]`
|
|
123
|
+
4. Assign owners: M <= 2 → "implementer"; M > 2 → "implementer-1".."implementer-M" (max 3)
|
|
124
|
+
5. Spawn implementer workers via handleSpawnNext
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: team-iterdev
|
|
3
3
|
description: Unified team skill for iterative development team. Pure router — all roles read this file. Beat model is coordinator-only in monitor.md. Generator-Critic loops (developer<->reviewer, max 3 rounds). Triggers on "team iterdev".
|
|
4
|
-
allowed-tools: spawn_agent(*), wait_agent(*),
|
|
4
|
+
allowed-tools: spawn_agent(*), wait_agent(*), send_message(*), assign_task(*), close_agent(*), list_agents(*), report_agent_job_result(*), request_user_input(*), Read(*), Write(*), Edit(*), Bash(*), Glob(*), Grep(*)
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# Team IterDev
|
|
@@ -54,7 +54,8 @@ Before calling ANY tool, apply this check:
|
|
|
54
54
|
|
|
55
55
|
| Tool Call | Verdict | Reason |
|
|
56
56
|
|-----------|---------|--------|
|
|
57
|
-
| `spawn_agent`, `wait_agent`, `close_agent`, `
|
|
57
|
+
| `spawn_agent`, `wait_agent`, `close_agent`, `send_message`, `assign_task` | ALLOWED | Orchestration |
|
|
58
|
+
| `list_agents` | ALLOWED | Agent health check |
|
|
58
59
|
| `request_user_input` | ALLOWED | User interaction |
|
|
59
60
|
| `mcp__ccw-tools__team_msg` | ALLOWED | Message bus |
|
|
60
61
|
| `Read/Write` on `.workflow/.team/` files | ALLOWED | Session state |
|
|
@@ -84,6 +85,8 @@ Coordinator spawns workers using this template:
|
|
|
84
85
|
```
|
|
85
86
|
spawn_agent({
|
|
86
87
|
agent_type: "team_worker",
|
|
88
|
+
task_name: "<task-id>",
|
|
89
|
+
fork_context: false,
|
|
87
90
|
items: [
|
|
88
91
|
{ type: "text", text: `## Role Assignment
|
|
89
92
|
role: <role>
|
|
@@ -107,7 +110,19 @@ pipeline_phase: <pipeline-phase>` },
|
|
|
107
110
|
})
|
|
108
111
|
```
|
|
109
112
|
|
|
110
|
-
After spawning, use `wait_agent({
|
|
113
|
+
After spawning, use `wait_agent({ targets: [...], timeout_ms: 900000 })` to collect results, then `close_agent({ target })` each worker.
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
### Model Selection Guide
|
|
117
|
+
|
|
118
|
+
Iterative development uses Generator-Critic loops. Developer and reviewer need high reasoning for code generation and review quality.
|
|
119
|
+
|
|
120
|
+
| Role | reasoning_effort | Rationale |
|
|
121
|
+
|------|-------------------|-----------|
|
|
122
|
+
| architect | high | Design decisions require careful tradeoff analysis |
|
|
123
|
+
| developer | high | Code generation needs precision, inner loop role |
|
|
124
|
+
| tester | medium | Test execution follows defined verification plan |
|
|
125
|
+
| reviewer | high | Critical review quality drives GC loop effectiveness |
|
|
111
126
|
|
|
112
127
|
## User Commands
|
|
113
128
|
|
|
@@ -145,6 +160,52 @@ After spawning, use `wait_agent({ ids: [...], timeout_ms: 900000 })` to collect
|
|
|
145
160
|
|
|
146
161
|
- [specs/pipelines.md](specs/pipelines.md) — Pipeline definitions and task registry
|
|
147
162
|
|
|
163
|
+
## v4 Agent Coordination
|
|
164
|
+
|
|
165
|
+
### Message Semantics
|
|
166
|
+
|
|
167
|
+
| Intent | API | Example |
|
|
168
|
+
|--------|-----|---------|
|
|
169
|
+
| Queue supplementary info (don't interrupt) | `send_message` | Send design context to running developer |
|
|
170
|
+
| Assign GC iteration round | `assign_task` | Assign revision to developer after reviewer feedback |
|
|
171
|
+
| Check running agents | `list_agents` | Verify agent health during resume |
|
|
172
|
+
|
|
173
|
+
### Agent Health Check
|
|
174
|
+
|
|
175
|
+
Use `list_agents({})` in handleResume and handleComplete:
|
|
176
|
+
|
|
177
|
+
```
|
|
178
|
+
// Reconcile session state with actual running agents
|
|
179
|
+
const running = list_agents({})
|
|
180
|
+
// Compare with task-ledger.json active tasks
|
|
181
|
+
// Reset orphaned tasks (in_progress but agent gone) to pending
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
### Named Agent Targeting
|
|
185
|
+
|
|
186
|
+
Workers are spawned with `task_name: "<task-id>"` enabling direct addressing:
|
|
187
|
+
- `send_message({ target: "DEV-001", items: [...] })` -- send design context to developer
|
|
188
|
+
- `assign_task({ target: "DEV-001", items: [...] })` -- assign revision after reviewer feedback
|
|
189
|
+
- `close_agent({ target: "REVIEW-001" })` -- cleanup after GC loop completes
|
|
190
|
+
|
|
191
|
+
### Generator-Critic Loop via assign_task (Deep Interaction Pattern)
|
|
192
|
+
|
|
193
|
+
The developer-reviewer GC loop uses `assign_task` for iteration rounds:
|
|
194
|
+
```
|
|
195
|
+
// Round N: Reviewer found issues -> coordinator assigns revision to developer
|
|
196
|
+
assign_task({
|
|
197
|
+
target: "DEV-001",
|
|
198
|
+
items: [
|
|
199
|
+
{ type: "text", text: `## GC Revision Round ${N}
|
|
200
|
+
review_feedback: <reviewer findings from REVIEW-001>
|
|
201
|
+
iteration: ${N}/3
|
|
202
|
+
instruction: Address reviewer feedback. Focus on: <specific issues>.` }
|
|
203
|
+
]
|
|
204
|
+
})
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
After developer completes revision, coordinator spawns/assigns reviewer for next round. Max 3 rounds per GC cycle.
|
|
208
|
+
|
|
148
209
|
## Error Handling
|
|
149
210
|
|
|
150
211
|
| Scenario | Resolution |
|
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
---
|
|
2
|
-
role: architect
|
|
3
|
-
prefix: DESIGN
|
|
4
|
-
inner_loop: false
|
|
5
|
-
message_types:
|
|
6
|
-
success: design_ready
|
|
7
|
-
revision: design_revision
|
|
8
|
-
error: error
|
|
9
|
-
---
|
|
10
|
-
|
|
11
|
-
# Architect
|
|
12
|
-
|
|
13
|
-
Technical design, task decomposition, and architecture decision records for iterative development.
|
|
14
|
-
|
|
15
|
-
## Phase 2: Context Loading + Codebase Exploration
|
|
16
|
-
|
|
17
|
-
| Input | Source | Required |
|
|
18
|
-
|-------|--------|----------|
|
|
19
|
-
| Task description | From task subject/description | Yes |
|
|
20
|
-
| Session path | Extracted from task description | Yes |
|
|
21
|
-
| .msg/meta.json | <session>/.msg/meta.json | No |
|
|
22
|
-
| Wisdom files | <session>/wisdom/ | No |
|
|
23
|
-
|
|
24
|
-
1. Extract session path and requirement from task description
|
|
25
|
-
2. Read .msg/meta.json for shared context (architecture_decisions, implementation_context)
|
|
26
|
-
3. Read wisdom files if available (learnings.md, decisions.md, conventions.md)
|
|
27
|
-
4. Explore codebase for existing patterns, module structure, dependencies:
|
|
28
|
-
- Use mcp__ace-tool__search_context for semantic discovery
|
|
29
|
-
- Identify similar implementations and integration points
|
|
30
|
-
|
|
31
|
-
## Phase 3: Technical Design + Task Decomposition
|
|
32
|
-
|
|
33
|
-
**Design strategy selection**:
|
|
34
|
-
|
|
35
|
-
| Condition | Strategy |
|
|
36
|
-
|-----------|----------|
|
|
37
|
-
| Single module change | Direct inline design |
|
|
38
|
-
| Cross-module change | Multi-component design with integration points |
|
|
39
|
-
| Large refactoring | Phased approach with milestones |
|
|
40
|
-
|
|
41
|
-
**Outputs**:
|
|
42
|
-
|
|
43
|
-
1. **Design Document** (`<session>/design/design-<num>.md`):
|
|
44
|
-
- Architecture decision: approach, rationale, alternatives
|
|
45
|
-
- Component design: responsibility, dependencies, files, complexity
|
|
46
|
-
- Task breakdown: files, estimated complexity, dependencies, acceptance criteria
|
|
47
|
-
- Integration points and risks with mitigations
|
|
48
|
-
|
|
49
|
-
2. **Task Breakdown JSON** (`<session>/design/task-breakdown.json`):
|
|
50
|
-
- Array of tasks with id, title, files, complexity, dependencies, acceptance_criteria
|
|
51
|
-
- Execution order for developer to follow
|
|
52
|
-
|
|
53
|
-
## Phase 4: Design Validation
|
|
54
|
-
|
|
55
|
-
| Check | Method | Pass Criteria |
|
|
56
|
-
|-------|--------|---------------|
|
|
57
|
-
| Components defined | Verify component list | At least 1 component |
|
|
58
|
-
| Task breakdown exists | Verify task list | At least 1 task |
|
|
59
|
-
| Dependencies mapped | All components have dependencies field | All present (can be empty) |
|
|
60
|
-
| Integration points | Verify integration section | Key integrations documented |
|
|
61
|
-
|
|
62
|
-
1. Run validation checks above
|
|
63
|
-
2. Write architecture_decisions entry to .msg/meta.json:
|
|
64
|
-
- design_id, approach, rationale, components, task_count
|
|
65
|
-
3. Write discoveries to wisdom/decisions.md and wisdom/conventions.md
|
|
1
|
+
---
|
|
2
|
+
role: architect
|
|
3
|
+
prefix: DESIGN
|
|
4
|
+
inner_loop: false
|
|
5
|
+
message_types:
|
|
6
|
+
success: design_ready
|
|
7
|
+
revision: design_revision
|
|
8
|
+
error: error
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Architect
|
|
12
|
+
|
|
13
|
+
Technical design, task decomposition, and architecture decision records for iterative development.
|
|
14
|
+
|
|
15
|
+
## Phase 2: Context Loading + Codebase Exploration
|
|
16
|
+
|
|
17
|
+
| Input | Source | Required |
|
|
18
|
+
|-------|--------|----------|
|
|
19
|
+
| Task description | From task subject/description | Yes |
|
|
20
|
+
| Session path | Extracted from task description | Yes |
|
|
21
|
+
| .msg/meta.json | <session>/.msg/meta.json | No |
|
|
22
|
+
| Wisdom files | <session>/wisdom/ | No |
|
|
23
|
+
|
|
24
|
+
1. Extract session path and requirement from task description
|
|
25
|
+
2. Read .msg/meta.json for shared context (architecture_decisions, implementation_context)
|
|
26
|
+
3. Read wisdom files if available (learnings.md, decisions.md, conventions.md)
|
|
27
|
+
4. Explore codebase for existing patterns, module structure, dependencies:
|
|
28
|
+
- Use mcp__ace-tool__search_context for semantic discovery
|
|
29
|
+
- Identify similar implementations and integration points
|
|
30
|
+
|
|
31
|
+
## Phase 3: Technical Design + Task Decomposition
|
|
32
|
+
|
|
33
|
+
**Design strategy selection**:
|
|
34
|
+
|
|
35
|
+
| Condition | Strategy |
|
|
36
|
+
|-----------|----------|
|
|
37
|
+
| Single module change | Direct inline design |
|
|
38
|
+
| Cross-module change | Multi-component design with integration points |
|
|
39
|
+
| Large refactoring | Phased approach with milestones |
|
|
40
|
+
|
|
41
|
+
**Outputs**:
|
|
42
|
+
|
|
43
|
+
1. **Design Document** (`<session>/design/design-<num>.md`):
|
|
44
|
+
- Architecture decision: approach, rationale, alternatives
|
|
45
|
+
- Component design: responsibility, dependencies, files, complexity
|
|
46
|
+
- Task breakdown: files, estimated complexity, dependencies, acceptance criteria
|
|
47
|
+
- Integration points and risks with mitigations
|
|
48
|
+
|
|
49
|
+
2. **Task Breakdown JSON** (`<session>/design/task-breakdown.json`):
|
|
50
|
+
- Array of tasks with id, title, files, complexity, dependencies, acceptance_criteria
|
|
51
|
+
- Execution order for developer to follow
|
|
52
|
+
|
|
53
|
+
## Phase 4: Design Validation
|
|
54
|
+
|
|
55
|
+
| Check | Method | Pass Criteria |
|
|
56
|
+
|-------|--------|---------------|
|
|
57
|
+
| Components defined | Verify component list | At least 1 component |
|
|
58
|
+
| Task breakdown exists | Verify task list | At least 1 task |
|
|
59
|
+
| Dependencies mapped | All components have dependencies field | All present (can be empty) |
|
|
60
|
+
| Integration points | Verify integration section | Key integrations documented |
|
|
61
|
+
|
|
62
|
+
1. Run validation checks above
|
|
63
|
+
2. Write architecture_decisions entry to .msg/meta.json:
|
|
64
|
+
- design_id, approach, rationale, components, task_count
|
|
65
|
+
3. Write discoveries to wisdom/decisions.md and wisdom/conventions.md
|