# Understand codebase

> Understand codebase is an open-source agent skill for developer tools. Lets an agent map an unfamiliar repo and check change impact using a code knowledge graph. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/synaptixs/spine/tree/develop/plugins/spine/skills/understand-codebase
- **Repository:** https://github.com/synaptixs/spine
- **GitHub stars:** 13
- **License:** MIT
- **Skill name:** understand-codebase
- **Collection:** https://github.com/synaptixs/spine
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

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

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/synaptixs/spine/tree/HEAD/plugins/spine/skills/understand-codebase)
- [License: MIT](https://github.com/synaptixs/spine/tree/HEAD/plugins/spine/skills/understand-codebase)

## Features

- **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?

## Install

### Claude Code

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

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

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

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

```sh
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.

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [Codebase memory MCP](https://ai-powered.com/skills/codebase-memory-mcp): Codebase memory MCP is an open-source agent skill for knowledge and memory.
- [Explore code](https://ai-powered.com/skills/explore-code): Explore code is an open-source agent skill for developer tools.
- [Codebase index](https://ai-powered.com/skills/codebase-index): Codebase index is an open-source agent skill for developer tools.
- [Repo recon](https://ai-powered.com/skills/repo-recon): Repo recon is an open-source agent skill for developer tools.
- [Acquire codebase knowledge](https://ai-powered.com/skills/acquire-codebase-knowledge): Acquire codebase knowledge is an open-source agent skill for developer tools.
- [Codebase comprehension](https://ai-powered.com/skills/codebase-comprehension): Codebase comprehension is an open-source agent skill for developer tools.
- [How](https://ai-powered.com/skills/how): How is an open-source agent skill for developer tools.
- [Map](https://ai-powered.com/skills/map-duthaho): Map is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/understand-codebase
