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,112 +1,112 @@
|
|
|
1
|
-
---
|
|
2
|
-
role: planner
|
|
3
|
-
prefix: PLAN
|
|
4
|
-
inner_loop: true
|
|
5
|
-
message_types:
|
|
6
|
-
success: issue_ready
|
|
7
|
-
error: error
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
# Planner
|
|
11
|
-
|
|
12
|
-
Requirement decomposition -> issue creation -> solution design -> EXEC-* task creation. Processes issues one at a time, creating executor tasks as solutions are completed.
|
|
13
|
-
|
|
14
|
-
## Phase 2: Context Loading
|
|
15
|
-
|
|
16
|
-
| Input | Source | Required |
|
|
17
|
-
|-------|--------|----------|
|
|
18
|
-
| Input type + raw input | Task description | Yes |
|
|
19
|
-
| Session folder | Task description `Session:` field | Yes |
|
|
20
|
-
| Execution method | Task description `Execution method:` field | Yes |
|
|
21
|
-
| Wisdom | `<session>/wisdom/` | No |
|
|
22
|
-
|
|
23
|
-
1. Extract session path, input type, raw input, execution method from task description
|
|
24
|
-
2. Load wisdom files if available
|
|
25
|
-
3. Parse input to determine issue list:
|
|
26
|
-
|
|
27
|
-
| Detection | Condition | Action |
|
|
28
|
-
|-----------|-----------|--------|
|
|
29
|
-
| Issue IDs | `ISS-\d{8}-\d{6}` pattern | Use directly |
|
|
30
|
-
| `--text '...'` | Flag in input | Create issue(s) via `ccw issue create` |
|
|
31
|
-
| `--plan <path>` | Flag in input | Read file, parse phases, batch create issues |
|
|
32
|
-
|
|
33
|
-
## Phase 3: Issue Processing Loop
|
|
34
|
-
|
|
35
|
-
For each issue, execute in sequence:
|
|
36
|
-
|
|
37
|
-
### 3a. Generate Solution
|
|
38
|
-
|
|
39
|
-
Use CLI tool for issue planning:
|
|
40
|
-
|
|
41
|
-
```bash
|
|
42
|
-
ccw cli -p "PURPOSE: Generate implementation solution for issue <issueId>; success = actionable task breakdown with file paths
|
|
43
|
-
TASK: * Load issue details * Analyze requirements * Design solution approach * Break down into implementation tasks * Identify files to modify/create
|
|
44
|
-
MODE: analysis
|
|
45
|
-
CONTEXT: @**/* | Memory: Session context from <session>/wisdom/
|
|
46
|
-
EXPECTED: JSON solution with: title, description, tasks array (each with description, files_touched), estimated_complexity
|
|
47
|
-
CONSTRAINTS: Follow project patterns | Reference existing implementations
|
|
48
|
-
" --tool gemini --mode analysis --rule planning-breakdown-task-steps
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
Parse CLI output to extract solution JSON. If CLI fails, fallback to `ccw issue solution <issueId> --json`.
|
|
52
|
-
|
|
53
|
-
### 3b. Write Solution Artifact
|
|
54
|
-
|
|
55
|
-
Write solution JSON to: `<session>/artifacts/solutions/<issueId>.json`
|
|
56
|
-
|
|
57
|
-
```json
|
|
58
|
-
{
|
|
59
|
-
"session_id": "<session-id>",
|
|
60
|
-
"issue_id": "<issueId>",
|
|
61
|
-
"solution": "<solution-from-agent>",
|
|
62
|
-
"planned_at": "<ISO timestamp>"
|
|
63
|
-
}
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
### 3c. Check Conflicts
|
|
67
|
-
|
|
68
|
-
Extract `files_touched` from solution. Compare against prior solutions in session.
|
|
69
|
-
Overlapping files -> log warning to `wisdom/issues.md`, continue.
|
|
70
|
-
|
|
71
|
-
### 3d. Create EXEC-* Task
|
|
72
|
-
|
|
73
|
-
Add new task entry to tasks.json:
|
|
74
|
-
|
|
75
|
-
```json
|
|
76
|
-
{
|
|
77
|
-
"id": "EXEC-00N",
|
|
78
|
-
"title": "EXEC-00N: Implement <issue-title>",
|
|
79
|
-
"description": "Implement solution for issue <issueId>.\n\nIssue ID: <issueId>\nSolution file: <session>/artifacts/solutions/<issueId>.json\nSession: <session>\nExecution method: <method>\n\nInnerLoop: true",
|
|
80
|
-
"status": "pending",
|
|
81
|
-
"role": "executor",
|
|
82
|
-
"prefix": "EXEC",
|
|
83
|
-
"deps": [],
|
|
84
|
-
"findings": "",
|
|
85
|
-
"error": ""
|
|
86
|
-
}
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
### 3e. Signal issue_ready
|
|
90
|
-
|
|
91
|
-
Write result via team_msg:
|
|
92
|
-
- type: `issue_ready`
|
|
93
|
-
|
|
94
|
-
### 3f. Continue Loop
|
|
95
|
-
|
|
96
|
-
Process next issue. Do NOT wait for executor.
|
|
97
|
-
|
|
98
|
-
## Phase 4: Completion Signal
|
|
99
|
-
|
|
100
|
-
After all issues processed:
|
|
101
|
-
1. Send `all_planned` message via team_msg
|
|
102
|
-
2. Summary: total issues planned, EXEC-* tasks created
|
|
103
|
-
|
|
104
|
-
## Boundaries
|
|
105
|
-
|
|
106
|
-
| Allowed | Prohibited |
|
|
107
|
-
|---------|-----------|
|
|
108
|
-
| Parse input, create issues | Write/modify business code |
|
|
109
|
-
| Generate solutions (CLI) | Run tests |
|
|
110
|
-
| Write solution artifacts | git commit |
|
|
111
|
-
| Create EXEC-* tasks in tasks.json | Call code-developer |
|
|
112
|
-
| Conflict checking | Direct user interaction |
|
|
1
|
+
---
|
|
2
|
+
role: planner
|
|
3
|
+
prefix: PLAN
|
|
4
|
+
inner_loop: true
|
|
5
|
+
message_types:
|
|
6
|
+
success: issue_ready
|
|
7
|
+
error: error
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Planner
|
|
11
|
+
|
|
12
|
+
Requirement decomposition -> issue creation -> solution design -> EXEC-* task creation. Processes issues one at a time, creating executor tasks as solutions are completed.
|
|
13
|
+
|
|
14
|
+
## Phase 2: Context Loading
|
|
15
|
+
|
|
16
|
+
| Input | Source | Required |
|
|
17
|
+
|-------|--------|----------|
|
|
18
|
+
| Input type + raw input | Task description | Yes |
|
|
19
|
+
| Session folder | Task description `Session:` field | Yes |
|
|
20
|
+
| Execution method | Task description `Execution method:` field | Yes |
|
|
21
|
+
| Wisdom | `<session>/wisdom/` | No |
|
|
22
|
+
|
|
23
|
+
1. Extract session path, input type, raw input, execution method from task description
|
|
24
|
+
2. Load wisdom files if available
|
|
25
|
+
3. Parse input to determine issue list:
|
|
26
|
+
|
|
27
|
+
| Detection | Condition | Action |
|
|
28
|
+
|-----------|-----------|--------|
|
|
29
|
+
| Issue IDs | `ISS-\d{8}-\d{6}` pattern | Use directly |
|
|
30
|
+
| `--text '...'` | Flag in input | Create issue(s) via `ccw issue create` |
|
|
31
|
+
| `--plan <path>` | Flag in input | Read file, parse phases, batch create issues |
|
|
32
|
+
|
|
33
|
+
## Phase 3: Issue Processing Loop
|
|
34
|
+
|
|
35
|
+
For each issue, execute in sequence:
|
|
36
|
+
|
|
37
|
+
### 3a. Generate Solution
|
|
38
|
+
|
|
39
|
+
Use CLI tool for issue planning:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
ccw cli -p "PURPOSE: Generate implementation solution for issue <issueId>; success = actionable task breakdown with file paths
|
|
43
|
+
TASK: * Load issue details * Analyze requirements * Design solution approach * Break down into implementation tasks * Identify files to modify/create
|
|
44
|
+
MODE: analysis
|
|
45
|
+
CONTEXT: @**/* | Memory: Session context from <session>/wisdom/
|
|
46
|
+
EXPECTED: JSON solution with: title, description, tasks array (each with description, files_touched), estimated_complexity
|
|
47
|
+
CONSTRAINTS: Follow project patterns | Reference existing implementations
|
|
48
|
+
" --tool gemini --mode analysis --rule planning-breakdown-task-steps
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Parse CLI output to extract solution JSON. If CLI fails, fallback to `ccw issue solution <issueId> --json`.
|
|
52
|
+
|
|
53
|
+
### 3b. Write Solution Artifact
|
|
54
|
+
|
|
55
|
+
Write solution JSON to: `<session>/artifacts/solutions/<issueId>.json`
|
|
56
|
+
|
|
57
|
+
```json
|
|
58
|
+
{
|
|
59
|
+
"session_id": "<session-id>",
|
|
60
|
+
"issue_id": "<issueId>",
|
|
61
|
+
"solution": "<solution-from-agent>",
|
|
62
|
+
"planned_at": "<ISO timestamp>"
|
|
63
|
+
}
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### 3c. Check Conflicts
|
|
67
|
+
|
|
68
|
+
Extract `files_touched` from solution. Compare against prior solutions in session.
|
|
69
|
+
Overlapping files -> log warning to `wisdom/issues.md`, continue.
|
|
70
|
+
|
|
71
|
+
### 3d. Create EXEC-* Task
|
|
72
|
+
|
|
73
|
+
Add new task entry to tasks.json:
|
|
74
|
+
|
|
75
|
+
```json
|
|
76
|
+
{
|
|
77
|
+
"id": "EXEC-00N",
|
|
78
|
+
"title": "EXEC-00N: Implement <issue-title>",
|
|
79
|
+
"description": "Implement solution for issue <issueId>.\n\nIssue ID: <issueId>\nSolution file: <session>/artifacts/solutions/<issueId>.json\nSession: <session>\nExecution method: <method>\n\nInnerLoop: true",
|
|
80
|
+
"status": "pending",
|
|
81
|
+
"role": "executor",
|
|
82
|
+
"prefix": "EXEC",
|
|
83
|
+
"deps": [],
|
|
84
|
+
"findings": "",
|
|
85
|
+
"error": ""
|
|
86
|
+
}
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### 3e. Signal issue_ready
|
|
90
|
+
|
|
91
|
+
Write result via team_msg:
|
|
92
|
+
- type: `issue_ready`
|
|
93
|
+
|
|
94
|
+
### 3f. Continue Loop
|
|
95
|
+
|
|
96
|
+
Process next issue. Do NOT wait for executor.
|
|
97
|
+
|
|
98
|
+
## Phase 4: Completion Signal
|
|
99
|
+
|
|
100
|
+
After all issues processed:
|
|
101
|
+
1. Send `all_planned` message via team_msg
|
|
102
|
+
2. Summary: total issues planned, EXEC-* tasks created
|
|
103
|
+
|
|
104
|
+
## Boundaries
|
|
105
|
+
|
|
106
|
+
| Allowed | Prohibited |
|
|
107
|
+
|---------|-----------|
|
|
108
|
+
| Parse input, create issues | Write/modify business code |
|
|
109
|
+
| Generate solutions (CLI) | Run tests |
|
|
110
|
+
| Write solution artifacts | git commit |
|
|
111
|
+
| Create EXEC-* tasks in tasks.json | Call code-developer |
|
|
112
|
+
| Conflict checking | Direct user interaction |
|
|
@@ -1,93 +1,93 @@
|
|
|
1
|
-
# PlanEx Pipeline Definitions
|
|
2
|
-
|
|
3
|
-
## Pipeline Diagram
|
|
4
|
-
|
|
5
|
-
Issue-based beat pipeline — planner creates EXEC-* tasks at runtime as solutions are completed.
|
|
6
|
-
|
|
7
|
-
```
|
|
8
|
-
PLAN-001 ──> [planner] issue-1 solution -> EXEC-001
|
|
9
|
-
issue-2 solution -> EXEC-002
|
|
10
|
-
...
|
|
11
|
-
issue-N solution -> EXEC-00N
|
|
12
|
-
all_planned signal
|
|
13
|
-
|
|
14
|
-
EXEC-001 ──> [executor] implement issue-1
|
|
15
|
-
EXEC-002 ──> [executor] implement issue-2
|
|
16
|
-
...
|
|
17
|
-
EXEC-00N ──> [executor] implement issue-N
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
## Beat Cycle
|
|
21
|
-
|
|
22
|
-
Event-driven Spawn-and-Stop. Each beat = coordinator wake -> process callback -> spawn next -> STOP.
|
|
23
|
-
|
|
24
|
-
```
|
|
25
|
-
Event Coordinator Workers
|
|
26
|
-
----------------------------------------------------------------------
|
|
27
|
-
User invokes -------> Phase 1-3:
|
|
28
|
-
Parse input
|
|
29
|
-
Init session folder + tasks.json
|
|
30
|
-
Create PLAN-001
|
|
31
|
-
Phase 4:
|
|
32
|
-
spawn planner ---------> [planner] Phase 1-5
|
|
33
|
-
STOP (idle) |
|
|
34
|
-
|
|
|
35
|
-
callback <-- planner issue_ready -(per issue)-----------+
|
|
36
|
-
handleCallback:
|
|
37
|
-
detect new EXEC-* tasks
|
|
38
|
-
spawn executor ---------------------> [executor] Phase 1-5
|
|
39
|
-
STOP (idle) |
|
|
40
|
-
|
|
|
41
|
-
callback <-- executor impl_complete ---------------------+
|
|
42
|
-
handleCallback:
|
|
43
|
-
mark issue done
|
|
44
|
-
check next ready EXEC-*
|
|
45
|
-
spawn next executor / STOP
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
## Task Metadata Registry
|
|
49
|
-
|
|
50
|
-
| Task ID | Role | Dependencies | Description |
|
|
51
|
-
|---------|------|-------------|-------------|
|
|
52
|
-
| PLAN-001 | planner | (none) | Requirement decomposition: parse input, create issues, generate solutions, create EXEC-* tasks |
|
|
53
|
-
| EXEC-001 | executor | PLAN-001 (created at runtime by planner) | Implement solution for issue #1 |
|
|
54
|
-
| EXEC-002 | executor | PLAN-001 (created at runtime by planner) | Implement solution for issue #2 |
|
|
55
|
-
| EXEC-00N | executor | PLAN-001 (created at runtime by planner) | Implement solution for issue #N |
|
|
56
|
-
|
|
57
|
-
> EXEC-* tasks are created by planner at runtime (per-issue beat), not predefined in the task chain.
|
|
58
|
-
|
|
59
|
-
## Execution Method Selection
|
|
60
|
-
|
|
61
|
-
| Condition | Execution Method |
|
|
62
|
-
|-----------|-----------------|
|
|
63
|
-
| `--exec=codex` specified | codex |
|
|
64
|
-
| `--exec=gemini` specified | gemini |
|
|
65
|
-
| `-y` or `--yes` flag present | Auto (default gemini) |
|
|
66
|
-
| No flags (interactive) | request_user_input -> user choice |
|
|
67
|
-
| Auto + task_count <= 3 | gemini |
|
|
68
|
-
| Auto + task_count > 3 | codex |
|
|
69
|
-
|
|
70
|
-
## Input Type Detection
|
|
71
|
-
|
|
72
|
-
| Input Pattern | Type | Action |
|
|
73
|
-
|--------------|------|--------|
|
|
74
|
-
| `ISS-\d{8}-\d{6}` pattern | Issue IDs | Use directly |
|
|
75
|
-
| `--text '...'` flag | Text requirement | Create issues via `ccw issue create` |
|
|
76
|
-
| `--plan <path>` flag | Plan file | Read file, parse phases, batch create issues |
|
|
77
|
-
|
|
78
|
-
## Checkpoints
|
|
79
|
-
|
|
80
|
-
| Trigger | Condition | Action |
|
|
81
|
-
|---------|-----------|--------|
|
|
82
|
-
| Planner complete | all_planned signal received | Wait for remaining EXEC-* executors to finish |
|
|
83
|
-
| Pipeline stall | No ready tasks + no running tasks + has pending | Coordinator checks blockedBy chains, escalates to user |
|
|
84
|
-
| Executor blocked | blocked > 2 tasks | Coordinator escalates to user |
|
|
85
|
-
|
|
86
|
-
## Scope Assessment
|
|
87
|
-
|
|
88
|
-
| Factor | Complexity |
|
|
89
|
-
|--------|------------|
|
|
90
|
-
| Issue count 1-3 | Low |
|
|
91
|
-
| Issue count 4-10 | Medium |
|
|
92
|
-
| Issue count > 10 | High |
|
|
93
|
-
| Cross-cutting concern | +1 level |
|
|
1
|
+
# PlanEx Pipeline Definitions
|
|
2
|
+
|
|
3
|
+
## Pipeline Diagram
|
|
4
|
+
|
|
5
|
+
Issue-based beat pipeline — planner creates EXEC-* tasks at runtime as solutions are completed.
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
PLAN-001 ──> [planner] issue-1 solution -> EXEC-001
|
|
9
|
+
issue-2 solution -> EXEC-002
|
|
10
|
+
...
|
|
11
|
+
issue-N solution -> EXEC-00N
|
|
12
|
+
all_planned signal
|
|
13
|
+
|
|
14
|
+
EXEC-001 ──> [executor] implement issue-1
|
|
15
|
+
EXEC-002 ──> [executor] implement issue-2
|
|
16
|
+
...
|
|
17
|
+
EXEC-00N ──> [executor] implement issue-N
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Beat Cycle
|
|
21
|
+
|
|
22
|
+
Event-driven Spawn-and-Stop. Each beat = coordinator wake -> process callback -> spawn next -> STOP.
|
|
23
|
+
|
|
24
|
+
```
|
|
25
|
+
Event Coordinator Workers
|
|
26
|
+
----------------------------------------------------------------------
|
|
27
|
+
User invokes -------> Phase 1-3:
|
|
28
|
+
Parse input
|
|
29
|
+
Init session folder + tasks.json
|
|
30
|
+
Create PLAN-001
|
|
31
|
+
Phase 4:
|
|
32
|
+
spawn planner ---------> [planner] Phase 1-5
|
|
33
|
+
STOP (idle) |
|
|
34
|
+
|
|
|
35
|
+
callback <-- planner issue_ready -(per issue)-----------+
|
|
36
|
+
handleCallback:
|
|
37
|
+
detect new EXEC-* tasks
|
|
38
|
+
spawn executor ---------------------> [executor] Phase 1-5
|
|
39
|
+
STOP (idle) |
|
|
40
|
+
|
|
|
41
|
+
callback <-- executor impl_complete ---------------------+
|
|
42
|
+
handleCallback:
|
|
43
|
+
mark issue done
|
|
44
|
+
check next ready EXEC-*
|
|
45
|
+
spawn next executor / STOP
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Task Metadata Registry
|
|
49
|
+
|
|
50
|
+
| Task ID | Role | Dependencies | Description |
|
|
51
|
+
|---------|------|-------------|-------------|
|
|
52
|
+
| PLAN-001 | planner | (none) | Requirement decomposition: parse input, create issues, generate solutions, create EXEC-* tasks |
|
|
53
|
+
| EXEC-001 | executor | PLAN-001 (created at runtime by planner) | Implement solution for issue #1 |
|
|
54
|
+
| EXEC-002 | executor | PLAN-001 (created at runtime by planner) | Implement solution for issue #2 |
|
|
55
|
+
| EXEC-00N | executor | PLAN-001 (created at runtime by planner) | Implement solution for issue #N |
|
|
56
|
+
|
|
57
|
+
> EXEC-* tasks are created by planner at runtime (per-issue beat), not predefined in the task chain.
|
|
58
|
+
|
|
59
|
+
## Execution Method Selection
|
|
60
|
+
|
|
61
|
+
| Condition | Execution Method |
|
|
62
|
+
|-----------|-----------------|
|
|
63
|
+
| `--exec=codex` specified | codex |
|
|
64
|
+
| `--exec=gemini` specified | gemini |
|
|
65
|
+
| `-y` or `--yes` flag present | Auto (default gemini) |
|
|
66
|
+
| No flags (interactive) | request_user_input -> user choice |
|
|
67
|
+
| Auto + task_count <= 3 | gemini |
|
|
68
|
+
| Auto + task_count > 3 | codex |
|
|
69
|
+
|
|
70
|
+
## Input Type Detection
|
|
71
|
+
|
|
72
|
+
| Input Pattern | Type | Action |
|
|
73
|
+
|--------------|------|--------|
|
|
74
|
+
| `ISS-\d{8}-\d{6}` pattern | Issue IDs | Use directly |
|
|
75
|
+
| `--text '...'` flag | Text requirement | Create issues via `ccw issue create` |
|
|
76
|
+
| `--plan <path>` flag | Plan file | Read file, parse phases, batch create issues |
|
|
77
|
+
|
|
78
|
+
## Checkpoints
|
|
79
|
+
|
|
80
|
+
| Trigger | Condition | Action |
|
|
81
|
+
|---------|-----------|--------|
|
|
82
|
+
| Planner complete | all_planned signal received | Wait for remaining EXEC-* executors to finish |
|
|
83
|
+
| Pipeline stall | No ready tasks + no running tasks + has pending | Coordinator checks blockedBy chains, escalates to user |
|
|
84
|
+
| Executor blocked | blocked > 2 tasks | Coordinator escalates to user |
|
|
85
|
+
|
|
86
|
+
## Scope Assessment
|
|
87
|
+
|
|
88
|
+
| Factor | Complexity |
|
|
89
|
+
|--------|------------|
|
|
90
|
+
| Issue count 1-3 | Low |
|
|
91
|
+
| Issue count 4-10 | Medium |
|
|
92
|
+
| Issue count > 10 | High |
|
|
93
|
+
| Cross-cutting concern | +1 level |
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: team-quality-assurance
|
|
3
3
|
description: Unified team skill for quality assurance. Full closed-loop QA combining issue discovery and software testing. Triggers on "team quality-assurance", "team qa".
|
|
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 Quality Assurance
|
|
@@ -55,7 +55,8 @@ Before calling ANY tool, apply this check:
|
|
|
55
55
|
|
|
56
56
|
| Tool Call | Verdict | Reason |
|
|
57
57
|
|-----------|---------|--------|
|
|
58
|
-
| `spawn_agent`, `wait_agent`, `close_agent`, `
|
|
58
|
+
| `spawn_agent`, `wait_agent`, `close_agent`, `send_message`, `assign_task` | ALLOWED | Orchestration |
|
|
59
|
+
| `list_agents` | ALLOWED | Agent health check |
|
|
59
60
|
| `request_user_input` | ALLOWED | User interaction |
|
|
60
61
|
| `mcp__ccw-tools__team_msg` | ALLOWED | Message bus |
|
|
61
62
|
| `Read/Write` on `.workflow/.team/` files | ALLOWED | Session state |
|
|
@@ -86,6 +87,8 @@ Coordinator spawns workers using this template:
|
|
|
86
87
|
```
|
|
87
88
|
spawn_agent({
|
|
88
89
|
agent_type: "team_worker",
|
|
90
|
+
task_name: "<task-id>",
|
|
91
|
+
fork_context: false,
|
|
89
92
|
items: [
|
|
90
93
|
{ type: "text", text: `## Role Assignment
|
|
91
94
|
role: <role>
|
|
@@ -109,7 +112,30 @@ pipeline_phase: <pipeline-phase>` },
|
|
|
109
112
|
})
|
|
110
113
|
```
|
|
111
114
|
|
|
112
|
-
After spawning, use `wait_agent({
|
|
115
|
+
After spawning, use `wait_agent({ targets: [...], timeout_ms: 900000 })` to collect results, then `close_agent({ target })` each worker.
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
### Model Selection Guide
|
|
119
|
+
|
|
120
|
+
| Role | model | reasoning_effort | Rationale |
|
|
121
|
+
|------|-------|-------------------|-----------|
|
|
122
|
+
| Scout (SCOUT-*) | (default) | medium | Issue discovery scanning, less reasoning needed |
|
|
123
|
+
| Strategist (QASTRAT-*) | (default) | high | Test strategy design requires deep analysis |
|
|
124
|
+
| Generator (QAGEN-*) | (default) | high | Test code generation needs precision |
|
|
125
|
+
| Executor (QARUN-*) | (default) | medium | Running tests and collecting results |
|
|
126
|
+
| Analyst (QAANA-*) | (default) | high | Quality analysis and coverage assessment |
|
|
127
|
+
|
|
128
|
+
Override model/reasoning_effort in spawn_agent when cost optimization is needed:
|
|
129
|
+
```
|
|
130
|
+
spawn_agent({
|
|
131
|
+
agent_type: "team_worker",
|
|
132
|
+
task_name: "<task-id>",
|
|
133
|
+
fork_context: false,
|
|
134
|
+
model: "<model-override>",
|
|
135
|
+
reasoning_effort: "<effort-level>",
|
|
136
|
+
items: [...]
|
|
137
|
+
})
|
|
138
|
+
```
|
|
113
139
|
|
|
114
140
|
## User Commands
|
|
115
141
|
|
|
@@ -121,6 +147,37 @@ After spawning, use `wait_agent({ ids: [...], timeout_ms: 900000 })` to collect
|
|
|
121
147
|
| `--mode=testing` | Force testing mode |
|
|
122
148
|
| `--mode=full` | Force full QA mode |
|
|
123
149
|
|
|
150
|
+
## v4 Agent Coordination
|
|
151
|
+
|
|
152
|
+
### Message Semantics
|
|
153
|
+
|
|
154
|
+
| Intent | API | Example |
|
|
155
|
+
|--------|-----|---------|
|
|
156
|
+
| Send scout findings to running strategist | `send_message` | Queue issue scan results to QASTRAT-* |
|
|
157
|
+
| Not used in this skill | `assign_task` | No resident agents -- all workers are one-shot |
|
|
158
|
+
| Check running agents | `list_agents` | Verify agent health during resume |
|
|
159
|
+
|
|
160
|
+
### Pipeline Pattern
|
|
161
|
+
|
|
162
|
+
Sequential pipeline with GC loops: scout -> strategist -> generator -> executor -> analyst. The executor/generator may loop via GC fix tasks when coverage is below target (max 3 rounds).
|
|
163
|
+
|
|
164
|
+
### Agent Health Check
|
|
165
|
+
|
|
166
|
+
Use `list_agents({})` in handleResume and handleComplete:
|
|
167
|
+
|
|
168
|
+
```
|
|
169
|
+
// Reconcile session state with actual running agents
|
|
170
|
+
const running = list_agents({})
|
|
171
|
+
// Compare with tasks.json active_agents
|
|
172
|
+
// Reset orphaned tasks (in_progress but agent gone) to pending
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
### Named Agent Targeting
|
|
176
|
+
|
|
177
|
+
Workers are spawned with `task_name: "<task-id>"` enabling direct addressing:
|
|
178
|
+
- `send_message({ target: "QASTRAT-001", items: [...] })` -- queue scout findings to running strategist
|
|
179
|
+
- `close_agent({ target: "SCOUT-001" })` -- cleanup by name after completion
|
|
180
|
+
|
|
124
181
|
## Completion Action
|
|
125
182
|
|
|
126
183
|
When pipeline completes, coordinator presents:
|
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
---
|
|
2
|
-
role: analyst
|
|
3
|
-
prefix: QAANA
|
|
4
|
-
inner_loop: false
|
|
5
|
-
message_types:
|
|
6
|
-
success: analysis_ready
|
|
7
|
-
report: quality_report
|
|
8
|
-
error: error
|
|
9
|
-
---
|
|
10
|
-
|
|
11
|
-
# Quality Analyst
|
|
12
|
-
|
|
13
|
-
Analyze defect patterns, coverage gaps, test effectiveness, and generate comprehensive quality reports. Maintain defect pattern database and provide quality scoring.
|
|
14
|
-
|
|
15
|
-
## Phase 2: Context Loading
|
|
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>/wisdom/.msg/meta.json | Yes |
|
|
22
|
-
| Discovered issues | meta.json -> discovered_issues | No |
|
|
23
|
-
| Test strategy | meta.json -> test_strategy | No |
|
|
24
|
-
| Generated tests | meta.json -> generated_tests | No |
|
|
25
|
-
| Execution results | meta.json -> execution_results | No |
|
|
26
|
-
| Historical patterns | meta.json -> defect_patterns | No |
|
|
27
|
-
|
|
28
|
-
1. Extract session path from task description
|
|
29
|
-
2. Read .msg/meta.json for all accumulated QA data
|
|
30
|
-
3. Read coverage data from `coverage/coverage-summary.json` if available
|
|
31
|
-
4. Read layer execution results from `<session>/results/run-*.json`
|
|
32
|
-
5. Select analysis mode:
|
|
33
|
-
|
|
34
|
-
| Data Points | Mode |
|
|
35
|
-
|-------------|------|
|
|
36
|
-
| <= 5 issues + results | Direct inline analysis |
|
|
37
|
-
| > 5 | CLI-assisted deep analysis via gemini |
|
|
38
|
-
|
|
39
|
-
## Phase 3: Multi-Dimensional Analysis
|
|
40
|
-
|
|
41
|
-
**Five analysis dimensions**:
|
|
42
|
-
|
|
43
|
-
1. **Defect Pattern Analysis**: Group issues by type/perspective, identify patterns with >= 2 occurrences, record type/count/files/description
|
|
44
|
-
2. **Coverage Gap Analysis**: Compare actual coverage vs layer targets, identify per-file gaps (< 50% coverage), severity: critical (< 20%) / high (< 50%)
|
|
45
|
-
3. **Test Effectiveness**: Per layer -- files generated, pass rate, iterations needed, coverage achieved. Effective = pass_rate >= 95% AND iterations <= 2
|
|
46
|
-
4. **Quality Trend**: Compare against coverage_history. Trend: improving (delta > 5%), declining (delta < -5%), stable
|
|
47
|
-
5. **Quality Score** (0-100 starting from 100):
|
|
48
|
-
|
|
49
|
-
| Factor | Impact |
|
|
50
|
-
|--------|--------|
|
|
51
|
-
| Security issues | -10 per issue |
|
|
52
|
-
| Bug issues | -5 per issue |
|
|
53
|
-
| Coverage gap | -0.5 per gap percentage |
|
|
54
|
-
| Test failures | -(100 - pass_rate) * 0.3 per layer |
|
|
55
|
-
| Effective test layers | +5 per layer |
|
|
56
|
-
| Improving trend | +3 |
|
|
57
|
-
|
|
58
|
-
For CLI-assisted mode:
|
|
59
|
-
```
|
|
60
|
-
PURPOSE: Deep quality analysis on QA results to identify defect patterns and improvement opportunities
|
|
61
|
-
TASK: Classify defects by root cause, identify high-density files, analyze coverage gaps vs risk, generate recommendations
|
|
62
|
-
MODE: analysis
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
## Phase 4: Report Generation & Output
|
|
66
|
-
|
|
67
|
-
1. Generate quality report markdown with: score, defect patterns, coverage analysis, test effectiveness, quality trend, recommendations
|
|
68
|
-
2. Write report to `<session>/analysis/quality-report.md`
|
|
69
|
-
3. Update `<session>/wisdom/.msg/meta.json`:
|
|
70
|
-
- `defect_patterns`: identified patterns array
|
|
71
|
-
- `quality_score`: calculated score
|
|
72
|
-
- `coverage_history`: append new data point (date, coverage, quality_score, issues)
|
|
73
|
-
|
|
74
|
-
**Score-based recommendations**:
|
|
75
|
-
|
|
76
|
-
| Score | Recommendation |
|
|
77
|
-
|-------|----------------|
|
|
78
|
-
| >= 80 | Quality is GOOD. Maintain current testing practices. |
|
|
79
|
-
| 60-79 | Quality needs IMPROVEMENT. Focus on coverage gaps and recurring patterns. |
|
|
80
|
-
| < 60 | Quality is CONCERNING. Recommend comprehensive review and testing effort. |
|
|
1
|
+
---
|
|
2
|
+
role: analyst
|
|
3
|
+
prefix: QAANA
|
|
4
|
+
inner_loop: false
|
|
5
|
+
message_types:
|
|
6
|
+
success: analysis_ready
|
|
7
|
+
report: quality_report
|
|
8
|
+
error: error
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Quality Analyst
|
|
12
|
+
|
|
13
|
+
Analyze defect patterns, coverage gaps, test effectiveness, and generate comprehensive quality reports. Maintain defect pattern database and provide quality scoring.
|
|
14
|
+
|
|
15
|
+
## Phase 2: Context Loading
|
|
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>/wisdom/.msg/meta.json | Yes |
|
|
22
|
+
| Discovered issues | meta.json -> discovered_issues | No |
|
|
23
|
+
| Test strategy | meta.json -> test_strategy | No |
|
|
24
|
+
| Generated tests | meta.json -> generated_tests | No |
|
|
25
|
+
| Execution results | meta.json -> execution_results | No |
|
|
26
|
+
| Historical patterns | meta.json -> defect_patterns | No |
|
|
27
|
+
|
|
28
|
+
1. Extract session path from task description
|
|
29
|
+
2. Read .msg/meta.json for all accumulated QA data
|
|
30
|
+
3. Read coverage data from `coverage/coverage-summary.json` if available
|
|
31
|
+
4. Read layer execution results from `<session>/results/run-*.json`
|
|
32
|
+
5. Select analysis mode:
|
|
33
|
+
|
|
34
|
+
| Data Points | Mode |
|
|
35
|
+
|-------------|------|
|
|
36
|
+
| <= 5 issues + results | Direct inline analysis |
|
|
37
|
+
| > 5 | CLI-assisted deep analysis via gemini |
|
|
38
|
+
|
|
39
|
+
## Phase 3: Multi-Dimensional Analysis
|
|
40
|
+
|
|
41
|
+
**Five analysis dimensions**:
|
|
42
|
+
|
|
43
|
+
1. **Defect Pattern Analysis**: Group issues by type/perspective, identify patterns with >= 2 occurrences, record type/count/files/description
|
|
44
|
+
2. **Coverage Gap Analysis**: Compare actual coverage vs layer targets, identify per-file gaps (< 50% coverage), severity: critical (< 20%) / high (< 50%)
|
|
45
|
+
3. **Test Effectiveness**: Per layer -- files generated, pass rate, iterations needed, coverage achieved. Effective = pass_rate >= 95% AND iterations <= 2
|
|
46
|
+
4. **Quality Trend**: Compare against coverage_history. Trend: improving (delta > 5%), declining (delta < -5%), stable
|
|
47
|
+
5. **Quality Score** (0-100 starting from 100):
|
|
48
|
+
|
|
49
|
+
| Factor | Impact |
|
|
50
|
+
|--------|--------|
|
|
51
|
+
| Security issues | -10 per issue |
|
|
52
|
+
| Bug issues | -5 per issue |
|
|
53
|
+
| Coverage gap | -0.5 per gap percentage |
|
|
54
|
+
| Test failures | -(100 - pass_rate) * 0.3 per layer |
|
|
55
|
+
| Effective test layers | +5 per layer |
|
|
56
|
+
| Improving trend | +3 |
|
|
57
|
+
|
|
58
|
+
For CLI-assisted mode:
|
|
59
|
+
```
|
|
60
|
+
PURPOSE: Deep quality analysis on QA results to identify defect patterns and improvement opportunities
|
|
61
|
+
TASK: Classify defects by root cause, identify high-density files, analyze coverage gaps vs risk, generate recommendations
|
|
62
|
+
MODE: analysis
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Phase 4: Report Generation & Output
|
|
66
|
+
|
|
67
|
+
1. Generate quality report markdown with: score, defect patterns, coverage analysis, test effectiveness, quality trend, recommendations
|
|
68
|
+
2. Write report to `<session>/analysis/quality-report.md`
|
|
69
|
+
3. Update `<session>/wisdom/.msg/meta.json`:
|
|
70
|
+
- `defect_patterns`: identified patterns array
|
|
71
|
+
- `quality_score`: calculated score
|
|
72
|
+
- `coverage_history`: append new data point (date, coverage, quality_score, issues)
|
|
73
|
+
|
|
74
|
+
**Score-based recommendations**:
|
|
75
|
+
|
|
76
|
+
| Score | Recommendation |
|
|
77
|
+
|-------|----------------|
|
|
78
|
+
| >= 80 | Quality is GOOD. Maintain current testing practices. |
|
|
79
|
+
| 60-79 | Quality needs IMPROVEMENT. Focus on coverage gaps and recurring patterns. |
|
|
80
|
+
| < 60 | Quality is CONCERNING. Recommend comprehensive review and testing effort. |
|