@jstn-sdk/ma 0.1.5 → 0.1.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 (125) hide show
  1. package/.agents/plugins/marketplace.json +20 -0
  2. package/.codex/hooks.json +1 -1
  3. package/.codex/prompts/enforcement.md +3 -3
  4. package/.codex/prompts/onboarding.md +29 -14
  5. package/README.md +512 -129
  6. package/bin/ma.js +61 -103
  7. package/docs/README.md +2 -1
  8. package/docs/assets/image/Screenshot(1).png +0 -0
  9. package/docs/assets/image/Screenshot(2).png +0 -0
  10. package/docs/assets/image/Screenshot(3).png +0 -0
  11. package/docs/assets/image/Screenshot(4).png +0 -0
  12. package/docs/assets/image/Screenshot(5).png +0 -0
  13. package/docs/assets/image/Screenshot(6).png +0 -0
  14. package/docs/assets/image/Screenshot(7).png +0 -0
  15. package/docs/assets/image/Screenshot(8).png +0 -0
  16. package/docs/assets/image/Screenshot(9).png +0 -0
  17. package/docs/assets/meta-architect-logo.png +0 -0
  18. package/docs/assets/meta-architect-logo.svg +8 -0
  19. package/docs/getting-started.md +419 -37
  20. package/docs/installed-sdk.md +60 -0
  21. package/docs/mcp-setup.md +3 -134
  22. package/docs/onboarding.md +41 -11
  23. package/docs/qa/release-readiness-0.1.5.md +46 -44
  24. package/docs/qa/release-readiness-0.1.6.md +79 -0
  25. package/docs/release-spec.md +81 -103
  26. package/docs/skills-publishing.md +187 -54
  27. package/docs/skills.md +82 -141
  28. package/mcp/collections.json +1 -1
  29. package/mcp/fallback.json +1 -1
  30. package/mcp/servers.json +1 -1
  31. package/package.json +17 -14
  32. package/plugins/meta-architect/.app.json +1 -1
  33. package/plugins/meta-architect/.codex-plugin/plugin.json +23 -0
  34. package/plugins/meta-architect/.mcp.json +1 -1
  35. package/plugins/meta-architect/README.md +23 -10
  36. package/plugins/meta-architect/skills/arch/SKILL.md +27 -0
  37. package/plugins/meta-architect/skills/arch/agents/openai.yaml +4 -0
  38. package/plugins/meta-architect/skills/build/SKILL.md +24 -0
  39. package/plugins/meta-architect/skills/build/agents/openai.yaml +4 -0
  40. package/plugins/meta-architect/skills/flow/SKILL.md +24 -0
  41. package/plugins/meta-architect/skills/flow/agents/openai.yaml +4 -0
  42. package/plugins/meta-architect/skills/maestro/SKILL.md +25 -0
  43. package/plugins/meta-architect/skills/maestro/agents/openai.yaml +4 -0
  44. package/plugins/meta-architect/skills/meta-architect/SKILL.md +17 -23
  45. package/plugins/meta-architect/skills/meta-architect/agents/openai.yaml +4 -0
  46. package/plugins/meta-architect/skills/meta-architect/references/core-release-rules.md +13 -0
  47. package/plugins/meta-architect/skills/sage/SKILL.md +24 -0
  48. package/plugins/meta-architect/skills/sage/agents/openai.yaml +4 -0
  49. package/plugins/meta-architect/skills/vet/SKILL.md +25 -0
  50. package/plugins/meta-architect/skills/vet/agents/openai.yaml +4 -0
  51. package/plugins/meta-architect/skills/vibe/SKILL.md +24 -0
  52. package/plugins/meta-architect/skills/vibe/agents/openai.yaml +4 -0
  53. package/scripts/doctor.js +8 -0
  54. package/scripts/plugin-sync.js +93 -0
  55. package/scripts/postinstall.js +23 -0
  56. package/scripts/release-metadata.js +94 -0
  57. package/scripts/release-sync.js +359 -0
  58. package/scripts/release-verify.js +153 -0
  59. package/scripts/setup-npmrc.js +39 -0
  60. package/scripts/skills-install.js +4 -36
  61. package/scripts/skills-manifest.js +1 -1
  62. package/scripts/skills-validate.js +78 -40
  63. package/skills/arch/SKILL.md +27 -0
  64. package/skills/arch/agents/openai.yaml +4 -0
  65. package/skills/build/SKILL.md +24 -0
  66. package/skills/build/agents/openai.yaml +4 -0
  67. package/skills/flow/SKILL.md +24 -0
  68. package/skills/flow/agents/openai.yaml +4 -0
  69. package/skills/index.json +27 -22
  70. package/skills/maestro/SKILL.md +25 -0
  71. package/skills/maestro/agents/openai.yaml +4 -0
  72. package/skills/meta-architect/SKILL.md +17 -23
  73. package/skills/meta-architect/agents/openai.yaml +3 -3
  74. package/skills/meta-architect/references/core-release-rules.md +2 -2
  75. package/skills/sage/SKILL.md +24 -0
  76. package/skills/sage/agents/openai.yaml +4 -0
  77. package/skills/vet/SKILL.md +25 -0
  78. package/skills/vet/agents/openai.yaml +4 -0
  79. package/skills/vibe/SKILL.md +24 -0
  80. package/skills/vibe/agents/openai.yaml +4 -0
  81. package/sprint/00-idea.md +1 -1
  82. package/sprint/01-architecture.md +1 -1
  83. package/sprint/02-oss-evidence.md +1 -1
  84. package/sprint/03-logic.md +1 -1
  85. package/sprint/04-security.md +2 -2
  86. package/sprint/05-dx-ux.md +1 -1
  87. package/src/decision-log.js +4 -4
  88. package/src/launcher.js +21 -17
  89. package/src/mcp-live-client.js +1 -1
  90. package/src/paths.js +8 -32
  91. package/src/release-state.js +3 -3
  92. package/src/runtime-artifacts.js +411 -0
  93. package/src/skill-installer.js +198 -0
  94. package/src/skills.js +473 -166
  95. package/templates/AGENTS.md +6 -6
  96. package/templates/model-instructions/core.md +1 -1
  97. package/.codex/config.toml +0 -2
  98. package/plugins/meta-architect/skills/meta-architect-arch/SKILL.md +0 -24
  99. package/plugins/meta-architect/skills/meta-architect-build/SKILL.md +0 -25
  100. package/plugins/meta-architect/skills/meta-architect-flow/SKILL.md +0 -23
  101. package/plugins/meta-architect/skills/meta-architect-sage/SKILL.md +0 -23
  102. package/plugins/meta-architect/skills/meta-architect-vet/SKILL.md +0 -23
  103. package/plugins/meta-architect/skills/meta-architect-vibe/SKILL.md +0 -24
  104. package/prompts/architect.md +0 -216
  105. package/prompts/builder.md +0 -10
  106. package/prompts/flow.md +0 -9
  107. package/prompts/release-manager.md +0 -10
  108. package/prompts/sage.md +0 -10
  109. package/prompts/security-reviewer.md +0 -10
  110. package/prompts/verifier.md +0 -10
  111. package/prompts/vibe.md +0 -10
  112. package/skills/meta-architect-arch/SKILL.md +0 -24
  113. package/skills/meta-architect-arch/agents/openai.yaml +0 -4
  114. package/skills/meta-architect-build/SKILL.md +0 -25
  115. package/skills/meta-architect-build/agents/openai.yaml +0 -4
  116. package/skills/meta-architect-flow/SKILL.md +0 -23
  117. package/skills/meta-architect-flow/agents/openai.yaml +0 -4
  118. package/skills/meta-architect-sage/SKILL.md +0 -23
  119. package/skills/meta-architect-sage/agents/openai.yaml +0 -4
  120. package/skills/meta-architect-vet/SKILL.md +0 -23
  121. package/skills/meta-architect-vet/agents/openai.yaml +0 -4
  122. package/skills/meta-architect-vibe/SKILL.md +0 -24
  123. package/skills/meta-architect-vibe/agents/openai.yaml +0 -4
  124. package/src/doctor.js +0 -30
  125. package/src/setup.js +0 -375
