@jstn-sdk/ma 0.1.1 → 0.1.3

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 (38) hide show
  1. package/README.md +7 -5
  2. package/bin/ma.js +12 -0
  3. package/docs/README.md +2 -1
  4. package/docs/getting-started.md +4 -1
  5. package/docs/installed-sdk.md +60 -0
  6. package/docs/qa/{release-readiness-0.1.1.md → release-readiness-0.1.3.md} +8 -8
  7. package/docs/release-spec.md +7 -7
  8. package/docs/skills.md +28 -0
  9. package/package.json +3 -1
  10. package/plugins/meta-architect/.app.json +1 -1
  11. package/plugins/meta-architect/.codex-plugin/plugin.json +1 -1
  12. package/plugins/meta-architect/.mcp.json +1 -1
  13. package/plugins/meta-architect/README.md +1 -1
  14. package/plugins/meta-architect/skills/arch/agents/openai.yaml +2 -2
  15. package/plugins/meta-architect/skills/build/agents/openai.yaml +2 -2
  16. package/plugins/meta-architect/skills/flow/agents/openai.yaml +2 -2
  17. package/plugins/meta-architect/skills/meta-architect/agents/openai.yaml +2 -2
  18. package/plugins/meta-architect/skills/sage/agents/openai.yaml +2 -2
  19. package/plugins/meta-architect/skills/vet/agents/openai.yaml +2 -2
  20. package/plugins/meta-architect/skills/vibe/agents/openai.yaml +2 -2
  21. package/scripts/postinstall.js +7 -3
  22. package/scripts/release-sync.js +348 -0
  23. package/skills/arch/agents/openai.yaml +2 -2
  24. package/skills/build/agents/openai.yaml +2 -2
  25. package/skills/flow/agents/openai.yaml +2 -2
  26. package/skills/meta-architect/agents/openai.yaml +2 -2
  27. package/skills/sage/agents/openai.yaml +2 -2
  28. package/skills/vet/agents/openai.yaml +2 -2
  29. package/skills/vibe/agents/openai.yaml +2 -2
  30. package/src/launcher.js +1 -0
  31. package/src/mcp-live-client.js +1 -1
  32. package/src/skill-installer.js +151 -2
  33. package/src/skills.js +2 -2
  34. package/templates/AGENTS.md +130 -0
  35. package/templates/catalog-manifest.json +22 -0
  36. package/templates/model-instructions/core.md +39 -0
  37. package/templates/model-instructions/release.md +41 -0
  38. package/templates/model-instructions/security.md +22 -0
package/README.md CHANGED
@@ -10,9 +10,9 @@
10
10
  </div>
11
11
 
12
12
  > [!IMPORTANT]
13
- > Meta-Architect `v0.1.1` is a production-grade skills line.
13
+ > Meta-Architect `v0.1.3` is a production-grade skills line.
14
14
  > It is not a lightweight demo branch.
15
- > From `v0.1.1` onward, the package is expected to ship with stable skill contracts, deterministic packaging, explicit release gates, and honest install and publish surfaces.
15
+ > From `v0.1.3` onward, the package is expected to ship with stable skill contracts, deterministic packaging, explicit release gates, and honest install and publish surfaces.
16
16
 
17
17
  ## Overview
18
18
 
@@ -44,7 +44,7 @@ It adds:
44
44
  </tr>
45
45
  <tr>
46
46
  <td><strong>Release line</strong></td>
47
- <td><code>v0.1.1</code></td>
47
+ <td><code>v0.1.3</code></td>
48
48
  </tr>
49
49
  <tr>
50
50
  <td><strong>License</strong></td>
@@ -193,7 +193,7 @@ Required output:
193
193
  5. Data model and storage choices
194
194
  6. Auth/security considerations
195
195
  7. DX/UX considerations
196
- 8. Delivery plan for v0.1.1
196
+ 8. Delivery plan for v0.1.3
197
197
  9. Risks and trade-offs
198
198
  10. Decision log
199
199
  11. Exact next trigger to run after this
@@ -349,6 +349,7 @@ What to use when:
349
349
  - use Codex and run the skills in-session
350
350
  - use `$arch -> $sage -> $flow -> $vet -> $vibe -> $build` inside the Codex session
351
351
  - use `ma setup` or `ma init` only when you want local scaffolding or scripted helper automation from the terminal
352
+ - 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
352
353
 
353
354
  ## Core Maintainers
