maestro-flow 0.3.38 → 0.3.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/agents/workflow-analyzer.md +2 -0
- package/.claude/agents/workflow-debugger.md +2 -0
- package/.claude/agents/workflow-executor.md +2 -0
- package/.claude/agents/workflow-integration-checker.md +1 -0
- package/.claude/agents/workflow-nyquist-auditor.md +1 -0
- package/.claude/agents/workflow-planner.md +2 -0
- package/.claude/agents/workflow-reviewer.md +2 -0
- package/.claude/agents/workflow-verifier.md +2 -0
- package/.claude/commands/learn-decompose.md +176 -176
- package/.claude/commands/learn-follow.md +167 -167
- package/.claude/commands/learn-investigate.md +221 -221
- package/.claude/commands/learn-retro.md +303 -303
- package/.claude/commands/learn-second-opinion.md +167 -167
- package/.claude/commands/maestro-amend.md +300 -300
- package/.claude/commands/maestro-analyze.md +126 -126
- package/.claude/commands/maestro-brainstorm.md +100 -100
- package/.claude/commands/maestro-composer.md +354 -354
- package/.claude/commands/maestro-execute.md +120 -114
- package/.claude/commands/maestro-fork.md +86 -86
- package/.claude/commands/maestro-init.md +78 -78
- package/.claude/commands/maestro-learn.md +140 -140
- package/.claude/commands/maestro-link-coordinate.md +1 -1
- package/.claude/commands/maestro-merge.md +61 -61
- package/.claude/commands/maestro-milestone-release.md +96 -96
- package/.claude/commands/maestro-overlay.md +178 -178
- package/.claude/commands/maestro-plan.md +150 -138
- package/.claude/commands/maestro-player.md +404 -404
- package/.claude/commands/maestro-quick.md +56 -56
- package/.claude/commands/maestro-ralph-execute.md +7 -18
- package/.claude/commands/maestro-ralph.md +9 -3
- package/.claude/commands/maestro-roadmap.md +1 -1
- package/.claude/commands/maestro-ui-design.md +93 -93
- package/.claude/commands/maestro-update.md +176 -176
- package/.claude/commands/maestro-verify.md +96 -90
- package/.claude/commands/maestro.md +121 -121
- package/.claude/commands/manage-codebase-rebuild.md +75 -75
- package/.claude/commands/manage-codebase-refresh.md +57 -57
- package/.claude/commands/manage-harvest.md +94 -94
- package/.claude/commands/manage-issue-discover.md +77 -77
- package/.claude/commands/manage-issue.md +73 -73
- package/.claude/commands/manage-knowhow-capture.md +193 -193
- package/.claude/commands/manage-knowhow.md +77 -77
- package/.claude/commands/manage-learn.md +67 -67
- package/.claude/commands/manage-status.md +51 -51
- package/.claude/commands/manage-wiki.md +62 -62
- package/.claude/commands/quality-auto-test.md +1 -1
- package/.claude/commands/quality-debug.md +121 -115
- package/.claude/commands/quality-refactor.md +55 -55
- package/.claude/commands/quality-retrospective.md +78 -78
- package/.claude/commands/quality-review.md +114 -108
- package/.claude/commands/quality-sync.md +51 -51
- package/.claude/commands/quality-test.md +103 -103
- package/.claude/commands/spec-add.md +49 -49
- package/.claude/commands/spec-load.md +51 -51
- package/.claude/commands/spec-remove.md +51 -51
- package/.claude/commands/spec-setup.md +51 -51
- package/.claude/commands/wiki-connect.md +62 -62
- package/.claude/commands/wiki-digest.md +69 -69
- package/.codex/skills/learn-decompose/SKILL.md +113 -113
- package/.codex/skills/learn-follow/SKILL.md +1 -1
- package/.codex/skills/learn-investigate/SKILL.md +83 -83
- package/.codex/skills/learn-retro/SKILL.md +83 -83
- package/.codex/skills/learn-second-opinion/SKILL.md +86 -86
- package/.codex/skills/maestro/SKILL.md +304 -304
- package/.codex/skills/maestro-analyze/SKILL.md +4 -3
- package/.codex/skills/maestro-brainstorm/SKILL.md +442 -397
- package/.codex/skills/maestro-composer/SKILL.md +213 -213
- package/.codex/skills/maestro-execute/SKILL.md +346 -318
- package/.codex/skills/maestro-fork/SKILL.md +56 -2
- package/.codex/skills/maestro-init/SKILL.md +40 -16
- package/.codex/skills/maestro-learn/SKILL.md +80 -80
- package/.codex/skills/maestro-link-coordinate/SKILL.md +257 -257
- package/.codex/skills/maestro-merge/SKILL.md +1 -1
- package/.codex/skills/maestro-milestone-audit/SKILL.md +1 -1
- package/.codex/skills/maestro-milestone-complete/SKILL.md +40 -9
- package/.codex/skills/maestro-milestone-release/SKILL.md +70 -70
- package/.codex/skills/maestro-overlay/SKILL.md +1 -1
- package/.codex/skills/maestro-plan/SKILL.md +19 -4
- package/.codex/skills/maestro-player/SKILL.md +323 -323
- package/.codex/skills/maestro-quick/SKILL.md +1 -1
- package/.codex/skills/maestro-ralph/SKILL.md +681 -578
- package/.codex/skills/maestro-roadmap/SKILL.md +518 -468
- package/.codex/skills/maestro-ui-design/SKILL.md +109 -12
- package/.codex/skills/maestro-verify/SKILL.md +27 -9
- package/.codex/skills/manage-codebase-rebuild/SKILL.md +3 -2
- package/.codex/skills/manage-codebase-refresh/SKILL.md +1 -1
- package/.codex/skills/manage-harvest/SKILL.md +91 -91
- package/.codex/skills/manage-issue/SKILL.md +19 -6
- package/.codex/skills/manage-issue-discover/SKILL.md +1 -1
- package/.codex/skills/manage-knowhow/SKILL.md +95 -95
- package/.codex/skills/manage-knowhow-capture/SKILL.md +110 -110
- package/.codex/skills/manage-learn/SKILL.md +1 -1
- package/.codex/skills/manage-status/SKILL.md +1 -1
- package/.codex/skills/manage-wiki/SKILL.md +55 -55
- package/.codex/skills/quality-auto-test/SKILL.md +547 -547
- package/.codex/skills/quality-debug/SKILL.md +339 -334
- package/.codex/skills/quality-refactor/SKILL.md +1 -1
- package/.codex/skills/quality-retrospective/SKILL.md +292 -292
- package/.codex/skills/quality-review/SKILL.md +365 -364
- package/.codex/skills/quality-sync/SKILL.md +1 -1
- package/.codex/skills/quality-test/SKILL.md +498 -498
- package/.codex/skills/spec-add/SKILL.md +101 -101
- package/.codex/skills/spec-load/SKILL.md +77 -77
- package/.codex/skills/spec-map/SKILL.md +1 -1
- package/.codex/skills/spec-remove/SKILL.md +69 -69
- package/.codex/skills/spec-setup/SKILL.md +1 -1
- package/.codex/skills/team-coordinate/SKILL.md +2 -1
- package/.codex/skills/team-executor/SKILL.md +116 -115
- package/.codex/skills/team-lifecycle-v4/SKILL.md +2 -1
- package/.codex/skills/team-lifecycle-v4/instructions/agent-instruction.md +14 -6
- package/.codex/skills/team-lifecycle-v4/roles/analyst/role.md +16 -4
- package/.codex/skills/team-lifecycle-v4/roles/executor/commands/implement.md +7 -1
- package/.codex/skills/team-lifecycle-v4/roles/planner/role.md +16 -4
- package/.codex/skills/team-lifecycle-v4/roles/writer/role.md +8 -2
- package/.codex/skills/team-quality-assurance/SKILL.md +2 -1
- package/.codex/skills/team-quality-assurance/roles/scout/role.md +9 -2
- package/.codex/skills/team-review/SKILL.md +2 -1
- package/.codex/skills/team-review/roles/reviewer/role.md +10 -1
- package/.codex/skills/team-review/roles/scanner/role.md +10 -1
- package/.codex/skills/team-tech-debt/SKILL.md +144 -143
- package/.codex/skills/team-tech-debt/roles/executor/role.md +9 -5
- package/.codex/skills/team-tech-debt/roles/scanner/role.md +10 -0
- package/.codex/skills/team-tech-debt/roles/validator/role.md +8 -2
- package/.codex/skills/team-testing/SKILL.md +2 -1
- package/.codex/skills/team-testing/roles/executor/role.md +8 -2
- package/.codex/skills/team-testing/roles/generator/role.md +8 -2
- package/.codex/skills/wiki-connect/SKILL.md +73 -73
- package/.codex/skills/wiki-digest/SKILL.md +87 -87
- package/dashboard/dist-server/dashboard/src/server/agents/claude-code-adapter.js +4 -0
- package/dashboard/dist-server/dashboard/src/server/agents/claude-code-adapter.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/agents/codex-cli-adapter.js +6 -0
- package/dashboard/dist-server/dashboard/src/server/agents/codex-cli-adapter.js.map +1 -1
- package/dashboard/dist-server/shared/agent-types.d.ts +2 -0
- package/dashboard/dist-server/src/agents/cli-agent-runner.d.ts +2 -0
- package/dashboard/dist-server/src/agents/cli-agent-runner.js +4 -0
- package/dashboard/dist-server/src/agents/cli-agent-runner.js.map +1 -1
- package/dashboard/dist-server/src/commands/delegate.d.ts +2 -0
- package/dashboard/dist-server/src/commands/delegate.js +18 -0
- package/dashboard/dist-server/src/commands/delegate.js.map +1 -1
- package/dashboard/dist-server/src/config/cli-tools-config.d.ts +6 -0
- package/dashboard/dist-server/src/config/cli-tools-config.js +2 -0
- package/dashboard/dist-server/src/config/cli-tools-config.js.map +1 -1
- package/dist/shared/agent-types.d.ts +2 -0
- package/dist/shared/agent-types.d.ts.map +1 -1
- package/dist/src/agents/cli-agent-runner.d.ts +2 -0
- package/dist/src/agents/cli-agent-runner.d.ts.map +1 -1
- package/dist/src/agents/cli-agent-runner.js +4 -0
- package/dist/src/agents/cli-agent-runner.js.map +1 -1
- package/dist/src/commands/config.d.ts.map +1 -1
- package/dist/src/commands/config.js +29 -1
- package/dist/src/commands/config.js.map +1 -1
- package/dist/src/commands/delegate.d.ts +2 -0
- package/dist/src/commands/delegate.d.ts.map +1 -1
- package/dist/src/commands/delegate.js +18 -0
- package/dist/src/commands/delegate.js.map +1 -1
- package/dist/src/commands/launcher.d.ts.map +1 -1
- package/dist/src/commands/launcher.js +27 -4
- package/dist/src/commands/launcher.js.map +1 -1
- package/dist/src/config/cli-tools-config.d.ts +6 -0
- package/dist/src/config/cli-tools-config.d.ts.map +1 -1
- package/dist/src/config/cli-tools-config.js +2 -0
- package/dist/src/config/cli-tools-config.js.map +1 -1
- package/dist/src/core/overlay/applier.d.ts.map +1 -1
- package/dist/src/core/overlay/applier.js +65 -5
- package/dist/src/core/overlay/applier.js.map +1 -1
- package/dist/src/core/overlay/loader.d.ts.map +1 -1
- package/dist/src/core/overlay/loader.js +9 -4
- package/dist/src/core/overlay/loader.js.map +1 -1
- package/dist/src/core/overlay/types.d.ts +2 -0
- package/dist/src/core/overlay/types.d.ts.map +1 -1
- package/dist/src/core/overlay/types.js +2 -0
- package/dist/src/core/overlay/types.js.map +1 -1
- package/dist/src/tui/tools-ui/ToolsDashboard.d.ts.map +1 -1
- package/dist/src/tui/tools-ui/ToolsDashboard.js +1 -1
- package/dist/src/tui/tools-ui/ToolsDashboard.js.map +1 -1
- package/dist/src/tui/tools-ui/ToolsOverview.d.ts.map +1 -1
- package/dist/src/tui/tools-ui/ToolsOverview.js +51 -4
- package/dist/src/tui/tools-ui/ToolsOverview.js.map +1 -1
- package/package.json +1 -1
- package/shared/agent-types.ts +2 -0
- package/workflows/delegate-protocol.codex.md +65 -0
|
@@ -1,83 +1,83 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: learn-investigate
|
|
3
|
-
description:
|
|
4
|
-
argument-hint: "<question> [--scope <path>] [--max-hypotheses N]"
|
|
5
|
-
allowed-tools: Read, Write, Edit, Bash, Glob, Grep, AskUserQuestion
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
<purpose>
|
|
9
|
-
Systematic investigation for understanding questions (not bug-fixing). 4-phase approach
|
|
10
|
-
with scope lock and 3-strike escalation. Produces structured evidence trails and
|
|
11
|
-
understanding documents that persist to the learning system.
|
|
12
|
-
|
|
13
|
-
Unlike `quality-debug` (fixing bugs during execution), this answers "how does X work?",
|
|
14
|
-
"why does Y happen?", "what would happen if Z?" questions.
|
|
15
|
-
</purpose>
|
|
16
|
-
|
|
17
|
-
<context>
|
|
18
|
-
$ARGUMENTS — question text and optional flags.
|
|
19
|
-
|
|
20
|
-
**Flags:**
|
|
21
|
-
- `--scope <path>` — Restrict to files under this directory (default: entire project)
|
|
22
|
-
- `--max-hypotheses N` — Max hypotheses before escalating (default: 3)
|
|
23
|
-
|
|
24
|
-
**Output**: `.workflow/learning/investigate-{slug}/` (evidence.ndjson, understanding.md, report.md)
|
|
25
|
-
</context>
|
|
26
|
-
|
|
27
|
-
<execution>
|
|
28
|
-
|
|
29
|
-
### Stage 1: Frame the Question
|
|
30
|
-
- Parse question, generate slug, create investigation directory
|
|
31
|
-
- Search prior knowledge: wiki search, grep lessons.jsonl, read debug-notes.md
|
|
32
|
-
- Write initial `understanding.md`
|
|
33
|
-
|
|
34
|
-
### Stage 2: Evidence Collection
|
|
35
|
-
1. **Code search**: Grep keywords across scoped files
|
|
36
|
-
2. **File inspection**: Read most relevant files
|
|
37
|
-
3. **Import tracing**: Follow dependency chain
|
|
38
|
-
4. **Git history**: `git log --oneline -10 -- <relevant-files>`
|
|
39
|
-
|
|
40
|
-
Each evidence item → `evidence.ndjson`:
|
|
41
|
-
```json
|
|
42
|
-
{"ts":"ISO","type":"code|git|search|doc","source":"file:line","relevance":"high|medium|low","content":"...","note":"..."}
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
### Stage 3: Hypothesis Formation + Testing
|
|
46
|
-
Generate ranked hypotheses from evidence. For each (in rank order):
|
|
47
|
-
1. Design test: what evidence would confirm/disprove?
|
|
48
|
-
2. Execute test: code trace, targeted search, experiment
|
|
49
|
-
3. Record result in `evidence.ndjson` (type: "test")
|
|
50
|
-
4. Update `understanding.md`: confirmed / disproved / inconclusive
|
|
51
|
-
|
|
52
|
-
### Stage 4: 3-Strike Escalation
|
|
53
|
-
If all hypotheses fail: broaden scope, search wiki with alt keywords, or mark INCONCLUSIVE.
|
|
54
|
-
|
|
55
|
-
### Stage 5: Synthesize + Persist
|
|
56
|
-
1. Write `report.md` with answer, evidence trail, hypothesis results
|
|
57
|
-
2. Append to `lessons.jsonl`:
|
|
58
|
-
- Confirmed → category: "technique" / "pattern"
|
|
59
|
-
- Disproved → category: "gotcha"
|
|
60
|
-
3. Display summary with next-step routing
|
|
61
|
-
|
|
62
|
-
**Next steps:** `/spec-add debug <finding>`, `/learn-follow <path>`, `/learn-decompose <module>`
|
|
63
|
-
</execution>
|
|
64
|
-
|
|
65
|
-
<error_codes>
|
|
66
|
-
| Code | Severity | Condition | Recovery |
|
|
67
|
-
|------|----------|-----------|----------|
|
|
68
|
-
| E001 | error | No question provided | Provide question as first argument |
|
|
69
|
-
| E002 | error | Scope path does not exist | Check --scope path |
|
|
70
|
-
| W001 | warning | No prior knowledge found | Proceed with fresh investigation |
|
|
71
|
-
| W002 | warning | Very few evidence matches (<3) | Broaden search terms |
|
|
72
|
-
| W003 | warning | All hypotheses inconclusive | Marked INCONCLUSIVE |
|
|
73
|
-
</error_codes>
|
|
74
|
-
|
|
75
|
-
<success_criteria>
|
|
76
|
-
- [ ] Question parsed and investigation directory created
|
|
77
|
-
- [ ] Evidence collected and logged to evidence.ndjson
|
|
78
|
-
- [ ] At least 1 hypothesis formed and tested
|
|
79
|
-
- [ ] understanding.md tracks evolving understanding
|
|
80
|
-
- [ ] report.md written with answer and evidence trail
|
|
81
|
-
- [ ] Findings appended to lessons.jsonl with stable INS-ids
|
|
82
|
-
- [ ] 3-strike escalation triggered if all hypotheses fail
|
|
83
|
-
</success_criteria>
|
|
1
|
+
---
|
|
2
|
+
name: learn-investigate
|
|
3
|
+
description: Investigate questions with hypothesis testing and evidence logging
|
|
4
|
+
argument-hint: "<question> [--scope <path>] [--max-hypotheses N]"
|
|
5
|
+
allowed-tools: Read, Write, Edit, Bash, Glob, Grep, AskUserQuestion
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<purpose>
|
|
9
|
+
Systematic investigation for understanding questions (not bug-fixing). 4-phase approach
|
|
10
|
+
with scope lock and 3-strike escalation. Produces structured evidence trails and
|
|
11
|
+
understanding documents that persist to the learning system.
|
|
12
|
+
|
|
13
|
+
Unlike `quality-debug` (fixing bugs during execution), this answers "how does X work?",
|
|
14
|
+
"why does Y happen?", "what would happen if Z?" questions.
|
|
15
|
+
</purpose>
|
|
16
|
+
|
|
17
|
+
<context>
|
|
18
|
+
$ARGUMENTS — question text and optional flags.
|
|
19
|
+
|
|
20
|
+
**Flags:**
|
|
21
|
+
- `--scope <path>` — Restrict to files under this directory (default: entire project)
|
|
22
|
+
- `--max-hypotheses N` — Max hypotheses before escalating (default: 3)
|
|
23
|
+
|
|
24
|
+
**Output**: `.workflow/learning/investigate-{slug}/` (evidence.ndjson, understanding.md, report.md)
|
|
25
|
+
</context>
|
|
26
|
+
|
|
27
|
+
<execution>
|
|
28
|
+
|
|
29
|
+
### Stage 1: Frame the Question
|
|
30
|
+
- Parse question, generate slug, create investigation directory
|
|
31
|
+
- Search prior knowledge: wiki search, grep lessons.jsonl, read debug-notes.md
|
|
32
|
+
- Write initial `understanding.md`
|
|
33
|
+
|
|
34
|
+
### Stage 2: Evidence Collection
|
|
35
|
+
1. **Code search**: Grep keywords across scoped files
|
|
36
|
+
2. **File inspection**: Read most relevant files
|
|
37
|
+
3. **Import tracing**: Follow dependency chain
|
|
38
|
+
4. **Git history**: `git log --oneline -10 -- <relevant-files>`
|
|
39
|
+
|
|
40
|
+
Each evidence item → `evidence.ndjson`:
|
|
41
|
+
```json
|
|
42
|
+
{"ts":"ISO","type":"code|git|search|doc","source":"file:line","relevance":"high|medium|low","content":"...","note":"..."}
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Stage 3: Hypothesis Formation + Testing
|
|
46
|
+
Generate ranked hypotheses from evidence. For each (in rank order):
|
|
47
|
+
1. Design test: what evidence would confirm/disprove?
|
|
48
|
+
2. Execute test: code trace, targeted search, experiment
|
|
49
|
+
3. Record result in `evidence.ndjson` (type: "test")
|
|
50
|
+
4. Update `understanding.md`: confirmed / disproved / inconclusive
|
|
51
|
+
|
|
52
|
+
### Stage 4: 3-Strike Escalation
|
|
53
|
+
If all hypotheses fail: broaden scope, search wiki with alt keywords, or mark INCONCLUSIVE.
|
|
54
|
+
|
|
55
|
+
### Stage 5: Synthesize + Persist
|
|
56
|
+
1. Write `report.md` with answer, evidence trail, hypothesis results
|
|
57
|
+
2. Append to `lessons.jsonl`:
|
|
58
|
+
- Confirmed → category: "technique" / "pattern"
|
|
59
|
+
- Disproved → category: "gotcha"
|
|
60
|
+
3. Display summary with next-step routing
|
|
61
|
+
|
|
62
|
+
**Next steps:** `/spec-add debug <finding>`, `/learn-follow <path>`, `/learn-decompose <module>`
|
|
63
|
+
</execution>
|
|
64
|
+
|
|
65
|
+
<error_codes>
|
|
66
|
+
| Code | Severity | Condition | Recovery |
|
|
67
|
+
|------|----------|-----------|----------|
|
|
68
|
+
| E001 | error | No question provided | Provide question as first argument |
|
|
69
|
+
| E002 | error | Scope path does not exist | Check --scope path |
|
|
70
|
+
| W001 | warning | No prior knowledge found | Proceed with fresh investigation |
|
|
71
|
+
| W002 | warning | Very few evidence matches (<3) | Broaden search terms |
|
|
72
|
+
| W003 | warning | All hypotheses inconclusive | Marked INCONCLUSIVE |
|
|
73
|
+
</error_codes>
|
|
74
|
+
|
|
75
|
+
<success_criteria>
|
|
76
|
+
- [ ] Question parsed and investigation directory created
|
|
77
|
+
- [ ] Evidence collected and logged to evidence.ndjson
|
|
78
|
+
- [ ] At least 1 hypothesis formed and tested
|
|
79
|
+
- [ ] understanding.md tracks evolving understanding
|
|
80
|
+
- [ ] report.md written with answer and evidence trail
|
|
81
|
+
- [ ] Findings appended to lessons.jsonl with stable INS-ids
|
|
82
|
+
- [ ] 3-strike escalation triggered if all hypotheses fail
|
|
83
|
+
</success_criteria>
|
|
@@ -1,83 +1,83 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: learn-retro
|
|
3
|
-
description:
|
|
4
|
-
argument-hint: "[-y|--yes] [-c|--concurrency N] [--continue] \"[--lens git|decision|all] [--days N] [--author <name>] [--area <path>] [--phase N] [--compare]\""
|
|
5
|
-
allowed-tools: spawn_agents_on_csv, Read, Write, Edit, Bash, Glob, Grep, AskUserQuestion
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
<purpose>
|
|
9
|
-
Unified retrospective combining git activity analysis and decision quality evaluation.
|
|
10
|
-
Two lenses, usable independently or together:
|
|
11
|
-
- **git**: Commit metrics, session detection, per-author breakdown, file hotspots, trends
|
|
12
|
-
- **decision**: Decision tracing across wiki/specs/git, multi-perspective evaluation via 3 parallel agents
|
|
13
|
-
|
|
14
|
-
Works on raw git history and wiki/spec data — does not require completed phase artifacts.
|
|
15
|
-
</purpose>
|
|
16
|
-
|
|
17
|
-
<context>
|
|
18
|
-
$ARGUMENTS — lens selection and scope flags.
|
|
19
|
-
|
|
20
|
-
**Lens:** `--lens git` | `--lens decision` | `--lens all` (default)
|
|
21
|
-
|
|
22
|
-
**Git flags:** `--days N` (default: 7), `--author <name>`, `--area <path>`, `--compare`
|
|
23
|
-
**Decision flags:** `--phase N`, `--tag <tag>`, `--id <id>`
|
|
24
|
-
|
|
25
|
-
**Output**: `.workflow/learning/retro-{date}.md` + `retro-{date}.json`
|
|
26
|
-
</context>
|
|
27
|
-
|
|
28
|
-
<execution>
|
|
29
|
-
|
|
30
|
-
### Phase 1: Parse + Select Lenses
|
|
31
|
-
|
|
32
|
-
### Phase 2: Git Lens (skip if --lens decision)
|
|
33
|
-
**Sequential data gathering** (parallel git commands):
|
|
34
|
-
- Commit stats with shortstat
|
|
35
|
-
- Per-commit numstat for test/production LOC split
|
|
36
|
-
- Timestamps for session detection (>2hr gap clustering)
|
|
37
|
-
- File hotspots (most frequently changed)
|
|
38
|
-
- Per-author commit counts
|
|
39
|
-
|
|
40
|
-
**Compute**: commits, LOC, test ratio, churn rate, active days, sessions, per-author breakdown.
|
|
41
|
-
**Trend comparison** if prior `retro-*.json` exists.
|
|
42
|
-
|
|
43
|
-
### Phase 3: Decision Lens (skip if --lens git)
|
|
44
|
-
**3a: Collect decisions** from wiki, specs, git log, phase context, lessons.jsonl.
|
|
45
|
-
**3b: Build decision registry** per decision (id, title, source, rationale, alternatives, evidence).
|
|
46
|
-
|
|
47
|
-
**3c: Multi-perspective evaluation** via spawn_agents_on_csv (3 parallel agents):
|
|
48
|
-
|
|
49
|
-
| id | perspective | focus |
|
|
50
|
-
|----|------------|-------|
|
|
51
|
-
| 1 | technical | Implementation vs intent, context drift. Grade: sound/degraded/violated |
|
|
52
|
-
| 2 | cost | Complexity added, coupling, tech debt. Grade: low-cost/acceptable/expensive |
|
|
53
|
-
| 3 | hindsight | Right call with current knowledge? Grade: confirmed/questionable/should-revisit |
|
|
54
|
-
|
|
55
|
-
**3d: Classify lifecycle**: Validated / Aging / Questionable / Stale / Reversed.
|
|
56
|
-
|
|
57
|
-
### Phase 4: Unified Report
|
|
58
|
-
Write `retro-{date}.md` + `retro-{date}.json` with metrics, sessions, hotspots, decision health, combined insights, recommended actions.
|
|
59
|
-
|
|
60
|
-
### Phase 5: Persist
|
|
61
|
-
Append insights to `lessons.jsonl` (source: "retro-git" or "retro-decision"). Display summary.
|
|
62
|
-
|
|
63
|
-
**Next steps:** `/learn-follow <path>`, `/quality-auto-test <area>`, `/learn-investigate <question>`
|
|
64
|
-
</execution>
|
|
65
|
-
|
|
66
|
-
<error_codes>
|
|
67
|
-
| Code | Severity | Condition | Recovery |
|
|
68
|
-
|------|----------|-----------|----------|
|
|
69
|
-
| E001 | error | Not inside git repo (git lens) | Navigate to git repo |
|
|
70
|
-
| E002 | error | No commits in time window | Increase --days |
|
|
71
|
-
| E003 | error | No decisions found (decision lens) | Check wiki/specs content |
|
|
72
|
-
| W001 | warning | .workflow/learning/ not found | Auto-bootstrap |
|
|
73
|
-
| W002 | warning | No prior retro for comparison | First retro establishes baseline |
|
|
74
|
-
| W003 | warning | Decision perspective agent failed | Proceed with partial evaluation |
|
|
75
|
-
</error_codes>
|
|
76
|
-
|
|
77
|
-
<success_criteria>
|
|
78
|
-
- [ ] Lens selection parsed correctly
|
|
79
|
-
- [ ] Git lens: metrics computed, sessions detected, hotspots identified
|
|
80
|
-
- [ ] Decision lens: decisions collected, 3 agents spawned in parallel, lifecycle classified
|
|
81
|
-
- [ ] Unified report written to retro-{date}.md + retro-{date}.json
|
|
82
|
-
- [ ] lessons.jsonl appended with insights (stable INS-ids)
|
|
83
|
-
</success_criteria>
|
|
1
|
+
---
|
|
2
|
+
name: learn-retro
|
|
3
|
+
description: Retrospective of git activity and decision quality
|
|
4
|
+
argument-hint: "[-y|--yes] [-c|--concurrency N] [--continue] \"[--lens git|decision|all] [--days N] [--author <name>] [--area <path>] [--phase N] [--compare]\""
|
|
5
|
+
allowed-tools: spawn_agents_on_csv, Read, Write, Edit, Bash, Glob, Grep, AskUserQuestion
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<purpose>
|
|
9
|
+
Unified retrospective combining git activity analysis and decision quality evaluation.
|
|
10
|
+
Two lenses, usable independently or together:
|
|
11
|
+
- **git**: Commit metrics, session detection, per-author breakdown, file hotspots, trends
|
|
12
|
+
- **decision**: Decision tracing across wiki/specs/git, multi-perspective evaluation via 3 parallel agents
|
|
13
|
+
|
|
14
|
+
Works on raw git history and wiki/spec data — does not require completed phase artifacts.
|
|
15
|
+
</purpose>
|
|
16
|
+
|
|
17
|
+
<context>
|
|
18
|
+
$ARGUMENTS — lens selection and scope flags.
|
|
19
|
+
|
|
20
|
+
**Lens:** `--lens git` | `--lens decision` | `--lens all` (default)
|
|
21
|
+
|
|
22
|
+
**Git flags:** `--days N` (default: 7), `--author <name>`, `--area <path>`, `--compare`
|
|
23
|
+
**Decision flags:** `--phase N`, `--tag <tag>`, `--id <id>`
|
|
24
|
+
|
|
25
|
+
**Output**: `.workflow/learning/retro-{date}.md` + `retro-{date}.json`
|
|
26
|
+
</context>
|
|
27
|
+
|
|
28
|
+
<execution>
|
|
29
|
+
|
|
30
|
+
### Phase 1: Parse + Select Lenses
|
|
31
|
+
|
|
32
|
+
### Phase 2: Git Lens (skip if --lens decision)
|
|
33
|
+
**Sequential data gathering** (parallel git commands):
|
|
34
|
+
- Commit stats with shortstat
|
|
35
|
+
- Per-commit numstat for test/production LOC split
|
|
36
|
+
- Timestamps for session detection (>2hr gap clustering)
|
|
37
|
+
- File hotspots (most frequently changed)
|
|
38
|
+
- Per-author commit counts
|
|
39
|
+
|
|
40
|
+
**Compute**: commits, LOC, test ratio, churn rate, active days, sessions, per-author breakdown.
|
|
41
|
+
**Trend comparison** if prior `retro-*.json` exists.
|
|
42
|
+
|
|
43
|
+
### Phase 3: Decision Lens (skip if --lens git)
|
|
44
|
+
**3a: Collect decisions** from wiki, specs, git log, phase context, lessons.jsonl.
|
|
45
|
+
**3b: Build decision registry** per decision (id, title, source, rationale, alternatives, evidence).
|
|
46
|
+
|
|
47
|
+
**3c: Multi-perspective evaluation** via spawn_agents_on_csv (3 parallel agents):
|
|
48
|
+
|
|
49
|
+
| id | perspective | focus |
|
|
50
|
+
|----|------------|-------|
|
|
51
|
+
| 1 | technical | Implementation vs intent, context drift. Grade: sound/degraded/violated |
|
|
52
|
+
| 2 | cost | Complexity added, coupling, tech debt. Grade: low-cost/acceptable/expensive |
|
|
53
|
+
| 3 | hindsight | Right call with current knowledge? Grade: confirmed/questionable/should-revisit |
|
|
54
|
+
|
|
55
|
+
**3d: Classify lifecycle**: Validated / Aging / Questionable / Stale / Reversed.
|
|
56
|
+
|
|
57
|
+
### Phase 4: Unified Report
|
|
58
|
+
Write `retro-{date}.md` + `retro-{date}.json` with metrics, sessions, hotspots, decision health, combined insights, recommended actions.
|
|
59
|
+
|
|
60
|
+
### Phase 5: Persist
|
|
61
|
+
Append insights to `lessons.jsonl` (source: "retro-git" or "retro-decision"). Display summary.
|
|
62
|
+
|
|
63
|
+
**Next steps:** `/learn-follow <path>`, `/quality-auto-test <area>`, `/learn-investigate <question>`
|
|
64
|
+
</execution>
|
|
65
|
+
|
|
66
|
+
<error_codes>
|
|
67
|
+
| Code | Severity | Condition | Recovery |
|
|
68
|
+
|------|----------|-----------|----------|
|
|
69
|
+
| E001 | error | Not inside git repo (git lens) | Navigate to git repo |
|
|
70
|
+
| E002 | error | No commits in time window | Increase --days |
|
|
71
|
+
| E003 | error | No decisions found (decision lens) | Check wiki/specs content |
|
|
72
|
+
| W001 | warning | .workflow/learning/ not found | Auto-bootstrap |
|
|
73
|
+
| W002 | warning | No prior retro for comparison | First retro establishes baseline |
|
|
74
|
+
| W003 | warning | Decision perspective agent failed | Proceed with partial evaluation |
|
|
75
|
+
</error_codes>
|
|
76
|
+
|
|
77
|
+
<success_criteria>
|
|
78
|
+
- [ ] Lens selection parsed correctly
|
|
79
|
+
- [ ] Git lens: metrics computed, sessions detected, hotspots identified
|
|
80
|
+
- [ ] Decision lens: decisions collected, 3 agents spawned in parallel, lifecycle classified
|
|
81
|
+
- [ ] Unified report written to retro-{date}.md + retro-{date}.json
|
|
82
|
+
- [ ] lessons.jsonl appended with insights (stable INS-ids)
|
|
83
|
+
</success_criteria>
|
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: learn-second-opinion
|
|
3
|
-
description:
|
|
4
|
-
argument-hint: "[-y|--yes] [-c|--concurrency 3] [--continue] \"<target> [--mode review|challenge|consult]\""
|
|
5
|
-
allowed-tools: spawn_agents_on_csv, Read, Write, Edit, Bash, Glob, Grep, AskUserQuestion
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
<purpose>
|
|
9
|
-
Structured second-opinion for code, decisions, or plans. Three modes:
|
|
10
|
-
- **review** (default): 3 parallel persona agents independently assess target via spawn_agents_on_csv
|
|
11
|
-
- **challenge**: single adversarial agent via spawn_agents_on_csv (1 worker)
|
|
12
|
-
- **consult**: interactive Q&A (no CSV wave — direct orchestration)
|
|
13
|
-
|
|
14
|
-
Findings persist to `lessons.jsonl`. Decoupled from phase lifecycle.
|
|
15
|
-
</purpose>
|
|
16
|
-
|
|
17
|
-
<context>
|
|
18
|
-
$ARGUMENTS — target and optional flags.
|
|
19
|
-
|
|
20
|
-
**Target resolution (auto-detected):**
|
|
21
|
-
- File path → analyze file content
|
|
22
|
-
- Wiki ID (`type-slug`) → fetch via `maestro wiki get`
|
|
23
|
-
- `HEAD` / `staged` → analyze git diff
|
|
24
|
-
- Phase number → analyze phase plan
|
|
25
|
-
|
|
26
|
-
**Flags:**
|
|
27
|
-
- `--mode review` — 3-persona parallel review (default)
|
|
28
|
-
- `--mode challenge` — Adversarial single-agent analysis
|
|
29
|
-
- `--mode consult` — Interactive Q&A session
|
|
30
|
-
|
|
31
|
-
**Output**: `.workflow/learning/opinion-{slug}-{date}.md`
|
|
32
|
-
</context>
|
|
33
|
-
|
|
34
|
-
<execution>
|
|
35
|
-
|
|
36
|
-
### Phase 1: Resolve Target + Load Context
|
|
37
|
-
Resolve target to content. Load specs, wiki search, prior lessons for context brief.
|
|
38
|
-
|
|
39
|
-
### Phase 2: Execute Mode
|
|
40
|
-
|
|
41
|
-
#### Review Mode (spawn_agents_on_csv)
|
|
42
|
-
|
|
43
|
-
| id | persona | focus | grading |
|
|
44
|
-
|----|---------|-------|---------|
|
|
45
|
-
| 1 | pragmatist | Simplicity, YAGNI, maintenance cost, readability | complexity score, abstraction depth |
|
|
46
|
-
| 2 | purist | Correctness, type safety, edge cases, error handling | error paths, type completeness |
|
|
47
|
-
| 3 | strategist | Scalability, extensibility, architecture alignment | coupling, cohesion |
|
|
48
|
-
| 4 | synthesis | Merge verdicts → agreements, disagreements, top 3 recommendations | combined verdict |
|
|
49
|
-
|
|
50
|
-
Wave 1: 3 persona agents in parallel. Wave 2: synthesis agent with wave 1 findings as prev_context.
|
|
51
|
-
|
|
52
|
-
Each persona returns: `{ persona, verdict: approve|concern|reject, confidence, findings: [{severity, description, location, suggestion}], summary }`
|
|
53
|
-
|
|
54
|
-
#### Challenge Mode
|
|
55
|
-
Single agent via spawn_agents_on_csv (1 worker). Adversarial analysis with forcing questions:
|
|
56
|
-
- "What assumption would invalidate this entire approach?"
|
|
57
|
-
- "What's the simplest thing that breaks this?"
|
|
58
|
-
- "What's the implicit contract that isn't enforced?"
|
|
59
|
-
|
|
60
|
-
#### Consult Mode
|
|
61
|
-
Interactive loop via AskUserQuestion. Agent studies target, answers questions with code references. Compile Q&A into report on exit.
|
|
62
|
-
|
|
63
|
-
### Phase 3: Persist
|
|
64
|
-
1. Write `opinion-{slug}-{date}.md` with per-persona findings + synthesis
|
|
65
|
-
2. Append non-trivial findings to `lessons.jsonl` (source: "second-opinion")
|
|
66
|
-
3. Display summary with verdict and next steps
|
|
67
|
-
|
|
68
|
-
**Next steps:** `/manage-issue create`, `/learn-decompose <path>`, `/learn-follow <path>`
|
|
69
|
-
</execution>
|
|
70
|
-
|
|
71
|
-
<error_codes>
|
|
72
|
-
| Code | Severity | Condition | Recovery |
|
|
73
|
-
|------|----------|-----------|----------|
|
|
74
|
-
| E001 | error | Target not resolvable | Verify path/ID |
|
|
75
|
-
| E002 | error | Unknown --mode value | Use: review, challenge, consult |
|
|
76
|
-
| W001 | warning | Persona agent failed — partial perspectives | Proceed with available agents |
|
|
77
|
-
| W003 | warning | Git diff empty for HEAD/staged | Use file path instead |
|
|
78
|
-
</error_codes>
|
|
79
|
-
|
|
80
|
-
<success_criteria>
|
|
81
|
-
- [ ] Target resolved and context loaded
|
|
82
|
-
- [ ] Mode executed: review (3 parallel agents), challenge (adversarial), or consult (interactive)
|
|
83
|
-
- [ ] Synthesis produced with agreements, disagreements, verdict
|
|
84
|
-
- [ ] Report written to `opinion-{slug}-{date}.md`
|
|
85
|
-
- [ ] Non-trivial findings appended to `lessons.jsonl`
|
|
86
|
-
</success_criteria>
|
|
1
|
+
---
|
|
2
|
+
name: learn-second-opinion
|
|
3
|
+
description: Get alternative perspectives -- review, challenge, or consult
|
|
4
|
+
argument-hint: "[-y|--yes] [-c|--concurrency 3] [--continue] \"<target> [--mode review|challenge|consult]\""
|
|
5
|
+
allowed-tools: spawn_agents_on_csv, Read, Write, Edit, Bash, Glob, Grep, AskUserQuestion
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<purpose>
|
|
9
|
+
Structured second-opinion for code, decisions, or plans. Three modes:
|
|
10
|
+
- **review** (default): 3 parallel persona agents independently assess target via spawn_agents_on_csv
|
|
11
|
+
- **challenge**: single adversarial agent via spawn_agents_on_csv (1 worker)
|
|
12
|
+
- **consult**: interactive Q&A (no CSV wave — direct orchestration)
|
|
13
|
+
|
|
14
|
+
Findings persist to `lessons.jsonl`. Decoupled from phase lifecycle.
|
|
15
|
+
</purpose>
|
|
16
|
+
|
|
17
|
+
<context>
|
|
18
|
+
$ARGUMENTS — target and optional flags.
|
|
19
|
+
|
|
20
|
+
**Target resolution (auto-detected):**
|
|
21
|
+
- File path → analyze file content
|
|
22
|
+
- Wiki ID (`type-slug`) → fetch via `maestro wiki get`
|
|
23
|
+
- `HEAD` / `staged` → analyze git diff
|
|
24
|
+
- Phase number → analyze phase plan
|
|
25
|
+
|
|
26
|
+
**Flags:**
|
|
27
|
+
- `--mode review` — 3-persona parallel review (default)
|
|
28
|
+
- `--mode challenge` — Adversarial single-agent analysis
|
|
29
|
+
- `--mode consult` — Interactive Q&A session
|
|
30
|
+
|
|
31
|
+
**Output**: `.workflow/learning/opinion-{slug}-{date}.md`
|
|
32
|
+
</context>
|
|
33
|
+
|
|
34
|
+
<execution>
|
|
35
|
+
|
|
36
|
+
### Phase 1: Resolve Target + Load Context
|
|
37
|
+
Resolve target to content. Load specs, wiki search, prior lessons for context brief.
|
|
38
|
+
|
|
39
|
+
### Phase 2: Execute Mode
|
|
40
|
+
|
|
41
|
+
#### Review Mode (spawn_agents_on_csv)
|
|
42
|
+
|
|
43
|
+
| id | persona | focus | grading |
|
|
44
|
+
|----|---------|-------|---------|
|
|
45
|
+
| 1 | pragmatist | Simplicity, YAGNI, maintenance cost, readability | complexity score, abstraction depth |
|
|
46
|
+
| 2 | purist | Correctness, type safety, edge cases, error handling | error paths, type completeness |
|
|
47
|
+
| 3 | strategist | Scalability, extensibility, architecture alignment | coupling, cohesion |
|
|
48
|
+
| 4 | synthesis | Merge verdicts → agreements, disagreements, top 3 recommendations | combined verdict |
|
|
49
|
+
|
|
50
|
+
Wave 1: 3 persona agents in parallel. Wave 2: synthesis agent with wave 1 findings as prev_context.
|
|
51
|
+
|
|
52
|
+
Each persona returns: `{ persona, verdict: approve|concern|reject, confidence, findings: [{severity, description, location, suggestion}], summary }`
|
|
53
|
+
|
|
54
|
+
#### Challenge Mode
|
|
55
|
+
Single agent via spawn_agents_on_csv (1 worker). Adversarial analysis with forcing questions:
|
|
56
|
+
- "What assumption would invalidate this entire approach?"
|
|
57
|
+
- "What's the simplest thing that breaks this?"
|
|
58
|
+
- "What's the implicit contract that isn't enforced?"
|
|
59
|
+
|
|
60
|
+
#### Consult Mode
|
|
61
|
+
Interactive loop via AskUserQuestion. Agent studies target, answers questions with code references. Compile Q&A into report on exit.
|
|
62
|
+
|
|
63
|
+
### Phase 3: Persist
|
|
64
|
+
1. Write `opinion-{slug}-{date}.md` with per-persona findings + synthesis
|
|
65
|
+
2. Append non-trivial findings to `lessons.jsonl` (source: "second-opinion")
|
|
66
|
+
3. Display summary with verdict and next steps
|
|
67
|
+
|
|
68
|
+
**Next steps:** `/manage-issue create`, `/learn-decompose <path>`, `/learn-follow <path>`
|
|
69
|
+
</execution>
|
|
70
|
+
|
|
71
|
+
<error_codes>
|
|
72
|
+
| Code | Severity | Condition | Recovery |
|
|
73
|
+
|------|----------|-----------|----------|
|
|
74
|
+
| E001 | error | Target not resolvable | Verify path/ID |
|
|
75
|
+
| E002 | error | Unknown --mode value | Use: review, challenge, consult |
|
|
76
|
+
| W001 | warning | Persona agent failed — partial perspectives | Proceed with available agents |
|
|
77
|
+
| W003 | warning | Git diff empty for HEAD/staged | Use file path instead |
|
|
78
|
+
</error_codes>
|
|
79
|
+
|
|
80
|
+
<success_criteria>
|
|
81
|
+
- [ ] Target resolved and context loaded
|
|
82
|
+
- [ ] Mode executed: review (3 parallel agents), challenge (adversarial), or consult (interactive)
|
|
83
|
+
- [ ] Synthesis produced with agreements, disagreements, verdict
|
|
84
|
+
- [ ] Report written to `opinion-{slug}-{date}.md`
|
|
85
|
+
- [ ] Non-trivial findings appended to `lessons.jsonl`
|
|
86
|
+
</success_criteria>
|