codebase-explorer
Skill4 starsChanged 22 days agoMITView on GitHub
Turn a codebase, system or subject into an interactive beginner field guide with SVG diagrams (modern, clean or hand-drawn style, 102 diagram types, real logos), step-by-step walkthroughs, interview questions, scrollable tables and a published artifact. Use when the user asks to explore, explain or onboard them onto a repo or technology "with diagrams", says "explorer", "field guide", "teach me this codebase", or wants an interview-style tour of how something works.
- Reads credentials
9 other projects use a version of this.
Adopted by
Most recently taken up by
- marcjaner/skillstheir own version, first seen Oct 20, 2026
- 0King0P/Claude-Skillstheir own version, first seen Oct 13, 2026
- NachikethReddyY/skillstheir own version, first seen Oct 13, 2026
- amirbiron/claude-skillstheir own version, first seen Oct 11, 2026
- cellrishi-code/claude-skills-atlastheir own version, first seen Oct 4, 2026
- mcabreradev/hermes-sdd-agencytheir own version, first seen Sep 17, 2026
Used with
Projects with it also use code-review.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
GoogleSkillcode-review
Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.
Also in 3 projects that use this
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- TashanGKD/tashan-cursor-skills★ 21same name
- cellrishi-code/claude-skills-atlas★ 6same name
- madeinoz67/madeinoz-knowledge-system★ 3same name
- marcjaner/skills★ 1same name
- mcabreradev/hermes-sdd-agency★ 1same name
- NachikethReddyY/skills★ 1same name
- srikanth-manivannan/claude-agent-factory★ 1same name
- 0King0P/Claude-Skills★ 0same name
- amirbiron/claude-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository2 other files it gives its agents.
- artifact-studio-explainerSkill
- artifact-studioSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 8 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 32
Assemble: Write diagrams/<key>/meta.json (file, role, title, caption, badge legend) for each topic and run
- Very specific: line 38
Add extra sections to the config for tables (a backlog, a glossary, a comparison) or a closing roadmap.
- Distinctive: line 45
Honesty first: Never invent a file, function, command or number.
- Distinctive: line 52
Do not post, push or claim anything outward-facing as part of the exploration.
“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Codebase Explorer
Builds one self-contained page that teaches a codebase the way an expert would interview a newcomer: for each topic a plain explanation, three hand-drawn SVG diagrams, a walk through the real files, a table of what to open, try-it commands and 8 to 10 interview questions with simple answers. It was first built for PostgreSQL (see examples/postgres in the explorer repo: 20 topics, 63 diagrams, 190 questions).
When to use
- "Explain this repo/system to me from scratch, with diagrams."
- "Onboard me so I can contribute." "Quiz me on how X works."
- Any time the answer is better as pictures plus a guided tour than as chat text.
Skip it for a one-fact question or a small bug fix.
What you need
node(the builder has no dependencies) and Google Chrome (to look at diagrams;scripts/render.sh).- The Artifact tool to publish. Load the
artifact-designskill first, as that tool requires. - Optional:
/graphify <repo>to map a large repo first and pick topics from its communities. - The Workflow tool for the multi-agent run, only when the user opted into orchestration (for example said "ultracode" or "use a workflow"). Without that, do the same steps with a few Agent calls, one topic at a time, and cap the guide at 5 to 8 topics.
The pipeline
- Scope. Decide the subject root, the audience (default: complete beginner who wants to contribute), 8 to 20 topics and how to group them (for example Run it, Engine, Data and safety, Scale, Extend). Order topics in the order a newcomer should learn them. Use graphify communities or the directory tree to find them. Create a work dir, for example
.explorer/<name>/withtopics/,diagrams/, andexplorer.config.json. - Research (one agent per topic). Each agent reads the real source, and runs the real thing when it can (scratch dir, spare port, always cleaned up), then writes
topics/<key>.jsonfollowingreferences/topic-schema.md. Ask for easy-to-hard interview questions with a "common trap" where a misconception is likely. Every path, function and command must be real. - Verify (a second, skeptical agent per topic). It checks paths with
ls, names with grep, and each answer's technical accuracy. In the PostgreSQL run it found real mistakes in about a third of the topics (wrong file, backwards visibility rule, misnamed process types). Apply its corrections to the topic JSON before drawing. - Draw (three SVGs per topic). Roles:
architecture(who talks to whom),lifecycle(numbered scenario in time order) andstructure(the anatomy). For each, pick the diagram type whose form fits the content (references/diagram-types.md: a layer diagram for tiers, tech stack mapping for tools, a sequence diagram for calls over time, an ERD for tables...) and start from that type's example SVG in the explorer repo'sdiagram-types/. Followreferences/diagram-guide.mdandreferences/diagram-kit.md. When a diagram names real products, use logo slots; if no logo.dev key is set, ask the user to get a free publishable key at https://logo.dev and give it to you, and store it in~/.config/explorer/logo-dev.env(never in the repo). The drawing agent must render each file withscripts/render.sh, Read the PNG, and fix overlaps, clipped text and wrong arrows, up to 3 rounds, in light and dark. - Critique, then fix. A separate agent renders every diagram again and looks for overlap, tiny text, unlabeled arrows, wrong facts and out-of-bounds elements. Fix major issues, then re-render.
Assemble. Write
diagrams/<key>/meta.json(file, role, title, caption, badge legend) for each topic and runnode <skill>/scripts/build-page.js --config explorer.config.json --topics topics --diagrams diagrams --out page.htmlAdd extra sections to the config for tables (a backlog, a glossary, a comparison) or a closing roadmap. Look at the result once:
scripts/render.sh --page page.html out.pngand--section page.html <id> out.png, then Read the PNGs.- Publish. Pass the HTML to the Artifact tool (title is a short name,
descriptionis one sentence, icon is one generic word). Update the same file path to keep the URL. State what was run for real and what was not.
references/workflow-template.js is a ready Workflow script for steps 2 to 5. Pass the subject, repo path, scratch dir, skill dir and topic list as args.
Quality bar (these were all learned the hard way)
- Honesty first. Never invent a file, function, command or number. Say which facts came from a real run and which are from reading. If a tool (Docker, a server) was unavailable, say the related commands are untested.
- Diagrams are inline SVG styled only with the kit classes, so each one works in all three styles (modern, clean, hand-drawn) and both themes. Size box titles for the modern style's monospace uppercase (see the diagram kit). 12px minimum text, 1 to 5 words per label, every arrow labeled with a verb, numbered badges that match a legend, ids prefixed with the topic key. No hex colors, no style or script tags.
- Diagrams fit one screen. The CSS caps each at about 78vh and scrolls sideways on narrow screens instead of shrinking text.
- Tables fit one page. Use the builder's table helper: columns are sized by content (long sentences get the most room, numbers and tags stay narrow), tables over 8 rows scroll vertically inside the page with a sticky header, and wide tables scroll sideways inside their own box.
- Wide margins. Page gutters are
clamp(20px, 6vw, 104px). Keep that. - No em dash character anywhere in generated text. The builder replaces any that slip through.
- Both themes: define tokens on
:root, redefine underprefers-color-scheme: darkand[data-theme], set an explicit body background. - Do not post, push or claim anything outward-facing as part of the exploration.
Gotchas
- Headless Chrome clamps window width to about 500px. To check phone layout, put the page in a 390px-wide
<iframe>. - Jumping to
#sectionbefore a screenshot gives a blank image. Userender.sh --sectioninstead. calc()percentages on table columns are ignored. Use plain percentages (the builder does).- Duplicate ids across many inline SVGs break
url(#marker). Prefix every id with the topic key. - Research agents that run servers must use their own temp dir and port and stop and delete them. Check for leftovers at the end.
- The page for 20 topics is about 800 KB. That is fine (limit is 16 MB).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

