wenshuocui50-droid

Repo Cartographer โ€” Development skill for Claude Code

Development community

๐Ÿ—บ๏ธ 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["