/interlock:dispatchfrom Interlock
Routes requests to the appropriate interlock skill after a batched pre-flight that loads git state, OpenSpec status, open tasks, and graph presence in a single pass. Use when unsure which skill applies or to orient at session start.
Ships in Interlock. 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.
Figure out where the user actually is in the flow, then route. One cheap pre-flight beats an exploratory warm-up.
Run these in one turn, joined with ; not && — you want every answer regardless of which ones fail:
git branch --show-current; git status --short; git log --oneline -5
openspec --version
openspec list --json 2>/dev/null
interlock changes 2>/dev/null
interlock suggest 2>/dev/null
ls -t .claude/handoff/explore-*.md 2>/dev/null | head -3
ls .claude/graph/GRAPH_REPORT.md .claude/graph/DOCS_DIGEST.md 2>/dev/null
That is Rules 2 and 3 of ${CLAUDE_PLUGIN_ROOT}/shared/TOOL-ECONOMY.md: read state, do not re-derive it. Do not traverse the tree to reconstruct what these already tell you.
The interlock suggest line prints one session suggestion per advised skill. When you answer with a route, print the routed skill's line from that answer beside the route, verbatim; print none for a route that has no line there; and print SESSION SUGGESTION UNAVAILABLE beside the route when that batch line printed nothing. It is advice: the routing never waits on it.
graph → docs-digest → bootstrap (once per repo)
/interlock:spec explore → artifacts → review ⟵ STOPS. Human reviews.
/interlock:ship waves → verify → commit (workflow, zero-touch; --strict adds review)
/interlock:settle summary → pull request
The gap between spec and ship is deliberate. Never bridge it automatically — if a spec is ready, say so and let the user start ship. The user can bridge it themselves with /interlock:spec --continue, but that is theirs to ask for; routing never offers it.
ship is a dynamic workflow. /interlock:ship is a skill trampoline that launches it via the Workflow tool (scriptPath → workflows/ship.js). Invoke the skill interlock:ship (or call Workflow with that scriptPath yourself). Do not treat a missing Workflow-namespaced command as "ship does not exist" — the skill is the entry point. If the trampoline halts because the Workflow tool is unavailable, that is the runtime gap (v2.1.154+, Dynamic workflows on in /config); do not implement the loop inline.
| Situation | Route to |
|---|---|
No openspec/ directory, or no specs on an existing codebase | /interlock:bootstrap |
No .claude/graph/, and the session will explore or review heavily | /interlock:graph (build) |
| Docs context too large, or the digest is stale | /interlock:docs-digest |
| "How does X work?", "what breaks if I change Y?", tracing, comparing options | /interlock:explore |
| "I want to build / fix X" — no change exists yet | /interlock:spec |
| A change exists with reviewed artifacts and unchecked tasks | /interlock:ship — only if the user asked to ship, and this conversation has not already run ship |
| Leftover unchecked boxes after a ship workflow just returned | Report them. Do not route to ship. |
| Implementation done, diff needs review | /interlock:review-code |
| Artifacts written but not yet reviewed | /interlock:review-artifacts |
| Suite is red, or a CI log was pasted | /interlock:fix-tests |
| "Explain this code" / "what changed in that commit?" | /interlock:explain-code |
| Need a QA checklist for a change | /interlock:manual-test-plan |
| Work is done and needs committing | /interlock:commit |
| PR needs creating or updating | /interlock:settle |
| "I want to skip the checkpoint" / "don't stop and make me read it" | /interlock:spec --continue — advanced. Opt-in, fail-closed, and it stops anyway on anything a machine cannot settle. It cannot catch a wrong idea; only the read can. |
Prerequisite checks before routing:
openspec --version printed no version — say so before routing. On command not found (or the shell's equivalent) the CLI is missing: name interlock openspec provision (run nothing yourself; spec and bootstrap run it), or the user's own npm install --location=global @fission-ai/[email protected]. A bare interlock that answers command not found means the session predates the plugin; until a new session, node "${CLAUDE_PLUGIN_ROOT}/cli/interlock" runs it, and those calls ask for approval. On any other error it is installed but does not run (usually a Node.js older than OpenSpec's floor; interlock doctor's node row names it): quote the error, not the install line. Either way an empty openspec list here is the CLI, not an empty project, and spec and bootstrap both stop at their first command until it runs. ship still reads artifacts from disk.ship — run interlock validate <change> first. Not ready means route to spec, not ship. If a ship workflow already returned in this conversation, leftover boxes are a report, not a retry.spec with no explore brief and a question that spans subsystems — run explore first..claude/graph/ is absent — offer to build it once.When two routes fit, prefer the earlier phase. Exploring when you should have specced costs one turn; shipping when you should have specced costs a bad change and a review cycle.
When the request genuinely does not fit any skill, say so and handle it directly. Not everything is a workflow, and forcing an ordinary question through a skill is worse than just answering it.
What SKILL.md sets; muted values are Claude Code's defaults
16 skills in this plugin
/bootstrapOnboard a brownfield project into OpenSpec — analyze the existing codebase with parallel explorer agents, write an initial architecture document, then generate one spec per discovered feature describing what is already built. Use when adopting spec-driven development on a repo that has code but no specs./commitCreate a single feature-level commit after a change is implemented. Reads the OpenSpec change artifacts to write a verb-phrase conventional-commit message with an outcome summary and optional issue reference. Commit only — never runs tests, typecheck, lint or build, and never pushes./docs-digestCompress a repo's docs and OpenSpec specs into one token-dense, agent-only primer at .claude/graph/DOCS_DIGEST.md — the prose twin of GRAPH_REPORT.md. Use when docs context is too large to load, after substantial docs or spec edits, or when asked to rebuild or refresh the docs digest. Not for producing human-readable documentation./evalsAuthor an Interlock eval case from an observed model-behaviour failure, and read a completed eval results run. Use when you have a reproduced failure — an archived proposal, a changelog entry, a run artifact, or a transcript — worth regression-testing against a real model, or when an eval run has finished and you need to know whether it is a regression, run-to-run variance, or no signal. Authoring needs cited evidence; the verdict comes from `interlock evals triage`, never from your own reading./explain-codeExplain code to a beginner in that stack — either a module walkthrough (what each function does, how calls link, where data flows, which patterns recur) or a commit teach-in (why each file changed, what changed, blast radius, what would break if it were left out). Use when asked to explain code, walk through a directory, or explain the last commit./exploreDeep codebase reconnaissance with parallel read-only investigators — fans out automatically when a question spans multiple subsystems, options, or cross-cutting concerns, then synthesizes one coherent picture. Use before designing a change, when tracing how something works end to end, or when you need to know the blast radius of touching a shared value.npx claudepluginhub renzrollon/interlock --plugin interlockOther plugins' skills for the same job