/system-ontology:init [map-url]from system-ontology
Set up system-ontology in the current repo. Drafts .ontology/manifest.json and .ontology/config.json from the repo's contracts, dependencies and CODEOWNERS, walks through what needs confirming, and can scaffold the central map repo.
Ships in system-ontology. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Arguments: $ARGUMENTS
If .ontology/config.json does not exist, you need the map repo URL. Use the argument if one was given, otherwise ask the user for the git URL of their map repo (or a local path). If they have no map repo yet, go to step 5 first.
node "${CLAUDE_PLUGIN_ROOT}/bin/ontology.mjs" init --map <map-url> --json
Leave out --map when the config already exists. Optional flags: --repo-id <id>, --kind service|shared-lib|contracts|config|infra, --stale-days <n>. Nothing is written without --write.
The result has manifest, config, prompts and warnings. Show the user a short summary of the draft: the repo id and kind, the contracts it publishes, the contracts it consumes, the shared libraries it depends on, and the owners.
Go through every entry in prompts with the user, one at a time. Typical items: consumption the extractors cannot see (an HTTP client calling another service by URL must be declared by hand in the manifest), the repo kind, and owners. Show warnings as they are. Apply the user's answers by editing .ontology/manifest.json after writing it; hand-declared entries are marked "source": "manual" and later extraction never overwrites them. Duplication-guard entries the prompts suggest belong in a rules/*.json file in the map repo, which the user changes by pull request.
When the user agrees with the draft, run the same command with --write added. It creates .ontology/manifest.json and .ontology/config.json and does not commit. If the manifest already exists, --write refuses unless --force is added; --force keeps the existing manifest as the base so manual entries survive, but replaces config.json.
Then run node "${CLAUDE_PLUGIN_ROOT}/bin/ontology.mjs" check --json to confirm there is no drift. Tell the user to review and commit the two files themselves.
Offer to scaffold one in a directory the user names:
node "${CLAUDE_PLUGIN_ROOT}/bin/ontology.mjs" init-map <dir>
It writes repos.json, teams.json, glossary.json, rules/default.json, the aggregation workflow for GitHub and GitLab, and a README. The user must edit the example content, push the directory as the map repo, add the read token secret (see that README), and list the repos in repos.json. Do not push for them.
Show the user the CI templates to copy into this repo, and say what each is for:
${CLAUDE_PLUGIN_ROOT}/templates/ci/github-ontology.yml to .github/workflows/ontology.yml${CLAUDE_PLUGIN_ROOT}/templates/ci/gitlab-ontology.yml, pasted into .gitlab-ci.yml (it needs an ontology stage)Each template's header lists the secrets and variables it needs. The templates clone this plugin at the tag system-ontology-v0.1.0, so that tag must exist on the plugin's repository first. The pull request that adds the gate is itself not gated, because the base has no config yet.
What SKILL.md sets; muted values are Claude Code's defaults
Use when a repo has no .ontology/config.json, when asked to onboard a repo to the system map, add it to system-ontology, or create the map repo, or when the guard or CLI reports that no config or map exists.
Other plugins' skills for the same job
npx claudepluginhub carloluisito/system-ontology-plugin --plugin system-ontology5 skills in this plugin
/askAnswer a question about the system model, such as who consumes a contract or event, what a service depends on, who owns a repo or path, or what a glossary term means./impactReport which consumers a change to a published contract (OpenAPI, proto, event schema, shared library API) would break, with the diff classified as breaking, additive or neutral./planBuild an ordered cross-repo plan for the working-tree change (shared or canonical repo first, then publisher, then consumers), with the compatible path for breaking changes, and start steps in other repos only with per-repo approval.