maestro-flow 0.3.37 → 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.
Files changed (186) hide show
  1. package/.claude/agents/workflow-analyzer.md +2 -0
  2. package/.claude/agents/workflow-debugger.md +2 -0
  3. package/.claude/agents/workflow-executor.md +2 -0
  4. package/.claude/agents/workflow-integration-checker.md +1 -0
  5. package/.claude/agents/workflow-nyquist-auditor.md +1 -0
  6. package/.claude/agents/workflow-planner.md +2 -0
  7. package/.claude/agents/workflow-reviewer.md +2 -0
  8. package/.claude/agents/workflow-verifier.md +2 -0
  9. package/.claude/commands/learn-decompose.md +176 -176
  10. package/.claude/commands/learn-follow.md +167 -167
  11. package/.claude/commands/learn-investigate.md +221 -221
  12. package/.claude/commands/learn-retro.md +303 -303
  13. package/.claude/commands/learn-second-opinion.md +167 -167
  14. package/.claude/commands/maestro-amend.md +300 -300
  15. package/.claude/commands/maestro-analyze.md +126 -126
  16. package/.claude/commands/maestro-brainstorm.md +100 -100
  17. package/.claude/commands/maestro-composer.md +354 -354
  18. package/.claude/commands/maestro-execute.md +120 -114
  19. package/.claude/commands/maestro-fork.md +86 -86
  20. package/.claude/commands/maestro-init.md +78 -78
  21. package/.claude/commands/maestro-learn.md +140 -140
  22. package/.claude/commands/maestro-link-coordinate.md +1 -1
  23. package/.claude/commands/maestro-merge.md +61 -61
  24. package/.claude/commands/maestro-milestone-release.md +96 -96
  25. package/.claude/commands/maestro-overlay.md +178 -178
  26. package/.claude/commands/maestro-plan.md +150 -138
  27. package/.claude/commands/maestro-player.md +404 -404
  28. package/.claude/commands/maestro-quick.md +56 -56
  29. package/.claude/commands/maestro-ralph-execute.md +7 -18
  30. package/.claude/commands/maestro-ralph.md +9 -3
  31. package/.claude/commands/maestro-roadmap.md +1 -1
  32. package/.claude/commands/maestro-ui-design.md +93 -93
  33. package/.claude/commands/maestro-update.md +176 -176
  34. package/.claude/commands/maestro-verify.md +96 -90
  35. package/.claude/commands/maestro.md +121 -121
  36. package/.claude/commands/manage-codebase-rebuild.md +75 -75
  37. package/.claude/commands/manage-codebase-refresh.md +57 -57
  38. package/.claude/commands/manage-harvest.md +94 -94
  39. package/.claude/commands/manage-issue-discover.md +77 -77
  40. package/.claude/commands/manage-issue.md +73 -73
  41. package/.claude/commands/manage-knowhow-capture.md +193 -193
  42. package/.claude/commands/manage-knowhow.md +77 -77
  43. package/.claude/commands/manage-learn.md +67 -67
  44. package/.claude/commands/manage-status.md +51 -51
  45. package/.claude/commands/manage-wiki.md +62 -62
  46. package/.claude/commands/quality-auto-test.md +1 -1
  47. package/.claude/commands/quality-debug.md +121 -115
  48. package/.claude/commands/quality-refactor.md +55 -55
  49. package/.claude/commands/quality-retrospective.md +78 -78
  50. package/.claude/commands/quality-review.md +114 -108
  51. package/.claude/commands/quality-sync.md +51 -51
  52. package/.claude/commands/quality-test.md +103 -103
  53. package/.claude/commands/spec-add.md +49 -49
  54. package/.claude/commands/spec-load.md +51 -51
  55. package/.claude/commands/spec-remove.md +51 -51
  56. package/.claude/commands/spec-setup.md +51 -51
  57. package/.claude/commands/wiki-connect.md +62 -62
  58. package/.claude/commands/wiki-digest.md +69 -69
  59. package/.codex/skills/learn-decompose/SKILL.md +113 -113
  60. package/.codex/skills/learn-follow/SKILL.md +1 -1
  61. package/.codex/skills/learn-investigate/SKILL.md +83 -83
  62. package/.codex/skills/learn-retro/SKILL.md +83 -83
  63. package/.codex/skills/learn-second-opinion/SKILL.md +86 -86
  64. package/.codex/skills/maestro/SKILL.md +304 -304
  65. package/.codex/skills/maestro-analyze/SKILL.md +9 -8
  66. package/.codex/skills/maestro-brainstorm/SKILL.md +442 -397
  67. package/.codex/skills/maestro-composer/SKILL.md +213 -213
  68. package/.codex/skills/maestro-execute/SKILL.md +346 -318
  69. package/.codex/skills/maestro-fork/SKILL.md +56 -2
  70. package/.codex/skills/maestro-init/SKILL.md +40 -16
  71. package/.codex/skills/maestro-learn/SKILL.md +80 -80
  72. package/.codex/skills/maestro-link-coordinate/SKILL.md +257 -257
  73. package/.codex/skills/maestro-merge/SKILL.md +1 -1
  74. package/.codex/skills/maestro-milestone-audit/SKILL.md +1 -1
  75. package/.codex/skills/maestro-milestone-complete/SKILL.md +40 -9
  76. package/.codex/skills/maestro-milestone-release/SKILL.md +70 -70
  77. package/.codex/skills/maestro-overlay/SKILL.md +1 -1
  78. package/.codex/skills/maestro-plan/SKILL.md +19 -4
  79. package/.codex/skills/maestro-player/SKILL.md +323 -323
  80. package/.codex/skills/maestro-quick/SKILL.md +1 -1
  81. package/.codex/skills/maestro-ralph/SKILL.md +681 -578
  82. package/.codex/skills/maestro-roadmap/SKILL.md +518 -468
  83. package/.codex/skills/maestro-ui-design/SKILL.md +109 -12
  84. package/.codex/skills/maestro-verify/SKILL.md +27 -9
  85. package/.codex/skills/manage-codebase-rebuild/SKILL.md +3 -2
  86. package/.codex/skills/manage-codebase-refresh/SKILL.md +1 -1
  87. package/.codex/skills/manage-harvest/SKILL.md +91 -91
  88. package/.codex/skills/manage-issue/SKILL.md +19 -6
  89. package/.codex/skills/manage-issue-discover/SKILL.md +1 -1
  90. package/.codex/skills/manage-knowhow/SKILL.md +95 -95
  91. package/.codex/skills/manage-knowhow-capture/SKILL.md +110 -110
  92. package/.codex/skills/manage-learn/SKILL.md +1 -1
  93. package/.codex/skills/manage-status/SKILL.md +1 -1
  94. package/.codex/skills/manage-wiki/SKILL.md +55 -55
  95. package/.codex/skills/quality-auto-test/SKILL.md +547 -547
  96. package/.codex/skills/quality-debug/SKILL.md +339 -334
  97. package/.codex/skills/quality-refactor/SKILL.md +1 -1
  98. package/.codex/skills/quality-retrospective/SKILL.md +292 -292
  99. package/.codex/skills/quality-review/SKILL.md +365 -364
  100. package/.codex/skills/quality-sync/SKILL.md +1 -1
  101. package/.codex/skills/quality-test/SKILL.md +498 -498
  102. package/.codex/skills/spec-add/SKILL.md +101 -101
  103. package/.codex/skills/spec-load/SKILL.md +77 -77
  104. package/.codex/skills/spec-map/SKILL.md +1 -1
  105. package/.codex/skills/spec-remove/SKILL.md +69 -69
  106. package/.codex/skills/spec-setup/SKILL.md +1 -1
  107. package/.codex/skills/team-coordinate/SKILL.md +2 -1
  108. package/.codex/skills/team-executor/SKILL.md +116 -115
  109. package/.codex/skills/team-lifecycle-v4/SKILL.md +2 -1
  110. package/.codex/skills/team-lifecycle-v4/instructions/agent-instruction.md +14 -6
  111. package/.codex/skills/team-lifecycle-v4/roles/analyst/role.md +16 -4
  112. package/.codex/skills/team-lifecycle-v4/roles/executor/commands/implement.md +7 -1
  113. package/.codex/skills/team-lifecycle-v4/roles/planner/role.md +16 -4
  114. package/.codex/skills/team-lifecycle-v4/roles/writer/role.md +8 -2
  115. package/.codex/skills/team-quality-assurance/SKILL.md +2 -1
  116. package/.codex/skills/team-quality-assurance/roles/scout/role.md +9 -2
  117. package/.codex/skills/team-review/SKILL.md +2 -1
  118. package/.codex/skills/team-review/roles/reviewer/role.md +10 -1
  119. package/.codex/skills/team-review/roles/scanner/role.md +10 -1
  120. package/.codex/skills/team-tech-debt/SKILL.md +144 -143
  121. package/.codex/skills/team-tech-debt/roles/executor/role.md +9 -5
  122. package/.codex/skills/team-tech-debt/roles/scanner/role.md +10 -0
  123. package/.codex/skills/team-tech-debt/roles/validator/role.md +8 -2
  124. package/.codex/skills/team-testing/SKILL.md +2 -1
  125. package/.codex/skills/team-testing/roles/executor/role.md +8 -2
  126. package/.codex/skills/team-testing/roles/generator/role.md +8 -2
  127. package/.codex/skills/wiki-connect/SKILL.md +73 -73
  128. package/.codex/skills/wiki-digest/SKILL.md +87 -87
  129. package/README.md +6 -0
  130. package/README.zh-CN.md +6 -0
  131. package/dashboard/dist-server/dashboard/src/server/agents/claude-code-adapter.js +4 -0
  132. package/dashboard/dist-server/dashboard/src/server/agents/claude-code-adapter.js.map +1 -1
  133. package/dashboard/dist-server/dashboard/src/server/agents/codex-cli-adapter.js +118 -7
  134. package/dashboard/dist-server/dashboard/src/server/agents/codex-cli-adapter.js.map +1 -1
  135. package/dashboard/dist-server/shared/agent-types.d.ts +2 -0
  136. package/dashboard/dist-server/src/agents/cli-agent-runner.d.ts +2 -0
  137. package/dashboard/dist-server/src/agents/cli-agent-runner.js +4 -0
  138. package/dashboard/dist-server/src/agents/cli-agent-runner.js.map +1 -1
  139. package/dashboard/dist-server/src/commands/delegate.d.ts +2 -0
  140. package/dashboard/dist-server/src/commands/delegate.js +18 -0
  141. package/dashboard/dist-server/src/commands/delegate.js.map +1 -1
  142. package/dashboard/dist-server/src/config/cli-tools-config.d.ts +6 -0
  143. package/dashboard/dist-server/src/config/cli-tools-config.js +2 -0
  144. package/dashboard/dist-server/src/config/cli-tools-config.js.map +1 -1
  145. package/dist/shared/agent-types.d.ts +2 -0
  146. package/dist/shared/agent-types.d.ts.map +1 -1
  147. package/dist/src/agents/cli-agent-runner.d.ts +2 -0
  148. package/dist/src/agents/cli-agent-runner.d.ts.map +1 -1
  149. package/dist/src/agents/cli-agent-runner.js +4 -0
  150. package/dist/src/agents/cli-agent-runner.js.map +1 -1
  151. package/dist/src/commands/config.d.ts.map +1 -1
  152. package/dist/src/commands/config.js +29 -1
  153. package/dist/src/commands/config.js.map +1 -1
  154. package/dist/src/commands/delegate.d.ts +2 -0
  155. package/dist/src/commands/delegate.d.ts.map +1 -1
  156. package/dist/src/commands/delegate.js +18 -0
  157. package/dist/src/commands/delegate.js.map +1 -1
  158. package/dist/src/commands/launcher.d.ts.map +1 -1
  159. package/dist/src/commands/launcher.js +27 -4
  160. package/dist/src/commands/launcher.js.map +1 -1
  161. package/dist/src/config/cli-tools-config.d.ts +6 -0
  162. package/dist/src/config/cli-tools-config.d.ts.map +1 -1
  163. package/dist/src/config/cli-tools-config.js +2 -0
  164. package/dist/src/config/cli-tools-config.js.map +1 -1
  165. package/dist/src/core/overlay/applier.d.ts.map +1 -1
  166. package/dist/src/core/overlay/applier.js +65 -5
  167. package/dist/src/core/overlay/applier.js.map +1 -1
  168. package/dist/src/core/overlay/loader.d.ts.map +1 -1
  169. package/dist/src/core/overlay/loader.js +9 -4
  170. package/dist/src/core/overlay/loader.js.map +1 -1
  171. package/dist/src/core/overlay/types.d.ts +2 -0
  172. package/dist/src/core/overlay/types.d.ts.map +1 -1
  173. package/dist/src/core/overlay/types.js +2 -0
  174. package/dist/src/core/overlay/types.js.map +1 -1
  175. package/dist/src/tui/tools-ui/ToolsDashboard.d.ts.map +1 -1
  176. package/dist/src/tui/tools-ui/ToolsDashboard.js +1 -1
  177. package/dist/src/tui/tools-ui/ToolsDashboard.js.map +1 -1
  178. package/dist/src/tui/tools-ui/ToolsOverview.d.ts.map +1 -1
  179. package/dist/src/tui/tools-ui/ToolsOverview.js +51 -4
  180. package/dist/src/tui/tools-ui/ToolsOverview.js.map +1 -1
  181. package/package.json +1 -1
  182. package/shared/agent-types.ts +2 -0
  183. package/workflows/delegate-protocol.codex.md +65 -0
  184. package/workflows/issue-analyze.md +2 -3
  185. package/workflows/issue-gaps-analyze.codex.md +260 -0
  186. package/workflows/issue-gaps-analyze.md +214 -0
