maestro-flow-one 0.1.0

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 (106) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +173 -0
  3. package/bin/maestro-flow.js +730 -0
  4. package/claude/maestro-flow/SKILL.md +239 -0
  5. package/claude/maestro-flow/chains/templates.json +256 -0
  6. package/claude/maestro-flow/commands/learn/decompose.md +176 -0
  7. package/claude/maestro-flow/commands/learn/follow.md +167 -0
  8. package/claude/maestro-flow/commands/learn/investigate.md +221 -0
  9. package/claude/maestro-flow/commands/learn/retro.md +303 -0
  10. package/claude/maestro-flow/commands/learn/second-opinion.md +167 -0
  11. package/claude/maestro-flow/commands/lifecycle/amend.md +300 -0
  12. package/claude/maestro-flow/commands/lifecycle/analyze.md +126 -0
  13. package/claude/maestro-flow/commands/lifecycle/brainstorm.md +100 -0
  14. package/claude/maestro-flow/commands/lifecycle/composer.md +354 -0
  15. package/claude/maestro-flow/commands/lifecycle/execute.md +114 -0
  16. package/claude/maestro-flow/commands/lifecycle/fork.md +86 -0
  17. package/claude/maestro-flow/commands/lifecycle/init.md +78 -0
  18. package/claude/maestro-flow/commands/lifecycle/learn.md +140 -0
  19. package/claude/maestro-flow/commands/lifecycle/link-coordinate.md +71 -0
  20. package/claude/maestro-flow/commands/lifecycle/merge.md +61 -0
  21. package/claude/maestro-flow/commands/lifecycle/overlay.md +178 -0
  22. package/claude/maestro-flow/commands/lifecycle/plan.md +138 -0
  23. package/claude/maestro-flow/commands/lifecycle/player.md +404 -0
  24. package/claude/maestro-flow/commands/lifecycle/quick.md +56 -0
  25. package/claude/maestro-flow/commands/lifecycle/roadmap.md +164 -0
  26. package/claude/maestro-flow/commands/lifecycle/ui-design.md +93 -0
  27. package/claude/maestro-flow/commands/lifecycle/update.md +176 -0
  28. package/claude/maestro-flow/commands/lifecycle/verify.md +90 -0
  29. package/claude/maestro-flow/commands/manage/codebase-rebuild.md +75 -0
  30. package/claude/maestro-flow/commands/manage/codebase-refresh.md +57 -0
  31. package/claude/maestro-flow/commands/manage/harvest.md +94 -0
  32. package/claude/maestro-flow/commands/manage/issue-discover.md +77 -0
  33. package/claude/maestro-flow/commands/manage/issue.md +73 -0
  34. package/claude/maestro-flow/commands/manage/knowhow-capture.md +193 -0
  35. package/claude/maestro-flow/commands/manage/knowhow.md +77 -0
  36. package/claude/maestro-flow/commands/manage/learn.md +67 -0
  37. package/claude/maestro-flow/commands/manage/status.md +51 -0
  38. package/claude/maestro-flow/commands/manage/wiki.md +62 -0
  39. package/claude/maestro-flow/commands/milestone/audit.md +68 -0
  40. package/claude/maestro-flow/commands/milestone/complete.md +75 -0
  41. package/claude/maestro-flow/commands/milestone/release.md +96 -0
  42. package/claude/maestro-flow/commands/quality/auto-test.md +124 -0
  43. package/claude/maestro-flow/commands/quality/debug.md +115 -0
  44. package/claude/maestro-flow/commands/quality/refactor.md +55 -0
  45. package/claude/maestro-flow/commands/quality/retrospective.md +78 -0
  46. package/claude/maestro-flow/commands/quality/review.md +108 -0
  47. package/claude/maestro-flow/commands/quality/sync.md +51 -0
  48. package/claude/maestro-flow/commands/quality/test.md +103 -0
  49. package/claude/maestro-flow/commands/spec/add.md +49 -0
  50. package/claude/maestro-flow/commands/spec/load.md +51 -0
  51. package/claude/maestro-flow/commands/spec/remove.md +51 -0
  52. package/claude/maestro-flow/commands/spec/setup.md +51 -0
  53. package/claude/maestro-flow/commands/wiki/connect.md +62 -0
  54. package/claude/maestro-flow/commands/wiki/digest.md +69 -0
  55. package/codex/maestro-flow/SKILL.md +505 -0
  56. package/codex/maestro-flow/chains/templates.json +256 -0
  57. package/codex/maestro-flow/commands/learn/decompose.md +113 -0
  58. package/codex/maestro-flow/commands/learn/follow.md +83 -0
  59. package/codex/maestro-flow/commands/learn/investigate.md +83 -0
  60. package/codex/maestro-flow/commands/learn/retro.md +83 -0
  61. package/codex/maestro-flow/commands/learn/second-opinion.md +86 -0
  62. package/codex/maestro-flow/commands/lifecycle/amend.md +300 -0
  63. package/codex/maestro-flow/commands/lifecycle/analyze.md +483 -0
  64. package/codex/maestro-flow/commands/lifecycle/brainstorm.md +397 -0
  65. package/codex/maestro-flow/commands/lifecycle/composer.md +213 -0
  66. package/codex/maestro-flow/commands/lifecycle/execute.md +318 -0
  67. package/codex/maestro-flow/commands/lifecycle/fork.md +98 -0
  68. package/codex/maestro-flow/commands/lifecycle/init.md +134 -0
  69. package/codex/maestro-flow/commands/lifecycle/learn.md +80 -0
  70. package/codex/maestro-flow/commands/lifecycle/link-coordinate.md +257 -0
  71. package/codex/maestro-flow/commands/lifecycle/merge.md +69 -0
  72. package/codex/maestro-flow/commands/lifecycle/overlay.md +119 -0
  73. package/codex/maestro-flow/commands/lifecycle/plan.md +460 -0
  74. package/codex/maestro-flow/commands/lifecycle/player.md +323 -0
  75. package/codex/maestro-flow/commands/lifecycle/quick.md +124 -0
  76. package/codex/maestro-flow/commands/lifecycle/roadmap.md +468 -0
  77. package/codex/maestro-flow/commands/lifecycle/ui-design.md +135 -0
  78. package/codex/maestro-flow/commands/lifecycle/update.md +176 -0
  79. package/codex/maestro-flow/commands/lifecycle/verify.md +468 -0
  80. package/codex/maestro-flow/commands/manage/codebase-rebuild.md +347 -0
  81. package/codex/maestro-flow/commands/manage/codebase-refresh.md +66 -0
  82. package/codex/maestro-flow/commands/manage/harvest.md +91 -0
  83. package/codex/maestro-flow/commands/manage/issue-discover.md +431 -0
  84. package/codex/maestro-flow/commands/manage/issue.md +75 -0
  85. package/codex/maestro-flow/commands/manage/knowhow-capture.md +110 -0
  86. package/codex/maestro-flow/commands/manage/knowhow.md +95 -0
  87. package/codex/maestro-flow/commands/manage/learn.md +137 -0
  88. package/codex/maestro-flow/commands/manage/status.md +76 -0
  89. package/codex/maestro-flow/commands/manage/wiki.md +55 -0
  90. package/codex/maestro-flow/commands/milestone/audit.md +87 -0
  91. package/codex/maestro-flow/commands/milestone/complete.md +91 -0
  92. package/codex/maestro-flow/commands/milestone/release.md +70 -0
  93. package/codex/maestro-flow/commands/quality/auto-test.md +547 -0
  94. package/codex/maestro-flow/commands/quality/debug.md +334 -0
  95. package/codex/maestro-flow/commands/quality/refactor.md +151 -0
  96. package/codex/maestro-flow/commands/quality/retrospective.md +292 -0
  97. package/codex/maestro-flow/commands/quality/review.md +364 -0
  98. package/codex/maestro-flow/commands/quality/sync.md +111 -0
  99. package/codex/maestro-flow/commands/quality/test.md +498 -0
  100. package/codex/maestro-flow/commands/spec/add.md +101 -0
  101. package/codex/maestro-flow/commands/spec/load.md +77 -0
  102. package/codex/maestro-flow/commands/spec/remove.md +69 -0
  103. package/codex/maestro-flow/commands/spec/setup.md +75 -0
  104. package/codex/maestro-flow/commands/wiki/connect.md +73 -0
  105. package/codex/maestro-flow/commands/wiki/digest.md +87 -0
  106. package/package.json +24 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,173 @@
