Monorepo for building and releasing ai-ops-cli, a CLI that scaffolds project rules and agent skill packages from centralized metadata.
This repository is CLI-centered:
- Runtime package:
apps/cli(ai-ops-cli) - Rule/compiler core logic:
apps/cli/src/core - Data source (SSOT):
apps/cli/data
Supported tools:
- Claude Code
- Codex
- Gemini CLI
.
├── apps/
│ └── cli/
│ ├── src/
│ │ ├── bin/ # CLI entrypoint
│ │ ├── commands/ # init/skill/update/diff/uninstall
│ │ ├── core/ # schemas, loader, renderer, registry
│ │ └── lib/ # install/uninstall/settings helpers
│ ├── data/
│ │ ├── rules/ # Rule YAML files
│ │ ├── skills/ # Skill catalog + reference/task skill sources
│ │ └── presets.yaml
│ └── README.md # package-level usage docs
├── docs/
│ ├── plan.md # master blueprint (rebuild-level)
│ ├── implementation-playbook.md # implementation/operation playbook
│ └── references/ # collected tool references
└── scripts/
└── publish.sh # CLI release script
From repository root:
npm install
npm run build
npm testUseful commands:
# Build and print CLI help from dist
npm run compile
# Workspace watch mode
npm run dev
# Lint + test
npm run checkBefore npm publish, verify the sample skill-load-check package end-to-end.
npm run build
export AI_OPS_HOME="$(mktemp -d)"
node apps/cli/dist/bin/index.js skill install skill-load-check --tool codex
find "$AI_OPS_HOME/.agents/skills/skill-load-check" -maxdepth 2 -type f | sort
node "$AI_OPS_HOME/.agents/skills/skill-load-check/scripts/loaded.js"The script must print:
A Skill loaded
For a repo-local check, use:
node apps/cli/dist/bin/index.js skill install skill-load-check --project --tool codex
find ./.agents/skills/skill-load-check -maxdepth 2 -type f | sort
node ./.agents/skills/skill-load-check/scripts/loaded.jsAfter the file-level check passes, restart the target agent session if needed and verify that the tool can discover the installed skill metadata.
After build:
node apps/cli/dist/bin/index.js --helpPackage usage docs:
apps/cli/README.md
Architecture and implementation docs:
docs/plan.mddocs/implementation-playbook.md
Release scripts (root):
npm run publish:patch
npm run publish:minor
npm run publish:majorscripts/publish.sh flow:
- Run tests
- Build CLI
- Bump
apps/cliversion - Create commit and tag
- Publish
ai-ops-clito npm
MIT