@@ -1,67 +1,67 @@
1
- ---
2
- name: manage-learn
3
- description: Capture, search, and review atomic learning insights and tips into .workflow/learning/lessons.jsonl
4
- argument-hint: "[<text>|tip <text>|list|search|show <id>] [--category ...] [--tag t1,t2] [--phase N] [--confidence ...]"
5
- allowed-tools:
6
- - Read
7
- - Write
8
- - Edit
9
- - Bash
10
- - Glob
11
- - Grep
12
- - AskUserQuestion
13
- ---
14
- <purpose>
15
- Unified atomic knowledge capture for the workflow learning library. Captures two types of knowledge:
16
- - **Insights**: Timeless "eureka moment" entries (patterns, gotchas, techniques) — the default mode
17
- - **Tips**: Quick contextual notes for cross-session recovery (formerly in `manage-knowhow-capture tip`)
18
-
19
- Both types are stored in `.workflow/learning/lessons.jsonl` with auto-detected phase linkage and keyword-based category inference. Tips are distinguished by `source: "tip"` and implicitly tagged `tip`. Same store as retrospective output, so search and list see the entire knowledge corpus.
20
- </purpose>
21
-
22
- <required_reading>
23
- @~/.maestro/workflows/learn.md
24
- </required_reading>
25
-
26
- <context>
27
- Arguments: $ARGUMENTS
28
-
29
- **Modes (auto-detected from first token):**
30
- - `"<insight text>"` (or any non-keyword text) → insight capture mode
31
- - `tip <text>` → tip capture mode (quick contextual note, auto-tagged `tip`)
32
- - `list` → list recent entries (default 20)
33
- - `search <query>` → text search across lessons.jsonl
34
- - `show <INS-id>` → full detail with phase context
35
- - empty → AskUserQuestion to prompt for text
36
-
37
- Flags, storage paths, and shared store rationale defined in workflow learn.md.
38
- </context>
39
-
40
- <execution>
41
- Follow `~/.maestro/workflows/learn.md` Stages 1–5 in order.
42
- </execution>
43
-
44
- <error_codes>
45
- | Code | Severity | Description | Stage |
46
- |------|----------|-------------|-------|
47
- | E001 | error | `.workflow/` not initialized — run `/maestro-init` first | parse_input |
48
- | E002 | error | Unknown `--category` value (allowed: pattern, antipattern, decision, tool, gotcha, technique, tip) | parse_input |
49
- | E003 | error | `show` mode requires an INS-id argument | show |
50
- | E004 | error | Insight id not found in lessons.jsonl | show |
51
- | W001 | warning | Auto-phase detection found a current_phase but no matching artifact in registry; phase set to null | capture |
52
- | W002 | warning | learning-index.json out of sync with lessons.jsonl (different row count); offer to rebuild | list/search |
53
- </error_codes>
54
-
55
- <success_criteria>
56
- - [ ] Mode correctly routed (capture / list / search / show)
57
- - [ ] Capture: `lessons.jsonl` row appended with valid JSON and all required fields
58
- - [ ] Capture: `learning-index.json` updated with matching entry
59
- - [ ] Capture: phase auto-link resolves correctly via artifact registry when `state.json` has `current_phase`
60
- - [ ] Capture: category inference produces a sensible default when `--category` absent
61
- - [ ] List: filters apply, output sorted newest-first, default limit 20
62
- - [ ] Search: results ranked by title (3) > tags (2) > summary (1) match
63
- - [ ] Show: full insight displayed with phase context and routed-artifact link if any
64
- - [ ] No file modifications outside `.workflow/learning/`
65
- - [ ] Confirmation banner displayed with INS-id and next-step hints
66
- - [ ] Next step: `/manage-learn list` to browse, or `/manage-learn search <query>` to find related insights
67
- </success_criteria>
1
+ ---
2
+ name: manage-learn
3
+ description: Capture and search learning insights and tips
4
+ argument-hint: "[<text>|tip <text>|list|search|show <id>] [--category ...] [--tag t1,t2] [--phase N] [--confidence ...]"
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Edit
9
+ - Bash
10
+ - Glob
11
+ - Grep
12
+ - AskUserQuestion
13
+ ---
14
+ <purpose>
15
+ Unified atomic knowledge capture for the workflow learning library. Captures two types of knowledge:
16
+ - **Insights**: Timeless "eureka moment" entries (patterns, gotchas, techniques) — the default mode
17
+ - **Tips**: Quick contextual notes for cross-session recovery (formerly in `manage-knowhow-capture tip`)
18
+
19
+ Both types are stored in `.workflow/learning/lessons.jsonl` with auto-detected phase linkage and keyword-based category inference. Tips are distinguished by `source: "tip"` and implicitly tagged `tip`. Same store as retrospective output, so search and list see the entire knowledge corpus.
20
+ </purpose>
21
+
22
+ <required_reading>
23
+ @~/.maestro/workflows/learn.md
24
+ </required_reading>
25
+
26
+ <context>
27
+ Arguments: $ARGUMENTS
28
+
29
+ **Modes (auto-detected from first token):**
30
+ - `"<insight text>"` (or any non-keyword text) → insight capture mode
31
+ - `tip <text>` → tip capture mode (quick contextual note, auto-tagged `tip`)
32
+ - `list` → list recent entries (default 20)
33
+ - `search <query>` → text search across lessons.jsonl
34
+ - `show <INS-id>` → full detail with phase context
35
+ - empty → AskUserQuestion to prompt for text
36
+
37
+ Flags, storage paths, and shared store rationale defined in workflow learn.md.
38
+ </context>
39
+
40
+ <execution>
41
+ Follow `~/.maestro/workflows/learn.md` Stages 1–5 in order.
42
+ </execution>
43
+
44
+ <error_codes>
45
+ | Code | Severity | Description | Stage |
46
+ |------|----------|-------------|-------|
47
+ | E001 | error | `.workflow/` not initialized — run `/maestro-init` first | parse_input |
48
+ | E002 | error | Unknown `--category` value (allowed: pattern, antipattern, decision, tool, gotcha, technique, tip) | parse_input |
49
+ | E003 | error | `show` mode requires an INS-id argument | show |
50
+ | E004 | error | Insight id not found in lessons.jsonl | show |
51
+ | W001 | warning | Auto-phase detection found a current_phase but no matching artifact in registry; phase set to null | capture |
52
+ | W002 | warning | learning-index.json out of sync with lessons.jsonl (different row count); offer to rebuild | list/search |
53
+ </error_codes>
54
+
55
+ <success_criteria>
56
+ - [ ] Mode correctly routed (capture / list / search / show)
57
+ - [ ] Capture: `lessons.jsonl` row appended with valid JSON and all required fields
58
+ - [ ] Capture: `learning-index.json` updated with matching entry
59
+ - [ ] Capture: phase auto-link resolves correctly via artifact registry when `state.json` has `current_phase`
60
+ - [ ] Capture: category inference produces a sensible default when `--category` absent
61
+ - [ ] List: filters apply, output sorted newest-first, default limit 20
62
+ - [ ] Search: results ranked by title (3) > tags (2) > summary (1) match
63
+ - [ ] Show: full insight displayed with phase context and routed-artifact link if any
64
+ - [ ] No file modifications outside `.workflow/learning/`
65
+ - [ ] Confirmation banner displayed with INS-id and next-step hints
66
+ - [ ] Next step: `/manage-learn list` to browse, or `/manage-learn search <query>` to find related insights
67
+ </success_criteria>
@@ -1,51 +1,51 @@
1
- ---
2
- name: manage-status
3
- description: Display project dashboard with phase progress, active tasks, and next steps
4
- allowed-tools:
5
- - Read
6
- - Bash
7
- - Glob
8
- - Grep
9
- ---
10
- <purpose>
11
- Display a unified project dashboard showing artifact progress, task counts, active work, and intelligent next-step suggestions.
12
- Reads state.json artifact registry and roadmap to render a formatted overview with progress and status tables.
13
- Provides situational awareness before continuing work. Uses virtual phase view derived from artifact registry.
14
- </purpose>
15
-
16
- <required_reading>
17
- @~/.maestro/workflows/status.md
18
- </required_reading>
19
-
20
- <context>
21
- $ARGUMENTS (no arguments required)
22
-
23
- **State files read:**
24
- - `.workflow/state.json` -- project-level state machine + artifact registry
25
- - `.workflow/roadmap.md` -- milestone and phase structure
26
- - `.workflow/scratch/*/plan.json` -- plan metadata (via artifact registry paths)
27
- - `.workflow/scratch/*/.task/TASK-*.json` -- individual task statuses
28
- </context>
29
-
30
- <execution>
31
- Follow '~/.maestro/workflows/status.md' completely.
32
-
33
- Next-step decision table defined in workflow status.md Step 5.
34
- </execution>
35
-
36
- <error_codes>
37
- | Code | Severity | Description | Stage |
38
- |------|----------|-------------|-------|
39
- | E001 | fatal | `.workflow/` not initialized -- run `/maestro-init` first | parse_input |
40
- | E002 | fatal | `state.json` missing or corrupt -- project state unrecoverable | parse_input |
41
- </error_codes>
42
-
43
- <success_criteria>
44
- - [ ] Project state loaded from `state.json`
45
- - [ ] Roadmap parsed with milestone/phase structure
46
- - [ ] Per-phase progress calculated (task counts, completion %)
47
- - [ ] Dashboard rendered with progress bars and status table
48
- - [ ] Active work section shows current phase details
49
- - [ ] Next steps suggested based on current state analysis
50
- - [ ] Wiki health score displayed (or graceful unavailable message)
51
- </success_criteria>
1
+ ---
2
+ name: manage-status
3
+ description: Show project dashboard with progress and next steps
4
+ allowed-tools:
5
+ - Read
6
+ - Bash
7
+ - Glob
8
+ - Grep
9
+ ---
10
+ <purpose>
11
+ Display a unified project dashboard showing artifact progress, task counts, active work, and intelligent next-step suggestions.
12
+ Reads state.json artifact registry and roadmap to render a formatted overview with progress and status tables.
13
+ Provides situational awareness before continuing work. Uses virtual phase view derived from artifact registry.
14
+ </purpose>
15
+
16
+ <required_reading>
17
+ @~/.maestro/workflows/status.md
18
+ </required_reading>
19
+
20
+ <context>
21
+ $ARGUMENTS (no arguments required)
22
+
23
+ **State files read:**
24
+ - `.workflow/state.json` -- project-level state machine + artifact registry
25
+ - `.workflow/roadmap.md` -- milestone and phase structure
26
+ - `.workflow/scratch/*/plan.json` -- plan metadata (via artifact registry paths)
27
+ - `.workflow/scratch/*/.task/TASK-*.json` -- individual task statuses
28
+ </context>
29
+
30
+ <execution>
31
+ Follow '~/.maestro/workflows/status.md' completely.
32
+
33
+ Next-step decision table defined in workflow status.md Step 5.
34
+ </execution>
35
+
36
+ <error_codes>
37
+ | Code | Severity | Description | Stage |
38
+ |------|----------|-------------|-------|
39
+ | E001 | fatal | `.workflow/` not initialized -- run `/maestro-init` first | parse_input |
40
+ | E002 | fatal | `state.json` missing or corrupt -- project state unrecoverable | parse_input |
41
+ </error_codes>
42
+
43
+ <success_criteria>
44
+ - [ ] Project state loaded from `state.json`
45
+ - [ ] Roadmap parsed with milestone/phase structure
46
+ - [ ] Per-phase progress calculated (task counts, completion %)
47
+ - [ ] Dashboard rendered with progress bars and status table
48
+ - [ ] Active work section shows current phase details
49
+ - [ ] Next steps suggested based on current state analysis
50
+ - [ ] Wiki health score displayed (or graceful unavailable message)
51
+ </success_criteria>
@@ -1,62 +1,62 @@
1
- ---
2
- name: manage-wiki
3
- description: Wiki knowledge graph management — health dashboard, orphan cleanup, entry search, and graph statistics
4
- argument-hint: "[health|search|cleanup|stats] [options]"
5
- allowed-tools:
6
- - Read
7
- - Write
8
- - Edit
9
- - Bash
10
- - Glob
11
- - Grep
12
- - AskUserQuestion
13
- ---
14
- <purpose>
15
- Unified wiki graph management command. Provides interactive access to wiki health monitoring, entry search, orphan cleanup, and graph statistics — the day-to-day operations that keep the knowledge graph healthy.
16
-
17
- Complements `/wiki-connect` (link discovery) and `/wiki-digest` (synthesis) with operational tooling.
18
- </purpose>
19
-
20
- <required_reading>
21
- @~/.maestro/workflows/wiki-manage.md
22
- </required_reading>
23
-
24
- <context>
25
- $ARGUMENTS — subcommand and optional flags.
26
-
27
- **Subcommands:**
28
- | Subcommand | Description |
29
- |-----------|-------------|
30
- | `health` | Health dashboard — score, broken links, orphans, hubs (default) |
31
- | `search <query>` | Interactive BM25 search with follow-up actions |
32
- | `cleanup` | Find and resolve orphans, broken links, stale entries |
33
- | `stats` | Graph statistics — type distribution, tag frequency, growth trends |
34
- | No args | Same as `health` |
35
-
36
- **Flags:**
37
- - `--type <type>` — Filter by wiki type: spec, knowhow, note, lesson, issue
38
- - `--fix` — Auto-fix issues found during cleanup (remove broken links, suggest connections)
39
- - `--json` — Output in JSON format
40
- </context>
41
-
42
- <execution>
43
- Follow '~/.maestro/workflows/wiki-manage.md' completely.
44
- </execution>
45
-
46
- <error_codes>
47
- | Code | Severity | Description | Stage |
48
- |------|----------|-------------|-------|
49
- | E001 | fatal | `.workflow/` not initialized — run `/maestro-init` first | validate |
50
- | E002 | fatal | No wiki entries found — create content first | load |
51
- | E003 | error | Invalid subcommand | parse_input |
52
- | W001 | warning | Health score below 50 — graph needs attention | health |
53
- | W002 | warning | Orphan cleanup had partial failures | cleanup |
54
- </error_codes>
55
-
56
- <success_criteria>
57
- - [ ] Subcommand parsed (health/search/cleanup/stats)
58
- - [ ] Wiki data loaded via `maestro wiki` CLI
59
- - [ ] Results displayed in formatted output
60
- - [ ] If cleanup --fix: issues resolved and delta reported
61
- - [ ] Next-step suggestions provided
62
- </success_criteria>
1
+ ---
2
+ name: manage-wiki
3
+ description: Manage wiki graph — health, cleanup, search, stats
4
+ argument-hint: "[health|search|cleanup|stats] [options]"
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Edit
9
+ - Bash
10
+ - Glob
11
+ - Grep
12
+ - AskUserQuestion
13
+ ---
14
+ <purpose>
15
+ Unified wiki graph management command. Provides interactive access to wiki health monitoring, entry search, orphan cleanup, and graph statistics — the day-to-day operations that keep the knowledge graph healthy.
16
+
17
+ Complements `/wiki-connect` (link discovery) and `/wiki-digest` (synthesis) with operational tooling.
18
+ </purpose>
19
+
20
+ <required_reading>
21
+ @~/.maestro/workflows/wiki-manage.md
22
+ </required_reading>
23
+
24
+ <context>
25
+ $ARGUMENTS — subcommand and optional flags.
26
+
27
+ **Subcommands:**
28
+ | Subcommand | Description |
29
+ |-----------|-------------|
30
+ | `health` | Health dashboard — score, broken links, orphans, hubs (default) |
31
+ | `search <query>` | Interactive BM25 search with follow-up actions |
32
+ | `cleanup` | Find and resolve orphans, broken links, stale entries |
33
+ | `stats` | Graph statistics — type distribution, tag frequency, growth trends |
34
+ | No args | Same as `health` |
35
+
36
+ **Flags:**
37
+ - `--type <type>` — Filter by wiki type: spec, knowhow, note, lesson, issue
38
+ - `--fix` — Auto-fix issues found during cleanup (remove broken links, suggest connections)
39
+ - `--json` — Output in JSON format
40
+ </context>
41
+
42
+ <execution>
43
+ Follow '~/.maestro/workflows/wiki-manage.md' completely.
44
+ </execution>
45
+
46
+ <error_codes>
47
+ | Code | Severity | Description | Stage |
48
+ |------|----------|-------------|-------|
49
+ | E001 | fatal | `.workflow/` not initialized — run `/maestro-init` first | validate |
50
+ | E002 | fatal | No wiki entries found — create content first | load |
51
+ | E003 | error | Invalid subcommand | parse_input |
52
+ | W001 | warning | Health score below 50 — graph needs attention | health |
53
+ | W002 | warning | Orphan cleanup had partial failures | cleanup |
54
+ </error_codes>
55
+
56
+ <success_criteria>
57
+ - [ ] Subcommand parsed (health/search/cleanup/stats)
58
+ - [ ] Wiki data loaded via `maestro wiki` CLI
59
+ - [ ] Results displayed in formatted output
60
+ - [ ] If cleanup --fix: issues resolved and delta reported
61
+ - [ ] Next-step suggestions provided
62
+ </success_criteria>
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: quality-auto-test
3
- description: Unified automated testing via CSV layer pipeline — generates, executes, and iterates tests from PRD specs, coverage gaps, or code exploration
3
+ description: Auto-generate and run tests from specs or coverage gaps
4
4
  argument-hint: "<phase> [-y] [-c N] [--max-iter <N>] [--layer <L0-L3>] [--strategy <name>] [--dry-run] [--re-run]"
