@r3dlex/ai-catapult
v0.1.3
Published
CLI + Claude Code and Codex plugins for init-ai-repo v3 AI-SDLC governance scaffolding
Maintainers
Readme
ai-catapult
Scaffold init-ai-repo v3 AI-SDLC governance into any repository — no LLM required, no config needed, one command.
What it does
ai-catapult is a deterministic CLI that writes a complete v3 .ai/ governance skeleton into your repo: directory structure, matrix, system prompts, rules, workflows, traceability wiring, and agent contracts. It also ships as a Claude Code plugin and a Codex plugin so the scaffold runs from inside your AI coding agent without leaving your editor.
It repackages the init-ai-repo/ai-catapult-init skill as a standalone tool — same output, zero dependency on a running LLM session.
Quick start
# Scaffold governance skeleton into the current directory
npx ai-catapult init
# Then install the plugin into detected harnesses (Claude Code and/or Codex)
npx ai-catapult installOr install globally:
npm install -g ai-catapult
ai-catapult init
ai-catapult installCommands
ai-catapult init [target]
Scaffold the mechanical v3 .ai/ governance skeleton into <target> (default: current directory).
Options:
--repo-id <id> Repository identifier (default: basename of target)
--date <YYYY-MM-DD> Scaffold date token (default: today)
--upstream-url <url> Upstream git URL for matrix.json
--upstream-ref <ref> Upstream git ref (default: main)
--force Overwrite existing files without error
-h, --help Show helpai-catapult install
Install the ai-catapult plugin into detected AI coding harnesses.
Harnesses detected automatically:
- Claude Code —
~/.claude/present - Codex —
${CODEX_HOME:-~/.codex}/present
Options:
--harness <claude|codex|all> Select harness(es) (default: auto-detect)
--dry-run Print what would happen without writing
--force Overwrite even if dir contains a foreign plugin
-h, --help Show helpAfter install, reload Claude Code and run /ai-catapult-init to complete the in-harness judgment-laden phases.
Claude Code plugin
ai-catapult ships as a Claude Code plugin bundling the ai-catapult-init skill.
Install path
Running npx ai-catapult install copies the plugin payload to:
~/.claude/plugins/ai-catapult/Then follow the printed two-step registration inside Claude Code:
/plugin marketplace add ~/.claude/plugins/ai-catapult
/plugin install ai-catapult@ai-catapult-localThe installer does not write installed_plugins.json — that is a Claude Code internal file. Use the /plugin commands above to register the plugin.
Build the plugin locally
bash setup.sh # vendor the pinned skill source
npm run build:plugin:claude # assemble into dist/claude-plugin/Codex plugin
ai-catapult ships as a Codex plugin bundling the ai-catapult-init skill.
Install path
Running npx ai-catapult install copies the plugin payload to:
${CODEX_HOME:-~/.codex}/plugins/cache/ai-catapult-local/ai-catapult/local/Then add the printed TOML block to your ${CODEX_HOME:-~/.codex}/config.toml:
[marketplaces.ai-catapult-local]
source_type = "local"
source = "<printed payload path>"
[plugins."ai-catapult@ai-catapult-local"]
enabled = trueThe installer does not auto-mutate config.toml — you add the block manually. See docs/codex-install.md for details.
Build the plugin locally
bash setup.sh # vendor the pinned skill source
npm run build:plugin:codex # assemble into dist/codex-plugin/Publishing
Both ai-catapult (unscoped) and @r3dlex/ai-catapult (scoped mirror) are published to npm.
Dry-run (safe, default)
bash scripts/publish-both.shReal publish (double-gated)
AI_CATAPULT_PUBLISH=1 bash scripts/publish-both.sh --yesSemver-tagged releases are automated via .github/workflows/release.yml using npm trusted publishing (OIDC) — no NPM_TOKEN secret; the trusted publisher must be configured once per package on npmjs.com (see release.yml header).
License
MIT © Andre Burgstahler (r3dlex)
