/spine:understand-codebasefrom Spine
Uses Spine's deterministic knowledge-graph MCP tools to understand unfamiliar codebases, plan changes safely, and answer structural questions with file:line grounding. Reach for this before editing or debugging.
Ships in Spine. 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.
Spine reads a repository's Product Knowledge Graph — a deterministic, no-LLM index of its
modules, types, functions, call sites, and blast radius, with every fact grounded to file:line.
It covers Python, Java, Kotlin, TypeScript, JavaScript, C#, C, C++, Go, Rust, PHP, Perl and SQL.
These MCP tools turn that graph into decisions, not just lookups: what a change breaks, what's
untested, where work lands. They're read-only, need no credentials, and take a local
repo_path (default: the current repository).
Use them before grepping or guessing about an unfamiliar repo — they're faster and more accurate, and they cite their sources.
| You want to… | Call |
|---|---|
| get oriented in a repo you don't know | map_repo — languages, components, call-hotspots, test-coverage gaps, prioritized recommendations |
| know what changing a symbol will affect | blast_radius(symbol=…) — direct callers, callers through an interface the symbol implements (interface_callers, each with the via member — they may reach it, not must) + touches (every node one edge away, either direction, any kind — a neighbourhood, not a transitive ripple set), each file:line. A class's callers are the code that creates it; a Java/C# constructor lists them as instantiated_via_type Each match also lists the repo's docs that describe it (docs, via symbol/class/module) — a class with zero callers can still be what twenty pages tell users to call. Callers are the ones the graph can type — read caller_count as a floor; Python calls it could not trace come back apart as unresolved_calls (a hint: check each receiver). |
| understand one symbol | explain_symbol(symbol=…) — kind, location, who calls it (and who calls it through an interface it implements, called_through_interface with the via member; for a Java/C# constructor, who creates its type, instantiated_via_type), what it calls, what it contains Carries the same docs list. Its callers are the ones the graph can type. |
| find where a feature/ticket lands | investigate(title=…, problem=…) — the real symbols to start from |
| pin a bug from a stack trace | localize(trace=…) — resolve each frame to the repo symbol; the likely fault site |
| see what a change could break silently | regression_gaps(symbol=… or trace=…) — blast-radius symbols with no covering test |
| root-cause a bug (hypotheses + fix approach) | root_cause(bug=…) — fault site, ranked hypotheses with evidence, regression surface, fix approach; deterministic (add use_llm=true for richer hypotheses) |
| find which docs describe code (or how documented it is) | docs_for(symbol=…) — the doc pages that mention a symbol; call with no symbol for a doc-coverage summary + top drift. Ingests .md/.rst/.txt/PDF |
| ask any of the above across several repositories | blast_radius, investigate, explain_symbol, regression_gaps, localize, docs_for all take repos=… — pass a .spine/repos.yaml instead of repo_path. regression_gaps then reports uncovered_elsewhere (a change reaching a different service nothing tests); localize says which repo each frame landed in and lists ambiguous_frames; docs_for answers each repo on its own |
| check whether a requirements change is clear before building it | requirements_check(change_path=…, repo_path=…) — the strict gate (problem, users, outcome, every open question answered or deferred to a named owner) and, with a repo, which criteria already name code that exists. Deterministic, no model. Record an answer with requirements_answer(change_path, question, answer | defer_to) (plan scope; recorded as relayed). A missing problem, users, outcome or non-goal comes with fix.mcp.question — ask the user that question and pass it here, even when the change does not list it |
| frame a product idea, then one change per capability | requirements_frame(openspec_root=…, idea=…) drafts a framing change asking the four why-questions (plan level); record the user's answers with requirements_answer; once requirements_check passes, requirements_frame(openspec_root, framing=<id>, capabilities=[…]) drafts changes (at most 8 per framing, counting those already drafted; ones the list already drafted are skipped) that inherit its why and ask their own outcome. requirements_generate_capabilities proposes the list with one capped model call (plan level, spine:run scope) — only when the user asks, and never approve a refused estimate yourself |
| compare candidate solutions for a change and pick one | requirements_options(change_path=…, repo_path=…) — each option in design.md ## Options measured against the graph and a printed recommendation (favours the smallest change). Deterministic, no model. The user chooses; record it with requirements_answer(change_path, "Which option do we take?", answer="<n>"). requirements_generate_options proposes options with one capped model call (plan level, spine:run scope) — only when the user asks, and never approve a refused estimate yourself |
| see or sanity-check the cross-repo topology | pkg_joins(config=…, mode="propose"|"check") — read-only; it never writes a config |
Read a repo's committed knowledge base with read_memory_bank when one exists (built by
orchestrator understand).
repo_path defaults to the current repository, and also accepts a git URL (e.g.
https://github.com/org/repo) — Spine shallow-clones it, extracts, and cleans up.
When a change's real blast radius leaves the repo, a single-repo answer is worse than no answer.
An HTTP handler reports 0 caller(s) — which is true, nothing in its own source calls it —
and reads as safe to change.
If the project declares its services in a .spine/repos.yaml, pass it as repos= to any of
blast_radius, investigate, explain_symbol, regression_gaps, localize or docs_for — e.g. to
blast_radius or investigate instead of repo_path. Every match then also reports the
dependents it has in other repositories:
- **billing** · `create_order` (Function, 0 caller(s), **1 dependent(s) in other repos**) — billing:app/routes.py:7
joins: entry narrows the search; it does not
invent the edge. pkg_joins(mode="propose") derives candidates from the evidence and prints
them for review; pkg_joins(mode="check") reports the calls no declared join could place.
Run check before trusting a quiet result: a missing join looks exactly like two services
that aren't coupled, which reads as health.standing block. If reproducible is false, one of
the declared repos has uncommitted work — say so rather than quoting a number nothing can
reproduce.map_repo is single-repo only; there's no merged profile behind it. Call it per repository.multi_repo_available, stop and re-ask. It
means the repo you pointed at declares siblings in its own .spine/repos.yaml, so the answer
you have covers one of them. Nothing errored — pointing a tool at a directory always works —
which is exactly why the note is there. Re-run with the repos= path it gives you before
telling anyone a symbol is safe to change.map_repo before answering structural questions
or planning a change — one call beats many greps.blast_radius(symbol=…) shows who depends on what
you're about to touch (callers the graph can type — read caller_count as a floor, and check
unresolved_calls for same-named calls it could not trace);
regression_gaps shows what has no test, so you know what could break silently.localize(trace=…) finds the fault site; then
regression_gaps(trace=…) shows the coverage around it.file:line. Every tool returns provenance and a markdown field you can show the user
directly — ground your answer in it rather than paraphrasing.file:line, gaps)
and a markdown rendering.sdlc_plan writes a twelve-section build document (still no model, no credentials: it's
rendered from the graph, git and the tree) and sdlc_approve records the decision on it. To
actually change the code — spec → grounded codegen → tests → branch/PR — use Spine's gated
sdlc_feature, which requires an explicit confirm for any external write. Work down the
tiers: comprehend, then plan and get the plan approved, then build.pkg, is the
read-only graph tools above; sdlc_plan, sdlc_approve, requirements_answer,
requirements_generate_options, requirements_frame and requirements_generate_capabilities need
ORCHESTRATOR_MCP_LEVEL=plan, and sdlc_feature and the other run tools need build. If a
tool named here is missing, call doctor: its level says which level is served and how to
raise it. Don't work around a missing tool; tell the user which level it needs.The shared agent guide (inventory generated from tool registration metadata) documents the complete tool reference.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub synaptixs/spine --plugin spineOther plugins' skills for the same job