1
+ # Maestro Flow One
2
+
3
+ All 49 Maestro workflow commands as a single skill with dual-variant support (Codex + Claude Code).
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install -g maestro-flow-one
9
+ ```
10
+
11
+ ### Install skill
12
+
13
+ ```bash
14
+ # Default: install both variants
15
+ maestro-flow install
16
+ # .codex/skills/maestro-flow/ -> codex (spawn_agents_on_csv)
17
+ # .claude/skills/maestro-flow/ -> claude (Skill + delegate)
18
+
19
+ # Single variant
20
+ maestro-flow install --variant codex
21
+ maestro-flow install --variant claude
22
+
23
+ # Project-level (instead of global ~/.)
24
+ maestro-flow install --project ./my-project
25
+ maestro-flow install --variant codex --project .
26
+ ```
27
+
28
+ ### Uninstall
29
+
30
+ ```bash
31
+ maestro-flow uninstall # Remove both from global
32
+ maestro-flow uninstall --variant codex # Remove codex only
33
+ maestro-flow uninstall --project . # Remove from current project
34
+ npm uninstall -g maestro-flow-one # Remove global CLI
35
+ ```
36
+
37
+ ## Variants
38
+
39
+ | Variant | Install Path | Execution Model |
40
+ |---------|-------------|-----------------|
41
+ | **codex** | `.codex/skills/maestro-flow/` | `spawn_agents_on_csv` wave-based parallel execution |
42
+ | **claude** | `.claude/skills/maestro-flow/` | `Skill()` + `maestro delegate` step-by-step execution |
43
+
44
+ Both variants share the same 49 commands and 14 chain templates. The difference is the SKILL.md execution engine:
45
+
46
+ - **Codex**: Builds CSV waves, dispatches via `spawn_agents_on_csv`. Barrier steps solo, non-barriers parallel. Decision nodes evaluated by coordinator between waves.
47
+ - **Claude**: Uses `maestro-flow next/done` CLI loop. Internal steps loaded inline via `Read()`, external steps delegated via `maestro delegate --to claude`.
48
+
49
+ ## Usage
50
+
51
+ ### In Codex / Claude Code
52
+
53
+ ```bash
54
+ /maestro-flow "fix the login crash" # Intent -> chain -> execute
55
+ /maestro-flow --chain quick-fix "login" # Direct chain
56
+ /maestro-flow --cmd maestro-plan 1 # Single command
57
+ /maestro-flow list # List all 49 commands
58
+ /maestro-flow status # Session progress
59
+ /maestro-flow execute # Resume session
60
+ ```
61
+
62
+ ### CLI
63
+
64
+ ```bash
65
+ maestro-flow list # All commands by category
66
+ maestro-flow list --variant claude # Use claude variant data
67
+ maestro-flow show maestro-plan # Command details
68
+ maestro-flow chains # All 14 chain templates
69
+ maestro-flow chain full-lifecycle # Chain step details
70
+ maestro-flow suggest "fix a bug" # Suggest chain for intent
71
+ maestro-flow resolve maestro-plan # Command name -> file path
72
+
73
+ maestro-flow next # Load next pending step
74
+ maestro-flow done # Complete current step
75
+ maestro-flow status # Session status
76
+ maestro-flow sessions --all # List sessions
77
+ maestro-flow reset <session-id> # Reset failed session
78
+ ```
79
+
80
+ ## Architecture
81
+
82
+ ```
83
+ /maestro-flow "intent"
84
+ |
85
+ +-- "intent text" --> chain match --> session create
86
+ | |
87
+ | +-- [codex] Wave Execution Loop
88
+ | | +-- buildNextWave (barrier=solo, non-barrier=parallel)
89
+ | | +-- write wave-{N}.csv
90
+ | | +-- spawn_agents_on_csv
91
+ | | +-- read results, update status
92
+ | |
93
+ | +-- [claude] Step Execution Loop
94
+ | +-- maestro-flow next (load command)
95
+ | +-- execute inline or delegate
96
+ | +-- maestro-flow done (advance)
97
+ |
98
+ +-- Decision nodes (between steps/waves)
99
+ | +-- delegate evaluate -> proceed / fix-loop / escalate
100
+ |
101
+ +-- --cmd <name> <args> --> resolve + Read() + inline execute
102
+ +-- list / status / chains --> maestro-flow CLI
103
+ ```
104
+
105
+ ## Commands (49)
106
+
107
+ | Category | Count | Commands |
108
+ |----------|-------|----------|
109
+ | **lifecycle** | 17 | init, analyze, plan, execute, verify, brainstorm, roadmap, quick, ui-design, fork, merge, amend, overlay, update, composer, player, link-coordinate |
110
+ | **quality** | 7 | debug, review, test, auto-test, refactor, sync, retrospective |
111
+ | **manage** | 10 | status, issue, issue-discover, harvest, knowhow, knowhow-capture, learn, wiki, codebase-rebuild, codebase-refresh |
112
+ | **learn** | 5 | decompose, follow, investigate, retro, second-opinion |
113
+ | **milestone** | 3 | audit, complete, release |
114
+ | **spec** | 4 | add, load, remove, setup |
115
+ | **wiki** | 2 | connect, digest |
116
+
117
+ ## Chains (14)
118
+
119
+ ### Without Decision Gates
120
+
121
+ | Chain | Steps | Flow |
122
+ |-------|-------|------|
123
+ | `analyze-plan-execute` | 3 | analyze -> plan -> execute |
124
+ | `execute-verify` | 2 | execute -> verify |
125
+ | `milestone-release` | 2 | audit -> release |
126
+ | `learn-deep` | 3 | follow -> decompose -> second-opinion |
127
+
128
+ ### With Decision Gates
129
+
130
+ | Chain | Steps | Gates |
131
+ |-------|-------|-------|
132
+ | `quick-fix` | 5 | post-verify |
133
+ | `issue-fix` | 8 | post-verify, post-review |
134
+ | `plan-execute-verify` | 4 | post-verify |
135
+ | `quality-loop` | 7 | post-verify, post-review, post-test |
136
+ | `standard-lifecycle` | 9 | post-verify, post-review, post-test |
137
+ | `roadmap-driven` | 9 | post-verify, post-review |
138
+
139
+ ### Full Lifecycle (15 steps, ralph-equivalent)
140
+
141
+ ```
142
+ analyze -> plan -> execute -> verify -> [post-verify]
143
+ -> auto-test -> [post-business-test]
144
+ -> review -> [post-review]
145
+ -> auto-test -> test -> [post-test]
146
+ -> milestone-audit -> milestone-complete -> [post-milestone]
147
+ ```
148
+
149
+ ## Directory Structure
150
+
151
+ ```
152
+ maestro-flow-one/
153
+ +-- bin/maestro-flow.js # Global CLI (Node.js)
154
+ +-- package.json # npm package
155
+ +-- codex/maestro-flow/ # Codex variant -> .codex/skills/
156
+ | +-- SKILL.md # spawn_agents_on_csv executor
157
+ | +-- commands/ (49)
158
+ | +-- chains/templates.json
159
+ +-- claude/maestro-flow/ # Claude variant -> .claude/skills/
160
+ | +-- SKILL.md # Skill() + delegate executor
161
+ | +-- commands/ (49)
162
+ | +-- chains/templates.json
163
+ +-- README.md
164
+ +-- LICENSE
165
+ ```
166
+
167
+ ## Related
168
+
169
+ - [Maestro CLI](https://github.com/catlog22/maestro2)
170
+
171
+ ## License
172
+
173
+ MIT