Skip to content
SkillModel-led1,062 tokens in use

code-understand

Builds a ranked focus map of the symbols, callers and dependencies an unfamiliar codebase hangs on, each with a file and line citation, before you change it.

3,792 stars on the repository MIT LicenseAr9av/obsidian-wiki · skills/code-understand
pip install obsidian-wiki
View source

Install command as written in the repository's README

Skill label

measured from its files

What installing code-understand costs

55tokens idle
1,062tokens in use

Idle is what sits in context while the skill is installed. In use is its instructions, loaded when it runs. Counts are approximate, made offline with cl100k_base.

Model dependence Model-led

Script-ledMixedModel-led

Mostly instructions, so how well it works depends on the model that follows them.

This describes the skill's structure, how much of it is scripts. It does not say how well it works.

Touches

shelldetectednetworkdetectedwrites filesdetected

Declared tags come from the skill's frontmatter; detected ones from its scripts, its code blocks and the commands it names in inline code. This is detected, not audited.

How it scores

Quality

How well the skill is written, counted from its own files: its frontmatter, its steps, examples, stated output and constraints, its size and whether every file it ships is one it names.How we score it →
Good
  • Frontmatter8/15
  • Structure19/25
  • Examples9/15
  • Output10/15
  • Size15/15
  • Resources10/15

Security

Starts at 100 and loses points for each thing in the skill's files that a reader should look at first.How we score it →
Good
  • Runs shell commands−5

    does this on the machine, and the frontmatter does not say so

    SKILL.md, line 32
  • Writes files−8

    does this on the machine, and the frontmatter does not say so

    SKILL.md, line 32
  • Reaches the network−10

    does this on the machine, and the frontmatter does not say so

    SKILL.md, line 75

Repository health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
Excellent
  • Development activity100
  • Maintenance100
  • Community60
  • Maturity28
  • Momentum40

code-understand gives an agent an on-demand architecture map of a codebase it does not know yet. It runs the obsidian-wiki code-understand command, which ranks the load-bearing symbols and files and cites each one by file and line.

The agent then reads only what the map points at, which keeps orientation, impact analysis and caller lookups short. It uses CodeGraph when installed, an existing Graphify graph next, and a built-in extractor that needs nothing else.

What You Get

  • A ranked list of load-bearing symbols and files with file and line citations
  • Impact analysis for a diff, so you see the blast radius before finishing a change
  • Guidance on which entries are structural facts and which are text matches to confirm
  • A fallback path that works with no extra install

Common Use Cases

  • Orient yourself in a new repository before the first edit
  • Answer who else calls this function before changing its signature
  • Rank the files to read before a large refactor
  • Check what a set of changed files could break

What Makes It Unique

It treats the map as a pointer to the code, and labels how strong each piece of evidence is: real call-graph edges from CodeGraph versus text matches from the builtin backend. It also degrades quietly, falling back to ordinary grep and read when the command is missing.

Under The Hood

The skill is instructions for the agent plus one command, obsidian-wiki code-understand, which scans the project with a regex extractor and ripgrep, or with CodeGraph or a Graphify graph when present. The agent runs shell commands and reads project files. CodeGraph keeps a disposable, git-ignored index folder in the project, so the skill can write files there, and it tells the agent never to put that output in the wiki. It may suggest installing CodeGraph with npm, which downloads a package from the npm registry, and the skill tells the agent to ask you first. Otherwise it makes no web requests.

Join founders building with open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on SubstackJoin 750+ subscribers