/interlock:explain-code [path | --commit | --commits N]from Interlock
Explains code to a beginner in the relevant stack via module walkthroughs or commit teach-ins, writing explanations to docs or OpenSpec change directories.
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.
Read when SKILL.md points to them.
Teach code to someone new to this stack. Not reviewing, not judging — teaching.
Calibrate to a reader who knows programming fundamentals but is new to this project's language and framework. Explain the idioms that stack takes for granted, one short aside each. Do not explain what a function is.
| Mode | When | Load |
|---|---|---|
| Module walkthrough (default) | A file or directory is named, or the user asks how an area works | ${CLAUDE_SKILL_DIR}/module-walkthrough.md |
| Commit teach-in | Last commit, a hash or range, "what changed", --commit / --commits N | ${CLAUDE_SKILL_DIR}/commit-teachin.md |
When ambiguous, prefer the module walkthrough unless the user mentioned a commit or "what changed".
After choosing a mode, read the matching sibling file and follow it for steps, structure, and output format. This file only routes.
Resolve the destination before writing. Both modes use the same rule:
| Situation | Write to |
|---|---|
Scoped to an OpenSpec change — a change name was passed, or one resolves via openspec status --json | openspec/changes/<change-name>/code-explanation.md |
| No change context (ad-hoc walkthrough) | docs/CODE_EXPLANATION.md |
Do not "simplify" this back to a single path. A change-scoped explanation belongs beside manual-test-plan.md in its own change directory. Writing every run to docs/CODE_EXPLANATION.md overwrites the previous change's explanation — and because docs/ is the corpus /interlock:docs-digest indexes, each rewrite permanently marks .claude/graph/DOCS_DIGEST.md stale through its source_hashes.
.claude/graph/DOCS_DIGEST.md first, then interlock-graph context / docs. Never preload all of docs/ — see ${CLAUDE_PLUGIN_ROOT}/shared/TOOL-ECONOMY.md Rule 0.5.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub renzrollon/interlock --plugin interlock16 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./dispatchRoute a request to the right interlock skill, after one batched pre-flight that loads git state, OpenSpec status, open tasks and graph presence in a single pass. Use when you are not sure which skill applies, or at the start of a session to orient before doing anything else./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./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.Other plugins' skills for the same job