maestro-flow-one 0.2.4 → 0.2.6
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/agents/ui-design-agent.md +1 -0
- package/maestro-flow/agents/workflow-executor.md +3 -0
- package/maestro-flow/commands/learn/decompose.md +91 -146
- package/maestro-flow/commands/learn/follow.md +102 -137
- package/maestro-flow/commands/learn/investigate.md +102 -167
- package/maestro-flow/commands/learn/retro.md +100 -243
- package/maestro-flow/commands/learn/second-opinion.md +95 -135
- package/maestro-flow/commands/lifecycle/amend.md +95 -232
- package/maestro-flow/commands/lifecycle/analyze.md +1 -6
- package/maestro-flow/commands/lifecycle/collab.md +104 -265
- package/maestro-flow/commands/lifecycle/composer.md +113 -293
- package/maestro-flow/commands/lifecycle/execute.md +11 -17
- package/maestro-flow/commands/lifecycle/impeccable.md +89 -0
- package/maestro-flow/commands/lifecycle/plan.md +1 -6
- package/maestro-flow/commands/lifecycle/player.md +111 -340
- package/maestro-flow/commands/lifecycle/quick.md +9 -0
- package/maestro-flow/commands/lifecycle/tools-register.md +28 -7
- package/maestro-flow/commands/lifecycle/ui-codify.md +13 -0
- package/maestro-flow/commands/lifecycle/ui-craft.md +364 -0
- package/maestro-flow/commands/lifecycle/ui-design.md +12 -1
- package/maestro-flow/commands/lifecycle/verify.md +12 -13
- package/maestro-flow/commands/manage/knowhow-capture.md +45 -161
- package/maestro-flow/commands/quality/auto-test.md +9 -0
- package/maestro-flow/commands/quality/debug.md +11 -24
- package/maestro-flow/commands/quality/refactor.md +9 -0
- package/maestro-flow/commands/quality/review.md +5 -13
- package/maestro-flow/commands/quality/test.md +5 -0
- package/maestro-flow/commands/spec/add.md +1 -1
- package/maestro-flow/commands/spec/load.md +3 -2
- package/package.json +1 -1
- package/maestro-flow/commands/lifecycle/link-coordinate.md +0 -71
|
@@ -43,19 +43,11 @@ Each artifact's type determines its outputs at `.workflow/{a.path}/`:
|
|
|
43
43
|
|
|
44
44
|
Extract conclusions from related artifacts that may affect this debug session — review findings guide investigation direction, prior debug avoids redundant work.
|
|
45
45
|
|
|
46
|
-
### Pre-load
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
### Role Knowledge
|
|
53
|
-
1. Browse accumulated knowledge for this role:
|
|
54
|
-
`maestro wiki list --category debug`
|
|
55
|
-
2. Analyze the index, identify entries relevant to the current task
|
|
56
|
-
3. Load selected documents:
|
|
57
|
-
`maestro wiki load <id1> [id2] [id3...]`
|
|
58
|
-
4. Review loaded knowledge before proceeding
|
|
46
|
+
### Pre-load (optional, proceed without)
|
|
47
|
+
- Codebase docs: `.workflow/codebase/ARCHITECTURE.md` → module boundaries
|
|
48
|
+
- Wiki: `maestro wiki search "<symptom keywords>" --json` → prior investigations
|
|
49
|
+
- Specs: `maestro spec load --category debug --keyword "<symptom>"` → known issues/workarounds
|
|
50
|
+
- Role knowledge: `maestro wiki list --category debug` → select relevant → `maestro wiki load`
|
|
59
51
|
|
|
60
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.
|
|
61
53
|
</context>
|
|
@@ -83,18 +75,13 @@ Append to state.json.artifacts[]:
|
|
|
83
75
|
|
|
84
76
|
### Post-debug Knowledge Inquiry
|
|
85
77
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
2. **Non-obvious fix**: If fix involved a non-obvious approach or workaround:
|
|
92
|
-
→ Ask: "This fix used a non-obvious strategy. Should it be recorded as a learning? (`/spec-add learning`)"
|
|
93
|
-
|
|
94
|
-
3. **Architectural gap**: If root cause traces to architectural boundary violation or missing constraint:
|
|
95
|
-
→ Ask: "Root cause points to an architectural gap. Should `architecture-constraints.md` be updated? (`/spec-add arch`)"
|
|
78
|
+
| Condition | Ask | Route |
|
|
79
|
+
|-----------|-----|-------|
|
|
80
|
+
| Recurring root cause pattern (seen in prior debug) | "Document in debug-notes.md?" | spec-add debug |
|
|
81
|
+
| Non-obvious fix / workaround | "Record as learning?" | spec-add learning |
|
|
82
|
+
| Root cause = architectural boundary violation | "Update architecture-constraints.md?" | spec-add arch |
|
|
96
83
|
|
|
97
|
-
|
|
84
|
+
On confirm → `Skill("spec-add", "<category> <content>")`.
|
|
98
85
|
|
|
99
86
|
**Next-step routing on completion:**
|
|
100
87
|
- Root cause found, fix needed → `/maestro-plan {phase} --gaps`
|
|
@@ -27,6 +27,15 @@ Scope: $ARGUMENTS (required)
|
|
|
27
27
|
- "all" - full codebase scan
|
|
28
28
|
|
|
29
29
|
If not provided, prompt user for scope.
|
|
30
|
+
|
|
31
|
+
### Pre-load context (before refactoring)
|
|
32
|
+
|
|
33
|
+
1. **Coding specs**: Run `maestro spec load --category coding` to load coding conventions. Apply conventions to all refactored code.
|
|
34
|
+
2. **Review specs**: Run `maestro spec load --category review` to load review standards. Use as quality gate for refactored code.
|
|
35
|
+
3. **Role Knowledge**:
|
|
36
|
+
- Browse: `maestro wiki list --category coding`
|
|
37
|
+
- Identify task-relevant entries, then load: `maestro wiki load <id1> [id2...]`
|
|
38
|
+
4. All are optional — proceed without if unavailable.
|
|
30
39
|
</context>
|
|
31
40
|
|
|
32
41
|
<execution>
|
|
@@ -48,19 +48,11 @@ Each artifact's type determines its outputs at `.workflow/{a.path}/`:
|
|
|
48
48
|
|
|
49
49
|
Extract conclusions from related artifacts that may affect this review. Pass as prior quality context to reviewer agents — avoid redundant work, focus on gaps and regressions.
|
|
50
50
|
|
|
51
|
-
### Pre-load
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
### Role Knowledge
|
|
58
|
-
1. Browse accumulated knowledge for this role:
|
|
59
|
-
`maestro wiki list --category review`
|
|
60
|
-
2. Analyze the index, identify entries relevant to the current task
|
|
61
|
-
3. Load selected documents:
|
|
62
|
-
`maestro wiki load <id1> [id2] [id3...]`
|
|
63
|
-
4. Review loaded knowledge before proceeding
|
|
51
|
+
### Pre-load (optional, proceed without)
|
|
52
|
+
- Codebase docs: `.workflow/codebase/ARCHITECTURE.md` → component boundaries, layer rules
|
|
53
|
+
- Wiki constraints: `maestro wiki search "architecture constraint" --json` → documented decisions
|
|
54
|
+
- Specs: `maestro spec load --category review` → review standards, checklists, knowhow tools
|
|
55
|
+
- Role knowledge: `maestro wiki list --category review` → select relevant → `maestro wiki load`
|
|
64
56
|
|
|
65
57
|
**Output**: `REVIEW_DIR = .workflow/scratch/{YYYYMMDD}-review-P{N}-{slug}/` (P{N} = phase number, enables directory-level identification as state.json fallback)
|
|
66
58
|
</context>
|
|
@@ -40,6 +40,11 @@ Follow '~/.maestro/workflows/test.md' completely.
|
|
|
40
40
|
|
|
41
41
|
**Command-specific extensions (not in workflow):**
|
|
42
42
|
|
|
43
|
+
**Test tool discovery** (knowhow tools as scenario source):
|
|
44
|
+
- Load registered test tools: `maestro spec load --category test --keyword <feature>`
|
|
45
|
+
- If tools found, extract their steps as additional test scenarios marked `source: "tool"`
|
|
46
|
+
- Each numbered step in a tool becomes a UAT test with its assertion as `expected` behavior
|
|
47
|
+
|
|
43
48
|
**Review findings integration** (from related review artifacts):
|
|
44
49
|
- Extract critical/high findings as additional test scenarios, marked `source: "review_finding"`
|
|
45
50
|
- When review verdict is "BLOCK" and review-finding tests fail, auto-enter gap-fix loop
|
|
@@ -50,7 +50,7 @@ Follow '~/.maestro/workflows/specs-add.md' completely.
|
|
|
50
50
|
|------|----------|-------------|-------|
|
|
51
51
|
| E001 | fatal | Category and content are both required | parse_input |
|
|
52
52
|
| E002 | fatal | Specs directory not initialized -- run `maestro spec init --scope <scope>` | validate_entry |
|
|
53
|
-
| E003 | fatal | Invalid category -- must be one of: coding, arch, quality, debug, test, review, learning, tools | parse_input |
|
|
53
|
+
| E003 | fatal | Invalid category -- must be one of: coding, arch, quality, debug, test, review, learning, tools, ui | parse_input |
|
|
54
54
|
| E004 | fatal | Invalid scope -- must be one of: project, global, team, personal | parse_input |
|
|
55
55
|
| E005 | fatal | Personal scope requires uid -- use `--uid` or run `maestro collab join` first | parse_input |
|
|
56
56
|
</error_codes>
|
|
@@ -21,7 +21,7 @@ Category-based loading: loads the category's primary doc in full + matching entr
|
|
|
21
21
|
$ARGUMENTS -- optional flags and keyword
|
|
22
22
|
|
|
23
23
|
**Flags:**
|
|
24
|
-
- `--category <category>` — Load by category: primary category doc (full) + cross-file entries with matching category attr. Categories: coding, arch, test, review, debug,
|
|
24
|
+
- `--category <category>` — Load by category: primary category doc (full) + cross-file entries with matching category attr. Categories: coding, arch, test, review, debug, learning, ui.
|
|
25
25
|
- `--keyword <word>` — Filter by keyword within entries
|
|
26
26
|
|
|
27
27
|
**File → Primary Category mapping:**
|
|
@@ -32,7 +32,8 @@ $ARGUMENTS -- optional flags and keyword
|
|
|
32
32
|
| test-conventions.md | test |
|
|
33
33
|
| review-standards.md | review |
|
|
34
34
|
| debug-notes.md | debug |
|
|
35
|
-
|
|
|
35
|
+
| ui-conventions.md | ui |
|
|
36
|
+
| quality-rules.md | review |
|
|
36
37
|
| learnings.md | learning |
|
|
37
38
|
|
|
38
39
|
**Examples:**
|
package/package.json
CHANGED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: maestro-link-coordinate
|
|
3
|
-
description: Execute command chain nodes step by step
|
|
4
|
-
argument-hint: "\"intent text\" [--list] [-c [sessionId]] [--chain <name>] [--tool <tool>] [-y]"
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- Read
|
|
7
|
-
- Write
|
|
8
|
-
- Edit
|
|
9
|
-
- Bash
|
|
10
|
-
- Glob
|
|
11
|
-
- Grep
|
|
12
|
-
- Agent
|
|
13
|
-
---
|
|
14
|
-
<purpose>
|
|
15
|
-
Step-mode workflow coordinator using `maestro coordinate` CLI subcommands (start/next/status).
|
|
16
|
-
Walks chain graphs node by node — each command node executed via `maestro delegate` internally.
|
|
17
|
-
Decision/gate/eval nodes auto-resolve between steps. Session persisted for resume.
|
|
18
|
-
</purpose>
|
|
19
|
-
|
|
20
|
-
<required_reading>
|
|
21
|
-
@~/.maestro/workflows/maestro-link-coordinate.md
|
|
22
|
-
</required_reading>
|
|
23
|
-
|
|
24
|
-
<context>
|
|
25
|
-
$ARGUMENTS — user intent text, or flags.
|
|
26
|
-
|
|
27
|
-
**Flags:**
|
|
28
|
-
- `--list` — List all available chain graphs
|
|
29
|
-
- `-c` / `--continue [sessionId]` — Resume step_paused session via `coordinate next`
|
|
30
|
-
- `--chain <name>` — Force a specific chain graph
|
|
31
|
-
- `--tool <tool>` — CLI tool override (default: claude)
|
|
32
|
-
- `-y` / `--yes` — Auto mode
|
|
33
|
-
|
|
34
|
-
**CLI endpoints used:**
|
|
35
|
-
- `maestro coordinate list` — enumerate chains
|
|
36
|
-
- `maestro coordinate start "intent" --chain X` — begin step-mode session
|
|
37
|
-
- `maestro coordinate next [sessionId]` — advance one step
|
|
38
|
-
- `maestro coordinate status [sessionId]` — query state
|
|
39
|
-
- `maestro coordinate run "intent"` — autonomous full run
|
|
40
|
-
- `maestro coordinate watch <sessionId> [--follow]` — read-only event tail (separate from driver loop)
|
|
41
|
-
- `maestro coordinate report` — agent-invoked command-node result writer (authoritative result channel)
|
|
42
|
-
|
|
43
|
-
**Internal walker capabilities (invisible to driver loop):**
|
|
44
|
-
- Prompt assembly owned by the walker (main flow) for both command and decision nodes
|
|
45
|
-
- Decision nodes auto-resolve via `strategy: 'expr'` (fast path) with LLM decider fallback when expr has no match and no default edge, or explicit `strategy: 'llm'`
|
|
46
|
-
- Walker events published to a file/SQLite broker for `watch` observers
|
|
47
|
-
- LLM decision in step mode is synchronous — avoid tight per-step deadlines
|
|
48
|
-
</context>
|
|
49
|
-
|
|
50
|
-
<execution>
|
|
51
|
-
Follow '~/.maestro/workflows/maestro-link-coordinate.md' completely.
|
|
52
|
-
</execution>
|
|
53
|
-
|
|
54
|
-
<error_codes>
|
|
55
|
-
| Code | Severity | Description | Recovery |
|
|
56
|
-
|------|----------|-------------|----------|
|
|
57
|
-
| E001 | error | No intent and no --list/--chain | Suggest --list |
|
|
58
|
-
| E002 | error | Chain graph not found | Show list output |
|
|
59
|
-
| E003 | error | Step execution failed | Check status, retry next |
|
|
60
|
-
| E004 | error | Resume session not found | List sessions |
|
|
61
|
-
| E005 | error | CLI endpoint unavailable | Check maestro installation |
|
|
62
|
-
</error_codes>
|
|
63
|
-
|
|
64
|
-
<success_criteria>
|
|
65
|
-
- [ ] Chain graph loaded via `maestro coordinate start`
|
|
66
|
-
- [ ] Each step executed via `maestro coordinate next` loop
|
|
67
|
-
- [ ] JSON output parsed for session tracking
|
|
68
|
-
- [ ] Decision nodes auto-resolved between steps
|
|
69
|
-
- [ ] Session persisted and resumable via `-c`
|
|
70
|
-
- [ ] Completion summary displayed
|
|
71
|
-
</success_criteria>
|