Skip to content
Skill

Understand codebase

Lets an agent map an unfamiliar repo and check change impact using a code knowledge graph

Understand codebase is an open-source agent skill for developer tools. It is available on Claude Code.

Scripts
None
Platforms
Claude Code
GitHub stars
13
Last commit
License
MIT
Listing updated

Similar skills

About Understand codebase

This skill points the agent at Spine's MCP tools, which read a repository into a deterministic knowledge graph of modules, types, functions, call sites and tests. Instead of grepping, the agent can orient itself with a repo map, check what a symbol's callers and documentation are, find which tests do not cover a change's blast radius, and localize a stack trace to likely fault sites. Every result is tied to file and line numbers.

The skill is a usage guide rather than a script bundle. It lists which tool fits which question, explains how to handle multi-repository setups declared in a .spine/repos.yaml file, and tells the agent to check for unresolved calls and a reported floor on caller counts before trusting a result. It also covers the requirements and planning tools, which record answers and drafts into change folders and may need a higher Spine adoption level or a token for model-backed steps.

The tools need a local repository path or a git URL and no credentials for the read-only graph tools. The language coverage stated in the guide includes Python, Java, Kotlin, TypeScript, JavaScript, C#, Go, Rust, PHP, Ruby and SQL, among others.

When your agent uses it

Understand an unfamiliar codebase or plan a change safely, using Spine's deterministic knowledge-graph MCP tools. Reach for this before answering structural questions about a repo you don't know, before editing code, or when debugging — it hands you engineering decisions (what a change breaks, what's untested, where a ticket or bug lands), each grounded to file:line. Triggers: "how does this repo work", "what breaks if I change X", "where do I fix this / where does this land", "what's untested here", "explain this symbol", "map this codebase", "which docs cover this", "what depends on this in our other services". Tools: map_repo, blast_radius, explain_symbol, investigate, localize, regression_gaps, root_cause, docs_for, pkg_joins (all read-only, no credentials, from the Spine plugin), and requirements_check (is a requirements change clear, and what does the code already say about it — deterministic, no model); requirements_options (compare a change's candidate solutions against the code and recommend one by a

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (11 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the spine plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add synaptixs/spine
/plugin install spine@spine

Or copy only this skill to ~/.claude/skills/understand-codebase:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/synaptixs/spine.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/understand-codebase &&
cp -R "$tmp/plugins/spine/skills/understand-codebase" ~/.claude/skills/understand-codebase &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/understand-codebase inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/understand-codebase to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/synaptixs/spine.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/understand-codebase &&
cp -R "$tmp/plugins/spine/skills/understand-codebase" ~/.agents/skills/understand-codebase &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/understand-codebase inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/understand-codebase to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/synaptixs/spine.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/understand-codebase &&
cp -R "$tmp/plugins/spine/skills/understand-codebase" ~/.cursor/skills/understand-codebase &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/understand-codebase inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/synaptixs/spine.git --path plugins/spine/skills/understand-codebase

Or copy the folder to ~/.gemini/skills/understand-codebase yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/understand-codebase:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/synaptixs/spine.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/understand-codebase &&
cp -R "$tmp/plugins/spine/skills/understand-codebase" ~/.copilot/skills/understand-codebase &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/understand-codebase inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/synaptixs/spine.git

Then copy spine/plugins/spine/skills/understand-codebase into your agent's skills folder as understand-codebase. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Repository orientation map
Summarizes languages, components, call hotspots, test gaps and recommendations for a repo the agent does not know.
Change blast radius
Lists direct callers, interface callers and neighbouring nodes of a symbol, each with file and line.
Test coverage gaps
Shows which symbols a change could affect that have no covering test.
Stack trace localization
Resolves trace frames to repository symbols and points to the likely fault site.
Documentation lookup
Finds the docs that mention a symbol and summarizes documentation coverage.
Cross-repository analysis
Runs several tools across repos declared in a config file and reports dependents in other services.

Good for

  • How does this repository work?
  • What breaks if I change this function?
  • Which tests are missing around this bug fix?
  • Where in the code should this ticket be fixed?
  • Which docs describe this class?

Understand codebase FAQ

Does Understand codebase need credentials?

The read-only graph tools need no credentials and take a local repo path or a git URL.

Does Understand codebase change my code?

The graph tools only read. Planning tools record answers in change folders, and building code is a separate gated tool.

Why might a caller count look too low?

Callers are only those the graph can type, so the count is a floor, and unresolved Python calls are listed separately to check by hand.

How do I install Understand codebase in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/understand-codebase to use it in all your projects, or to .claude/skills/understand-codebase in one project. Or install the spine plugin, which includes it: /plugin marketplace add synaptixs/spine, then /plugin install spine@spine.

Does Understand codebase run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Understand codebase?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

What are the best alternatives to Understand codebase?

The closest alternatives to Understand codebase are Codebase memory MCP, Explore code, Codebase index, Repo recon and Acquire codebase knowledge.

Where this comes from

  • Description: from the skill's own SKILL.md.