code-understand skill
✓ VerifiedMaps load-bearing files, symbols, callers, and dependencies to provide architecture orientation and impact analysis for unfamiliar codebases.
- GitHub stars
- 3,716
- Files
- 1
- Last commit
- Nov 11, 2026
- License
- MIT
- Allowed tools
- —
What does the code-understand skill do?
code-understand maps load-bearing files, symbols, callers, and dependencies to provide architecture orientation and impact analysis for unfamiliar codebases.
Summary generated from the skill's SKILL.md.
About the code-understand skill
Navigating unfamiliar codebases by identifying load-bearing files and symbol dependencies is what this skill enables. Developers use it to generate a focus map that ranks the most important symbols, providing file and line citations to help orient themselves before making changes. It is designed for architecture orientation, impact analysis, and determining the blast radius of a specific code change.
An agent should load this tool when a user asks how a specific function works, who calls a certain module, or what might break during a refactor. The tool relies on various backends, preferring CodeGraph for structural call-graph edges, but it can use a dependency-free builtin extractor or an existing Graphify graph. Users can seed the analysis using specific files via the --changed flag or by targeting changes since a specific git SHA.
This tool produces a ranked list of symbols rather than source code bodies, acting as a guide for where to read next. It is intended as a temporary accelerant for immediate work and should not be used to generate permanent documentation or wiki entries.
What an agent can do with it
- 1Analyze refactoring impactDetermine the blast radius of a change by analyzing the dependencies of specific files.
- 2Identify function callersFind out which other parts of the codebase utilize a specific function or module.
- 3Orient in new modulesMap out the architecture of an unfamiliar module before attempting to edit its structure.
Written from the skill's SKILL.md. Every use case is checked against a quote from it.
How to install the code-understand skill
Each command copies the skill folder into the client's skills directory. Restart the client or start a new session to load it.Install the code-understand skill in Plugin
/plugin marketplace add Ar9av/obsidian-wiki /plugin install obsidian-wiki@obsidian-wiki
Install the code-understand skill in Claude Code
~/.claude/skills/code-understand/SKILL.md
$ npx degit Ar9av/obsidian-wiki/skills/code-understand ~/.claude/skills/code-understandInstall the code-understand skill in Claude Code (project)
.claude/skills/code-understand/SKILL.md
$ npx degit Ar9av/obsidian-wiki/skills/code-understand .claude/skills/code-understandInstall the code-understand skill in Codex
~/.agents/skills/code-understand/SKILL.md
$ npx degit Ar9av/obsidian-wiki/skills/code-understand ~/.agents/skills/code-understandInstall the code-understand skill in Gemini CLI
~/.gemini/skills/code-understand/SKILL.md
$ npx degit Ar9av/obsidian-wiki/skills/code-understand ~/.gemini/skills/code-understandInstall the code-understand skill in Claude.ai
npx degit Ar9av/obsidian-wiki/skills/code-understand code-understand && zip -r code-understand.zip code-understand # claude.ai → Customize → Skills → + → Create skill → Upload a skill → code-understand.zip
Automated checks
Ran Nov 14, 2026Full report →Passed our automated checks. That is not a security audit: read the scripts before you let an agent run them. How checks work
- Source repository linked and reachablear9av/obsidian-wiki/skills/code-understand is public and reachablegithub.com/ar9av/obsidian-wiki/tree/HEAD/skills/code-underst ↗Pass
- Open source license (OSI)MITspdx.org/licenses/MIT.html ↗Pass
- Commit or release in the last yearLast commit 2026-11-11github.com/ar9av/obsidian-wiki/commits ↗Pass
- No download-and-run or credential theft in scriptsNo scripts in the skill folderPass
- No hidden instructions in SKILL.mdNo override phrases, safeguard switches, credential requests or hidden charactersgithub.com/ar9av/obsidian-wiki/blob/HEAD/skills/code-underst ↗Pass
- Pre-approved tools are scopedNo pre-approved tools; the agent asks before using onegithub.com/ar9av/obsidian-wiki/blob/HEAD/skills/code-underst ↗Pass
SKILL.md
View on GitHubCode Understand — On-Demand Architecture Focus Map
You are about to work in a codebase you don't fully know yet. Instead of grepping around or
reading files at random, ask the local extractor for a focus map: the ranked symbols the
architecture hangs on, each with a file:line citation and evidence type. Read only what it
points at — this is a map, not a substitute for reading the actual code it cites.
When to reach for this
- Before editing an unfamiliar module — see what calls it and what it calls before changing its shape.
- The user asks "how does X work", "what's the impact of changing Y", "who else uses this function" for a codebase, not the wiki.
- You're about to do a large refactor and want a ranked list of load-bearing files instead of reading the whole tree.
- You already have a diff or a set of changed files and want to know their blast radius before finishing the change.
Not for: summarizing what a project does for the wiki (that's wiki-update Step 3b, which
calls this same command as part of a bigger sync flow) — use this skill directly only when you
need the focus map for your own immediate work, not to persist knowledge.
Running it
obsidian-wiki code-understand --project <dir> [--backend auto|builtin|codegraph|graphify] \
[--changed <file>...] [--since <sha>] [--max-symbols N] [--pretty]
--project— defaults to the current directory.- No
--changed/--since— seeds from every tracked file (full-project scan). --changed <file>(repeatable) — seed from specific files you already know are relevant (e.g. files in the diff you're about to make).--since <sha>— seed from everything changed since a git ref (e.g.--since HEAD~5or a base branch).--backend—auto(default) uses CodeGraph when installed, then an existing Graphify graph (graphify-out/graph.json, read only — never rebuilt), and falls back to the builtin extractor otherwise; forcebuiltinfor the dependency-free path,codegraphto require the enhanced backend (fails loudly if it's not installed rather than silently degrading), orgraphifyto require the Graphify graph.--max-symbols— cap the focus map size (default 50); keep this small for a quick orientation pass, raise it for a thorough one.
GUARD: if the command is unavailable or errors, skip it and fall back to your normal exploration (grep/read) — this is an accelerant, not a dependency. Don't block work on it.
Reading the output
- Evidence type matters. When
backend: codegraph, focus-map entries are structural facts (real call-graph edges) — cite them directly. Whenbackend: builtin,defines/imports/changed-fileentries are facts, butrg-referenceentries are text-match evidence only — open the file and confirm before treating it as a real relationship. - Open what it cites, nothing else first. The focus map tells you where to read; it
never contains source bodies. Go read those
file:linelocations before forming an opinion on the architecture. - Cite it in your own output. If you explain the architecture back to the user or write
it into a PR description/commit message, keep the
(file:lines)citations from the focus map or from the source you opened — don't assert structure without a pointer to it. - It's a cache, not a deliverable. Never write the raw JSON or
.codegraph/into the wiki vault, a PR description, or committed docs — it's a disposable sidecar in the project repo (git-ignored). Re-run it fresh next time rather than treating old output as durable.
If CodeGraph isn't installed
auto/builtin still work with zero setup (uses the regex AST extractor + rg). If you want
the enhanced cross-file call-graph evidence and the user is fine with installing something:
npm install -g @colbymchenry/codegraph
or point CODE_UNDERSTANDING_CODEGRAPH_BIN at an existing binary. Never install without the
user's go-ahead — ask first, then re-run the command.
Check obsidian-wiki doctor --project <dir> for the code-understanding.* capability lines
(builtin, rg, codegraph, codegraph-index, codegraph-fresh, codegraph-gitignore) to
see what's available before deciding which backend to request explicitly.
Files in this skill
1code-understand skill questions
How do I install the code-understand skill in Claude Code?
Run npx degit Ar9av/obsidian-wiki/skills/code-understand ~/.claude/skills/code-understand. Claude Code loads skills from ~/.claude/skills (all projects) or .claude/skills (one project) and uses a skill when its description matches the task.
Which clients can use the code-understand skill?
Any client that reads the Agent Skills format: Claude Code, Codex, Gemini CLI and claude.ai (upload as a ZIP). Scripts in the skill run only where the client allows code execution.
When should I use the code-understand skill?
Use it before editing unfamiliar modules, when performing large refactors, or when you need to understand the impact of a change or find callers of a specific function.