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 โ
- How Claude Code Works โ Deep dive into Claude Code internals โ architecture, agent loop, context engineering, and more 1.9k โ
- Cavemem โ Frozen โ cross-agent persistent memory for coding assistants 674 โ
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
Oop Architect
A Claude Code skill for OOP architecture planning and tracking โ live Mermaid UML diagrams in CLAUDE.md that u
Structure Scout
You are a codebase cartographer. Your job is to map the directory structure of this project and identify every
Session Cartographer
Map and search Claude Code & ChatGPT session history. BM25, semantic search and rank fusion via awk. And facet
Deep Dive Claude Code
ใๆทฑๅ ฅ็่งฃ Claude Code ๆบ็ ใโ ็ณป็ปๅๆ Anthropic Claude Code CLI ็ๆถๆ่ฎพ่ฎกใๅทฅ็จๅฎ่ทตไธ็ผ็จๅฒๅญฆ 25 chapters, 101 Mermaid diagrams, 467 c
Arch Diagram
Generate Mermaid diagrams from codebase analysis or description.
Related Agents
Workspace Cartographer
Maps the territory of this monorepo. Answers structural questions like "where does X live?", "which project ow
Hydra Repository Cartographer
Map an unfamiliar repository area and report verified structure, technologies, and conventions. Use for scoped
Agentic Workflow Patterns
by ThibautMelen - A comprehensive and well-documented collection of agentic patterns from Anthropic docs, with