maestro-flow-one 0.1.3 → 0.2.1

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 (100) hide show
  1. package/.ace-tool/index.json +108 -0
  2. package/README.md +10 -10
  3. package/bin/maestro-flow.js +30 -0
  4. package/claude/maestro-flow/SKILL.md +28 -94
  5. package/claude/maestro-flow/agents/cli-explore-agent.md +187 -0
  6. package/claude/maestro-flow/agents/conceptual-planning-agent.md +245 -0
  7. package/claude/maestro-flow/agents/team-supervisor.md +143 -0
  8. package/claude/maestro-flow/agents/team-worker.md +237 -0
  9. package/claude/maestro-flow/agents/ui-design-agent.md +286 -0
  10. package/claude/maestro-flow/agents/workflow-analyzer.md +115 -0
  11. package/claude/maestro-flow/agents/workflow-codebase-mapper.md +77 -0
  12. package/claude/maestro-flow/agents/workflow-collab-planner.md +143 -0
  13. package/claude/maestro-flow/agents/workflow-debugger.md +103 -0
  14. package/claude/maestro-flow/agents/workflow-executor.md +129 -0
  15. package/claude/maestro-flow/agents/workflow-external-researcher.md +86 -0
  16. package/claude/maestro-flow/agents/workflow-integration-checker.md +83 -0
  17. package/claude/maestro-flow/agents/workflow-nyquist-auditor.md +85 -0
  18. package/claude/maestro-flow/agents/workflow-phase-researcher.md +85 -0
  19. package/claude/maestro-flow/agents/workflow-plan-checker.md +90 -0
  20. package/claude/maestro-flow/agents/workflow-planner.md +195 -0
  21. package/claude/maestro-flow/agents/workflow-project-researcher.md +74 -0
  22. package/claude/maestro-flow/agents/workflow-research-synthesizer.md +70 -0
  23. package/claude/maestro-flow/agents/workflow-reviewer.md +82 -0
  24. package/claude/maestro-flow/agents/workflow-roadmapper.md +81 -0
  25. package/claude/maestro-flow/agents/workflow-verifier.md +120 -0
  26. package/claude/maestro-flow/executor.md +328 -0
  27. package/codex/maestro-flow/SKILL.md +18 -0
  28. package/codex/maestro-flow/agents/team-supervisor.toml +40 -0
  29. package/codex/maestro-flow/agents/team-worker.toml +63 -0
  30. package/maestro-flow/agents/cli-explore-agent.md +187 -0
  31. package/maestro-flow/agents/conceptual-planning-agent.md +245 -0
  32. package/maestro-flow/agents/team-supervisor.md +143 -0
  33. package/maestro-flow/agents/team-worker.md +237 -0
  34. package/maestro-flow/agents/ui-design-agent.md +286 -0
  35. package/maestro-flow/agents/workflow-analyzer.md +115 -0
  36. package/maestro-flow/agents/workflow-codebase-mapper.md +77 -0
  37. package/maestro-flow/agents/workflow-collab-planner.md +143 -0
  38. package/maestro-flow/agents/workflow-debugger.md +103 -0
  39. package/maestro-flow/agents/workflow-executor.md +129 -0
  40. package/maestro-flow/agents/workflow-external-researcher.md +86 -0
  41. package/maestro-flow/agents/workflow-integration-checker.md +83 -0
  42. package/maestro-flow/agents/workflow-nyquist-auditor.md +85 -0
  43. package/maestro-flow/agents/workflow-phase-researcher.md +85 -0
  44. package/maestro-flow/agents/workflow-plan-checker.md +90 -0
  45. package/maestro-flow/agents/workflow-planner.md +195 -0
  46. package/maestro-flow/agents/workflow-project-researcher.md +74 -0
  47. package/maestro-flow/agents/workflow-research-synthesizer.md +70 -0
  48. package/maestro-flow/agents/workflow-reviewer.md +82 -0
  49. package/maestro-flow/agents/workflow-roadmapper.md +81 -0
  50. package/maestro-flow/agents/workflow-verifier.md +120 -0
  51. package/maestro-flow/commands/learn/decompose.md +176 -0
  52. package/maestro-flow/commands/learn/follow.md +167 -0
  53. package/maestro-flow/commands/learn/investigate.md +221 -0
  54. package/maestro-flow/commands/learn/retro.md +303 -0
  55. package/maestro-flow/commands/learn/second-opinion.md +167 -0
  56. package/maestro-flow/commands/lifecycle/amend.md +300 -0
  57. package/maestro-flow/commands/lifecycle/analyze.md +130 -0
  58. package/maestro-flow/commands/lifecycle/brainstorm.md +104 -0
  59. package/maestro-flow/commands/lifecycle/composer.md +354 -0
  60. package/maestro-flow/commands/lifecycle/execute.md +120 -0
  61. package/maestro-flow/commands/lifecycle/fork.md +86 -0
  62. package/maestro-flow/commands/lifecycle/init.md +78 -0
  63. package/maestro-flow/commands/lifecycle/learn.md +140 -0
  64. package/maestro-flow/commands/lifecycle/link-coordinate.md +71 -0
  65. package/maestro-flow/commands/lifecycle/merge.md +61 -0
  66. package/maestro-flow/commands/lifecycle/overlay.md +178 -0
  67. package/maestro-flow/commands/lifecycle/plan.md +154 -0
  68. package/maestro-flow/commands/lifecycle/player.md +404 -0
  69. package/maestro-flow/commands/lifecycle/quick.md +56 -0
  70. package/maestro-flow/commands/lifecycle/roadmap.md +164 -0
  71. package/maestro-flow/commands/lifecycle/ui-design.md +93 -0
  72. package/maestro-flow/commands/lifecycle/update.md +176 -0
  73. package/maestro-flow/commands/lifecycle/verify.md +96 -0
  74. package/maestro-flow/commands/manage/codebase-rebuild.md +75 -0
  75. package/maestro-flow/commands/manage/codebase-refresh.md +57 -0
  76. package/maestro-flow/commands/manage/harvest.md +94 -0
  77. package/maestro-flow/commands/manage/issue-discover.md +77 -0
  78. package/maestro-flow/commands/manage/issue.md +73 -0
  79. package/maestro-flow/commands/manage/knowhow-capture.md +193 -0
  80. package/maestro-flow/commands/manage/knowhow.md +77 -0
  81. package/maestro-flow/commands/manage/learn.md +67 -0
  82. package/maestro-flow/commands/manage/status.md +51 -0
  83. package/maestro-flow/commands/manage/wiki.md +62 -0
  84. package/maestro-flow/commands/milestone/audit.md +68 -0
  85. package/maestro-flow/commands/milestone/complete.md +75 -0
  86. package/maestro-flow/commands/milestone/release.md +96 -0
  87. package/maestro-flow/commands/quality/auto-test.md +128 -0
  88. package/maestro-flow/commands/quality/debug.md +125 -0
  89. package/maestro-flow/commands/quality/refactor.md +55 -0
  90. package/maestro-flow/commands/quality/retrospective.md +78 -0
  91. package/maestro-flow/commands/quality/review.md +114 -0
  92. package/maestro-flow/commands/quality/sync.md +51 -0
  93. package/maestro-flow/commands/quality/test.md +107 -0
  94. package/maestro-flow/commands/spec/add.md +49 -0
  95. package/maestro-flow/commands/spec/load.md +51 -0
  96. package/maestro-flow/commands/spec/remove.md +51 -0
  97. package/maestro-flow/commands/spec/setup.md +51 -0
  98. package/maestro-flow/commands/wiki/connect.md +62 -0
  99. package/maestro-flow/commands/wiki/digest.md +69 -0
  100. package/package.json +1 -1
