understand-codebase

understand-codebase is a skill for Claude Code from synaptixs/spine. It costs 324 tokens per session (2,802 once invoked), scanned A, original, MIT.

A read-only way to understand an unfamiliar codebase through a map of its files, symbols, callers, and dependencies. A product knowledge graph is a structured index of those code relationships.

In plain words
What is it for?
Use it to map a repository, inspect a function or type, investigate where a feature belongs, and check a change's affected code.
Why use it?
It helps answer where a change belongs, what it may affect, and which parts lack tests before editing code.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the spine plugin — 1 skill shipped together

Good fit Use it to map a repository, inspect a function or type, investigate where a feature belongs, and check a change's affected code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/synaptixs/spine/understand-codebase
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add synaptixs/spine --skill understand-codebase
Clone the repo
git clone --depth 1 https://github.com/synaptixs/spine

Made for: Claude Code.

Or install spine, the plugin that ships this one along with the rest of its 1 skill.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for understand-codebase

README.md
[![agentmods](https://agentmods.dev/badge/skills/synaptixs/spine/understand-codebase/github.svg)](https://agentmods.dev/skills/synaptixs/spine/understand-codebase)
Your own site
<a href="https://agentmods.dev/skills/synaptixs/spine/understand-codebase"><img src="https://agentmods.dev/badge/skills/synaptixs/spine/understand-codebase/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for understand-codebase

Your own site · 80×15
<a href="https://agentmods.dev/skills/synaptixs/spine/understand-codebase"><img src="https://agentmods.dev/badge/skills/synaptixs/spine/understand-codebase.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 324 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,802 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00324 $0.02802
Opus 5.5 $0.00130 $0.01121
Sonnet 5.5 $0.00065 $0.00560
Haiku 4.5 $0.00032 $0.00280

Measured yesterday against content hash ce2175d3e469, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

understand-codebase scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/spine/skills/understand-codebase/SKILL.md · 113 lines

How it starts

The opening of the file, as written. The whole thing — 113 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Understand a codebase with Spine

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, Ruby 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.

Which tool for which question

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 the full file on GitHub · 113 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed ce2175d3e469
  2. 1mo ago Changed · +3 lines · +98 tokens per session 13932d71f476
  3. 1mo ago Changed bc4dc5a0e06b
  4. 1mo ago Changed · +5 lines 936302715b86
  5. 1mo ago Changed · +1 lines 5ad14ae87f69
  6. 1mo ago Changed 6026e56f9ec9
  7. 1mo ago Changed · +1 lines · +41 tokens per session b66f8c087483
  8. 1mo ago Changed 3b888baa63fe
  9. 2mo ago Changed 367f79380478
  10. 2mo ago First seen · 103 lines · 185 tokens per session scan A c14eeaf5425b

Subscribe to this mod's changes

understand-codebase is a skill published in the GitHub repository synaptixs/spine (13 stars, last pushed today), licensed MIT. It adds 324 tokens to every session and 2,802 once invoked, about $0.0013 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

understand-codebase compared with skills from other repositories

understand-codebase next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
understand-codebasesynaptixs/spineSkill13todayMITA324Claude Code
taiyi-integrationDong90/oh-my-taiyiforgeSkill85518d agoMITA27Claude Code, Codex
taiyi-testDong90/oh-my-taiyiforgeSkill85518d agoMITA24Claude Code, Codex
taiyi-ui-designDong90/oh-my-taiyiforgeSkill85518d agoMITA35Claude Code, Codex
taiyi-evolveDong90/oh-my-taiyiforgeSkill85518d agoMITA37Claude Code, Codex
taiyi-compressDong90/oh-my-taiyiforgeSkill85518d agoMITA51Claude Code, Codex
taiyi-diagram-c4Dong90/oh-my-taiyiforgeSkill85518d agoMITA48Claude Code, Codex