package/README.md CHANGED
@@ -1,90 +1,323 @@
1
- # Meta-Architect
1
+ <div align="center">
2
+ <img src="./docs/assets/meta-architect-logo.svg" alt="Meta-Architect logo" width="1024" height="240">
3
+ <p>Production-grade Codex skills and plugin package for architecture, evidence-backed OSS selection, gate-driven review, and release-minded build guidance.</p>
4
+ <p>
5
+ <img src="https://img.shields.io/npm/v/%40jstn-sdk%2Fma" alt="npm version">
6
+ <img src="https://img.shields.io/badge/node-%3E%3D20-339933" alt="Node.js 20+">
7
+ <img src="https://img.shields.io/github/v/release/JustineDevs/meta-architect" alt="GitHub release">
8
+ <img src="https://img.shields.io/badge/license-MIT-16A34A" alt="MIT License">
9
+ </p>
10
+ <p>
11
+ <a href="https://www.buymeacoffee.com/justinedevs">
12
+ <img src="https://img.shields.io/badge/Buy%20Me%20A%20Coffee-ffdd00?style=flat-square&logo=buy-me-a-coffee&logoColor=black" alt="Buy Me A Coffee">
13
+ </a>
14
+ <a href="https://github.com/sponsors/JustineDevs">
15
+ <img src="https://img.shields.io/badge/GitHub%20Sponsors-JustineDevs-1f6feb?style=flat-square&logo=githubsponsors&logoColor=white" alt="GitHub Sponsors">
16
+ </a>
17
+ </p>
18
+ </div>
19
+
20
+ > [!IMPORTANT]
21
+ > Meta-Architect `v0.1.6` is a production-grade skills line.
22
+ > It is not a lightweight demo branch.
23
+ > From `v0.1.6` onward, the package is expected to ship with stable skill contracts, deterministic packaging, explicit release gates, and honest install and publish surfaces.
24
+
25
+ ## Overview
26
+
27
+ Meta-Architect is a workflow layer for teams that want architecture, evidence, review, and release discipline before build execution.
28
+
29
+ It adds:
30
+
31
+ - an architecture-first lane before implementation
32
+ - evidence-backed OSS selection through GitMCP-connected sources
33
+ - explicit logic, security, and DX/UX review gates
34
+ - installable skills and a reproducible package surface
35
+
36
+ > [!NOTE]
37
+ > Meta-Architect does not replace your coding runtime.
38
+ > It wraps that runtime with architecture, evidence, gate enforcement, and release-sensitive workflow control.
39
+
40
+ ## Support
41
+
42
+ - [GitHub Sponsors](https://github.com/sponsors/JustineDevs)
43
+ - [Buy Me A Coffee](https://www.buymeacoffee.com/justinedevs)
44
+
45
+ <table>
46
+ <tr>
47
+ <td><strong>npm package</strong></td>
48
+ <td><code>@jstn-sdk/ma</code></td>
49
+ </tr>
50
+ <tr>
51
+ <td><strong>Helper command</strong></td>
52
+ <td><code>ma</code> (secondary support surface)</td>
53
+ </tr>
54
+ <tr>
55
+ <td><strong>Runtime</strong></td>
56
+ <td>Node.js <code>&gt;=20</code>, npm <code>@10</code></td>
57
+ </tr>
58
+ <tr>
59
+ <td><strong>Release line</strong></td>
60
+ <td><code>v0.1.6</code></td>
61
+ </tr>
62
+ <tr>
63
+ <td><strong>License</strong></td>
64
+ <td><a href="./LICENSE">MIT</a></td>
65
+ </tr>
66
+ </table>
67
+
68
+ ## Screenshots
69
+
70
+ <table>
71
+ <tr>
72
+ <td><img src="./docs/assets/image/Screenshot(1).png" alt="Meta-Architect screenshot 1" width="280"></td>
73
+ <td><img src="./docs/assets/image/Screenshot(2).png" alt="Meta-Architect screenshot 2" width="280"></td>
74
+ <td><img src="./docs/assets/image/Screenshot(3).png" alt="Meta-Architect screenshot 3" width="280"></td>
75
+ </tr>
76
+ <tr>
77
+ <td><img src="./docs/assets/image/Screenshot(4).png" alt="Meta-Architect screenshot 4" width="280"></td>
78
+ <td><img src="./docs/assets/image/Screenshot(5).png" alt="Meta-Architect screenshot 5" width="280"></td>
79
+ <td><img src="./docs/assets/image/Screenshot(6).png" alt="Meta-Architect screenshot 6" width="280"></td>
80
+ </tr>
81
+ <tr>
82
+ <td><img src="./docs/assets/image/Screenshot(7).png" alt="Meta-Architect screenshot 7" width="280"></td>
83
+ <td><img src="./docs/assets/image/Screenshot(8).png" alt="Meta-Architect screenshot 8" width="280"></td>
84
+ <td><img src="./docs/assets/image/Screenshot(9).png" alt="Meta-Architect screenshot 9" width="280"></td>
85
+ </tr>
86
+ </table>
87
+
88
+ ## Prerequisites
89
+
90
+ - Node.js `>=20`
91
+ - npm `>=10`
92
+ - Git
93
+ - an MCP-capable coding runtime
94
+ - Codex for the recommended package-first path
95
+ - macOS, Linux, or WSL2 recommended
96
+
97
+ > [!TIP]
98
+ > The most reliable default environment is a Unix-like shell with Git, Node.js, and an MCP-capable runtime already configured.
99
+
100
+ ## Recommended Default Flow
101
+
102
+ Meta-Architect is intended to be consumed as an installed package, not primarily as a git clone.
103
+
104
+ Primary product path:
2
105
 
3
- Meta-Architect is a Codex-native runtime layer. Codex is the host runtime. Meta-Architect extends Codex with skill-based architecture, evidence, logic, security, DX, and build workflows.
106
+ ```bash
107
+ # Install
108
+ npm i -g @openai/codex@latest @jstn-sdk/ma@latest
109
+
110
+ # Start Codex context if needed
111
+ ma --madmax --high
112
+
113
+ # Remove Meta-Architect only
114
+ npm uninstall -g @jstn-sdk/ma
115
+
116
+ # Remove Meta-Architect and Codex
117
+ npm uninstall -g @jstn-sdk/ma @openai/codex
118
+ ```
119
+
120
+ What this assumes:
121
+
122
+ - Codex is installed globally
123
+ - Meta-Architect is installed globally as the skills/plugin package
124
+ - Meta-Architect installs its published skill surface into the active Codex home
125
+ - the product experience happens through the skill workflow inside Codex
126
+
127
+ > [!IMPORTANT]
128
+ > The recommended default flow is package-first.
129
+ > The git clone path is for contributors and maintainers, not the main user-facing install story.
130
+
131
+ ## Repository Branch Strategy
132
+
133
+ Meta-Architect’s repository workflow follows a stricter release posture focused on gated promotion:
134
+
135
+ - `main` = release-facing protected branch
136
+ - `development` = normal integration branch
137
+ - `feature/*` = short-lived contribution branches
138
+ - contributors branch from `development`
139
+ - normal PRs target `development`
140
+ - only curated promotions move `development` into `main`
141
+
142
+ > [!CAUTION]
143
+ > `main` is intended to be protected and exceptional.
144
+ > Maintainers should stop bypass-pushing to `main` except for genuine emergency or admin recovery cases.
145
+
146
+ ## Setup
147
+
148
+ ### Package setup
149
+
150
+ Install the consumer package directly:
151
+
152
+ ```bash
153
+ # Install
154
+ npm i -g @openai/codex@latest @jstn-sdk/ma@latest
4
155
 
5
- **Docs:** [Getting Started](./docs/getting-started.md) · [Skills](./docs/skills.md) · [MCP Setup](./docs/mcp-setup.md) · [Skills Publishing](./docs/skills-publishing.md) · [Release Spec](./docs/release-spec.md) · [Plugin](./plugins/meta-architect/README.md) · [Demo](./DEMO.md)
156
+ # Launch
157
+ ma --madmax --high
158
+
159
+ # Remove Meta-Architect only
160
+ npm uninstall -g @jstn-sdk/ma
6
161
 
7
- ## v0.1.5 standard
162
+ # Remove Meta-Architect and Codex
163
+ npm uninstall -g @jstn-sdk/ma @openai/codex
164
+ ```
8
165
 
9
- Meta-Architect `v0.1.5` is the canonical production release line for this repository.
166
+ This gives you:
10
167
 
11
- From `v0.1.5` onward, this repository expects:
12
- - a Codex-hosted runtime-first product story
13
- - deterministic skill packaging and release metadata
14
- - strict gate enforcement and append-only decisions
15
- - npm provenance-backed publishing from GitHub Actions trusted publishing
16
- - release notes, QA evidence, manifests, and workflows that agree on one version and tag
168
+ - the installed Meta-Architect skill surface
169
+ - the canonical Meta-Architect skill entrypoints inside a Codex session
170
+ - the optional `ma` helper command when a guided start is useful
17
171
 
18
- ## Install and launch
172
+ ### Contributor setup: source checkout
19
173
 
20
- Canonical install:
174
+ Use this path only if you want to work on Meta-Architect itself.
21
175
 
22
176
  ```bash
23
- npm i -g @openai/codex @jstn-sdk/ma
177
+ git clone https://github.com/JustineDevs/meta-architect.git
178
+ cd meta-architect
179
+ npm install
180
+ npm link
24
181
  ```
25
182
 
26
- Canonical launch:
183
+ `npm link` makes `ma` and `meta-architect` available from the local checkout.
184
+
185
+ ## Quick Start
186
+
187
+ ### 1. Start Codex context if needed
27
188
 
28
189
  ```bash
29
190
  ma --madmax --high
30
191
  ```
31
192
 
32
- Canonical operating surface inside Codex:
33
- - `$arch`
34
- - `$sage`
35
- - `$flow`
36
- - `$vet`
37
- - `$vibe`
38
- - `$build`
193
+ ### 2. Start with the real usage-workflow prompt
39
194
 
40
- Legacy `meta-architect` and `@jstn-sdk/meta-architect-skills` installs are compatibility-only references and should be replaced with `@jstn-sdk/ma`.
195
+ Use the same operator shape defined in [example/usage-workflow.md](./example/usage-workflow.md).
196
+
197
+ Quick-start prompt:
198
+
199
+ ```text
200
+ $maestro
201
+
202
+ Or start directly with:
203
+
204
+ $arch I want to build: [PROJECT IDEA]
205
+
206
+ Context:
207
+ - Product type: [web app / mobile app / API / marketplace / agent system / internal tool]
208
+ - Users: [who will use it]
209
+ - Core problem: [what problem it solves]
210
+ - Main features:
211
+ 1. [feature one]
212
+ 2. [feature two]
213
+ 3. [feature three]
214
+ - Constraints:
215
+ - Budget: [low / medium / high]
216
+ - Team size: [solo / small / medium]
217
+ - Timeline: [e.g. 2 weeks MVP, 3 months beta]
218
+ - Preferred stack: [optional]
219
+ - Avoid: [optional]
220
+ - Quality priorities:
221
+ - [e.g. speed, low cost, security, DX, maintainability, scalability]
222
+ - Deployment target:
223
+ - [Vercel / Docker / VPS / AWS / GCP / local-first / hybrid]
224
+
225
+ Required output:
226
+ 1. Problem framing
227
+ 2. Recommended architecture
228
+ 3. Stack decision with justification
229
+ 4. System components and responsibilities
230
+ 5. Data model and storage choices
231
+ 6. Auth/security considerations
232
+ 7. DX/UX considerations
233
+ 8. Delivery plan for v0.1.6
234
+ 9. Risks and trade-offs
235
+ 10. Decision log
236
+ 11. Exact next trigger to run after this
237
+ ```
41
238
 
42
- ## Runtime model
239
+ ### 3. Run the full trigger sequence inside Codex
43
240
 
44
- - Codex is the host runtime.
45
- - Meta-Architect is the runtime extension.
46
- - Daily use happens through skill tags inside Codex.
47
- - `ma` is the runtime entry posture plus a small maintenance/helper surface.
48
- - `ma setup`, `ma doctor`, `ma status`, and `ma run ...` are subordinate maintenance or scripted-helper commands, not the primary product story.
241
+ After `$arch`, continue exactly like the usage workflow:
49
242
 
50
- ## Gate model
243
+ ```text
244
+ $maestro
245
+ $sage
246
+ $flow
247
+ $vet
248
+ $vibe
249
+ $build
250
+ ```
51
251
 
52
- Meta-Architect enforces a strict local release-state contract:
53
- - `idea_status`
54
- - `architecture_status`
55
- - `evidence_status`
56
- - `logic_status`
57
- - `security_status`
58
- - `experience_status`
59
- - `build_status`
60
- - `merge_status`
61
- - `release_status`
252
+ See [example/usage-workflow.md](./example/usage-workflow.md) for the full prompt templates for each step.
62
253
 
63
- `$build` stays locked unless:
64
- - `idea_status = CLEAR`
65
- - `architecture_status = APPROVED`
66
- - `evidence_status = VERIFIED`
67
- - `logic_status = GREEN`
68
- - `security_status = GREEN`
69
- - `experience_status ∈ { GREEN, WAIVED }`
70
- - `build_status ∈ { LOCKED, READY }`
254
+ ### 4. Secondary helper path
71
255
 
72
- The normative contract is in [docs/release-spec.md](./docs/release-spec.md).
256
+ If you are working from a repository directly and need scaffolded local support files, use:
73
257
 
74
- ## Quickstart
258
+ ```bash
259
+ ma setup
260
+ ma
261
+ ```
75
262
 
76
- Inside the Codex session launched with `ma --madmax --high`, use the runtime tags directly:
263
+ Expected output for `ma setup`:
77
264
 
78
265
  ```text
79
- $arch "Define architecture and stack boundaries"
80
- $sage "Bind major choices to approved OSS evidence"
81
- $flow "Review logic, states, and blockers"
82
- $vet "Review security posture and dependency risk"
83
- $vibe "Review developer and user experience"
84
- $build "Evaluate gates and prepare bounded implementation work"
266
+ meta-architect setup
267
+ ====================
268
+ ready: .codex/agents
269
+ ready: .codex/prompts
270
+ ready: .ma/skills
271
+ ready: .ma/evidence
272
+ ready: .ma/context
273
+ ready: .ma/specs
274
+ ready: .ma/plans
275
+ ready: mcp
276
+ ready: docs
277
+ ready: docs/qa
278
+ ready: sprint
85
279
  ```
86
280
 
87
- Expected `ma status` after the upstream review gates are green:
281
+ ### 5. Configure GitMCP sources
282
+
283
+ Add real repository-backed endpoints in `mcp/servers.json`.
284
+
285
+ Example:
286
+
287
+ ```json
288
+ {
289
+ "category": "meta-list",
290
+ "repo": "sindresorhus/awesome",
291
+ "endpoint": "https://gitmcp.io/sindresorhus/awesome"
292
+ }
293
+ ```
294
+
295
+ Recommended starter endpoints:
296
+
297
+ - `https://gitmcp.io/sindresorhus/awesome`
298
+ - `https://gitmcp.io/dzharii/awesome-typescript`
299
+ - `https://gitmcp.io/sbilly/awesome-security`
300
+
301
+ > [!IMPORTANT]
302
+ > Verified release evidence must come from repository-form GitMCP endpoints such as `https://gitmcp.io/{owner}/{repo}`.
303
+ > A generic documentation endpoint such as `https://gitmcp.io/docs` does not count as VERIFIED evidence for build unlocking.
304
+
305
+ ### 6. Secondary helper flow outside Codex
306
+
307
+ If you need scripted repo-local validation rather than the interactive runtime workflow:
308
+
309
+ ```bash
310
+ ma idea "Build a real-time collaborative whiteboard for product teams"
311
+ ma run '$arch'
312
+ ma run '$sage'
313
+ ma run '$flow'
314
+ ma run '$vet'
315
+ ma run '$vibe'
316
+ ma status
317
+ ma run '$build'
318
+ ```
319
+
320
+ Expected status before the helper-path `$build`:
88
321
 
89
322
  ```text
90
323
  Meta-Architect Status
@@ -100,7 +333,7 @@ Next allowed triggers:
100
333
  $build
101
334
  ```
102
335
 
103
- Expected scripted helper output for `ma run '$build'`:
336
+ Expected helper-path build output:
104
337
 
105
338
  ```text
106
339
  Build gate is green.
@@ -112,83 +345,233 @@ git worktree add ../ui feature/ui
112
345
  git worktree add ../api feature/api
113
346
  ```
114
347
 
115
- ## Maintenance and scripted helpers
348
+ ### 7. Simple command guide
349
+
350
+ Meta-Architect has two surfaces.
116
351
 
117
- Use the CLI helpers only when you need repo-local scaffolding, diagnostics, or non-interactive verification:
352
+ - terminal helper commands
353
+ - in-session skills
354
+
355
+ Terminal commands are normal shell commands you run in the terminal:
118
356
 
119
357
  ```bash
358
+ ma setup
359
+ ma init
360
+ ma idea "Build a product"
120
361
  ma status
121
- ma idea "Build a collaborative whiteboard"
122
362
  ma run '$arch'
123
- ma run '$sage'
124
- ma run '$flow'
125
- ma run '$vet'
126
- ma run '$vibe'
127
- ma run '$build'
128
- ma doctor
129
- ma setup
130
363
  ```
131
364
 
132
- These commands support the runtime; they are not the main experience.
133
-
134
- ## Merge and release posture
135
-
136
- Supported branch semantics:
137
- - `feature/*` for bounded task work
138
- - `development` for integration
139
- - optional approved `release/*` for stabilization
140
- - `prod` for production release
141
-
142
- Release policy:
143
- - feature branches never promote directly to `prod`
144
- - release evaluation is valid only from `development` or approved `release/*`
145
- - release claims are only true after tag, GitHub release, and npm publish evidence all succeed
146
-
147
- ## Packaging and provenance
148
-
149
- Meta-Architect publishes two aligned surfaces:
150
- - the npm runtime package `@jstn-sdk/ma`
151
- - the skills/plugin distribution surfaces under [skills/](./skills/) and [plugins/meta-architect/](./plugins/meta-architect/)
152
-
153
- Required release bar:
154
- - `npm run release:check` passes
155
- - workflows are configured for GitHub Actions trusted publishing
156
- - npm publish uses provenance
157
- - post-publish verification checks npm metadata plus `npm audit signatures`
158
-
159
- ## Repository surfaces
160
-
161
- High-value surfaces:
162
- - [CONTRIBUTING.md](./CONTRIBUTING.md)
163
- - [templates/AGENTS.md](./templates/AGENTS.md)
164
- - [prompts/](./prompts/)
165
- - [skills/](./skills/)
166
- - [plugins/meta-architect/](./plugins/meta-architect/)
167
- - [.github/workflows/](./.github/workflows/)
168
- - [docs/qa/release-readiness-0.1.5.md](./docs/qa/release-readiness-0.1.5.md)
169
-
170
- ## Runtime hygiene
171
-
172
- Local-only runtime residue must not be treated as public source:
173
- - `.omx/logs/`
174
- - `.omx/state/`
175
- - `.omx/tmp/`
176
- - `.omx/cache/`
177
- - `.omx/metrics.json`
178
-
179
- Committed contract files such as `.omx/release.json`, `.omx/decisions.json`, `.omx/evidence/`, and `.omx/skills/` remain part of the product contract.
180
-
181
- ## Documentation map
182
-
183
- - [Getting Started](./docs/getting-started.md)
184
- - [Skills Reference](./docs/skills.md)
185
- - [MCP Setup](./docs/mcp-setup.md)
186
- - [Skills Publishing](./docs/skills-publishing.md)
187
- - [Release Spec](./docs/release-spec.md)
188
- - [Plugin Bundle](./plugins/meta-architect/README.md)
189
- - [QA / Release Readiness](./docs/qa/release-readiness-0.1.5.md)
190
- - [Release Body](./RELEASE.md)
191
- - [Changelog](./CHANGELOG.md)
365
+ In-session skills are prompts you use inside the Codex conversation after launch:
366
+
367
+ ```text
368
+ $maestro
369
+ $arch
370
+ $sage
371
+ $flow
372
+ $vet
373
+ $vibe
374
+ $build
375
+ ```
376
+
377
+ Plain-language difference:
378
+ - `ma ...` = helper commands in the terminal
379
+ - `$...` = the product experience inside Codex
380
+
381
+ What `ma setup` and `ma init` do:
382
+ - both currently do the same thing
383
+ - they create the local support files and folders
384
+ - they prepare `.ma/` runtime files such as context, specs, plans, evidence, and runbook files
385
+ - they do not run the skill workflow by themselves
386
+
387
+ What to use when:
388
+ - use Codex and run the skills in-session
389
+ - use `$maestro` when you want Meta-Architect to choose the best next step for you
390
+ - use `$arch -> $sage -> $flow -> $vet -> $vibe -> $build` inside the Codex session
391
+ - use `ma setup` or `ma init` only when you want local scaffolding or scripted helper automation from the terminal
392
+ - use `ma sdk-path` when you need the exact installed support-bundle path for packaged prompts, MCP files, sprint files, scripts, plugin metadata, or templates
393
+
394
+ ## Core Maintainers
395
+
396
+ <table>
397
+ <tr>
398
+ <td><strong>Role</strong></td>
399
+ <td><strong>Name</strong></td>
400
+ <td><strong>GitHub</strong></td>
401
+ </tr>
402
+ <tr>
403
+ <td>Creator / Maintainer</td>
404
+ <td>JustineDevs</td>
405
+ <td><a href="https://github.com/JustineDevs">@JustineDevs</a></td>
406
+ </tr>
407
+ </table>
408
+
409
+ ## Core Triggers
410
+
411
+ | Trigger | Purpose | Main output | Gate effect |
412
+ | --- | --- | --- | --- |
413
+ | `$arch` | Produce the first-pass architecture blueprint | decision entry | `architecture_status = APPROVED` |
414
+ | `$sage` | Ground major choices in configured GitMCP evidence | evidence records | `evidence_status = VERIFIED | PARTIAL | MISSING` |
415
+ | `$flow` | Review baseline logic and state transitions | logic review entry | `logic_status = GREEN | RED` |
416
+ | `$vet` | Run baseline security and dependency review | audit and CVE records | `security_status = GREEN | RED` |
417
+ | `$vibe` | Review developer and user experience implications | DX/UX outcome record | `experience_status = GREEN | RED | WAIVED` |
418
+ | `$build` | Unlock bounded build planning | build-ready decision + `.ma/plans/build.md` | `build_status = READY` |
419
+
420
+ ## Gate Model
421
+
422
+ Meta-Architect is intentionally fail-closed.
423
+
424
+ | Status | Meaning |
425
+ | --- | --- |
426
+ | `CLEAR` | enough input exists to proceed |
427
+ | `APPROVED` | the architecture lane produced an acceptable first-pass blueprint |
428
+ | `VERIFIED` | live evidence was grounded through approved GitMCP sources |
429
+ | `PARTIAL` | evidence is configured but live proof is incomplete or unavailable |
430
+ | `GREEN` | the current baseline review passed |
431
+ | `RED` | the lane is blocked or failed |
432
+ | `WAIVED` | the lane was intentionally waived with a recorded reason |
433
+ | `LOCKED` | downstream work is not allowed yet |
434
+ | `READY` | the next gated step is allowed |
435
+
436
+ > [!CAUTION]
437
+ > `$build` must stay locked until the upstream release state in `.ma/release.json` satisfies the gate contract.
438
+ > Meta-Architect is designed to stop on blockers rather than silently continue.
439
+ > Rich runtime artifacts live in `.ma/context/`, `.ma/specs/`, `.ma/plans/`, and `.ma/runbook.md`.
440
+
441
+ ## Release and Packaging
442
+
443
+ Meta-Architect has two related but different distribution surfaces.
444
+
445
+ | Surface | Purpose | Produced by |
446
+ | --- | --- | --- |
447
+ | npm package | public package containing the installable Meta-Architect skills/plugin system, docs, scripts, and canonical skills | `npm publish` or `npm pack` |
448
+ | skills bundle | narrower tarball containing `skills/` only | `npm run skills:pack` |
449
+
450
+ Required packaging commands:
451
+
452
+ ```bash
453
+ npm run skills:manifest
454
+ npm run skills:validate
455
+ npm run skills:pack
456
+ npm run skills:install -- --path ./dist/installed-skills
457
+ npm run pack:inspect
458
+ ```
459
+
460
+ Pre-publish rules:
461
+
462
+ - `skills/index.json` must be current
463
+ - `npm run skills:validate` must pass
464
+ - `dist/meta-architect-skills.tgz` must exist
465
+ - `npm pack --dry-run` must show only intended public files
466
+ - docs must match the real skills/plugin and release behavior
467
+
468
+ Release lane discipline:
469
+ - stable versions publish to npm `latest`
470
+ - prerelease versions such as `0.2.0-beta.1` must publish with an explicit dist-tag such as `beta`
471
+ - alternate lanes such as `next`, `beta`, and `canary` must never overwrite `latest`
472
+
473
+ Maintainer version-bump flow:
474
+ 1. Bump the package with `npm version <version> --no-git-tag-version`
475
+ 2. Update `CHANGELOG.md`, `RELEASE.md`, and `docs/qa/release-readiness-<version>.md`
476
+ 3. Run `npm run release:verify`
477
+ 4. Run `npm run release:check`
478
+ 5. Create and push tag `v<version>`
479
+ 6. Preferred publish path: publish from `.github/workflows/npm-publish.yml` on a supported cloud runner so provenance can be generated
480
+ 7. Local shell fallback when not publishing from GitHub Actions or GitLab CI/CD:
481
+ - Stable publish: `npm publish --access public`
482
+ - Prerelease publish: `npm publish --access public --tag <lane>`
483
+ 8. Verify publish state with `npm view @jstn-sdk/ma version dist-tags time --json`
484
+
485
+ Provenance note:
486
+ - `npm publish --provenance` requires a supported cloud CI/CD provider
487
+ - a local shell publish will fail with `Automatic provenance generation not supported for provider: null`
488
+ - use the repository publish workflow when provenance is required
489
+
490
+ Release automation:
491
+ - `npm run release:sync` bumps and synchronizes the active release line only when watched release-relevant files changed
492
+ - `npm run release:advance` force-bumps the next patch line and rewrites the same version-bearing files
493
+ - `.github/workflows/release-sync.yml` runs the sync path on `main` pushes that touch watched release-relevant paths
494
+ - `.github/workflows/release-advance.yml` runs after a published GitHub release and advances the repo to the next patch line automatically
495
+
496
+ > [!CAUTION]
497
+ > Do not claim npm, GitHub release, or any other publish channel until that channel has actually succeeded.
498
+ > Release documentation must match reality, not intent.
499
+
500
+ ## Package Surface
501
+
502
+ <table>
503
+ <tr>
504
+ <td><strong>Included</strong></td>
505
+ <td><code>bin/</code>, <code>skills/</code>, <code>docs/</code>, <code>scripts/</code>, <code>index.js</code>, <code>README.md</code>, <code>LICENSE</code></td>
506
+ </tr>
507
+ <tr>
508
+ <td><strong>Excluded</strong></td>
509
+ <td><code>.ma/</code> runtime state, context, specs, plans, logs, caches, and temp install outputs</td>
510
+ </tr>
511
+ </table>
512
+
513
+ ## Repository Structure
514
+
515
+ <table>
516
+ <tr>
517
+ <td><strong>Path</strong></td>
518
+ <td><strong>Responsibility</strong></td>
519
+ </tr>
520
+ <tr>
521
+ <td><code>.codex/</code></td>
522
+ <td>runtime prompts, hooks, and repo guidance</td>
523
+ </tr>
524
+ <tr>
525
+ <td><code>skills/</code></td>
526
+ <td>canonical public skill contracts</td>
527
+ </tr>
528
+ <tr>
529
+ <td><code>plugins/meta-architect/</code></td>
530
+ <td>plugin-oriented distribution surface</td>
531
+ </tr>
532
+ <tr>
533
+ <td><code>docs/</code></td>
534
+ <td>installation, publishing, and release documentation</td>
535
+ </tr>
536
+ <tr>
537
+ <td><code>missions/</code></td>
538
+ <td>reproducible scenario-driven workflows</td>
539
+ </tr>
540
+ <tr>
541
+ <td><code>mcp/</code></td>
542
+ <td>GitMCP endpoint and collection configuration</td>
543
+ </tr>
544
+ <tr>
545
+ <td><code>scripts/</code></td>
546
+ <td>validation, packing, and install helpers</td>
547
+ </tr>
548
+ <tr>
549
+ <td><code>sprint/</code></td>
550
+ <td>human-readable phased workflow documents</td>
551
+ </tr>
552
+ </table>
553
+
554
+ ## Documentation
555
+
556
+ | Surface | Purpose |
557
+ | --- | --- |
558
+ | [Getting Started](./docs/getting-started.md) | end-to-end local onboarding |
559
+ | [Skills Reference](./docs/skills.md) | trigger-by-trigger contract guide |
560
+ | [Installed Support Bundle](./docs/installed-sdk.md) | standard packaged asset path for skills and helper flows |
561
+ | [Skills Publishing](./docs/skills-publishing.md) | source-to-package pipeline |
562
+ | [MCP Setup](./docs/mcp-setup.md) | evidence endpoint policy |
563
+ | [Plugin README](./plugins/meta-architect/README.md) | plugin distribution surface |
564
+ | [Collaborative Whiteboard Mission](./missions/collaborative-whiteboard/mission.md) | concrete scenario walkthrough |
565
+ | [Release Spec](./docs/release-spec.md) | release and gate policy |
566
+ | [Release Readiness](./docs/qa/release-readiness-0.1.6.md) | QA evidence for the `v0.1.6` line |
567
+
568
+ ## Release Hygiene
569
+
570
+ > [!WARNING]
571
+ > Runtime `.ma` logs, state, tmp, and cache files must not be shipped.
572
+ > Public docs must match actual package behavior.
573
+ > Publish statements must match reality.
574
+ > Skill contracts must stay aligned across canonical and plugin-facing copies.
192
575
 
193
576
  ## License
194
577