maestro-flow-one 0.2.33 → 0.2.35
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/maestro-flow/commands/learn/investigate.md +151 -152
- package/maestro-flow/commands/learn/second-opinion.md +118 -122
- package/maestro-flow/commands/lifecycle/analyze.md +215 -266
- package/maestro-flow/commands/lifecycle/blueprint.md +189 -204
- package/maestro-flow/commands/lifecycle/brainstorm.md +209 -213
- package/maestro-flow/commands/lifecycle/companion.md +531 -531
- package/maestro-flow/commands/lifecycle/composer.md +188 -179
- package/maestro-flow/commands/lifecycle/execute.md +183 -184
- package/maestro-flow/commands/lifecycle/fork.md +111 -110
- package/maestro-flow/commands/lifecycle/grill.md +175 -176
- package/maestro-flow/commands/lifecycle/guard.md +103 -102
- package/maestro-flow/commands/lifecycle/impeccable.md +311 -268
- package/maestro-flow/commands/lifecycle/init.md +130 -131
- package/maestro-flow/commands/lifecycle/merge.md +87 -80
- package/maestro-flow/commands/lifecycle/next.md +253 -257
- package/maestro-flow/commands/lifecycle/overlay.md +188 -178
- package/maestro-flow/commands/lifecycle/plan.md +225 -211
- package/maestro-flow/commands/lifecycle/quick.md +83 -77
- package/maestro-flow/commands/lifecycle/roadmap.md +173 -186
- package/maestro-flow/commands/lifecycle/swarm-workflow.md +243 -264
- package/maestro-flow/commands/lifecycle/tools-execute.md +122 -117
- package/maestro-flow/commands/lifecycle/tools-register.md +162 -157
- package/maestro-flow/commands/lifecycle/ui-codify.md +117 -100
- package/maestro-flow/commands/lifecycle/universal-workflow.md +548 -561
- package/maestro-flow/commands/lifecycle/update.md +122 -119
- package/maestro-flow/commands/manage/codebase-rebuild.md +87 -85
- package/maestro-flow/commands/manage/harvest.md +97 -95
- package/maestro-flow/commands/manage/issue-discover.md +83 -81
- package/maestro-flow/commands/manage/issue.md +72 -73
- package/maestro-flow/commands/manage/kg-extractors.md +128 -0
- package/maestro-flow/commands/manage/knowhow-capture.md +92 -82
- package/maestro-flow/commands/manage/knowhow.md +83 -79
- package/maestro-flow/commands/manage/knowledge-audit.md +105 -88
- package/maestro-flow/commands/manage/status.md +62 -52
- package/maestro-flow/commands/manage/wiki.md +82 -71
- package/maestro-flow/commands/milestone/audit.md +4 -10
- package/maestro-flow/commands/milestone/complete.md +6 -7
- package/maestro-flow/commands/milestone/release.md +136 -145
- package/maestro-flow/commands/quality/auto-test.md +153 -136
- package/maestro-flow/commands/quality/debug.md +159 -120
- package/maestro-flow/commands/quality/refactor.md +105 -67
- package/maestro-flow/commands/quality/retrospective.md +123 -77
- package/maestro-flow/commands/quality/review.md +155 -128
- package/maestro-flow/commands/quality/sync.md +88 -52
- package/maestro-flow/commands/quality/test.md +147 -117
- package/maestro-flow/commands/spec/add.md +77 -70
- package/maestro-flow/commands/spec/setup.md +49 -52
- package/package.json +1 -1
|
@@ -1,178 +1,188 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: maestro-overlay
|
|
3
|
-
description: Create or edit command overlays from natural language
|
|
4
|
-
argument-hint: "<intent> — 描述要添加的规则或步骤,如 'always verify after execute'"
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- Read
|
|
7
|
-
- Write
|
|
8
|
-
- Bash
|
|
9
|
-
- Glob
|
|
10
|
-
- Grep
|
|
11
|
-
- AskUserQuestion
|
|
12
|
-
---
|
|
13
|
-
<purpose>
|
|
14
|
-
Turn
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
@~/.maestro/
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
- **
|
|
46
|
-
- **
|
|
47
|
-
- **
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
<
|
|
58
|
-
<
|
|
59
|
-
<
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
- **"
|
|
68
|
-
- **"
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
- **"
|
|
77
|
-
- **"Chain
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
-
|
|
105
|
-
-
|
|
106
|
-
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
- "
|
|
118
|
-
- "
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
-
|
|
123
|
-
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
-
|
|
129
|
-
-
|
|
130
|
-
-
|
|
131
|
-
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
-
|
|
148
|
-
-
|
|
149
|
-
-
|
|
150
|
-
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
- [ ]
|
|
173
|
-
- [ ]
|
|
174
|
-
- [ ]
|
|
175
|
-
- [ ]
|
|
176
|
-
- [ ]
|
|
177
|
-
- [ ]
|
|
178
|
-
|
|
1
|
+
---
|
|
2
|
+
name: maestro-overlay
|
|
3
|
+
description: Create or edit command overlays from natural language
|
|
4
|
+
argument-hint: "<intent> — 描述要添加的规则或步骤,如 'always verify after execute'"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Bash
|
|
9
|
+
- Glob
|
|
10
|
+
- Grep
|
|
11
|
+
- AskUserQuestion
|
|
12
|
+
---
|
|
13
|
+
<purpose>
|
|
14
|
+
Turn natural-language instructions into command overlays — JSON patch files that augment
|
|
15
|
+
`.claude/commands/*.md` non-invasively. Auto-applied by `maestro install`.
|
|
16
|
+
</purpose>
|
|
17
|
+
|
|
18
|
+
<required_reading>
|
|
19
|
+
@~/.maestro/workflows/overlays.md
|
|
20
|
+
@~/.maestro/cli-tools.json
|
|
21
|
+
</required_reading>
|
|
22
|
+
|
|
23
|
+
<context>
|
|
24
|
+
**Overlay model** — an overlay is a JSON file with a `name`, one or more `targets` (command names without `.md`), and a list of `patches`. Each patch targets an XML section (`execution`, `required_reading`, `context`, `success_criteria`, etc.), a mode (`append`, `prepend`, `replace`, `new-section`), and `content`. On apply, the patcher wraps the content in hashed HTML-comment markers so re-apply is idempotent and removal is surgical.
|
|
25
|
+
|
|
26
|
+
**Where overlays live**
|
|
27
|
+
- User overlays: `~/.maestro/overlays/*.json` — created by this skill
|
|
28
|
+
- Shared docs: `~/.maestro/overlays/docs/*.md` — referenced via `@~/.maestro/overlays/docs/*.md` inside patch content
|
|
29
|
+
- Shipped examples: `~/.maestro/overlays/_shipped/` — read-only, do not edit
|
|
30
|
+
|
|
31
|
+
**Management** — listing and removing overlays is handled by `maestro overlay list` (ink TUI with interactive delete). This skill focuses solely on creation.
|
|
32
|
+
|
|
33
|
+
**Available sections** (for `section:` in patches): `purpose`, `required_reading`, `deferred_reading`, `context`, `execution`, `error_codes`, `success_criteria`.
|
|
34
|
+
</context>
|
|
35
|
+
|
|
36
|
+
<execution>
|
|
37
|
+
### 1. Parse user intent
|
|
38
|
+
|
|
39
|
+
Treat the argument as natural-language intent. If unclear, ask up to 2 questions with AskUserQuestion: (a) which command(s) to target, (b) where in the command flow the injection should happen.
|
|
40
|
+
|
|
41
|
+
### 2. Identify targets, injection points, and visualize
|
|
42
|
+
|
|
43
|
+
For each likely target command, read the pristine source from `$PKG_ROOT/.claude/commands/<name>.md` (preferred — untouched by overlays) or fall back to `~/.claude/commands/<name>.md`. Inspect the XML sections and pick the right one:
|
|
44
|
+
|
|
45
|
+
- **New step after execution** → `section: execution`, `mode: append`
|
|
46
|
+
- **Required reading** → `section: required_reading`, `mode: append`
|
|
47
|
+
- **Preconditions / gating** → `section: context`, `mode: append`
|
|
48
|
+
- **Output quality gate** → `section: success_criteria`, `mode: append`
|
|
49
|
+
|
|
50
|
+
If the user wants a whole new section, use `mode: new-section` with `afterSection: execution` (or whichever anchor makes sense).
|
|
51
|
+
|
|
52
|
+
**Injection point preview** — after selecting section + mode, render the target command's section map showing existing overlays and the new injection point:
|
|
53
|
+
|
|
54
|
+
```
|
|
55
|
+
=== maestro-execute.md (1 overlay exists) ===
|
|
56
|
+
|
|
57
|
+
<purpose>
|
|
58
|
+
<required_reading>
|
|
59
|
+
<context>
|
|
60
|
+
<execution>
|
|
61
|
+
├─ [existing] cli-verify #1 "CLI Verification step"
|
|
62
|
+
>>> NEW: append here (your overlay)
|
|
63
|
+
<success_criteria>
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Use AskUserQuestion to confirm:
|
|
67
|
+
- **"Confirm"** — proceed with this injection point
|
|
68
|
+
- **"Pick different section"** — re-select section/mode
|
|
69
|
+
- **"Cancel"** — abort
|
|
70
|
+
|
|
71
|
+
### 2.5. Skill chain configuration
|
|
72
|
+
|
|
73
|
+
After confirming the injection point, ask whether this overlay should chain to another skill upon completion. This enables the overlay's injected content to hand off to a skill via AskUserQuestion at runtime — similar to how `/maestro` chains commands via `Skill({ skill: "...", args: "..." })`.
|
|
74
|
+
|
|
75
|
+
Use AskUserQuestion:
|
|
76
|
+
- **"No chain"** — standard overlay, no skill handoff
|
|
77
|
+
- **"Chain to skill"** → ask for the target skill name (e.g., `quality-review`, `maestro-execute`, `quality-test`)
|
|
78
|
+
- **"Chain with alternatives"** → ask for primary skill + 1-2 alternative skills
|
|
79
|
+
|
|
80
|
+
If chain is selected, record the skill name(s) for use in Step 3.
|
|
81
|
+
|
|
82
|
+
### 3. Draft the overlay JSON
|
|
83
|
+
|
|
84
|
+
Build a slug from the user's intent (kebab-case, lowercase). Write to `~/.maestro/overlays/<slug>.json`:
|
|
85
|
+
|
|
86
|
+
```json
|
|
87
|
+
{
|
|
88
|
+
"name": "<slug>",
|
|
89
|
+
"description": "<short summary of what and why>",
|
|
90
|
+
"targets": ["maestro-execute"],
|
|
91
|
+
"priority": 50,
|
|
92
|
+
"enabled": true,
|
|
93
|
+
"patches": [
|
|
94
|
+
{
|
|
95
|
+
"section": "execution",
|
|
96
|
+
"mode": "append",
|
|
97
|
+
"content": "## CLI Verification (overlay)\n\nAfter execution, run:\n```\nccw cli -p \"PURPOSE: ...\" --mode analysis --rule analysis-review-code-quality\n```"
|
|
98
|
+
}
|
|
99
|
+
]
|
|
100
|
+
}
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
**Content guidelines**
|
|
104
|
+
- Lead the injected block with a heading that includes `(overlay)` so readers see it's machine-injected
|
|
105
|
+
- Keep content concise — overlays should add a step, not rewrite the command
|
|
106
|
+
- `@~/.maestro/...` references are encouraged for pointing at docs
|
|
107
|
+
- Escape `\n` in JSON strings; use a HEREDOC via Bash if content is long
|
|
108
|
+
|
|
109
|
+
**Skill chain content** — if a chain was configured in Step 2.5, append a Skill Handoff block at the end of the patch `content`. The handoff uses AskUserQuestion so the user controls whether to proceed:
|
|
110
|
+
|
|
111
|
+
```markdown
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
**Skill Handoff** (overlay)
|
|
115
|
+
|
|
116
|
+
After the above step completes, use AskUserQuestion:
|
|
117
|
+
- "Proceed to /quality-review" — Hand off to quality review
|
|
118
|
+
- "Skip" — Continue with current command flow
|
|
119
|
+
- "Alternative: /maestro-execute" — Run execution with built-in verification instead
|
|
120
|
+
|
|
121
|
+
On user selection:
|
|
122
|
+
- Proceed → Skill({ skill: "quality-review", args: "{phase}" })
|
|
123
|
+
- Alternative → Skill({ skill: "maestro-execute", args: "{phase}" })
|
|
124
|
+
- Skip → continue normally
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
Handoff rules:
|
|
128
|
+
- Always include a **"Skip"** option — the user can always decline the chain
|
|
129
|
+
- Use `Skill({ skill: "<name>", args: "..." })` syntax consistent with maestro.md chainMap
|
|
130
|
+
- Mark handoff heading with `(overlay)` tag
|
|
131
|
+
- Support runtime variable placeholders: `{phase}`, `{description}`, `{session_id}`
|
|
132
|
+
- Keep handoff block under 10 lines of markdown
|
|
133
|
+
|
|
134
|
+
### 4. Install via `maestro overlay add`
|
|
135
|
+
|
|
136
|
+
Run:
|
|
137
|
+
|
|
138
|
+
```bash
|
|
139
|
+
maestro overlay add ~/.maestro/overlays/<slug>.json
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
This validates the overlay, copies it into place (idempotent), and applies it across all known install scopes. On validation failure, fix the JSON and re-run.
|
|
143
|
+
|
|
144
|
+
### 5. Report
|
|
145
|
+
|
|
146
|
+
Show the user:
|
|
147
|
+
- Path of the saved overlay JSON
|
|
148
|
+
- Which targets were patched and which were skipped (missing/disabled)
|
|
149
|
+
- Skill chain info (if configured)
|
|
150
|
+
- A reminder that `maestro install` will auto-reapply on every run
|
|
151
|
+
- How to remove: `maestro overlay remove <slug>`
|
|
152
|
+
|
|
153
|
+
**Report format**
|
|
154
|
+
|
|
155
|
+
```
|
|
156
|
+
=== OVERLAY INSTALLED ===
|
|
157
|
+
Name: <slug>
|
|
158
|
+
Path: ~/.maestro/overlays/<slug>.json
|
|
159
|
+
Targets: maestro-execute (applied), maestro-plan (skipped: missing)
|
|
160
|
+
Chain: quality-review (via AskUserQuestion) | none
|
|
161
|
+
Scopes: [global]
|
|
162
|
+
|
|
163
|
+
Re-apply: maestro overlay apply
|
|
164
|
+
Remove: maestro overlay remove <slug>
|
|
165
|
+
Inspect: maestro overlay list
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
After the report, remind the user they can run `maestro overlay list` for the interactive TUI showing section maps and overlay management.
|
|
169
|
+
</execution>
|
|
170
|
+
|
|
171
|
+
<success_criteria>
|
|
172
|
+
- [ ] Overlay JSON written to `~/.maestro/overlays/<slug>.json` and validates
|
|
173
|
+
- [ ] `maestro overlay add` exited successfully and applied to at least one scope
|
|
174
|
+
- [ ] Target command file(s) contain `<!-- maestro-overlay:<slug>#N hash=... -->` markers
|
|
175
|
+
- [ ] Re-running `maestro overlay apply` produces no file changes (idempotent)
|
|
176
|
+
- [ ] User shown the report with target list and removal instructions
|
|
177
|
+
- [ ] Injection point preview shown (with existing overlays + `>>>` marker) and confirmed before drafting
|
|
178
|
+
- [ ] If chain configured, `content` includes Skill Handoff block with AskUserQuestion + Skip option + `Skill()` calls
|
|
179
|
+
</success_criteria>
|
|
180
|
+
|
|
181
|
+
<completion>
|
|
182
|
+
### Next-step routing
|
|
183
|
+
| Condition | Suggestion |
|
|
184
|
+
|-----------|-----------|
|
|
185
|
+
| Overlay installed | `maestro overlay list` for interactive management |
|
|
186
|
+
| Want to create another | `/maestro-overlay "<intent>"` |
|
|
187
|
+
| Want to remove | `maestro overlay remove <slug>` |
|
|
188
|
+
</completion>
|