maestro-flow 0.3.10 → 0.3.11
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-collab-planner.md +1 -1
- package/.claude/agents/workflow-executor.md +1 -1
- package/.claude/agents/workflow-plan-checker.md +1 -1
- package/.claude/agents/workflow-planner.md +1 -1
- package/.claude/commands/learn-decompose.md +176 -176
- package/.claude/commands/learn-follow.md +167 -167
- package/.claude/commands/learn-retro.md +1 -1
- package/.claude/commands/maestro-coordinate.md +1 -3
- package/.claude/commands/manage-harvest.md +131 -131
- package/.claude/commands/manage-issue.md +2 -2
- package/.claude/commands/spec-add.md +67 -56
- package/.claude/commands/spec-load.md +66 -64
- package/.claude/commands/spec-setup.md +5 -9
- package/.codex/skills/learn-decompose/SKILL.md +119 -0
- package/.codex/skills/learn-follow/SKILL.md +83 -0
- package/.codex/skills/learn-investigate/SKILL.md +83 -0
- package/.codex/skills/learn-retro/SKILL.md +83 -0
- package/.codex/skills/learn-second-opinion/SKILL.md +86 -0
- package/.codex/skills/maestro/SKILL.md +151 -279
- package/.codex/skills/maestro-analyze/SKILL.md +59 -71
- package/.codex/skills/maestro-brainstorm/SKILL.md +452 -463
- package/.codex/skills/maestro-chain/SKILL.md +95 -110
- package/.codex/skills/maestro-coordinate/SKILL.md +68 -234
- package/.codex/skills/maestro-execute/SKILL.md +435 -446
- package/.codex/skills/maestro-fork/SKILL.md +68 -0
- package/.codex/skills/maestro-init/SKILL.md +171 -167
- package/.codex/skills/maestro-learn/SKILL.md +80 -0
- package/.codex/skills/maestro-link-coordinate/SKILL.md +224 -220
- package/.codex/skills/maestro-merge/SKILL.md +62 -0
- package/.codex/skills/maestro-milestone-audit/SKILL.md +108 -103
- package/.codex/skills/maestro-milestone-complete/SKILL.md +155 -149
- package/.codex/skills/maestro-milestone-release/SKILL.md +70 -0
- package/.codex/skills/maestro-overlay/SKILL.md +188 -185
- package/.codex/skills/maestro-plan/SKILL.md +58 -69
- package/.codex/skills/maestro-quick/SKILL.md +26 -23
- package/.codex/skills/maestro-roadmap/SKILL.md +65 -73
- package/.codex/skills/maestro-spec-generate/SKILL.md +66 -74
- package/.codex/skills/maestro-ui-design/SKILL.md +34 -31
- package/.codex/skills/maestro-verify/SKILL.md +556 -566
- package/.codex/skills/manage-codebase-rebuild/SKILL.md +397 -405
- package/.codex/skills/manage-codebase-refresh/SKILL.md +93 -82
- package/.codex/skills/manage-harvest/SKILL.md +82 -0
- package/.codex/skills/manage-issue/SKILL.md +80 -65
- package/.codex/skills/manage-issue-discover/SKILL.md +491 -503
- package/.codex/skills/manage-learn/SKILL.md +190 -186
- package/.codex/skills/manage-memory/SKILL.md +95 -72
- package/.codex/skills/manage-memory-capture/SKILL.md +99 -86
- package/.codex/skills/manage-status/SKILL.md +102 -89
- package/.codex/skills/quality-business-test/SKILL.md +228 -223
- package/.codex/skills/quality-debug/SKILL.md +54 -66
- package/.codex/skills/quality-integration-test/SKILL.md +532 -544
- package/.codex/skills/quality-refactor/SKILL.md +197 -191
- package/.codex/skills/quality-retrospective/SKILL.md +512 -505
- package/.codex/skills/quality-review/SKILL.md +93 -105
- package/.codex/skills/quality-sync/SKILL.md +101 -89
- package/.codex/skills/quality-test/SKILL.md +202 -198
- package/.codex/skills/quality-test-gen/SKILL.md +93 -104
- package/.codex/skills/spec-add/SKILL.md +58 -39
- package/.codex/skills/spec-load/SKILL.md +45 -40
- package/.codex/skills/spec-map/SKILL.md +180 -182
- package/.codex/skills/spec-setup/SKILL.md +94 -76
- package/.codex/skills/team-coordinate/SKILL.md +346 -357
- package/.codex/skills/team-executor/SKILL.md +70 -112
- package/.codex/skills/team-lifecycle-v4/SKILL.md +311 -299
- package/.codex/skills/team-quality-assurance/SKILL.md +234 -227
- package/.codex/skills/team-review/SKILL.md +232 -225
- package/.codex/skills/team-tech-debt/SKILL.md +78 -100
- package/.codex/skills/team-testing/SKILL.md +242 -235
- package/.codex/skills/wiki-connect/SKILL.md +75 -0
- package/.codex/skills/wiki-digest/SKILL.md +87 -0
- package/README.md +7 -4
- package/README.zh-CN.md +7 -4
- package/dashboard/dist-server/dashboard/src/server/routes/specs.d.ts +1 -1
- package/dashboard/dist-server/dashboard/src/server/routes/specs.js +75 -30
- package/dashboard/dist-server/dashboard/src/server/routes/specs.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/state/event-bus.d.ts +5 -0
- package/dashboard/dist-server/dashboard/src/server/state/event-bus.js +5 -0
- package/dashboard/dist-server/dashboard/src/server/state/event-bus.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/shared/constants.js +5 -0
- package/dashboard/dist-server/dashboard/src/shared/constants.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/shared/team-types.d.ts +21 -0
- package/dashboard/dist-server/dashboard/src/shared/team-types.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/shared/types.d.ts +3 -2
- package/dashboard/dist-server/dashboard/src/shared/ws-protocol.d.ts +1 -1
- package/dashboard/dist-server/dashboard/src/shared/ws-protocol.js.map +1 -1
- package/dashboard/dist-server/src/hooks/constants.d.ts +2 -0
- package/dashboard/dist-server/src/hooks/constants.js +2 -0
- package/dashboard/dist-server/src/hooks/constants.js.map +1 -1
- package/dist/src/commands/collab.js +4 -4
- package/dist/src/commands/collab.js.map +1 -1
- package/dist/src/commands/hooks.d.ts.map +1 -1
- package/dist/src/commands/hooks.js +66 -1
- package/dist/src/commands/hooks.js.map +1 -1
- package/dist/src/commands/spec.d.ts.map +1 -1
- package/dist/src/commands/spec.js +7 -2
- package/dist/src/commands/spec.js.map +1 -1
- package/dist/src/hooks/constants.d.ts +2 -0
- package/dist/src/hooks/constants.d.ts.map +1 -1
- package/dist/src/hooks/constants.js +2 -0
- package/dist/src/hooks/constants.js.map +1 -1
- package/dist/src/hooks/guards/index.d.ts +1 -0
- package/dist/src/hooks/guards/index.d.ts.map +1 -1
- package/dist/src/hooks/guards/index.js +1 -0
- package/dist/src/hooks/guards/index.js.map +1 -1
- package/dist/src/hooks/guards/spec-validator.d.ts +25 -0
- package/dist/src/hooks/guards/spec-validator.d.ts.map +1 -0
- package/dist/src/hooks/guards/spec-validator.js +66 -0
- package/dist/src/hooks/guards/spec-validator.js.map +1 -0
- package/dist/src/hooks/keyword-spec-injector.d.ts +21 -0
- package/dist/src/hooks/keyword-spec-injector.d.ts.map +1 -0
- package/dist/src/hooks/keyword-spec-injector.js +96 -0
- package/dist/src/hooks/keyword-spec-injector.js.map +1 -0
- package/dist/src/hooks/plugins/spec-injection-plugin.d.ts +2 -1
- package/dist/src/hooks/plugins/spec-injection-plugin.d.ts.map +1 -1
- package/dist/src/hooks/plugins/spec-injection-plugin.js +21 -12
- package/dist/src/hooks/plugins/spec-injection-plugin.js.map +1 -1
- package/dist/src/hooks/spec-bridge.d.ts +40 -0
- package/dist/src/hooks/spec-bridge.d.ts.map +1 -0
- package/dist/src/hooks/spec-bridge.js +97 -0
- package/dist/src/hooks/spec-bridge.js.map +1 -0
- package/dist/src/hooks/spec-injector.d.ts.map +1 -1
- package/dist/src/hooks/spec-injector.js +18 -12
- package/dist/src/hooks/spec-injector.js.map +1 -1
- package/dist/src/team/phase-orchestrator.d.ts +52 -0
- package/dist/src/team/phase-orchestrator.d.ts.map +1 -0
- package/dist/src/team/phase-orchestrator.js +165 -0
- package/dist/src/team/phase-orchestrator.js.map +1 -0
- package/dist/src/team/phase-types.d.ts +51 -0
- package/dist/src/team/phase-types.d.ts.map +1 -0
- package/dist/src/team/phase-types.js +41 -0
- package/dist/src/team/phase-types.js.map +1 -0
- package/dist/src/tools/index.d.ts.map +1 -1
- package/dist/src/tools/index.js +6 -0
- package/dist/src/tools/index.js.map +1 -1
- package/dist/src/tools/spec-entry-parser.d.ts +56 -0
- package/dist/src/tools/spec-entry-parser.d.ts.map +1 -0
- package/dist/src/tools/spec-entry-parser.js +196 -0
- package/dist/src/tools/spec-entry-parser.js.map +1 -0
- package/dist/src/tools/spec-init.d.ts.map +1 -1
- package/dist/src/tools/spec-init.js +66 -92
- package/dist/src/tools/spec-init.js.map +1 -1
- package/dist/src/tools/spec-keyword-index.d.ts +30 -0
- package/dist/src/tools/spec-keyword-index.d.ts.map +1 -0
- package/dist/src/tools/spec-keyword-index.js +101 -0
- package/dist/src/tools/spec-keyword-index.js.map +1 -0
- package/dist/src/tools/spec-loader.d.ts +3 -3
- package/dist/src/tools/spec-loader.d.ts.map +1 -1
- package/dist/src/tools/spec-loader.js +49 -23
- package/dist/src/tools/spec-loader.js.map +1 -1
- package/dist/src/tools/team-agents.d.ts +27 -0
- package/dist/src/tools/team-agents.d.ts.map +1 -0
- package/dist/src/tools/team-agents.js +362 -0
- package/dist/src/tools/team-agents.js.map +1 -0
- package/dist/src/tools/team-mailbox.d.ts +40 -0
- package/dist/src/tools/team-mailbox.d.ts.map +1 -0
- package/dist/src/tools/team-mailbox.js +384 -0
- package/dist/src/tools/team-mailbox.js.map +1 -0
- package/dist/src/tools/team-msg.d.ts +17 -8
- package/dist/src/tools/team-msg.d.ts.map +1 -1
- package/dist/src/tools/team-msg.js +110 -13
- package/dist/src/tools/team-msg.js.map +1 -1
- package/dist/src/tools/team-tasks-mcp.d.ts +27 -0
- package/dist/src/tools/team-tasks-mcp.d.ts.map +1 -0
- package/dist/src/tools/team-tasks-mcp.js +408 -0
- package/dist/src/tools/team-tasks-mcp.js.map +1 -0
- package/package.json +2 -1
- package/workflows/analyze.md +816 -816
- package/workflows/brainstorm.md +471 -471
- package/workflows/codebase-rebuild.md +332 -332
- package/workflows/codebase-refresh.md +240 -240
- package/workflows/execute.md +1 -1
- package/workflows/harvest.md +420 -420
- package/workflows/integration-test.md +343 -343
- package/workflows/issue-discover.md +414 -414
- package/workflows/map.md +111 -111
- package/workflows/milestone-complete.md +176 -176
- package/workflows/plan.md +1 -1
- package/workflows/quick.md +497 -497
- package/workflows/refactor.md +300 -300
- package/workflows/roadmap.md +335 -335
- package/workflows/spec-generate.md +640 -640
- package/workflows/specs-add.md +46 -81
- package/workflows/specs-load.md +15 -17
- package/workflows/specs-setup.md +40 -161
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: learn-retro
|
|
3
|
+
description: Unified retrospective via CSV wave pipeline. Git lens (commit metrics, session detection, hotspots) and decision lens (multi-perspective evaluation via 3 parallel agents) with lens-based selection. Persists insights to lessons.jsonl.
|
|
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-test-gen <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>
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: learn-second-opinion
|
|
3
|
+
description: Multi-perspective analysis via CSV wave pipeline. Review mode spawns 3 parallel persona agents (pragmatist, purist, strategist), then synthesis agent merges verdicts. Also supports challenge and consult modes. Persists findings to lessons.jsonl.
|
|
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>
|