maestro-flow-one 0.1.3 → 0.2.1
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/.ace-tool/index.json +108 -0
- package/README.md +10 -10
- package/bin/maestro-flow.js +30 -0
- package/claude/maestro-flow/SKILL.md +28 -94
- package/claude/maestro-flow/agents/cli-explore-agent.md +187 -0
- package/claude/maestro-flow/agents/conceptual-planning-agent.md +245 -0
- package/claude/maestro-flow/agents/team-supervisor.md +143 -0
- package/claude/maestro-flow/agents/team-worker.md +237 -0
- package/claude/maestro-flow/agents/ui-design-agent.md +286 -0
- package/claude/maestro-flow/agents/workflow-analyzer.md +115 -0
- package/claude/maestro-flow/agents/workflow-codebase-mapper.md +77 -0
- package/claude/maestro-flow/agents/workflow-collab-planner.md +143 -0
- package/claude/maestro-flow/agents/workflow-debugger.md +103 -0
- package/claude/maestro-flow/agents/workflow-executor.md +129 -0
- package/claude/maestro-flow/agents/workflow-external-researcher.md +86 -0
- package/claude/maestro-flow/agents/workflow-integration-checker.md +83 -0
- package/claude/maestro-flow/agents/workflow-nyquist-auditor.md +85 -0
- package/claude/maestro-flow/agents/workflow-phase-researcher.md +85 -0
- package/claude/maestro-flow/agents/workflow-plan-checker.md +90 -0
- package/claude/maestro-flow/agents/workflow-planner.md +195 -0
- package/claude/maestro-flow/agents/workflow-project-researcher.md +74 -0
- package/claude/maestro-flow/agents/workflow-research-synthesizer.md +70 -0
- package/claude/maestro-flow/agents/workflow-reviewer.md +82 -0
- package/claude/maestro-flow/agents/workflow-roadmapper.md +81 -0
- package/claude/maestro-flow/agents/workflow-verifier.md +120 -0
- package/claude/maestro-flow/executor.md +328 -0
- package/codex/maestro-flow/SKILL.md +18 -0
- package/codex/maestro-flow/agents/team-supervisor.toml +40 -0
- package/codex/maestro-flow/agents/team-worker.toml +63 -0
- package/maestro-flow/agents/cli-explore-agent.md +187 -0
- package/maestro-flow/agents/conceptual-planning-agent.md +245 -0
- package/maestro-flow/agents/team-supervisor.md +143 -0
- package/maestro-flow/agents/team-worker.md +237 -0
- package/maestro-flow/agents/ui-design-agent.md +286 -0
- package/maestro-flow/agents/workflow-analyzer.md +115 -0
- package/maestro-flow/agents/workflow-codebase-mapper.md +77 -0
- package/maestro-flow/agents/workflow-collab-planner.md +143 -0
- package/maestro-flow/agents/workflow-debugger.md +103 -0
- package/maestro-flow/agents/workflow-executor.md +129 -0
- package/maestro-flow/agents/workflow-external-researcher.md +86 -0
- package/maestro-flow/agents/workflow-integration-checker.md +83 -0
- package/maestro-flow/agents/workflow-nyquist-auditor.md +85 -0
- package/maestro-flow/agents/workflow-phase-researcher.md +85 -0
- package/maestro-flow/agents/workflow-plan-checker.md +90 -0
- package/maestro-flow/agents/workflow-planner.md +195 -0
- package/maestro-flow/agents/workflow-project-researcher.md +74 -0
- package/maestro-flow/agents/workflow-research-synthesizer.md +70 -0
- package/maestro-flow/agents/workflow-reviewer.md +82 -0
- package/maestro-flow/agents/workflow-roadmapper.md +81 -0
- package/maestro-flow/agents/workflow-verifier.md +120 -0
- package/maestro-flow/commands/learn/decompose.md +176 -0
- package/maestro-flow/commands/learn/follow.md +167 -0
- package/maestro-flow/commands/learn/investigate.md +221 -0
- package/maestro-flow/commands/learn/retro.md +303 -0
- package/maestro-flow/commands/learn/second-opinion.md +167 -0
- package/maestro-flow/commands/lifecycle/amend.md +300 -0
- package/maestro-flow/commands/lifecycle/analyze.md +130 -0
- package/maestro-flow/commands/lifecycle/brainstorm.md +104 -0
- package/maestro-flow/commands/lifecycle/composer.md +354 -0
- package/maestro-flow/commands/lifecycle/execute.md +120 -0
- package/maestro-flow/commands/lifecycle/fork.md +86 -0
- package/maestro-flow/commands/lifecycle/init.md +78 -0
- package/maestro-flow/commands/lifecycle/learn.md +140 -0
- package/maestro-flow/commands/lifecycle/link-coordinate.md +71 -0
- package/maestro-flow/commands/lifecycle/merge.md +61 -0
- package/maestro-flow/commands/lifecycle/overlay.md +178 -0
- package/maestro-flow/commands/lifecycle/plan.md +154 -0
- package/maestro-flow/commands/lifecycle/player.md +404 -0
- package/maestro-flow/commands/lifecycle/quick.md +56 -0
- package/maestro-flow/commands/lifecycle/roadmap.md +164 -0
- package/maestro-flow/commands/lifecycle/ui-design.md +93 -0
- package/maestro-flow/commands/lifecycle/update.md +176 -0
- package/maestro-flow/commands/lifecycle/verify.md +96 -0
- package/maestro-flow/commands/manage/codebase-rebuild.md +75 -0
- package/maestro-flow/commands/manage/codebase-refresh.md +57 -0
- package/maestro-flow/commands/manage/harvest.md +94 -0
- package/maestro-flow/commands/manage/issue-discover.md +77 -0
- package/maestro-flow/commands/manage/issue.md +73 -0
- package/maestro-flow/commands/manage/knowhow-capture.md +193 -0
- package/maestro-flow/commands/manage/knowhow.md +77 -0
- package/maestro-flow/commands/manage/learn.md +67 -0
- package/maestro-flow/commands/manage/status.md +51 -0
- package/maestro-flow/commands/manage/wiki.md +62 -0
- package/maestro-flow/commands/milestone/audit.md +68 -0
- package/maestro-flow/commands/milestone/complete.md +75 -0
- package/maestro-flow/commands/milestone/release.md +96 -0
- package/maestro-flow/commands/quality/auto-test.md +128 -0
- package/maestro-flow/commands/quality/debug.md +125 -0
- package/maestro-flow/commands/quality/refactor.md +55 -0
- package/maestro-flow/commands/quality/retrospective.md +78 -0
- package/maestro-flow/commands/quality/review.md +114 -0
- package/maestro-flow/commands/quality/sync.md +51 -0
- package/maestro-flow/commands/quality/test.md +107 -0
- package/maestro-flow/commands/spec/add.md +49 -0
- package/maestro-flow/commands/spec/load.md +51 -0
- package/maestro-flow/commands/spec/remove.md +51 -0
- package/maestro-flow/commands/spec/setup.md +51 -0
- package/maestro-flow/commands/wiki/connect.md +62 -0
- package/maestro-flow/commands/wiki/digest.md +69 -0
- package/package.json +1 -1
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
[
|
|
2
|
+
"9006a610bca96d4e4798e3046e259821eb645806daf93a9eb04bbf2aff07b3b8",
|
|
3
|
+
"0e2192b37b1f664564c4bd03b0c071b4cc3046f77b3cbd2c787bcc9f6009b9ca",
|
|
4
|
+
"292c28aeb40a8c8afe75ee459ee930f8f67f2fffa5cf108dec373fb73d3aa594",
|
|
5
|
+
"2dd96dc039523af308f4a3999b65e98605880fab780953e4ac8edd9bb9a673f6",
|
|
6
|
+
"8c59224ffe97981aa048d2cbd21d125d8aa6e6c7fef92c7efe23a464ac2e8f60",
|
|
7
|
+
"b8ca88cba8b79fe21c22034116c4dc673add1c2dee395207c5baa432281ac1ed",
|
|
8
|
+
"ed9198b2717133617e5175e9b0c9f992de79853d17a45c5692c5e2c4513ea546",
|
|
9
|
+
"65d3e25ec1da488562c913650ef1fca66e23b932396dcdfafdd7df74a50224a0",
|
|
10
|
+
"e1111521f448f1e8d79f6aecf1c89c33ad1b09bdf75e522b809aff9e15c56078",
|
|
11
|
+
"6ed1799c86a625bee7f41d2ace6d9998c76bc2f645515ee65b89e383afbeb0ac",
|
|
12
|
+
"e52bcf2fc4afb70c4f1d363d7296bd467d31a04b7d9306478ae2b2b1ff3a97c3",
|
|
13
|
+
"841448852700f99c807093879b4bdd03bdeefc299b65ffeff625f93d02ba7b3f",
|
|
14
|
+
"60bca01f932b50d69830cea058a906949adaf17e009c5f256330e24999c26880",
|
|
15
|
+
"a1b03c2e3e19e810d86244d49d12fb9aa535f6761b2166261cc0ca387e7b267b",
|
|
16
|
+
"1ec0d88816c0f8a5bb43389ab69b997050379f930c1a8b45cbca5c45278de584",
|
|
17
|
+
"fb246609f67431553e42fd496138f1c533403e12593b0f6964317cb2a01fb872",
|
|
18
|
+
"19317e605c7c24c53c4af0f7f3c300e913c10cbd6b6129eefc92c00f582ec36c",
|
|
19
|
+
"244c0ab93f2cf46137fce12066faa59940946e9cdbfbb06075ec033c8126537b",
|
|
20
|
+
"1ad63042922b00dd452e57ee2498f99beb99b9dc53c39b8a91b64725a4cd4d27",
|
|
21
|
+
"61f785c281073118e127d3b6546067abe236c43b3ddb5c309ef701eff447b510",
|
|
22
|
+
"00ce2b6fceb0c972f4e440bf268900e6193446bac00075fb47f382a79e17613a",
|
|
23
|
+
"352ee6df889162d3c2d597648eac6539c00c3734ddbbcfb329595177b8fc5cd5",
|
|
24
|
+
"e06fa1bddb50daf746d8f098bf70e2a2e16055953b51fa4c8a771e35ee59d9c0",
|
|
25
|
+
"2aa61db493f7ada5a325d1f7d1a2eae1da36504addf1fbd45aca2a9a68eeb653",
|
|
26
|
+
"0ae01afb670015d4d3298df10779f837059b63c55693094857942c1533ada22e",
|
|
27
|
+
"71a771e39c772c7fbc133fbed3e9dd7b392496c86897c7d037a1be2108903e1b",
|
|
28
|
+
"08308b19d2d53ab299311c1660638dc0f1f776d59d994a0a71b5a917572d32fe",
|
|
29
|
+
"15bea875f6375bf958626f761d333dbdfa4080db38f4572493dc11056753c2ff",
|
|
30
|
+
"432bf8426c8a391f20ee88badc46ad6c41e30069a3a374bcd7be902ff738a1b2",
|
|
31
|
+
"514fd7c7eb14a0794804be1356d96abf6ea924d6eb83b4732ebb9f499c14ca41",
|
|
32
|
+
"7ed953ddfb5009abee01f13f8c5fa004f10847951f09372c1e9f6f95b23b3c1b",
|
|
33
|
+
"e62d5e6ed958b3ff470cc22b376cfd042eba2d921e58a26566d05c564705f6c8",
|
|
34
|
+
"cfd20434fa38dfdd9c9a0a554ee5ff8b548c4d780d77ee37e5d935a12ef65f05",
|
|
35
|
+
"ec1f2a583547de8348af2ecb5e264a73bbb6adef5a5de31af751262df361cd9c",
|
|
36
|
+
"cd6831bebb44cf08da85dc09ef6206c268d0758ffb62b7629e612200f92263d4",
|
|
37
|
+
"1496aa5a2051afd706dac384f65485d29eb5c771ffdf5acd72e0fbc05b7b8809",
|
|
38
|
+
"639dd0f7516f70a517eb6111388f27b4cd14b838489921faf213dbc3735d3345",
|
|
39
|
+
"911e039e3b09963ed085d4814575b735e8e3d00c983f64e5143b933fe6d81e94",
|
|
40
|
+
"cc6f672599a25a662503529acb16d10a65f86786fcbe07176ef9fb5ab5fdaf0c",
|
|
41
|
+
"b5c35de096d4ec94c37d9eafc33e065f9c7c6643be725203269f3f14036125f3",
|
|
42
|
+
"c106fb39051287ef2025dd4e68d91a26ca6d2de7c52cf99985a865f08001525b",
|
|
43
|
+
"b7e0cbbf7c106e2e15441d379dd191bb96806281be076bc4d6ee84d95090fe05",
|
|
44
|
+
"62f5201e8d8b06614cf2d6e3670665d6e47a274c6ea749274eb0c4c2a4033a8d",
|
|
45
|
+
"5239bed6b22d14df12f4fda124a5a406a054d5017d450b4c2e18d49f3d90ab49",
|
|
46
|
+
"5e50dec99afc286f9e99b770264ef104bca61cfb5a38b95b545684b35d227f90",
|
|
47
|
+
"ebb10c59dee5b731c109cf19cd544155d9b1b44cc22892c38c63312d846bfc54",
|
|
48
|
+
"40a3d6ea815598c9342ac3ad91372caca71ad27767662059efc5cd36ce7a7cf1",
|
|
49
|
+
"b77d535c56ea2ba5bd6dc8ebd1cd163fdded1ba5819c7ae1efbd6738b471e900",
|
|
50
|
+
"21a62e467c0688acce40c5811d01b0a0b7136d7df4923564b1a671083037903c",
|
|
51
|
+
"6182ae9d382f178575131f65d5c8592ae80bdabc5132d6d23fdb234208ae2f2d",
|
|
52
|
+
"d150bec634b5ec077da7ea41cce9f6dbb4ab26643c6bf0dd51d91303884d20ed",
|
|
53
|
+
"5a76e8066ee22d36b0187736b9402b2e87e3b5d1f1fe1eedb8e97fd470749c67",
|
|
54
|
+
"ced7067fff89205f24429464ce7f1db1c4803dec0d39492ffc8ae31e341f9f3f",
|
|
55
|
+
"11a52b7355d9f905612dc36a88398ee1fa0677e9f516478640e377d8524701e3",
|
|
56
|
+
"7197d47ec66c5c3d8d9187bbfe14729fd841ea9957dcd41fa2af6b2c1dc10c86",
|
|
57
|
+
"3459becf1f74307cdf99a084d3282ccca0f7b6a72826cb6efe7e2230908d66e7",
|
|
58
|
+
"794a0c4ac6f3f5ba7167ab982efcadec74d0efa7c7a8d4a8ed60eea1f69ef029",
|
|
59
|
+
"47549a532647cab1c6bb02c571f238699908eafd67a09e897bd40726eec33d24",
|
|
60
|
+
"daf6418afb0c417df09d46d18521dd8ef5c47dd31e140af31a4145c21fe54cd1",
|
|
61
|
+
"85e7f3d804ebf83c44d2f375126b0ddccb7e223d0461290359176f765423e961",
|
|
62
|
+
"0ac266f60a76b4ede272009227675adf6858b34c28488cffe6be715344577349",
|
|
63
|
+
"66f05a1981dfe18190e8240c13efaba015c0e708022c8b91ec84e12f9ec07867",
|
|
64
|
+
"a203e1e1896cbac6c29c057b8272498c837a47b8f7fa0fe0fcbc4e0290cb6255",
|
|
65
|
+
"6f7515f7028b6c82611f7ce33141f37ce77db8bc4743c5718c04aef7f15e758a",
|
|
66
|
+
"50f703dda0f8bd0a7be172b1ee020fc066c79eae4d3217a7b154d9f8f6782c1f",
|
|
67
|
+
"d3d2e0dd5adb81882fa81be3e7fa573d50b0506cf2cecad58cab56c99d6f9b53",
|
|
68
|
+
"9339cc90db3a02e4a863a8cfb1064c60dfc714fe1bca62ff12401b94a6fafa3a",
|
|
69
|
+
"9fb0f5fe8691d9ba13295a538cd84f45ed116395c57ff9a16e4d51a5e16095fc",
|
|
70
|
+
"e1c6c70016e7a6ad5a4302139352682e4b066bd1c9077751b1949e1f0a69482f",
|
|
71
|
+
"4573136c68e60939826d44b49e5bc5a6148689e53b7a9e124fea5c6d30169b8f",
|
|
72
|
+
"000f4b3cd192e00e7ceadd6415d38796694c23bd8493d345b6595ede741313bb",
|
|
73
|
+
"c0a72ebaa5eeb69686ba517189f3d32bb91f0dbcd1ea6bcacbcfb19ae7d109bf",
|
|
74
|
+
"5fff5d56702947528ac3fef36b55ab99c01f8bca3f9fb0ae9151520412e13a24",
|
|
75
|
+
"2f5f87695f0e39d601a14159d816195dd95fddc9d726e0051a8bcca1fabc3bfa",
|
|
76
|
+
"667cba162d1e22265b2ae8b95703034c35898842c5e4f0cf111fe0cf41bcbf62",
|
|
77
|
+
"c290a879885d6425cfb22f9d0590d5c2f4afc2c2b624dbb6be8fd99ee983e767",
|
|
78
|
+
"29d46795bbec26e565e82212cee374cde5eddb1fde16f7368bb2eb266af08acc",
|
|
79
|
+
"d34b16616156ec30209a2d4e40b3db52ea9d4b4f1a4b90da0cf8cfecdd280faa",
|
|
80
|
+
"2ad8ed577a0110a995ae5870d18c6f02c1fa3459ff68eb0d14cdab268bddaa26",
|
|
81
|
+
"e52a538bfeb87defab37a86725874b8e66a6055884c1dc730c23e8ce782e1d79",
|
|
82
|
+
"8cb948516ca96f628009811dfcc10454739806265d9c807e20760dc15dd7e132",
|
|
83
|
+
"94ede33b09b1e7da088362258b2b704e076a0da775683663ac20d6cbc1170496",
|
|
84
|
+
"93a33ea938cc6580effe6182d25d5d98e4896708e6dded027ea4a786c760be50",
|
|
85
|
+
"f62c49365aa2151cb2fb10502e6e16bd11d12d6b345856cf224ea05858bddc46",
|
|
86
|
+
"c8fda5d41e721e2a415043f775ab585860be4f6258bf41546a5c00b7b368e57e",
|
|
87
|
+
"5becea73c5ae58ba124f81c460413b34dd1f6abbac6b35dab15344e10c30d015",
|
|
88
|
+
"3818d0ab7fa5111519d8ebd4d506b6c8ef501962a9454c2151a94430a1fa892c",
|
|
89
|
+
"525c2189dbd834a070b1484d2ff0ff5b27500f3ea830a65766b11e9ccf8aa6f2",
|
|
90
|
+
"0b55057ac7cfdb29630a14845bbc0ed6f1fdfa163121b40176cf9382d0326858",
|
|
91
|
+
"d0f700c42603644772b4f8b8310e69e81563e6004aecafea5b94eb6ef48a3138",
|
|
92
|
+
"3c1ff77f56bf21e047901bb44f2d92f5ee09d5e261961bcc9f2ec2822bef23bf",
|
|
93
|
+
"112179780b1c5608ee613733761cbbbd5ec7ac4a17148220a8ff219b56d27d90",
|
|
94
|
+
"cc57f59a42b697fb53bb859f311d118a4edb60017026d3542e3bfc887671ebb9",
|
|
95
|
+
"c3b820022ed014fecef9898749db3e0865b0a74ebc895a0adbc39b760e5a1ad7",
|
|
96
|
+
"8fac88c7a227767b85e0a849465127431657ec745ae0feac1867b0461c7da014",
|
|
97
|
+
"0158399c5b648f5621a105f30837bbe1fae842d747794bedb6e27e15a684a821",
|
|
98
|
+
"9d96362b03ed6fc8c7b8e43aa171b76a38a118b023e92727c378f5596d8e1c7f",
|
|
99
|
+
"048895a9326d11614581da261490aa5c6d273f0346ef703002e5a6cddaa2d30f",
|
|
100
|
+
"d6ec54ba78d28e1c3ce8f4620b3614bd30922e6401493d37bf593e647f64ef47",
|
|
101
|
+
"4e0bb5e9786ba082c5da438b92c3619e7fe771926d186e0a7d2274bc4d4f516d",
|
|
102
|
+
"daca623194e40e138ab2e96a6c8d01ccea2ca2232b52f5c9d2d3e73da608366d",
|
|
103
|
+
"34ca39128f8709ca31ec8dc467aa90f5724a75752e9a7c2f32b23f0bd03f4b4f",
|
|
104
|
+
"876ab87bd3435a170a7a692dcdb53814c4334c1bf02711ee263ab74ce26f1715",
|
|
105
|
+
"38b18909cc35f4c2c91fe988c17c9977ff5f4fdf5345557baf0412fb290dc8e3",
|
|
106
|
+
"1d57c4b4c05b004e498402e84f3de84da77eba7d27baafc2ebb23119f89e5f52",
|
|
107
|
+
"5ac1c5866d7d61967df3f8900adced78d40afdea003503461f9d7eec36aaa817"
|
|
108
|
+
]
|
package/README.md
CHANGED
|
@@ -21,26 +21,26 @@ npm install -g maestro-flow-one
|
|
|
21
21
|
### Install skill
|
|
22
22
|
|
|
23
23
|
```bash
|
|
24
|
-
# Default: install both variants
|
|
24
|
+
# Default: global install, both variants
|
|
25
25
|
maestro-flow install
|
|
26
|
-
#
|
|
27
|
-
#
|
|
26
|
+
# ~/.codex/skills/maestro-flow/ -> codex (spawn_agents_on_csv)
|
|
27
|
+
# ~/.claude/skills/maestro-flow/ -> claude (Skill + delegate)
|
|
28
28
|
|
|
29
29
|
# Single variant
|
|
30
|
-
maestro-flow install --variant codex
|
|
31
|
-
maestro-flow install --variant claude
|
|
30
|
+
maestro-flow install --variant codex # codex only -> ~/.codex/skills/
|
|
31
|
+
maestro-flow install --variant claude # claude only -> ~/.claude/skills/
|
|
32
32
|
|
|
33
|
-
# Project-level (instead of global
|
|
34
|
-
maestro-flow install --project
|
|
35
|
-
maestro-flow install --variant codex --project
|
|
33
|
+
# Project-level install (instead of global)
|
|
34
|
+
maestro-flow install --project .
|
|
35
|
+
maestro-flow install --variant codex --project ./my-project
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
### Uninstall
|
|
39
39
|
|
|
40
40
|
```bash
|
|
41
|
-
maestro-flow uninstall # Remove both from global
|
|
41
|
+
maestro-flow uninstall # Remove both from global (~/)
|
|
42
42
|
maestro-flow uninstall --variant codex # Remove codex only
|
|
43
|
-
maestro-flow uninstall --project . # Remove from current project
|
|
43
|
+
maestro-flow uninstall --project . # Remove from current project only
|
|
44
44
|
npm uninstall -g maestro-flow-one # Remove global CLI
|
|
45
45
|
```
|
|
46
46
|
|
package/bin/maestro-flow.js
CHANGED
|
@@ -541,6 +541,17 @@ function resolveSkillsDir(variant, args) {
|
|
|
541
541
|
return path.join(home, dotDir, "skills");
|
|
542
542
|
}
|
|
543
543
|
|
|
544
|
+
// Resolve target agents directory per variant and scope
|
|
545
|
+
// codex -> .codex/agents/ claude -> .claude/agents/
|
|
546
|
+
function resolveAgentsDir(variant, args) {
|
|
547
|
+
const dotDir = variant === "codex" ? ".codex" : ".claude";
|
|
548
|
+
if (args.project) {
|
|
549
|
+
return path.join(path.resolve(args.project), dotDir, "agents");
|
|
550
|
+
}
|
|
551
|
+
const home = process.env.HOME || process.env.USERPROFILE;
|
|
552
|
+
return path.join(home, dotDir, "agents");
|
|
553
|
+
}
|
|
554
|
+
|
|
544
555
|
function cmdInstall(args) {
|
|
545
556
|
const variant = args.variant || "all";
|
|
546
557
|
const validVariants = ["codex", "claude", "all"];
|
|
@@ -575,6 +586,22 @@ function cmdInstall(args) {
|
|
|
575
586
|
|
|
576
587
|
const cmdCount = countMd(path.join(skillTarget, "commands"));
|
|
577
588
|
console.log(` Commands: ${cmdCount}`);
|
|
589
|
+
|
|
590
|
+
// Install agents to the proper location (outside skill dir)
|
|
591
|
+
const agentsSource = path.join(source, "agents");
|
|
592
|
+
if (fs.existsSync(agentsSource)) {
|
|
593
|
+
const agentsTarget = resolveAgentsDir(v, args);
|
|
594
|
+
fs.mkdirSync(agentsTarget, { recursive: true });
|
|
595
|
+
let agentCount = 0;
|
|
596
|
+
for (const entry of fs.readdirSync(agentsSource)) {
|
|
597
|
+
const srcPath = path.join(agentsSource, entry);
|
|
598
|
+
if (fs.statSync(srcPath).isFile()) {
|
|
599
|
+
fs.copyFileSync(srcPath, path.join(agentsTarget, entry));
|
|
600
|
+
agentCount++;
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
console.log(` Agents: ${agentCount} -> ${agentsTarget}`);
|
|
604
|
+
}
|
|
578
605
|
console.log();
|
|
579
606
|
}
|
|
580
607
|
|
|
@@ -582,9 +609,12 @@ function cmdInstall(args) {
|
|
|
582
609
|
if (variant === "all") {
|
|
583
610
|
console.log(" .codex/skills/maestro-flow/ -> codex (spawn_agents_on_csv)");
|
|
584
611
|
console.log(" .claude/skills/maestro-flow/ -> claude (Skill + delegate)");
|
|
612
|
+
console.log(" .codex/agents/ -> codex agent definitions");
|
|
613
|
+
console.log(" .claude/agents/ -> claude agent definitions");
|
|
585
614
|
} else {
|
|
586
615
|
const dotDir = variant === "codex" ? ".codex" : ".claude";
|
|
587
616
|
console.log(` ${dotDir}/skills/maestro-flow/ -> ${variant}`);
|
|
617
|
+
console.log(` ${dotDir}/agents/ -> ${variant} agent definitions`);
|
|
588
618
|
}
|
|
589
619
|
console.log();
|
|
590
620
|
console.log("Usage:");
|
|
@@ -30,11 +30,34 @@ Session path: `.workflow/.maestro/flow-{YYYYMMDD-HHmmss}/status.json`
|
|
|
30
30
|
<context>
|
|
31
31
|
$ARGUMENTS -- intent text, flags, or special keywords.
|
|
32
32
|
|
|
33
|
+
**Skill directory structure** (relative to this SKILL.md):
|
|
34
|
+
```
|
|
35
|
+
maestro-flow/
|
|
36
|
+
SKILL.md <- this file (router)
|
|
37
|
+
executor.md <- step execution loop (deferred read)
|
|
38
|
+
commands/
|
|
39
|
+
lifecycle/ <- 17 commands: init, analyze, plan, execute, verify, ...
|
|
40
|
+
quality/ <- 7 commands: debug, review, test, auto-test, ...
|
|
41
|
+
manage/ <- 10 commands: status, issue, wiki, harvest, ...
|
|
42
|
+
learn/ <- 5 commands: decompose, follow, investigate, ...
|
|
43
|
+
milestone/ <- 3 commands: audit, complete, release
|
|
44
|
+
spec/ <- 4 commands: add, load, remove, setup
|
|
45
|
+
wiki/ <- 2 commands: connect, digest
|
|
46
|
+
chains/
|
|
47
|
+
templates.json <- 14 chain templates + decision types
|
|
48
|
+
```
|
|
49
|
+
|
|
33
50
|
**State files:**
|
|
34
51
|
- `.workflow/state.json` -- project artifact registry (optional)
|
|
35
52
|
- `.workflow/.maestro/flow-*/status.json` -- flow session state
|
|
53
|
+
|
|
54
|
+
**CLI prerequisite:** `maestro-flow` command must be globally available (`npm install -g maestro-flow-one`)
|
|
36
55
|
</context>
|
|
37
56
|
|
|
57
|
+
<deferred_reading>
|
|
58
|
+
- [executor.md](executor.md) -- read when entering Phase 2 (step execution loop)
|
|
59
|
+
</deferred_reading>
|
|
60
|
+
|
|
38
61
|
<execution>
|
|
39
62
|
|
|
40
63
|
## Step 1: Parse & Route
|
|
@@ -59,9 +82,9 @@ Parse $ARGUMENTS:
|
|
|
59
82
|
-> End.
|
|
60
83
|
|
|
61
84
|
execute | continue
|
|
62
|
-
->
|
|
63
|
-
->
|
|
64
|
-
->
|
|
85
|
+
-> Read executor.md from deferred_reading
|
|
86
|
+
-> Follow executor.md completely
|
|
87
|
+
-> End.
|
|
65
88
|
|
|
66
89
|
--chain <name> [-y] <remaining>
|
|
67
90
|
-> Force chain selection, go to Step 4
|
|
@@ -134,98 +157,9 @@ Fall through to Phase 2.
|
|
|
134
157
|
|
|
135
158
|
## Phase 2: Step Execution Loop
|
|
136
159
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
```
|
|
140
|
-
Bash: maestro-flow next
|
|
141
|
-
```
|
|
142
|
-
|
|
143
|
-
Parse output:
|
|
144
|
-
- `NO_SESSION` -> End.
|
|
145
|
-
- `SESSION_COMPLETE` -> Display summary. End.
|
|
146
|
-
- `STEP: idx/total` + `TYPE` + `SKILL` + `ARGS` + `PATH` + `---COMMAND---` -> continue
|
|
147
|
-
|
|
148
|
-
### 2.2: Route by type
|
|
149
|
-
|
|
150
|
-
```
|
|
151
|
-
If TYPE == "decision" -> Step 2.3 (Decision Evaluation)
|
|
152
|
-
If TYPE == "internal" -> Step 2.4 (Internal Execution)
|
|
153
|
-
If TYPE == "external" -> Step 2.5 (External Execution)
|
|
154
|
-
```
|
|
155
|
-
|
|
156
|
-
### 2.3: Decision Evaluation
|
|
157
|
-
|
|
158
|
-
**Quality-gate decisions** (post-verify, post-review, post-test, post-business-test):
|
|
159
|
-
|
|
160
|
-
```
|
|
161
|
-
Resolve artifact dir from .workflow/state.json
|
|
162
|
-
|
|
163
|
-
Bash({
|
|
164
|
-
command: `maestro delegate "evaluate ${decision} quality gate
|
|
165
|
-
CONTEXT: @${result_files}
|
|
166
|
-
---VERDICT---
|
|
167
|
-
STATUS: proceed | fix | escalate
|
|
168
|
-
REASON: one-line
|
|
169
|
-
GAP_SUMMARY: details
|
|
170
|
-
CONFIDENCE: high | medium | low
|
|
171
|
-
---END---" --role analyze --mode analysis`,
|
|
172
|
-
run_in_background: true
|
|
173
|
-
})
|
|
174
|
-
STOP -- wait for callback.
|
|
175
|
-
```
|
|
176
|
-
|
|
177
|
-
On callback: parse verdict, apply (proceed/fix-loop/escalate).
|
|
178
|
-
|
|
179
|
-
**Structural decisions** (post-milestone): evaluate directly.
|
|
180
|
-
|
|
181
|
-
After decision: `Bash: maestro-flow done` -> loop to 2.1.
|
|
160
|
+
Read [executor.md](executor.md) from deferred_reading and follow it completely.
|
|
182
161
|
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
The command content was loaded by `maestro-flow next` (after `---COMMAND---`).
|
|
186
|
-
|
|
187
|
-
```
|
|
188
|
-
1. Parse loaded command .md
|
|
189
|
-
2. Set $ARGUMENTS = ARGS (with auto-flag if session.auto_mode)
|
|
190
|
-
3. Follow <execution> section completely
|
|
191
|
-
|
|
192
|
-
Auto flags: maestro-init -y, maestro-plan -y, maestro-execute -y,
|
|
193
|
-
quality-test -y --auto-fix, etc.
|
|
194
|
-
|
|
195
|
-
On complete: Bash: maestro-flow done -> loop to 2.1
|
|
196
|
-
On failure: -> Step 2.6
|
|
197
|
-
```
|
|
198
|
-
|
|
199
|
-
### 2.5: External Execution
|
|
200
|
-
|
|
201
|
-
```
|
|
202
|
-
Bash({
|
|
203
|
-
command: `maestro delegate --to claude "Execute: /maestro-flow --cmd {SKILL} {ARGS}" --mode write`,
|
|
204
|
-
run_in_background: true,
|
|
205
|
-
timeout: 600000
|
|
206
|
-
})
|
|
207
|
-
STOP -- wait for callback.
|
|
208
|
-
|
|
209
|
-
On callback:
|
|
210
|
-
On success: Bash: maestro-flow done -> loop to 2.1
|
|
211
|
-
On failure: -> Step 2.6
|
|
212
|
-
```
|
|
213
|
-
|
|
214
|
-
### 2.6: Handle Failure
|
|
215
|
-
|
|
216
|
-
```
|
|
217
|
-
Auto mode: retry once (maestro-flow step {id} {idx} pending), then skip
|
|
218
|
-
Interactive: AskUserQuestion retry/skip/abort
|
|
219
|
-
```
|
|
220
|
-
|
|
221
|
-
---
|
|
222
|
-
|
|
223
|
-
## Phase 3: Completion
|
|
224
|
-
|
|
225
|
-
```
|
|
226
|
-
Display session summary with step statuses.
|
|
227
|
-
End.
|
|
228
|
-
```
|
|
162
|
+
Executor loop: `maestro-flow next` -> route by type -> execute -> `maestro-flow done` -> `Skill({ skill: "maestro-flow", args: "execute" })` until SESSION_COMPLETE.
|
|
229
163
|
|
|
230
164
|
</execution>
|
|
231
165
|
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cli-explore-agent
|
|
3
|
+
description: |
|
|
4
|
+
Read-only code exploration agent with dual-source analysis strategy (Bash + CLI semantic).
|
|
5
|
+
Orchestrates 4-phase workflow: Task Understanding → Analysis Execution → Schema Validation → Output Generation.
|
|
6
|
+
allowed-tools:
|
|
7
|
+
- Read
|
|
8
|
+
- Glob
|
|
9
|
+
- Grep
|
|
10
|
+
- Bash
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# CLI Explore Agent
|
|
14
|
+
|
|
15
|
+
## Role
|
|
16
|
+
You are a specialized CLI exploration agent that autonomously analyzes codebases and generates structured outputs. You perform read-only code exploration using dual-source analysis (Bash structural scan + CLI semantic analysis), validate outputs against schemas, and produce structured JSON results.
|
|
17
|
+
|
|
18
|
+
**CRITICAL: Mandatory Initial Read**
|
|
19
|
+
When spawned with `<files_to_read>`, read ALL listed files before any analysis.
|
|
20
|
+
|
|
21
|
+
**Core responsibilities:**
|
|
22
|
+
1. **Structural Analysis** - Module discovery, file patterns, symbol inventory via Bash tools
|
|
23
|
+
2. **Semantic Understanding** - Design intent, architectural patterns via CLI analysis
|
|
24
|
+
3. **Dependency Mapping** - Import/export graphs, circular detection, coupling analysis
|
|
25
|
+
4. **Structured Output** - Schema-compliant JSON generation with validation
|
|
26
|
+
|
|
27
|
+
**Analysis Modes**:
|
|
28
|
+
- `quick-scan` → Bash only (fast)
|
|
29
|
+
- `deep-scan` → Bash + CLI dual-source (thorough)
|
|
30
|
+
- `dependency-map` → Graph construction (comprehensive)
|
|
31
|
+
|
|
32
|
+
## 4-Phase Execution Workflow
|
|
33
|
+
|
|
34
|
+
```
|
|
35
|
+
Phase 1: Task Understanding
|
|
36
|
+
↓ Parse prompt for: analysis scope, output requirements, schema path
|
|
37
|
+
Phase 2: Analysis Execution
|
|
38
|
+
↓ Bash structural scan + CLI semantic analysis (based on mode)
|
|
39
|
+
Phase 3: Schema Validation (MANDATORY if schema specified)
|
|
40
|
+
↓ Read schema → Extract EXACT field names → Validate structure
|
|
41
|
+
Phase 4: Output Generation
|
|
42
|
+
↓ Agent report + File output (strictly schema-compliant)
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Phase 1: Task Understanding
|
|
46
|
+
|
|
47
|
+
### Autonomous Initialization (execute before any analysis)
|
|
48
|
+
|
|
49
|
+
1. **Project Structure Discovery**:
|
|
50
|
+
- Glob `src/**` and top-level directories to map module structure
|
|
51
|
+
- Read `package.json` / `Cargo.toml` / `go.mod` / `pyproject.toml` for tech stack
|
|
52
|
+
|
|
53
|
+
2. **Output Schema Loading** (if output file path specified in prompt):
|
|
54
|
+
- Read schema file and memorize requirements BEFORE any analysis begins
|
|
55
|
+
|
|
56
|
+
3. **Project Context Loading** (from spec system):
|
|
57
|
+
- Load exploration specs: `maestro spec load --category arch`
|
|
58
|
+
- Extract: tech_stack, architecture, key_components, overview
|
|
59
|
+
- If no specs returned, proceed with fresh analysis
|
|
60
|
+
|
|
61
|
+
4. **Task Keyword Search** (initial file discovery):
|
|
62
|
+
- Extract keywords from prompt, detect primary language, run targeted Grep
|
|
63
|
+
- Store results as `keyword_files` for Phase 2 scoping
|
|
64
|
+
|
|
65
|
+
**Extract from prompt**:
|
|
66
|
+
- Analysis target and scope
|
|
67
|
+
- Analysis mode (quick-scan / deep-scan / dependency-map)
|
|
68
|
+
- Output file path and schema file path (if specified)
|
|
69
|
+
|
|
70
|
+
**Determine analysis depth from prompt keywords**:
|
|
71
|
+
- Quick lookup, structure overview → quick-scan
|
|
72
|
+
- Deep analysis, design intent, architecture → deep-scan
|
|
73
|
+
- Dependencies, impact analysis, coupling → dependency-map
|
|
74
|
+
|
|
75
|
+
## Phase 2: Analysis Execution
|
|
76
|
+
|
|
77
|
+
### Bash Structural Scan
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
# Pattern discovery (adapt based on language)
|
|
81
|
+
rg "^export (class|interface|function) " --type ts -n
|
|
82
|
+
rg "^(class|def) \w+" --type py -n
|
|
83
|
+
rg "^import .* from " -n | head -30
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
### CLI Semantic Analysis (deep-scan, dependency-map)
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
maestro delegate "
|
|
90
|
+
PURPOSE: {from prompt}
|
|
91
|
+
TASK: {from prompt}
|
|
92
|
+
MODE: analysis
|
|
93
|
+
CONTEXT: @**/*
|
|
94
|
+
EXPECTED: {from prompt}
|
|
95
|
+
" --role explore --mode analysis --cd {dir}
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
**Fallback Chain**: config-driven via `cli-tools.json` role mappings → Bash-only
|
|
99
|
+
|
|
100
|
+
### Dual-Source Synthesis
|
|
101
|
+
|
|
102
|
+
1. Bash results: Precise file:line locations → `discovery_source: "bash-scan"`
|
|
103
|
+
2. CLI results: Semantic understanding, design intent → `discovery_source: "cli-analysis"`
|
|
104
|
+
3. Dependency tracing: Import/export graph → `discovery_source: "dependency-trace"`
|
|
105
|
+
4. Merge with source attribution and generate for each file:
|
|
106
|
+
- `rationale`: WHY the file was selected (specific, >10 chars)
|
|
107
|
+
- `topic_relation`: HOW the file connects to the exploration angle/topic
|
|
108
|
+
- `key_code`: Detailed descriptions of key symbols with locations (for relevance >= 0.7)
|
|
109
|
+
|
|
110
|
+
## Phase 3: Schema Validation
|
|
111
|
+
|
|
112
|
+
### MANDATORY when schema file is specified in prompt
|
|
113
|
+
|
|
114
|
+
**Step 1: Read Schema FIRST** before generating any output
|
|
115
|
+
|
|
116
|
+
**Step 2: Extract Schema Requirements**
|
|
117
|
+
1. Root structure - Is it array `[...]` or object `{...}`?
|
|
118
|
+
2. Required fields - List all `"required": [...]` arrays
|
|
119
|
+
3. Field names EXACTLY - Copy character-by-character (case-sensitive)
|
|
120
|
+
4. Enum values - Copy exact strings (case-sensitive)
|
|
121
|
+
5. Nested structures - Note flat vs nested requirements
|
|
122
|
+
|
|
123
|
+
**Step 3: File Rationale Validation** (MANDATORY for relevant_files / affected_files)
|
|
124
|
+
|
|
125
|
+
Every file entry MUST have:
|
|
126
|
+
- `rationale` (required, minLength 10): Specific reason tied to the exploration topic
|
|
127
|
+
- GOOD: "Contains AuthService.login() which is the entry point for JWT token generation"
|
|
128
|
+
- BAD: "Related to auth"
|
|
129
|
+
- `role` (required, enum): modify_target / dependency / pattern_reference / test_target / type_definition / integration_point / config / context_only
|
|
130
|
+
- `discovery_source` (recommended): bash-scan / cli-analysis / dependency-trace / manual
|
|
131
|
+
- `key_code` (required for relevance >= 0.7): Array of {symbol, location?, description}
|
|
132
|
+
- `topic_relation` (required for relevance >= 0.7): Connection from exploration angle perspective
|
|
133
|
+
|
|
134
|
+
**Step 4: Pre-Output Validation Checklist**
|
|
135
|
+
- [ ] Root structure matches schema (array vs object)
|
|
136
|
+
- [ ] ALL required fields present at each level
|
|
137
|
+
- [ ] Field names EXACTLY match schema (character-by-character)
|
|
138
|
+
- [ ] Enum values EXACTLY match schema (case-sensitive)
|
|
139
|
+
- [ ] Every file has: path + relevance + rationale + role
|
|
140
|
+
- [ ] Files with relevance >= 0.7 have key_code and topic_relation
|
|
141
|
+
|
|
142
|
+
## Phase 4: Output Generation
|
|
143
|
+
|
|
144
|
+
### Agent Output (return to caller)
|
|
145
|
+
|
|
146
|
+
Brief summary: task completion status, key findings, generated file paths
|
|
147
|
+
|
|
148
|
+
### File Output (as specified in prompt)
|
|
149
|
+
|
|
150
|
+
1. Read schema file BEFORE generating output
|
|
151
|
+
2. Extract ALL field names from schema
|
|
152
|
+
3. Build JSON using ONLY schema field names
|
|
153
|
+
4. Validate against checklist before writing
|
|
154
|
+
5. Write file with validated content
|
|
155
|
+
|
|
156
|
+
## Return Protocol
|
|
157
|
+
|
|
158
|
+
- **TASK COMPLETE**: All analysis phases completed. Include: findings summary, generated file paths, schema compliance status.
|
|
159
|
+
- **TASK BLOCKED**: Cannot proceed (missing schema, inaccessible files, all fallbacks exhausted). Include: blocker description, what was attempted.
|
|
160
|
+
- **CHECKPOINT REACHED**: Partial results available. Include: completed phases, pending phases, partial findings.
|
|
161
|
+
|
|
162
|
+
## Pre-Return Verification
|
|
163
|
+
|
|
164
|
+
- [ ] All 4 phases were executed (or skipped with justification)
|
|
165
|
+
- [ ] Schema was read BEFORE output generation (if schema specified)
|
|
166
|
+
- [ ] All field names match schema exactly (case-sensitive)
|
|
167
|
+
- [ ] Every file entry has rationale (specific, >10 chars) and role
|
|
168
|
+
- [ ] High-relevance files (>= 0.7) have key_code and topic_relation
|
|
169
|
+
- [ ] Discovery sources are tracked for all findings
|
|
170
|
+
- [ ] No files were modified (read-only agent)
|
|
171
|
+
|
|
172
|
+
## Rules
|
|
173
|
+
|
|
174
|
+
### ALWAYS
|
|
175
|
+
- Read schema file FIRST before generating any output (if schema specified)
|
|
176
|
+
- Copy field names EXACTLY from schema (case-sensitive)
|
|
177
|
+
- Include file:line references in findings
|
|
178
|
+
- Every file MUST have rationale (specific, not generic) and role
|
|
179
|
+
- Track discovery source for all findings
|
|
180
|
+
- Populate key_code and topic_relation for high-relevance files (>= 0.7)
|
|
181
|
+
- Use `run_in_background: false` for all Bash/CLI calls
|
|
182
|
+
|
|
183
|
+
### NEVER
|
|
184
|
+
- Modify any files (read-only agent)
|
|
185
|
+
- Skip schema reading step when schema is specified
|
|
186
|
+
- Guess field names - ALWAYS copy from schema
|
|
187
|
+
- Omit required fields
|