maestro-flow-one 0.2.5 → 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 (28) 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 +10 -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/ui-codify.md +13 -0
  18. package/maestro-flow/commands/lifecycle/ui-craft.md +364 -0
  19. package/maestro-flow/commands/lifecycle/ui-design.md +12 -1
  20. package/maestro-flow/commands/lifecycle/verify.md +12 -13
  21. package/maestro-flow/commands/manage/knowhow-capture.md +45 -170
  22. package/maestro-flow/commands/quality/auto-test.md +9 -0
  23. package/maestro-flow/commands/quality/debug.md +11 -25
  24. package/maestro-flow/commands/quality/refactor.md +9 -0
  25. package/maestro-flow/commands/quality/review.md +5 -14
  26. package/maestro-flow/commands/spec/add.md +1 -1
  27. package/maestro-flow/commands/spec/load.md +3 -2
  28. package/package.json +1 -1
@@ -50,6 +50,15 @@ Phase or task: $ARGUMENTS (required — phase number)
50
50
  | 5 | Default | code | quality-integration-test |
51
51
 
52
52
  Flags, artifact context resolution, and output formats defined in workflow auto-test.md.
53
+
54
+ ### Pre-load context (before test generation)
55
+
56
+ 1. **Test specs + tools**: Run `maestro spec load --category test` to load test conventions (framework, patterns, naming). Apply to all generated tests.
57
+ 2. **Coding specs**: Run `maestro spec load --category coding` to understand coding patterns for accurate test targeting.
58
+ 3. **Role Knowledge**:
59
+ - Browse: `maestro wiki list --category test`
60
+ - Load task-relevant entries: `maestro wiki load <id1> [id2...]`
61
+ 4. All are optional — proceed without if unavailable.
53
62
  </context>
54
63
 
55
64
  <execution>
@@ -43,20 +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. **Debug specs + tools**: Run `maestro spec load --category debug --keyword "<symptom keywords>"`. If tools found, extract known issues, workarounds, and root-cause notes to inform hypotheses.
51
- 4. All are optional — proceed without if unavailable.
52
-
53
- ### Role Knowledge
54
- 1. Browse accumulated knowledge for this role:
55
- `maestro wiki list --category debug`
56
- 2. Analyze the index, identify entries relevant to the current task
57
- 3. Load selected documents:
58
- `maestro wiki load <id1> [id2] [id3...]`
59
- 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`
60
51
 
61
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.
62
53
  </context>
@@ -84,18 +75,13 @@ Append to state.json.artifacts[]:
84
75
 
85
76
  ### Post-debug Knowledge Inquiry
86
77
 
87
- After root cause is confirmed, evaluate inquiry triggers:
88
-
89
- 1. **Recurring pattern**: If root cause matches a recurring pattern (similar to prior debug sessions):
90
- Ask: "This root cause pattern has appeared before. Should it be documented in `debug-notes.md` to prevent recurrence? (`/spec-add debug`)"
91
-
92
- 2. **Non-obvious fix**: If fix involved a non-obvious approach or workaround:
93
- → Ask: "This fix used a non-obvious strategy. Should it be recorded as a learning? (`/spec-add learning`)"
94
-
95
- 3. **Architectural gap**: If root cause traces to architectural boundary violation or missing constraint:
96
- → 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 |
97
83
 
98
- If user confirms, invoke `Skill({ skill: "spec-add", args: "<category> <content>" })`.
84
+ On confirm `Skill("spec-add", "<category> <content>")`.
99
85
 
100
86
  **Next-step routing on completion:**
101
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,20 +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. **Review specs + tools**: Run `maestro spec load --category review` to load review standards, checklists, AND discoverable knowhow tools. Pass as `specs_content` to all reviewer agents.
56
- 4. All are optional — proceed without if unavailable.
57
-
58
- ### Role Knowledge
59
- 1. Browse accumulated knowledge for this role:
60
- `maestro wiki list --category review`
61
- 2. Analyze the index, identify entries relevant to the current task
62
- 3. Load selected documents:
63
- `maestro wiki load <id1> [id2] [id3...]`
64
- 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`
65
56
 
66
57
  **Output**: `REVIEW_DIR = .workflow/scratch/{YYYYMMDD}-review-P{N}-{slug}/` (P{N} = phase number, enables directory-level identification as state.json fallback)
67
58
  </context>
@@ -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.5",
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"