5
5
  allowed-tools:
6
6
  - spawn_agents_on_csv
@@ -1,115 +1,121 @@
1
- ---
2
- name: quality-debug
3
- description: Parallel hypothesis-driven debugging with UAT integration and structured root cause collection
4
- argument-hint: "[issue description] [--from-uat <phase>] [--parallel]"
5
- allowed-tools:
6
- - Read
7
- - Write
8
- - Edit
9
- - Bash
10
- - Glob
11
- - Grep
12
- - Agent
13
- - AskUserQuestion
14
- ---
15
- <purpose>
16
- Debug issues using scientific method with subagent isolation and persistent debug state. Three entry modes (standalone, from-UAT, parallel) and structured root cause collection with UAT feedback loop. Full algorithm defined in workflow debug.md.
17
- </purpose>
18
-
19
- <required_reading>
20
- @~/.maestro/workflows/debug.md
21
- </required_reading>
22
-
23
- <context>
24
- User's issue: $ARGUMENTS
25
-
26
- **Flags:**
27
- - `--from-uat <phase>` -- Read gaps from phase's uat.md as pre-filled symptoms
28
- - `--parallel` -- Spawn parallel debug agents (one per gap cluster)
29
-
30
- **All context via state.json.artifacts[]:**
31
-
32
- ```
33
- related = artifacts.filter(a =>
34
- a.phase === target_phase && a.milestone === current_milestone
35
- ).sort_by(completed_at asc)
36
- ```
37
-
38
- Each artifact's type determines its outputs at `.workflow/{a.path}/`:
39
- - **execute** → .summaries/, .task/ (source of code changes)
40
- - **review** → review.json (findings guide hypothesis formation)
41
- - **debug** → understanding.md, evidence.ndjson (prior investigations, avoid re-investigation)
42
- - **test** → uat.md (--from-uat gap source), .tests/
43
-
44
- Extract conclusions from related artifacts that may affect this debug session — review findings guide investigation direction, prior debug avoids redundant work.
45
-
46
- **Output**: `DEBUG_DIR = .workflow/scratch/{YYYYMMDD}-debug-P{N}-{slug}/` (P{N} = phase number when phase-scoped; omit for standalone). Output directory rules defined in workflow debug.md Step 4.
47
- </context>
48
-
49
- <execution>
50
- Follow '~/.maestro/workflows/debug.md' completely.
51
-
52
- **Register artifact on completion (phase-scoped only):**
53
- ```
54
- Append to state.json.artifacts[]:
55
- {
56
- id: nextArtifactId(artifacts, "debug"), // DBG-001
57
- type: "debug",
58
- milestone: current_milestone,
59
- phase: target_phase,
60
- scope: "phase",
61
- path: "scratch/{YYYYMMDD}-debug-P{N}-{slug}",
62
- status: all_diagnosed ? "completed" : "failed",
63
- depends_on: triggering_review_id || exec_art.id,
64
- harvested: false,
65
- created_at: start_time,
66
- completed_at: now()
67
- }
68
- ```
69
-
70
- ### Post-debug Knowledge Inquiry
71
-
72
- After root cause is confirmed, evaluate inquiry triggers:
73
-
74
- 1. **Recurring pattern**: If root cause matches a recurring pattern (similar to prior debug sessions):
75
- → Ask: "This root cause pattern has appeared before. Should it be documented in `debug-notes.md` to prevent recurrence? (`/spec-add debug`)"
76
-
77
- 2. **Non-obvious fix**: If fix involved a non-obvious approach or workaround:
78
- Ask: "This fix used a non-obvious strategy. Should it be recorded as a learning? (`/spec-add learning`)"
79
-
80
- 3. **Architectural gap**: If root cause traces to architectural boundary violation or missing constraint:
81
- → Ask: "Root cause points to an architectural gap. Should `architecture-constraints.md` be updated? (`/spec-add arch`)"
82
-
83
- If user confirms, invoke `Skill({ skill: "spec-add", args: "<category> <content>" })`.
84
-
85
- **Next-step routing on completion:**
86
- - Root cause found, fix needed `/maestro-plan {phase} --gaps`
87
- - Root cause found (from UAT), auto-fix `/quality-test {phase} --auto-fix`
88
- - Inconclusive, need more info → `/quality-debug {issue} -c` (resume session)
89
- - Standalone fix already applied `/maestro-verify {phase}`
90
- </execution>
91
-
92
- <error_codes>
93
- | Code | Severity | Condition | Recovery |
94
- |------|----------|-----------|----------|
95
- | E001 | error | Issue description required (no arguments, no active sessions) | Check arguments format, re-run with correct input |
96
- | E002 | error | UAT file not found for --from-uat phase | Verify UAT file exists for specified phase |
97
- | W001 | warning | Existing debug session found, offer resume | Review existing sessions, choose resume or new |
98
- | W002 | warning | Checkpoint reached, user input needed | Provide requested input to continue |
99
- | W003 | warning | Some gaps inconclusive, partial diagnosis | Review partial results, retry inconclusive gaps |
100
- </error_codes>
101
-
102
- <success_criteria>
103
- - [ ] Input parsed: standalone, --from-uat, or --parallel mode determined
104
- - [ ] Active sessions checked and resume offered if applicable
105
- - [ ] Symptoms gathered (interactive) or loaded from UAT (pre-filled)
106
- - [ ] Debug output directory created (phase .debug/ or scratch/)
107
- - [ ] Debug agent(s) spawned with full symptom context
108
- - [ ] If --parallel: one agent per gap cluster, all concurrent
109
- - [ ] evidence.ndjson written with structured NDJSON entries
110
- - [ ] understanding.md tracks evolving understanding per cluster
111
- - [ ] Root causes collected with fix_direction and affected_files
112
- - [ ] If --from-uat: uat.md gaps updated with diagnosis artifacts
113
- - [ ] Results unified into diagnosis summary
114
- - [ ] Next step routed (plan --gaps + execute if fix needed, verify if fix applied, resume if inconclusive)
115
- </success_criteria>
1
+ ---
2
+ name: quality-debug
3
+ description: Debug with parallel hypotheses and root cause analysis
4
+ argument-hint: "[issue description] [--from-uat <phase>] [--parallel]"
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Edit
9
+ - Bash
10
+ - Glob
11
+ - Grep
12
+ - Agent
13
+ - AskUserQuestion
14
+ ---
15
+ <purpose>
16
+ Debug issues using scientific method with subagent isolation and persistent debug state. Three entry modes (standalone, from-UAT, parallel) and structured root cause collection with UAT feedback loop. Full algorithm defined in workflow debug.md.
17
+ </purpose>
18
+
19
+ <required_reading>
20
+ @~/.maestro/workflows/debug.md
21
+ </required_reading>
22
+
23
+ <context>
24
+ User's issue: $ARGUMENTS
25
+
26
+ **Flags:**
27
+ - `--from-uat <phase>` -- Read gaps from phase's uat.md as pre-filled symptoms
28
+ - `--parallel` -- Spawn parallel debug agents (one per gap cluster)
29
+
30
+ **All context via state.json.artifacts[]:**
31
+
32
+ ```
33
+ related = artifacts.filter(a =>
34
+ a.phase === target_phase && a.milestone === current_milestone
35
+ ).sort_by(completed_at asc)
36
+ ```
37
+
38
+ Each artifact's type determines its outputs at `.workflow/{a.path}/`:
39
+ - **execute** → .summaries/, .task/ (source of code changes)
40
+ - **review** → review.json (findings guide hypothesis formation)
41
+ - **debug** → understanding.md, evidence.ndjson (prior investigations, avoid re-investigation)
42
+ - **test** → uat.md (--from-uat gap source), .tests/
43
+
44
+ Extract conclusions from related artifacts that may affect this debug session — review findings guide investigation direction, prior debug avoids redundant work.
45
+
46
+ ### Pre-load context (before hypothesis formation)
47
+
48
+ 1. **Codebase docs**: If `.workflow/codebase/ARCHITECTURE.md` exists, load module boundaries to scope impact analysis and inform hypothesis formation.
49
+ 2. **Wiki prior knowledge**: Run `maestro wiki search "<symptom keywords>" --json 2>/dev/null`. If results found, check for prior investigations on similar issues to avoid re-investigation.
50
+ 3. Both are optional — proceed without if unavailable.
51
+
52
+ **Output**: `DEBUG_DIR = .workflow/scratch/{YYYYMMDD}-debug-P{N}-{slug}/` (P{N} = phase number when phase-scoped; omit for standalone). Output directory rules defined in workflow debug.md Step 4.
53
+ </context>
54
+
55
+ <execution>
56
+ Follow '~/.maestro/workflows/debug.md' completely.
57
+
58
+ **Register artifact on completion (phase-scoped only):**
59
+ ```
60
+ Append to state.json.artifacts[]:
61
+ {
62
+ id: nextArtifactId(artifacts, "debug"), // DBG-001
63
+ type: "debug",
64
+ milestone: current_milestone,
65
+ phase: target_phase,
66
+ scope: "phase",
67
+ path: "scratch/{YYYYMMDD}-debug-P{N}-{slug}",
68
+ status: all_diagnosed ? "completed" : "failed",
69
+ depends_on: triggering_review_id || exec_art.id,
70
+ harvested: false,
71
+ created_at: start_time,
72
+ completed_at: now()
73
+ }
74
+ ```
75
+
76
+ ### Post-debug Knowledge Inquiry
77
+
78
+ After root cause is confirmed, evaluate inquiry triggers:
79
+
80
+ 1. **Recurring pattern**: If root cause matches a recurring pattern (similar to prior debug sessions):
81
+ → Ask: "This root cause pattern has appeared before. Should it be documented in `debug-notes.md` to prevent recurrence? (`/spec-add debug`)"
82
+
83
+ 2. **Non-obvious fix**: If fix involved a non-obvious approach or workaround:
84
+ → Ask: "This fix used a non-obvious strategy. Should it be recorded as a learning? (`/spec-add learning`)"
85
+
86
+ 3. **Architectural gap**: If root cause traces to architectural boundary violation or missing constraint:
87
+ Ask: "Root cause points to an architectural gap. Should `architecture-constraints.md` be updated? (`/spec-add arch`)"
88
+
89
+ If user confirms, invoke `Skill({ skill: "spec-add", args: "<category> <content>" })`.
90
+
91
+ **Next-step routing on completion:**
92
+ - Root cause found, fix needed → `/maestro-plan {phase} --gaps`
93
+ - Root cause found (from UAT), auto-fix `/quality-test {phase} --auto-fix`
94
+ - Inconclusive, need more info → `/quality-debug {issue} -c` (resume session)
95
+ - Standalone fix already applied `/maestro-verify {phase}`
96
+ </execution>
97
+
98
+ <error_codes>
99
+ | Code | Severity | Condition | Recovery |
100
+ |------|----------|-----------|----------|
101
+ | E001 | error | Issue description required (no arguments, no active sessions) | Check arguments format, re-run with correct input |
102
+ | E002 | error | UAT file not found for --from-uat phase | Verify UAT file exists for specified phase |
103
+ | W001 | warning | Existing debug session found, offer resume | Review existing sessions, choose resume or new |
104
+ | W002 | warning | Checkpoint reached, user input needed | Provide requested input to continue |
105
+ | W003 | warning | Some gaps inconclusive, partial diagnosis | Review partial results, retry inconclusive gaps |
106
+ </error_codes>
107
+
108
+ <success_criteria>
109
+ - [ ] Input parsed: standalone, --from-uat, or --parallel mode determined
110
+ - [ ] Active sessions checked and resume offered if applicable
111
+ - [ ] Symptoms gathered (interactive) or loaded from UAT (pre-filled)
112
+ - [ ] Debug output directory created (phase .debug/ or scratch/)
113
+ - [ ] Debug agent(s) spawned with full symptom context
114
+ - [ ] If --parallel: one agent per gap cluster, all concurrent
115
+ - [ ] evidence.ndjson written with structured NDJSON entries
116
+ - [ ] understanding.md tracks evolving understanding per cluster
117
+ - [ ] Root causes collected with fix_direction and affected_files
118
+ - [ ] If --from-uat: uat.md gaps updated with diagnosis artifacts
119
+ - [ ] Results unified into diagnosis summary
120
+ - [ ] Next step routed (plan --gaps + execute if fix needed, verify if fix applied, resume if inconclusive)
121
+ </success_criteria>