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.
Files changed (31) hide show
  1. package/maestro-flow/agents/ui-design-agent.md +1 -0
  2. package/maestro-flow/agents/workflow-executor.md +3 -0
  3. package/maestro-flow/commands/learn/decompose.md +91 -146
  4. package/maestro-flow/commands/learn/follow.md +102 -137
  5. package/maestro-flow/commands/learn/investigate.md +102 -167
  6. package/maestro-flow/commands/learn/retro.md +100 -243
  7. package/maestro-flow/commands/learn/second-opinion.md +95 -135
  8. package/maestro-flow/commands/lifecycle/amend.md +95 -232
  9. package/maestro-flow/commands/lifecycle/analyze.md +1 -6
  10. package/maestro-flow/commands/lifecycle/collab.md +104 -265
  11. package/maestro-flow/commands/lifecycle/composer.md +113 -293
  12. package/maestro-flow/commands/lifecycle/execute.md +11 -17
  13. package/maestro-flow/commands/lifecycle/impeccable.md +89 -0
  14. package/maestro-flow/commands/lifecycle/plan.md +1 -6
  15. package/maestro-flow/commands/lifecycle/player.md +111 -340
  16. package/maestro-flow/commands/lifecycle/quick.md +9 -0
  17. package/maestro-flow/commands/lifecycle/tools-register.md +28 -7
  18. package/maestro-flow/commands/lifecycle/ui-codify.md +13 -0
  19. package/maestro-flow/commands/lifecycle/ui-craft.md +364 -0
  20. package/maestro-flow/commands/lifecycle/ui-design.md +12 -1
  21. package/maestro-flow/commands/lifecycle/verify.md +12 -13
  22. package/maestro-flow/commands/manage/knowhow-capture.md +45 -161
  23. package/maestro-flow/commands/quality/auto-test.md +9 -0
  24. package/maestro-flow/commands/quality/debug.md +11 -24
  25. package/maestro-flow/commands/quality/refactor.md +9 -0
  26. package/maestro-flow/commands/quality/review.md +5 -13
  27. package/maestro-flow/commands/quality/test.md +5 -0
  28. package/maestro-flow/commands/spec/add.md +1 -1
  29. package/maestro-flow/commands/spec/load.md +3 -2
  30. package/package.json +1 -1
  31. 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 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
- ### 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
- After root cause is confirmed, evaluate inquiry triggers:
87
-
88
- 1. **Recurring pattern**: If root cause matches a recurring pattern (similar to prior debug sessions):
89
- Ask: "This root cause pattern has appeared before. Should it be documented in `debug-notes.md` to prevent recurrence? (`/spec-add debug`)"
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
- If user confirms, invoke `Skill({ skill: "spec-add", args: "<category> <content>" })`.
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 context (before dispatching reviewer agents)
52
-
53
- 1. **Codebase docs**: If `.workflow/codebase/ARCHITECTURE.md` exists, load component boundaries and layer rules. Pass as `codebase_context` to reviewer agents (especially architecture dimension).
54
- 2. **Wiki constraints**: Run `maestro wiki search "architecture constraint" --json 2>/dev/null`. If results found, pass as `wiki_context` to reviewer agents for evaluating code against documented decisions.
55
- 3. Both are optional proceed without if unavailable.
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, quality, learning.
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
- | quality-rules.md | quality |
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,6 +1,6 @@
1
1
  {
2
2
  "name": "maestro-flow-one",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
4
4
  "description": "All Maestro workflow commands as a single Claude Code skill — intent routing, decision gates, minimal closed-loop chains",
5
5
  "bin": {
6
6
  "maestro-flow": "bin/maestro-flow.js"
@@ -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>