/system-ontology:plan [--search <dir>]from system-ontology
Build 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.
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
--search <dir> (repeatable) names the directories that hold local clones of the other repos. The default is the parent directory of this repo. A clone is recognised by its .ontology/config.json.
Run the plan:
node "${CLAUDE_PLUGIN_ROOT}/bin/ontology.mjs" plan --json
For every --search directory in the arguments, add --search followed by that directory in double quotes before --json, for example plan --search "../clones" --json. Escape any double quote, $ and backtick inside the quotes. With no --search argument, run it as shown.
The result has steps (n, repo, role, action, files, team, dependsOn), compatiblePath and snapshot (commit, ageDays, stale, fetchErrors). If the snapshot is stale or fetchErrors is above 0, say so, because consumers may be missing from the plan. If steps is empty, say there is nothing to plan. A contract edit the guard blocked is planned from its proposed text, even though the file on disk is unchanged.
Show the steps in order: number, repo, role (canonical, publisher, consumer), owning team, action, likely files, and what each depends on. For a breaking change the compatible path is add the new form, migrate consumers, then remove the old form.
Never run plan-exec without asking the user first, one repo at a time. Never push, never open a pull request or merge request yourself.
For each step that touches a repo other than this one, ask the user which mode they want, or to skip it:
branch: creates an ontology/* branch in the local clone and does nothing else. The clone must have a clean working tree. Steps in the current repo need a clean tree too, so commit or stash first.issue: files an issue in that repo with the step as its body, through gh (GitHub) or glab (GitLab). Unavailable on plain git hosts.After approval, run:
node "${CLAUDE_PLUGIN_ROOT}/bin/ontology.mjs" plan-exec <n> --mode <branch|issue> --json
Add the same quoted --search flags, and replace <n> and the mode with the approved step and mode. Report the detail field. On failure, show it and ask the user how to proceed; do not retry with another mode on your own.
Do the edits for a branch step yourself only after the user asks for them. Pushing and opening pull requests stays with the user.
What SKILL.md sets; muted values are Claude Code's defaults
Use after impact reports a breaking or unknown change with consumers, when a change belongs in another repo, or when asked to plan or coordinate a change across repos.
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./initSet 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./whereFind which repo and path should own a change, from the map's canonical-home rules, duplication guards and glossary (aliases resolve, so "account" finds the "customer" concept).