354
355
 
@@ -510,12 +511,13 @@ Provenance note:
510
511
  | --- | --- |
511
512
  | [Getting Started](./docs/getting-started.md) | end-to-end local onboarding |
512
513
  | [Skills Reference](./docs/skills.md) | trigger-by-trigger contract guide |
514
+ | [Installed Support Bundle](./docs/installed-sdk.md) | standard packaged asset path for skills and helper flows |
513
515
  | [Skills Publishing](./docs/skills-publishing.md) | source-to-package pipeline |
514
516
  | [MCP Setup](./docs/mcp-setup.md) | evidence endpoint policy |
515
517
  | [Plugin README](./plugins/meta-architect/README.md) | plugin distribution surface |
516
518
  | [Collaborative Whiteboard Mission](./missions/collaborative-whiteboard/mission.md) | concrete scenario walkthrough |
517
519
  | [Release Spec](./docs/release-spec.md) | release and gate policy |
518
- | [Release Readiness](./docs/qa/release-readiness-0.1.1.md) | QA evidence for the `v0.1.1` line |
520
+ | [Release Readiness](./docs/qa/release-readiness-0.1.3.md) | QA evidence for the `v0.1.3` line |
519
521
 
520
522
  ## Release Hygiene
521
523
 
package/bin/ma.js CHANGED
@@ -15,6 +15,11 @@ import {
15
15
  } from "../src/policy.js";
16
16
  import { loadReleaseState } from "../src/release-state.js";
17
17
  import { writeBuildPlanArtifact } from "../src/runtime-artifacts.js";
