Repo Cartographer β Development skill for Claude Code
πΊοΈ One prompt, any codebase β architecture map.
How to install Repo Cartographer
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open wenshuocui50-droid/repo-cartographer and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Repo Cartographer does
πΊοΈ One prompt, any codebase β architecture map. An agent skill that generates Mermaid diagrams, a traced core flow, and a 5-file reading order. Works on Claude Code, Codex, Cursor & VS Code Copilot. No config, no API keys.
Alternatives in Development
- Understand Anything β Graphs that teach graphs that impress 80.7k β
- Code Review Graph β Local knowledge graph for Claude Code 3.7k β
- Zeroshot β Runs coding agents as a graph: one agent implements, independent agents review, failures go to repair, and not 1.9k β
README
πΊοΈ repo-cartographer
One prompt. Any codebase. A map you can read in 10 minutes.
A **[Claude Code](https://docs.claude.com/en/docs/claude-code) skill** that turns an unfamiliar repository into `docs/architecture.md` β Mermaid architecture diagrams, module dependencies, a traced core flow, and an opinionated 5-file reading order.
**For everyone who has ever opened a new repo and thought: "where do I even start?"**
flowchart LR
U["π€ You: /map this repo"] --> S["repo-cartographer"]
S -->|Scout| A["manifests + README + tree"]
S -->|Classify| B["archetype: CLI / service / lib / ..."]
S -->|Trace| C["one real flow, verified file by file"]
S -->|Draw| D["π docs/architecture.md"]
D --> E["System Map (mermaid)"]
D --> F["Module Dependencies"]
D --> G["Core Flow (sequenceDiagram)"]
D --> H["5-file Reading Order"]
D --> I["Conventions table"]
What you get
Every run produces `docs/architecture.md` with exactly six sections:
| Section | What it contains |
|---|---|
| TL;DR | What the project is, tech stack, repo archetype |
| System Map | Mermaid diagram of top-level components |
| Module Dependencies | Who imports/calls whom, labeled edges |
| Core Flow | One sequenceDiagram traced through real code |
| Reading Order | Exactly 5 files to read first, and why |
| Conventions | Build/test commands, error handling, naming |
Quality rules are baked into the skill: β€15 nodes per diagram, every edge labeled with a real relationship, **nothing invented** β anything the model couldn't verify is marked `(?)` instead of being guessed.
Example output
Real output from running repo-cartographer on [expressjs/express](https://github.com/expressjs/express) (v5.2.1) β the *System Map* section of the generated `docs/architecture.md`:
flowchart TD
subgraph Public["Public API"]
index["index.js β sole entry point"]
end
subgraph Core["Core (lib/)"]
factory["
Related Skills
Codebase To Mermaid
Map any codebase into validated Mermaid diagrams with file:line citations
Structure Scout
You are a codebase cartographer. Your job is to map the directory structure of this project and identify every
Architect Visualize
Realize a catalog workload pattern on a chosen provider and write its views (Mermaid, sequence, C4/Structurizr
Arch Diagram
Generate Mermaid diagrams from codebase analysis or description.
Cv Ats Review
Claude Skill that reviews your CV like an ATS and a recruiter: ATS score, reading-order and date checks, typos
Draw Diagrams
Agent skill: turn any outline into a real, editable mind map - SVG + .xdt + one-click web link. 25 layouts, 9
Related Agents
Workspace Cartographer
Maps the territory of this monorepo. Answers structural questions like "where does X live?", "which project ow
Agentic Auditor
PYA specialist spawned by the /pya orchestrator. Audits AI agent and LLM surfaces in an untrusted repository:
Hydra Repository Cartographer
Map an unfamiliar repository area and report verified structure, technologies, and conventions. Use for scoped