maestro-flow 0.4.5 → 0.4.7
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/maestro-collab/SKILL.md +218 -117
- package/.codex/skills/maestro-execute/SKILL.md +13 -11
- package/.codex/skills/maestro-milestone-audit/SKILL.md +12 -10
- package/.codex/skills/maestro-ralph/SKILL.md +16 -4
- package/.codex/skills/maestro-ui-codify/SKILL.md +18 -16
- package/.codex/skills/manage-codebase-rebuild/SKILL.md +20 -13
- package/.codex/skills/manage-issue-discover/SKILL.md +19 -17
- package/.codex/skills/quality-debug/SKILL.md +35 -31
- package/.codex/skills/quality-refactor/SKILL.md +20 -12
- package/.codex/skills/quality-review/SKILL.md +21 -17
- package/.codex/skills/team-coordinate/SKILL.md +462 -235
- package/.codex/skills/team-coordinate/specs/role-catalog.md +132 -0
- package/.codex/skills/team-lifecycle-v4/SKILL.md +445 -191
- package/.codex/skills/team-quality-assurance/SKILL.md +205 -161
- package/.codex/skills/team-review/SKILL.md +198 -159
- package/.codex/skills/team-tech-debt/SKILL.md +214 -144
- package/.codex/skills/team-testing/SKILL.md +210 -158
- package/package.json +1 -1
- package/.codex/skills/team-coordinate/roles/coordinator/commands/analyze-task.md +0 -247
- package/.codex/skills/team-coordinate/roles/coordinator/commands/dispatch.md +0 -126
- package/.codex/skills/team-coordinate/roles/coordinator/commands/monitor.md +0 -265
- package/.codex/skills/team-coordinate/roles/coordinator/role.md +0 -403
- package/.codex/skills/team-coordinate/specs/knowledge-transfer.md +0 -113
- package/.codex/skills/team-coordinate/specs/pipelines.md +0 -97
- package/.codex/skills/team-coordinate/specs/quality-gates.md +0 -112
- package/.codex/skills/team-coordinate/specs/role-spec-template.md +0 -192
- package/.codex/skills/team-executor/SKILL.md +0 -116
- package/.codex/skills/team-executor/roles/executor/commands/monitor.md +0 -213
- package/.codex/skills/team-executor/roles/executor/role.md +0 -173
- package/.codex/skills/team-executor/specs/session-schema.md +0 -230
- package/.codex/skills/team-lifecycle-v4/roles/coordinator/commands/analyze.md +0 -56
- package/.codex/skills/team-lifecycle-v4/roles/coordinator/commands/dispatch.md +0 -61
- package/.codex/skills/team-lifecycle-v4/roles/coordinator/commands/monitor.md +0 -113
- package/.codex/skills/team-lifecycle-v4/roles/coordinator/role.md +0 -189
- package/.codex/skills/team-lifecycle-v4/schemas/tasks-schema.md +0 -100
- package/.codex/skills/team-lifecycle-v4/specs/knowledge-transfer.md +0 -204
- package/.codex/skills/team-quality-assurance/roles/coordinator/commands/analyze.md +0 -72
- package/.codex/skills/team-quality-assurance/roles/coordinator/commands/dispatch.md +0 -108
- package/.codex/skills/team-quality-assurance/roles/coordinator/commands/monitor.md +0 -163
- package/.codex/skills/team-quality-assurance/roles/coordinator/role.md +0 -177
- package/.codex/skills/team-review/roles/coordinator/commands/analyze.md +0 -71
- package/.codex/skills/team-review/roles/coordinator/commands/dispatch.md +0 -90
- package/.codex/skills/team-review/roles/coordinator/commands/monitor.md +0 -135
- package/.codex/skills/team-review/roles/coordinator/role.md +0 -176
- package/.codex/skills/team-tech-debt/roles/coordinator/commands/analyze.md +0 -47
- package/.codex/skills/team-tech-debt/roles/coordinator/commands/dispatch.md +0 -163
- package/.codex/skills/team-tech-debt/roles/coordinator/commands/monitor.md +0 -133
- package/.codex/skills/team-tech-debt/roles/coordinator/role.md +0 -173
- package/.codex/skills/team-testing/roles/coordinator/commands/analyze.md +0 -70
- package/.codex/skills/team-testing/roles/coordinator/commands/dispatch.md +0 -106
- package/.codex/skills/team-testing/roles/coordinator/commands/monitor.md +0 -156
- package/.codex/skills/team-testing/roles/coordinator/role.md +0 -185
|
@@ -1,144 +1,214 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: team-tech-debt
|
|
3
|
-
description: Team tech debt identification and remediation
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
|
22
|
-
+--
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
$
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
| scanner | [roles/scanner/role.md](roles/scanner/role.md) | TDSCAN-* |
|
|
44
|
-
| assessor | [roles/assessor/role.md](roles/assessor/role.md) | TDEVAL-* |
|
|
45
|
-
| planner | [roles/planner/role.md](roles/planner/role.md) | TDPLAN-* |
|
|
46
|
-
| executor | [roles/executor/role.md](roles/executor/role.md) | TDFIX-* |
|
|
47
|
-
| validator | [roles/validator/role.md](roles/validator/role.md) | TDVAL-* |
|
|
48
|
-
|
|
49
|
-
**
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
|
64
|
-
|
|
65
|
-
| `
|
|
66
|
-
| `
|
|
67
|
-
| `
|
|
68
|
-
| `
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
|
111
|
-
|
|
112
|
-
|
|
|
113
|
-
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
**
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
1
|
+
---
|
|
2
|
+
name: team-tech-debt
|
|
3
|
+
description: Team tech debt identification and remediation
|
|
4
|
+
argument-hint: "[scope] [-y|--yes] [-c|--concurrency N] [--continue] [--mode scan|remediate|targeted]"
|
|
5
|
+
allowed-tools: spawn_agents_on_csv, Read, Write, Edit, Bash, Glob, Grep, request_user_input
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<purpose>
|
|
9
|
+
Wave-based tech debt pipeline via `spawn_agents_on_csv`. Scan → Assess → Plan → Fix → Validate with user-gated remediation plan and fix-verify GC loops.
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
+-------------------------------------------------------------------+
|
|
13
|
+
| TECH DEBT CSV WAVE WORKFLOW |
|
|
14
|
+
+-------------------------------------------------------------------+
|
|
15
|
+
| Phase 1: Mode Selection + CSV Generation |
|
|
16
|
+
| +-- Detect mode (scan/remediate/targeted) |
|
|
17
|
+
| +-- Build tasks.csv from pipeline definition |
|
|
18
|
+
| |
|
|
19
|
+
| Phase 2: Wave Execution Engine |
|
|
20
|
+
| +-- Sequential waves |
|
|
21
|
+
| +-- User approval after TDPLAN (plan gate) |
|
|
22
|
+
| +-- Fix-Verify GC loop (max 3 rounds on regression) |
|
|
23
|
+
| |
|
|
24
|
+
| Phase 3: Results Aggregation |
|
|
25
|
+
+-------------------------------------------------------------------+
|
|
26
|
+
```
|
|
27
|
+
</purpose>
|
|
28
|
+
|
|
29
|
+
<context>
|
|
30
|
+
```bash
|
|
31
|
+
$team-tech-debt "src/"
|
|
32
|
+
$team-tech-debt -y --mode remediate "src/auth"
|
|
33
|
+
$team-tech-debt --mode targeted "high-priority debt items"
|
|
34
|
+
$team-tech-debt --continue "20260518-td-auth"
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
**Flags**: `-y` (auto), `-c N` (concurrency, default 3), `--continue` (resume), `--mode scan|remediate|targeted`
|
|
38
|
+
|
|
39
|
+
### Role Registry (Fixed)
|
|
40
|
+
|
|
41
|
+
| Role | Path | Prefix |
|
|
42
|
+
|------|------|--------|
|
|
43
|
+
| scanner | [roles/scanner/role.md](roles/scanner/role.md) | TDSCAN-* |
|
|
44
|
+
| assessor | [roles/assessor/role.md](roles/assessor/role.md) | TDEVAL-* |
|
|
45
|
+
| planner | [roles/planner/role.md](roles/planner/role.md) | TDPLAN-* |
|
|
46
|
+
| executor | [roles/executor/role.md](roles/executor/role.md) | TDFIX-* |
|
|
47
|
+
| validator | [roles/validator/role.md](roles/validator/role.md) | TDVAL-* |
|
|
48
|
+
|
|
49
|
+
**Session**: `.workflow/.csv-wave/{YYYYMMDD}-td-{slug}/`
|
|
50
|
+
|
|
51
|
+
### Scan Dimensions
|
|
52
|
+
code, architecture, testing, dependency, documentation
|
|
53
|
+
</context>
|
|
54
|
+
|
|
55
|
+
<csv_schema>
|
|
56
|
+
|
|
57
|
+
### tasks.csv (Input columns)
|
|
58
|
+
|
|
59
|
+
```csv
|
|
60
|
+
id,title,description,role,scan_dimension,deps,context_from,wave
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
| Column | Description |
|
|
64
|
+
|--------|-------------|
|
|
65
|
+
| `id` | Task ID: `{PREFIX}-{NNN}` |
|
|
66
|
+
| `title` | Short task title |
|
|
67
|
+
| `description` | PURPOSE/TASK/EXPECTED/CONSTRAINTS |
|
|
68
|
+
| `role` | Fixed role name |
|
|
69
|
+
| `scan_dimension` | code/arch/testing/deps/docs or empty |
|
|
70
|
+
| `deps` | Semicolon-separated dependency IDs |
|
|
71
|
+
| `context_from` | Context source IDs |
|
|
72
|
+
| `wave` | Wave number |
|
|
73
|
+
|
|
74
|
+
**Output columns** (via `output_schema` only):
|
|
75
|
+
|
|
76
|
+
| Column | Description |
|
|
77
|
+
|--------|-------------|
|
|
78
|
+
| `result_status` | completed / failed / blocked |
|
|
79
|
+
| `findings` | Key findings (max 500 chars) |
|
|
80
|
+
| `files_modified` | Semicolon-separated paths |
|
|
81
|
+
| `debt_count` | Number of debt items found/fixed |
|
|
82
|
+
| `regression_detected` | true/false (for TDVAL tasks) |
|
|
83
|
+
| `error` | Error message |
|
|
84
|
+
|
|
85
|
+
**Column separation rule**: Input and Output MUST NOT share names.
|
|
86
|
+
|
|
87
|
+
### Pipeline Wave Assignments
|
|
88
|
+
|
|
89
|
+
#### scan (2 waves)
|
|
90
|
+
|
|
91
|
+
| Wave | Task | Role |
|
|
92
|
+
|------|------|------|
|
|
93
|
+
| 1 | TDSCAN-001 | scanner |
|
|
94
|
+
| 2 | TDEVAL-001 | assessor |
|
|
95
|
+
|
|
96
|
+
#### remediate (5+ waves, with plan gate + GC)
|
|
97
|
+
|
|
98
|
+
| Wave | Task | Role |
|
|
99
|
+
|------|------|------|
|
|
100
|
+
| 1 | TDSCAN-001 | scanner |
|
|
101
|
+
| 2 | TDEVAL-001 | assessor |
|
|
102
|
+
| 3 | TDPLAN-001 | planner |
|
|
103
|
+
| — | User plan approval gate | — |
|
|
104
|
+
| 4 | TDFIX-001 | executor |
|
|
105
|
+
| 5 | TDVAL-001 | validator |
|
|
106
|
+
| 5+ | GC: TDFIX+TDVAL if regression_detected (max 3) | executor, validator |
|
|
107
|
+
|
|
108
|
+
#### targeted (3+ waves, skip scan)
|
|
109
|
+
|
|
110
|
+
| Wave | Task | Role |
|
|
111
|
+
|------|------|------|
|
|
112
|
+
| 1 | TDPLAN-001 | planner |
|
|
113
|
+
| — | User plan approval gate | — |
|
|
114
|
+
| 2 | TDFIX-001 | executor |
|
|
115
|
+
| 3 | TDVAL-001 | validator |
|
|
116
|
+
| 3+ | GC if regression_detected (max 3) | executor, validator |
|
|
117
|
+
</csv_schema>
|
|
118
|
+
|
|
119
|
+
<invariants>
|
|
120
|
+
1. **Wave Order Sacred**
|
|
121
|
+
2. **CSV Source of Truth**
|
|
122
|
+
3. **Column Separation Rule**
|
|
123
|
+
4. **Plan Approval Gate**: User must approve remediation plan (skip if -y)
|
|
124
|
+
5. **Fix-Verify GC Max 3**: On regression detection
|
|
125
|
+
6. **Discovery Board Append-Only**
|
|
126
|
+
7. **Cleanup Temp Files**
|
|
127
|
+
8. **DO NOT STOP**: Continuous between gates
|
|
128
|
+
9. **Role Files Authoritative**
|
|
129
|
+
</invariants>
|
|
130
|
+
|
|
131
|
+
<state_machine>
|
|
132
|
+
|
|
133
|
+
<states>
|
|
134
|
+
S_PARSE — Parse arguments, detect mode
|
|
135
|
+
S_CSV_GEN — Generate tasks.csv
|
|
136
|
+
S_WAVE_{N} — Execute wave N
|
|
137
|
+
S_PLAN_GATE — User approval of remediation plan
|
|
138
|
+
S_GC_CHECK — Regression check after TDVAL
|
|
139
|
+
S_AGGREGATE — Generate report
|
|
140
|
+
</states>
|
|
141
|
+
|
|
142
|
+
<transitions>
|
|
143
|
+
S_PARSE → S_CSV_GEN
|
|
144
|
+
S_CSV_GEN → S_WAVE_1
|
|
145
|
+
S_WAVE_{N} → S_PLAN_GATE WHEN: TDPLAN wave complete, TDFIX pending
|
|
146
|
+
S_WAVE_{N} → S_GC_CHECK WHEN: TDVAL wave complete, regression_detected possible
|
|
147
|
+
S_WAVE_{N} → S_WAVE_{N+1} WHEN: more waves
|
|
148
|
+
S_WAVE_{N} → S_AGGREGATE WHEN: last wave
|
|
149
|
+
S_PLAN_GATE → S_WAVE_{N+1} WHEN: user approves
|
|
150
|
+
S_PLAN_GATE → S_WAVE_{N} WHEN: user requests revision (re-run TDPLAN with feedback)
|
|
151
|
+
S_PLAN_GATE → S_AGGREGATE WHEN: user aborts
|
|
152
|
+
S_GC_CHECK → S_AGGREGATE WHEN: no regression or gc_rounds >= 3
|
|
153
|
+
S_GC_CHECK → S_WAVE_{N+1} WHEN: regression, add TDFIX+TDVAL rows
|
|
154
|
+
</transitions>
|
|
155
|
+
|
|
156
|
+
<actions>
|
|
157
|
+
|
|
158
|
+
### Plan Gate
|
|
159
|
+
|
|
160
|
+
After TDPLAN wave:
|
|
161
|
+
1. Read planner's `findings` (remediation plan)
|
|
162
|
+
2. Display: debt items, priority, estimated effort
|
|
163
|
+
3. `request_user_input`: Approve / Revise / Abort
|
|
164
|
+
4. Approve → continue to TDFIX wave
|
|
165
|
+
5. Revise → re-run TDPLAN with feedback
|
|
166
|
+
6. Abort → aggregate with scan+assess results only
|
|
167
|
+
|
|
168
|
+
### Fix-Verify GC Loop
|
|
169
|
+
|
|
170
|
+
After TDVAL wave:
|
|
171
|
+
1. Read `regression_detected` from results
|
|
172
|
+
2. No regression → complete
|
|
173
|
+
3. Regression AND gc_rounds < 3 → add TDFIX+TDVAL rows, iterate
|
|
174
|
+
4. gc_rounds >= 3 → escalate to user
|
|
175
|
+
|
|
176
|
+
### Instruction Builder
|
|
177
|
+
|
|
178
|
+
```
|
|
179
|
+
You are a team-tech-debt agent.
|
|
180
|
+
Role: read 'role' column. Task: read 'description' column.
|
|
181
|
+
|
|
182
|
+
## Role Definition
|
|
183
|
+
Read: {skillRoot}/roles/{role}/role.md
|
|
184
|
+
|
|
185
|
+
## Context
|
|
186
|
+
Session: {sessionFolder}
|
|
187
|
+
Discovery board: {sessionFolder}/discoveries.ndjson
|
|
188
|
+
Previous context: 'prev_context' column
|
|
189
|
+
|
|
190
|
+
## Output
|
|
191
|
+
result_status, findings, files_modified, debt_count, regression_detected (TDVAL), error
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
</actions>
|
|
195
|
+
</state_machine>
|
|
196
|
+
|
|
197
|
+
<error_codes>
|
|
198
|
+
|
|
199
|
+
| Condition | Recovery |
|
|
200
|
+
|-----------|----------|
|
|
201
|
+
| Scanner found 0 debt items | Skip to aggregate, report clean |
|
|
202
|
+
| Regression persists after 3 GC rounds | Escalate to user |
|
|
203
|
+
| Plan rejected by user | Aggregate with scan results only |
|
|
204
|
+
| Fix introduces new debt | Log warning, continue to validation |
|
|
205
|
+
</error_codes>
|
|
206
|
+
|
|
207
|
+
<success_criteria>
|
|
208
|
+
- [ ] Mode selected and CSV generated
|
|
209
|
+
- [ ] Scan → Assess → Plan → Fix → Validate pipeline
|
|
210
|
+
- [ ] User approval gate for remediation plan
|
|
211
|
+
- [ ] Fix-Verify GC loop on regression (max 3)
|
|
212
|
+
- [ ] Column separation maintained
|
|
213
|
+
- [ ] results.csv and context.md generated
|
|
214
|
+
</success_criteria>
|