18
+ import {
19
+ ensureSkillsInstalled,
20
+ ensureSupportBundleInstalled,
21
+ getSupportBundleRoot,
22
+ } from "../src/skill-installer.js";
18
23
  import {
19
24
  listSkills,
20
25
  runArch,
@@ -34,6 +39,7 @@ function printUsage() {
34
39
  console.error(" ma init");
35
40
  console.error(' ma idea "..."');
36
41
  console.error(" ma skills");
42
+ console.error(" ma sdk-path");
37
43
  console.error(" ma status");
38
44
  console.error(" ma run $arch|$sage|$flow|$vet|$vibe|$build");
39
45
  console.error(" ma merge <source-branch> <target-branch>");
@@ -198,6 +204,7 @@ async function main() {
198
204
  const arg = rest[0];
199
205
 
200
206
  if (shouldDelegateToCodex(args)) {
207
+ await Promise.all([ensureSkillsInstalled(), ensureSupportBundleInstalled()]);
201
208
  process.exitCode = runCodex(args);
202
209
  return;
203
210
  }
@@ -236,6 +243,11 @@ async function main() {
236
243
  return;
237
244
  }
238
245
 
246
+ if (command === "sdk-path") {
247
+ process.stdout.write(`${getSupportBundleRoot()}\n`);
248
+ return;
249
+ }
250
+
239
251
  if (command === "status") {
240
252
  const releaseState = await loadReleaseState();
241
253
  printStatus(releaseState);
package/docs/README.md CHANGED
@@ -7,6 +7,7 @@ Meta-Architect documentation is organized by operator task.
7
7
  - [Getting Started](./getting-started.md)
8
8
  - [Release Spec](./release-spec.md)
9
9
  - [Skills Reference](./skills.md)
10
+ - [Installed Support Bundle](./installed-sdk.md)
10
11
 
11
12
  ## Packaging and installation
12
13
 
@@ -16,7 +17,7 @@ Meta-Architect documentation is organized by operator task.
16
17
 
17
18
  ## QA and readiness
18
19
 
19
- - [Release Readiness 0.1.1](./qa/release-readiness-0.1.1.md)
20
+ - [Release Readiness 0.1.3](./qa/release-readiness-0.1.3.md)
20
21
 
21
22
  ## Repo structure references
22
23
 
@@ -74,7 +74,7 @@ Required output:
74
74
  5. Data model and storage choices
75
75
  6. Auth/security considerations
76
76
  7. DX/UX considerations
77
- 8. Delivery plan for v0.1.1
77
+ 8. Delivery plan for v0.1.3
78
78
  9. Risks and trade-offs
79
79
  10. Decision log
80
80
  11. Exact next trigger to run after this
@@ -155,6 +155,7 @@ Terminal commands are normal shell commands:
155
155
  ```bash
156
156
  ma setup
157
157
  ma init
158
+ ma sdk-path
158
159
  ma status
159
160
  ma run '$arch'
160
161
  ```
@@ -179,6 +180,8 @@ Easy rule:
179
180
  - they prepare context, specs, plans, evidence, and runbook files
180
181
  - they do not automatically run the skill workflow
181
182
 
183
+ `ma sdk-path` prints the installed packaged support-bundle root for relevant files such as prompts, MCP files, sprint files, scripts, plugin metadata, and templates.
184
+
182
185
  ## 5. Configure MCP / GitMCP
183
186
 
184
187
  Edit:
@@ -0,0 +1,60 @@
1
+ # Installed Support Bundle
2
+
3
+ Meta-Architect installs two things into the active Codex home:
4
+
5
+ 1. skills under `CODEX_HOME/skills/`
6
+ 2. a support bundle under `CODEX_HOME/meta-architect-sdk/`
7
+
8
+ The support bundle exists so skills and helper paths can use relevant packaged files without guessing where they live.
9
+
10
+ ## Canonical support bundle path
11
+
12
+ Default:
13
+
14
+ ```text
15
+ ~/.codex/meta-architect-sdk/
16
+ ```
17
+
18
+ If `CODEX_HOME` is set, use:
19
+
20
+ ```text
21
+ $CODEX_HOME/meta-architect-sdk/
22
+ ```
23
+
24
+ You can print the exact active path with:
25
+
26
+ ```bash
27
+ ma sdk-path
28
+ ```
29
+
30
+ ## What is installed there
31
+
32
+ - `mcp/`
33
+ - `sprint/`
34
+ - `prompts/`
35
+ - `scripts/`
36
+ - `plugins/meta-architect/`
37
+ - `templates/`
38
+ - `docs/README.md`
39
+ - `asset-manifest.json`
40
+
41
+ ## Why this exists
42
+
43
+ - skills can rely on a standard installed asset root
44
+ - helper paths can repair missing support assets automatically
45
+ - packaged references do not depend on a source checkout
46
+ - the product can use relevant packaged files without path guessing
47
+
48
+ ## Contract
49
+
50
+ When Meta-Architect needs packaged support files, prefer the installed support bundle first.
51
+
52
+ Examples:
53
+ - MCP starter files -> `meta-architect-sdk/mcp/`
54
+ - sprint references -> `meta-architect-sdk/sprint/`
55
+ - Codex prompt assets -> `meta-architect-sdk/prompts/`
56
+ - helper scripts -> `meta-architect-sdk/scripts/`
57
+ - plugin metadata -> `meta-architect-sdk/plugins/meta-architect/`
58
+ - templates -> `meta-architect-sdk/templates/`
59
+
60
+ The in-session skill flow is still primary. This bundle only standardizes packaged asset access.
@@ -1,25 +1,25 @@
1
- # Release Readiness 0.1.1
1
+ # Release Readiness 0.1.3
2
2
 
3
3
  ## Production bar
4
4
 
5
- `v0.1.1` is treated as production only when:
5
+ `v0.1.3` is treated as production only when:
6
6
  - the package installs cleanly from the canonical public install command
7
7
  - the Codex-hosted runtime path works end to end
8
8
  - the helper flow remains valid for scripted verification
9
- - release docs, package metadata, and workflows all agree on `0.1.1`
9
+ - release docs, package metadata, and workflows all agree on `0.1.3`
10
10
 
11
11
  Target release state:
12
- - npm package: `@jstn-sdk/ma@0.1.1`
12
+ - npm package: `@jstn-sdk/ma@0.1.3`
13
13
  - npm registry state: pending publish
14
- - publishability note: `0.1.0` is already published, so `0.1.1` is the next publishable package line
15
- - git tag: `v0.1.1`
16
- - GitHub release: pending publish for `v0.1.1`
14
+ - publishability note: `0.1.2` is already published, so `0.1.3` is the next publishable package line
15
+ - git tag: `v0.1.3`
16
+ - GitHub release: pending publish for `v0.1.3`
17
17
 
18
18
  ## Production checklist
19
19
 
20
20
  - skills-first product identity: PASS
21
21
  - package/plugin identity aligned to `@jstn-sdk/ma`: PASS
22
- - version/tag alignment `0.1.1` / `v0.1.1`: PASS
22
+ - version/tag alignment `0.1.3` / `v0.1.3`: PASS
23
23
  - install/uninstall docs aligned: PASS
24
24
  - onboarding is concise and sequential: PASS
25
25
  - helper command documented as secondary: PASS
@@ -1,13 +1,13 @@
1
- # v0.1.1 Requirements & Rules
1
+ # v0.1.3 Requirements & Rules
2
2
 
3
3
  ## Production definition
4
4
 
5
- Meta-Architect `v0.1.1` is production only when:
5
+ Meta-Architect `v0.1.3` is production only when:
6
6
  1. the package/install surface works
7
7
  2. the in-session skill workflow from `$arch` through `$build` works
8
8
  3. the release evidence matches the actual package and git tag
9
9
 
10
- ## What `v0.1.1` must have
10
+ ## What `v0.1.3` must have
11
11
 
12
12
  ### 1. Canonical package/runtime path
13
13
 
@@ -49,16 +49,16 @@ Canonical state files:
49
49
 
50
50
  ### 4. Required release evidence
51
51
 
52
- - `package.json` version `0.1.1`
53
- - git tag `v0.1.1`
52
+ - `package.json` version `0.1.3`
53
+ - git tag `v0.1.3`
54
54
  - `RELEASE.md`
55
55
  - `CHANGELOG.md`
56
- - `docs/qa/release-readiness-0.1.1.md`
56
+ - `docs/qa/release-readiness-0.1.3.md`
57
57
  - green `npm run release:check`
58
58
 
59
59
  ### 5. Dist-tag discipline
60
60
 
61
- - stable versions such as `0.1.1` publish to npm `latest`
61
+ - stable versions such as `0.1.2` publish to npm `latest`
62
62
  - prerelease versions such as `0.2.0-beta.1` must publish with explicit tags such as `beta`
63
63
  - recommended alternate lanes are `next`, `beta`, and `canary`
64
64
  - prerelease publication must use `npm publish --tag <lane>`
package/docs/skills.md CHANGED
@@ -67,6 +67,34 @@ Important:
67
67
  - they only create local support files
68
68
  - they do not replace the in-session skill flow
69
69
 
70
+ ## Installed support bundle
71
+
72
+ Meta-Architect also installs a standard packaged support bundle for relevant files.
73
+
74
+ Default path:
75
+
76
+ ```text
77
+ ~/.codex/meta-architect-sdk/
78
+ ```
79
+
80
+ Use:
81
+
82
+ ```bash
83
+ ma sdk-path
84
+ ```
85
+
86
+ when you want the exact active path.
87
+
88
+ Relevant packaged assets there include:
89
+ - `mcp/`
90
+ - `sprint/`
91
+ - `prompts/`
92
+ - `scripts/`
93
+ - `plugins/meta-architect/`
94
+ - `templates/`
95
+
96
+ This exists so Meta-Architect can use relevant packaged files without guessing paths.
97
+
70
98
  ## Shared output contract
71
99
 
72
100
  Every skill result must include:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jstn-sdk/ma",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Codex-native skills system for architecture, evidence, review, and gated build guidance.",
5
5
  "license": "MIT",
6
6
  "author": "JustineDevs",
@@ -37,6 +37,7 @@
37
37
  ".agents/plugins/",
38
38
  "mcp/",
39
39
  "plugins/",
40
+ "templates/",
40
41
  "sprint/",
41
42
  "skills/",
42
43
  "docs/",
@@ -59,6 +60,7 @@
59
60
  "status": "node ./bin/ma.js status",
60
61
  "build:gate": "node ./bin/ma.js run '$build'",
61
62
  "release:meta": "node ./scripts/release-metadata.js",
63
+ "release:sync": "node ./scripts/release-sync.js",
62
64
  "release:verify": "node ./scripts/release-verify.js",
63
65
  "release:check": "npm run release:verify && npm run skills:manifest && npm run plugin:sync && npm run skills:validate && npm run plugin:verify && npm run skills:pack && npm run check && npm test && npm run pack:inspect",
64
66
  "skills:manifest": "node ./scripts/skills-manifest.js",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "meta-architect",
3
3
  "displayName": "Meta-Architect",
4
- "version": "0.1.1",
4
+ "version": "0.1.3",
5
5
  "description": "Programmatic architecture and verified engineering skills for Codex-native workflows.",
6
6
  "entry": "./README.md",
7
7
  "skillsDir": "./skills"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meta-architect",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Skills-first workflow layer for Codex with architecture, evidence, review, and gated build guidance.",
5
5
  "author": {
6
6
  "name": "JustineDevs",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meta-architect",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "collections": [
5
5
  "sindresorhus/awesome",
6
6
  "dzharii/awesome-typescript",
@@ -105,7 +105,7 @@ When consuming the plugin:
105
105
  The plugin version should track the release scope of the core repo.
106
106
 
107
107
  For this repository:
108
- - plugin scope is aligned to Meta-Architect `v0.1.1`
108
+ - plugin scope is aligned to Meta-Architect `v0.1.3`
109
109
  - any breaking contract change should be versioned intentionally
110
110
 
111
111
  The plugin is one distribution surface of the same product, not a separate product line.
@@ -1,4 +1,4 @@
1
1
  interface:
2
- display_name: "MA Architect"
3
- short_description: "Architecture and stack design for MA flows"
2
+ display_name: "$arch"
3
+ short_description: "Architecture-first product and system design"
4
4
  default_prompt: "Use $arch to produce architecture, stack rationale, subsystem boundaries, tradeoffs, and a phased delivery plan."
@@ -1,4 +1,4 @@
1
1
  interface:
2
- display_name: "MA Build"
3
- short_description: "Gated build planning and branch/worktree prep"
2
+ display_name: "$build"
3
+ short_description: "Build-readiness decision and next implementation step"
4
4
  default_prompt: "Use $build to decide whether implementation is ready, what remains blocked, and what the next build slice should be."
@@ -1,4 +1,4 @@
1
1
  interface:
2
- display_name: "MA Flow"
3
- short_description: "Business logic and state validation for MA"
2
+ display_name: "$flow"
3
+ short_description: "Logic, states, transitions, and blockers"
4
4
  default_prompt: "Use $flow to map business logic, state transitions, invariants, and blockers in the current design."
@@ -1,4 +1,4 @@
1
1
  interface:
2
- display_name: "Meta-Architect"
3
- short_description: "Core orchestration and gated build workflows"
2
+ display_name: "$meta-architect"
3
+ short_description: "Full Meta-Architect skill workflow"
4
4
  default_prompt: "Use $meta-architect to run the full Meta-Architect workflow inside Codex, then route through $arch, $sage, $flow, $vet, $vibe, and $build as needed."
@@ -1,4 +1,4 @@
1
1
  interface:
2
- display_name: "MA Sage"
3
- short_description: "GitMCP-backed OSS evidence selection"
2
+ display_name: "$sage"
3
+ short_description: "Evidence-backed stack and OSS validation"
4
4
  default_prompt: "Use $sage to validate stack choices with official docs, upstream repos, and approved GitMCP-backed sources."
@@ -1,4 +1,4 @@
1
1
  interface:
2
- display_name: "MA Vet"
3
- short_description: "Security, CVE, and risk review for MA"
2
+ display_name: "$vet"
3
+ short_description: "Security and trust-boundary review"
4
4
  default_prompt: "Use $vet to review trust boundaries, security risks, abuse cases, and safer alternatives in the current design."
@@ -1,4 +1,4 @@
1
1
  interface:
2
- display_name: "MA Vibe"
3
- short_description: "DX and UX review before Meta-Architect build"
2
+ display_name: "$vibe"
3
+ short_description: "DX and UX review before implementation"
4
4
  default_prompt: "Use $vibe to review developer and user experience risks before the build lane proceeds."
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  import process from "node:process";
4
- import { installSkills } from "../src/skill-installer.js";
4
+ import { installSkills, installSupportBundle } from "../src/skill-installer.js";
5
5
 
6
6
  async function main() {
7
7
  if (process.env.MA_SKIP_AUTO_INSTALL === "1") {
@@ -9,8 +9,12 @@ async function main() {
9
9
  return;
10
10
  }
11
11
 
12
- const { targetRoot, installed } = await installSkills();
13
- console.log(`meta-architect: installed ${installed.length} Codex skills into ${targetRoot}`);
12
+ const [
13
+ { targetRoot: skillRoot, installed: skills },
14
+ { targetRoot: bundleRoot, installed: assets },
15
+ ] = await Promise.all([installSkills(), installSupportBundle()]);
16
+ console.log(`meta-architect: installed ${skills.length} Codex skills into ${skillRoot}`);
17
+ console.log(`meta-architect: installed ${assets.length} support assets into ${bundleRoot}`);
14
18
  }
15
19
 
16
20
  main().catch((error) => {