Turn a repository into a map you can walk through: its services, the calls between them, events, streams and database reads and writes, drawn as a factory floor of buildings and belts.
Open the demo · Read the field guide · Install
codebase-map is an agent skill. You ask your coding agent to map a repository, it reads the code, and you get an
interactive page you can open in any browser. It works with Claude Code, GitHub Copilot, Cursor, Codex, Antigravity
CLI and any other agent that reads Agent Skills.
Keep it current. A map records the commit it was made from, and asking again rescans only what changed. Comments and pins you leave in the viewer go back to the agent on the next run.
Claude Code
/plugin marketplace add si1verwind17/codebase-map
/plugin install codebase-map@codebase-map
GitHub Copilot, Cursor, Codex, Antigravity CLI and others, via GitHub CLI:
gh skill install si1verwind17/codebase-map
Anything else: copy skills/visualizing-codebases/ into your agent's skills
folder.
You need Python 3.10 or later and git. Node 18 or later is optional: with it, each run also checks the drawing.
In the repository you want mapped, run the skill by name:
/codebase-map:visualizing-codebases
That is its name when installed as the Claude Code plugin; copied into a skills folder it is
/visualizing-codebases. Or just ask your agent in plain words:
Map this repository.
Later, run it again, or ask:
Refresh the code map for the latest commit.
The map lands in docs/viz-code/, and nothing outside it is touched. Open docs/viz-code/index.html, and commit
code-map.json, stack.yaml, README.md, .gitignore and .gitattributes from that folder; the rest are working
files, already gitignored.
Large repositories work, with limits to expect:
- The map file grows with the code: tens of megabytes for a monolith of tens of thousands of classes, and past 100 MB at around a hundred thousand calls. GitHub takes no file over 100 MB, so a map that size needs Git LFS or stays out of the repository; the agent tells you the size.
- A map over 8 MB is not built into
index.html: the page asks you to pickcode-map.json. - Inside a service or library, a floor shows at most 24 boxes besides its doors and queues. Past that, boxes are grouped: classes that only hold data, names in a family or a range, and code a service shares with another service, by module. Open a group to see inside, or use Find.
- A busy floor takes a moment the first time you open it, and the first run takes longer: the agent maps the services one by one.
Found something it gets wrong? Open an issue. When a run hits something the skill could not handle, the agent says so at the end of its report.
Languages: Scala, Python, Java, Kotlin, TypeScript, JavaScript (Vue and Svelte script blocks too), Go, C#, Rust,
Ruby and PHP. A generic reader
maps classes, methods, calls and imports in any of them, whatever the framework. Common frameworks' routes and
libraries are known out of the box (Spring, NestJS, Express, FastAPI, Rails, Laravel, ASP.NET, Axum and more); for
any other, the agent works them out from your code and records them in a stack.yaml next to the map.
How the repo is laid out and how to build and test it: DEVELOPMENT.md.