@@ -0,0 +1,73 @@
1
+ ---
2
+ name: manage-issue
3
+ description: Create, query, update, close, and link issues
4
+ argument-hint: "<create|list|status|update|close|link> [options]"
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Edit
9
+ - Bash
10
+ - Glob
11
+ - Grep
12
+ - AskUserQuestion
13
+ ---
14
+ <purpose>
15
+ Issue lifecycle management for the project issue tracker. Supports create, list, status, update, close, and link (bidirectional issue-task cross-reference). All issues stored in `.workflow/issues/issues.jsonl` using the issue.json schema.
16
+
17
+ For automated issue discovery, use `/manage-issue-discover`.
18
+
19
+ **Closed-loop workflow**: After creating an issue, use `/maestro-analyze --gaps <ISS-ID>` for root cause analysis, `/maestro-plan --gaps` for solution planning, and `/maestro-execute` for execution.
20
+ </purpose>
21
+
22
+ <required_reading>
23
+ @~/.maestro/workflows/issue.md
24
+ </required_reading>
25
+
26
+ <deferred_reading>
27
+ - [issue.json template](~/.maestro/templates/issue.json) — read when creating or updating issue records (create, update, close)
28
+ </deferred_reading>
29
+
30
+ <context>
31
+ $ARGUMENTS -- subcommand + options. Parse first token as subcommand.
32
+
33
+ **Valid subcommands:**
34
+ - `create` -- create a new issue (--title, --severity, --source, --phase, --description)
35
+ - `list` -- list issues with optional filters (--status, --phase, --severity, --source)
36
+ - `status` -- show full detail for a specific issue (ISS-XXXXXXXX-NNN)
37
+ - `update` -- update issue fields (ISS-XXXXXXXX-NNN --status, --priority, --severity, --tags, ...)
38
+ - `close` -- close an issue with resolution (ISS-XXXXXXXX-NNN --resolution)
39
+ - `link` -- link issue to a task (ISS-XXXXXXXX-NNN --task TASK-NNN)
40
+
41
+ **State files:**
42
+ - `.workflow/issues/issues.jsonl` -- active issues (one JSON per line)
43
+ - `.workflow/issues/issue-history.jsonl` -- archived/closed issues
44
+ </context>
45
+
46
+ <execution>
47
+ Parse subcommand from first token of $ARGUMENTS.
48
+ Follow '~/.maestro/workflows/issue.md' completely.
49
+
50
+ **Next-step routing on completion:**
51
+ - create → `/maestro-analyze --gaps <ISS-ID>` or `/maestro-plan --gaps`
52
+ - list → `/maestro-analyze --gaps <ISS-ID>` for any open issue
53
+ - close → `/manage-status`
54
+ </execution>
55
+
56
+ <error_codes>
57
+ | Code | Severity | Condition | Recovery |
58
+ |------|----------|-----------|----------|
59
+ | E_NO_SUBCOMMAND | error | No subcommand provided in $ARGUMENTS | Display valid subcommands, prompt user to select |
60
+ | E_INVALID_SUBCOMMAND | error | Unrecognized subcommand | Display valid subcommands with usage hints |
61
+ | E_ISSUES_DIR_MISSING | warning | `.workflow/issues/` directory does not exist | Auto-create directory and empty issues.jsonl |
62
+ </error_codes>
63
+
64
+ <success_criteria>
65
+ - [ ] Subcommand parsed and routed to correct handler
66
+ - [ ] Issue data read/written to correct JSONL file
67
+ - [ ] Output displayed in appropriate format (table for list, detail for status)
68
+ - [ ] Cross-references maintained (link creates bidirectional references)
69
+ - [ ] Next step routing by subcommand:
70
+ - create → `/maestro-analyze --gaps <ISS-ID>` or `/maestro-plan --gaps`
71
+ - list → `/maestro-analyze --gaps <ISS-ID>` for any open issue
72
+ - close → `/manage-status`
73
+ </success_criteria>
@@ -0,0 +1,193 @@
1
+ ---
2
+ name: manage-knowhow-capture
3
+ description: Capture reusable knowledge as templates, recipes, or tips
4
+ argument-hint: "[type] [description] [--lang <lang>] [--source <url>] [--tag tag1,tag2]"
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Edit
9
+ - Bash
10
+ - Glob
11
+ - Grep
12
+ - AskUserQuestion
13
+ ---
14
+ <purpose>
15
+ Capture reusable knowledge into `.workflow/knowhow/` with type-specific structured fields.
16
+ Six content types, each optimized for a different reuse pattern. All entries are automatically
17
+ indexed by WikiIndexer (type=knowhow) and searchable via `maestro knowhow search`.
18
+ </purpose>
19
+
20
+ <required_reading>
21
+ @~/.maestro/workflows/knowhow.md
22
+ </required_reading>
23
+
24
+ <context>
25
+ Arguments: $ARGUMENTS
26
+
27
+ **Types:**
28
+
29
+ | Type | Prefix | Use Case | Key Fields |
30
+ |------|--------|----------|------------|
31
+ | `compact` | KNW- | Session state recovery | objective, files, decisions, plan, pending |
32
+ | `template` | TPL- | Code/config templates | language, code block, usage context |
33
+ | `recipe` | RCP- | Step-by-step how-to | prerequisites, steps, expected outcome |
34
+ | `reference` | REF- | External doc / API quick-ref | source URL, key points, scenarios |
35
+ | `decision` | DCS- | Design decision record | context, alternatives, rationale, consequences |
36
+ | `tip` | TIP- | Quick note / reminder | content, tags |
37
+
38
+ No arguments: auto-detect type or ask user via AskUserQuestion.
39
+
40
+ **Flags:**
41
+ - `--lang <lang>` — Language for templates (typescript, python, bash, yaml, etc.)
42
+ - `--source <url>` — Source URL for references
43
+ - `--tag tag1,tag2` — Categorization tags
44
+ - `--title <title>` — Explicit title (auto-generated if omitted)
45
+ </context>
46
+
47
+ <execution>
48
+
49
+ ### Step 1: Detect Type
50
+
51
+ Parse first token as type. If ambiguous, AskUserQuestion with options:
52
+
53
+ | Token Match | Type |
54
+ |-------------|------|
55
+ | `compact`, `session`, `压缩`, `保存` | compact |
56
+ | `template`, `tpl`, `模板` | template |
57
+ | `recipe`, `rcp`, `配方`, `步骤` | recipe |
58
+ | `reference`, `ref`, `参考`, `引用` | reference |
59
+ | `decision`, `dcs`, `决策`, `adr` | decision |
60
+ | `tip`, `note`, `记录`, `快速` | tip |
61
+ | No match, short text, `--tag` present | tip |
62
+ | No arguments | AskUserQuestion (6 options) |
63
+
64
+ ### Step 2: Generate Content by Type
65
+
66
+ #### compact (KNW-{YYYYMMDD}-{HHMM}.md)
67
+
68
+ Extract from conversation history:
69
+ - **Session ID** — WFS-* if workflow session active, else `manual-{date}`
70
+ - **Project Root** — Absolute path
71
+ - **Objective** — High-level goal
72
+ - **Execution Plan** — Source + complete verbatim content (never summarize)
73
+ - **Working Files** — Modified files with roles (absolute paths, 3-8 files)
74
+ - **Reference Files** — Read-only context files
75
+ - **Last Action** — Final action + result
76
+ - **Decisions** — Table: decision | reasoning
77
+ - **Constraints** — User-specified limitations
78
+ - **Dependencies** — Added/changed packages
79
+ - **Known Issues** — Deferred bugs
80
+ - **Changes Made** — Completed modifications
81
+ - **Pending** — Next steps
82
+ - **Notes** — Unstructured thoughts
83
+
84
+ Plan detection priority: workflow session IMPL_PLAN.md > TodoWrite items > user-stated > inferred.
85
+
86
+ #### template (TPL-{YYYYMMDD}-{HHMM}.md)
87
+
88
+ Ask for or extract:
89
+ - **Language / Tech** — `--lang` flag or inferred from context
90
+ - **Usage** — When/how to use this template
91
+ - **Code** — The template content (ask user to provide or select from conversation)
92
+ - **Parameters** — Placeholders to replace (e.g. `{{name}}`, `{{port}}`)
93
+ - **Dependencies** — Required packages/config
94
+ - **Tags** — From `--tag` flag
95
+
96
+ If code not provided explicitly, prompt user: "Paste the template code:"
97
+
98
+ #### recipe (RCP-{YYYYMMDD}-{HHMM}.md)
99
+
100
+ Ask for or extract:
101
+ - **Goal** — What this recipe accomplishes
102
+ - **Prerequisites** — Tools, access, config needed
103
+ - **Steps** — Numbered step-by-step instructions
104
+ - **Expected Outcome** — What success looks like
105
+ - **Common Pitfalls** — Known issues / gotchas
106
+ - **Related** — Links to templates, references, decisions used
107
+ - **Tags** — From `--tag` flag
108
+
109
+ If steps not clear, prompt user: "Describe the steps (numbered list):"
110
+
111
+ #### reference (REF-{YYYYMMDD}-{HHMM}.md)
112
+
113
+ Ask for or extract:
114
+ - **Source** — `--source` flag (URL, doc title, API endpoint)
115
+ - **Key Points** — Bullet list of essential info
116
+ - **Applicable Scenarios** — When to consult this reference
117
+ - **Quick Examples** — Copy-paste ready code snippets
118
+ - **Last Verified** — Date (today)
119
+ - **Tags** — From `--tag` flag
120
+
121
+ If `--source` provided, offer to fetch and summarize via WebFetch.
122
+
123
+ #### decision (DCS-{YYYYMMDD}-{HHMM}.md)
124
+
125
+ Ask for or extract:
126
+ - **Context** — Background and problem statement
127
+ - **Decision** — What was decided
128
+ - **Alternatives Considered** — Table: alternative | pros | cons | rejected because
129
+ - **Rationale** — Why this choice over alternatives
130
+ - **Consequences** — Positive and negative impact
131
+ - **Related** — Links to affected specs, recipes, templates
132
+ - **Date** — Decision date
133
+ - **Status** — proposed | accepted | superseded
134
+
135
+ #### tip (TIP-{YYYYMMDD}-{HHMM}.md)
136
+
137
+ Simple note:
138
+ - **Content** — Everything after type token (or full $ARGUMENTS)
139
+ - **Context** — Auto-detected from recent conversation files
140
+ - **Tags** — From `--tag` flag
141
+ - **Timestamp** — ISO format
142
+
143
+ ### Step 3: Write File
144
+
145
+ Write to `.workflow/knowhow/{PREFIX}-{YYYYMMDD}-{HHMM}.md` with YAML frontmatter:
146
+
147
+ ```yaml
148
+ ---
149
+ title: {auto or --title}
150
+ type: {type}
151
+ category: {type}
152
+ created: {ISO timestamp}
153
+ tags: [{tags}]
154
+ source: {url if reference}
155
+ lang: {language if template}
156
+ status: {status if decision}
157
+ ---
158
+ {markdown body}
159
+ ```
160
+
161
+ ### Step 4: Confirm
162
+
163
+ ```
164
+ === KNOWHOW CAPTURED ===
165
+ Type: {type}
166
+ ID: knowhow-{slug}
167
+ File: .workflow/knowhow/{filename}
168
+
169
+ {type-specific summary line}
170
+ ```
171
+ </execution>
172
+
173
+ <error_codes>
174
+ | Code | Severity | Description | Stage |
175
+ |------|----------|-------------|-------|
176
+ | E001 | error | `.workflow/` not initialized — run `/maestro-init` first | validate |
177
+ | E002 | error | Template: no code provided after prompt | template |
178
+ | E003 | error | Recipe: no steps provided after prompt | recipe |
179
+ | W001 | warning | No active workflow session — compact captures conversation only | compact |
180
+ | W002 | warning | Plan detection found no explicit plan — using inferred plan | compact |
181
+ | W003 | warning | `--source` URL could not be fetched — proceeding with manual entry | reference |
182
+ </error_codes>
183
+
184
+ <success_criteria>
185
+ - [ ] Type correctly detected or selected
186
+ - [ ] All type-specific fields populated (not empty)
187
+ - [ ] YAML frontmatter written with correct fields
188
+ - [ ] Markdown body follows type structure
189
+ - [ ] File written to `.workflow/knowhow/` with correct prefix
190
+ - [ ] Auto-indexed by WikiIndexer (type=knowhow)
191
+ - [ ] Confirmation displayed with ID, type, file path
192
+ - [ ] Next step hint appropriate to type shown
193
+ </success_criteria>
@@ -0,0 +1,77 @@
1
+ ---
2
+ name: manage-knowhow
3
+ description: Manage knowhow entries (workflow and system)
4
+ argument-hint: "[list|search|view|edit|delete|prune] [query|id|file] [--store workflow|system|all] [--tag tag] [--type compact|tip]"
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Edit
9
+ - Bash
10
+ - Glob
11
+ - Grep
12
+ - AskUserQuestion
13
+ ---
14
+ <purpose>
15
+ Unified memory management across two stores:
16
+ 1. **Workflow knowhow** (`.workflow/knowhow/`) — Session compacts and tips with JSON index, created by `manage-knowhow-capture`
17
+ 2. **System memory** (`~/.claude/projects/{project}/memory/`) — Claude Code auto-memory (MEMORY.md + topic files), persists across conversations
18
+
19
+ Provides list/search/view/edit/delete/prune operations. Default store is `all` (show both).
20
+ </purpose>
21
+
22
+ <required_reading>
23
+ @~/.maestro/workflows/knowhow.md
24
+ </required_reading>
25
+
26
+ <context>
27
+ Arguments: $ARGUMENTS
28
+
29
+ Dual store architecture (paths, formats, index) defined in workflow knowhow.md.
30
+
31
+ **Subcommands:**
32
+ - `list` — List entries from both stores (default if no arguments)
33
+ - `search <query>` — Full-text search across both stores
34
+ - `view <id|file>` — Display a workflow entry by ID or system file by name
35
+ - `edit <file>` — Edit a system memory file (MEMORY.md or topic file)
36
+ - `delete <id|file>` — Remove an entry/file (with confirmation)
37
+ - `prune` — Bulk cleanup by criteria
38
+
39
+ **Flags:**
40
+ - `--store <workflow|system|all>` — Target store (default: `all` for list/search, inferred for other ops)
41
+ - `--tag <tag>` — Filter by tag (workflow store)
42
+ - `--type <compact|tip>` — Filter by entry type (workflow store)
43
+ - `--before <YYYY-MM-DD>` — Entries before date
44
+ - `--after <YYYY-MM-DD>` — Entries after date
45
+ - `--dry-run` — Preview destructive ops without executing
46
+ - `--confirm` — Skip confirmation prompt
47
+ </context>
48
+
49
+ <execution>
50
+ Follow '~/.maestro/workflows/knowhow.md' Part A (KnowHow Management) completely.
51
+ </execution>
52
+
53
+ <error_codes>
54
+ | Code | Severity | Description | Stage |
55
+ |------|----------|-------------|-------|
56
+ | E001 | error | No memory stores found — run `/manage-knowhow-capture` or create MEMORY.md | resolve_paths |
57
+ | E002 | error | Entry ID or filename not found | execute_view, execute_delete |
58
+ | E003 | error | Prune requires at least one filter (--tag, --type, --before, --after) | execute_prune |
59
+ | E004 | error | Cannot delete MEMORY.md — use `edit` subcommand instead | execute_delete |
60
+ | W001 | warning | Workflow index has orphaned files or dangling references | integrity_check |
61
+ | W002 | warning | MEMORY.md references non-existent topic file | integrity_check |
62
+ | W003 | warning | MEMORY.md exceeds 200 lines — content will be truncated at load | execute_edit |
63
+ </error_codes>
64
+
65
+ <success_criteria>
66
+ - [ ] Both store paths correctly resolved
67
+ - [ ] Subcommand correctly detected from arguments
68
+ - [ ] Store auto-detected from argument format (KNW-*/TIP-* vs filename)
69
+ - [ ] List: both stores displayed with appropriate formatting
70
+ - [ ] Search: results from both stores, ranked by relevance
71
+ - [ ] View: correct store selected, full content displayed
72
+ - [ ] Edit: system memory files editable, MEMORY.md kept under 200 lines
73
+ - [ ] Delete: MEMORY.md protected, confirmation required, references checked
74
+ - [ ] Prune: workflow-only, filters validated, index updated
75
+ - [ ] Integrity check catches orphans and broken links
76
+ - [ ] Next step: `/manage-knowhow-capture compact` to save new knowhow, or `/manage-status` to continue workflow
77
+ </success_criteria>
@@ -0,0 +1,67 @@
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>
@@ -0,0 +1,51 @@
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>
@@ -0,0 +1,62 @@
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>
@@ -0,0 +1,68 @@
1
+ ---
2
+ name: maestro-milestone-audit
3
+ description: Audit current milestone for cross-phase integration gaps
4
+ argument-hint: "[<milestone>]"
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Bash
9
+ - Glob
10
+ - Grep
11
+ - Agent
12
+ - AskUserQuestion
13
+ ---
14
+
15
+ <purpose>
16
+ Audit milestone completion using the artifact registry. Checks:
17
+ 1. Phase coverage — every phase in roadmap has plan + execute artifacts (completed)
18
+ 2. Ad-hoc completeness — all adhoc artifacts are completed (or explicitly skipped)
19
+ 3. Execution completeness — all tasks in executed plans are completed
20
+ 4. Cross-artifact integration — interfaces, data contracts, configuration consistency
21
+
22
+ Data source: `state.json.artifacts[]` filtered by current milestone.
23
+ Produces audit report at `.workflow/milestones/{milestone}/audit-report.md`.
24
+ </purpose>
25
+
26
+ <required_reading>
27
+ @~/.maestro/workflows/milestone-audit.md
28
+ </required_reading>
29
+
30
+ <context>
31
+ Milestone: $ARGUMENTS (optional -- defaults to current_milestone from state.json).
32
+
33
+ **Requires:** All phases in the milestone should have completed execute artifacts.
34
+
35
+ **Data source:**
36
+ - `.workflow/state.json` — artifacts[], current_milestone, milestones[]
37
+ - `.workflow/roadmap.md` — milestone-to-phase mapping
38
+ - Plan scratch dirs — for task status verification
39
+ </context>
40
+
41
+ <execution>
42
+ Follow '~/.maestro/workflows/milestone-audit.md' completely.
43
+
44
+ Audit checklist steps (phase coverage, ad-hoc completeness, execution completeness, cross-artifact integration) are defined in workflow `milestone-audit.md`.
45
+
46
+ **Next-step routing on completion:**
47
+ - Verdict PASS → `/maestro-milestone-complete {milestone}`
48
+ - Verdict FAIL, integration gaps → `/maestro-plan --gaps`
49
+ - Verdict FAIL, incomplete execution → `/maestro-execute`
50
+ </execution>
51
+
52
+ <error_codes>
53
+ | Code | Severity | Condition | Recovery |
54
+ |------|----------|-----------|----------|
55
+ | E001 | error | Milestone identifier required | Check arguments format |
56
+ | E002 | error | Milestone not found in state.json | Check milestone ID |
57
+ | E003 | error | No execute artifacts found for milestone | Run maestro-execute first |
58
+ | W001 | warning | Some phases lack complete artifact chains | Review incomplete phases |
59
+ </error_codes>
60
+
61
+ <success_criteria>
62
+ - [ ] All phases in milestone identified from roadmap
63
+ - [ ] Artifact chains verified (ANL→PLN→EXC) per phase
64
+ - [ ] Ad-hoc artifacts checked for completion
65
+ - [ ] Integration check completed (shared interfaces, data contracts)
66
+ - [ ] Audit report written with clear PASS/FAIL verdict
67
+ - [ ] Next-step routing provided
68
+ </success_criteria>
@@ -0,0 +1,75 @@
1
+ ---
2
+ name: maestro-milestone-complete
3
+ description: Archive completed milestone and prepare for next
4
+ argument-hint: "[<milestone>]"
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Bash
9
+ - Glob
10
+ - Grep
11
+ - Agent
12
+ - AskUserQuestion
13
+ ---
14
+
15
+ <purpose>
16
+ Mark a milestone as complete after its audit has passed. Archives all scratch artifacts to `milestones/{M}/artifacts/`, moves artifact entries from `state.json.artifacts[]` to `milestone_history`, extracts final learnings, and advances to the next milestone.
17
+ </purpose>
18
+
19
+ <required_reading>
20
+ @~/.maestro/workflows/milestone-complete.md
21
+ </required_reading>
22
+
23
+ <context>
24
+ Milestone: $ARGUMENTS (optional -- defaults to current_milestone from state.json).
25
+
26
+ **Requires:** `/maestro-milestone-audit` should have passed.
27
+
28
+ **State files:**
29
+ - `.workflow/state.json` — artifacts[], milestones[], current_milestone, milestone_history[]
30
+ - `.workflow/roadmap.md` — milestone structure
31
+ - `.workflow/milestones/{milestone}/audit-report.md` — audit results
32
+ </context>
33
+
34
+ <execution>
35
+ Follow '~/.maestro/workflows/milestone-complete.md' completely.
36
+
37
+ Archive flow steps (validation, directory archival, artifact history, learning extraction, state advancement, cleanup) are defined in workflow `milestone-complete.md`.
38
+
39
+ ### Knowledge Promotion Inquiry
40
+
41
+ After learning extraction (step 4), scan `learnings.md` for promotion candidates:
42
+
43
+ 1. **High-frequency pattern detection**: Scan all `<spec-entry category="learning">` entries for keyword overlap (≥2 entries sharing keywords):
44
+ → Ask: "Keyword '{keyword}' appears in {N} learning entries. Should this be promoted to a formal coding convention? (`/spec-add coding`)"
45
+
46
+ 2. **Convention drift detection**: Compare executed task summaries against `coding-conventions.md` and `architecture-constraints.md`:
47
+ → Ask: "Were any established conventions bypassed during this milestone? Should conventions be updated?"
48
+
49
+ 3. **Wiki island check**: Auto-trigger `wiki-connect --fix` to link newly extracted knowledge.
50
+
51
+ If user confirms promotion, invoke `Skill({ skill: "spec-add", args: "<category> <content>" })` with promoted content, preserving original date and source traceability.
52
+
53
+ **Next-step routing on completion:**
54
+ - Cut a release → `/maestro-milestone-release`
55
+ - Next milestone → `/maestro-analyze` or `/maestro-plan 1`
56
+ - View state → `/manage-status`
57
+ </execution>
58
+
59
+ <error_codes>
60
+ | Code | Severity | Condition | Recovery |
61
+ |------|----------|-----------|----------|
62
+ | E001 | error | Milestone identifier required | Check arguments |
63
+ | E002 | error | Audit not passed | Run maestro-milestone-audit first |
64
+ | E003 | error | Incomplete artifacts remain | Complete remaining work first |
65
+ </error_codes>
66
+
67
+ <success_criteria>
68
+ - [ ] Audit report verified as PASS
69
+ - [ ] Scratch artifacts moved to milestones/{M}/artifacts/
70
+ - [ ] Artifact entries archived to milestone_history
71
+ - [ ] Learnings extracted to specs/learnings.md
72
+ - [ ] state.json updated: next milestone as current, artifacts[] cleared
73
+ - [ ] Roadmap snapshot saved
74
+ - [ ] project.md Context updated with milestone summary
75
+ </success_criteria>