repo-map

Solid

Ranked symbol map of a codebase within a token budget — a compact "what matters in this repo" before reading files. Use when starting work in an unfamiliar/large codebase, before a refactor or deep-review fan-out, when you need JIT context instead of dumping whole files, or asked "give me a map of this repo / where are the important functions / what's the structure". Zero-dependency (stdlib only); faithful reimplementation of Aider's repo-map (tree-sitter+PageRank → ranked tags). Do NOT use to find correctness/security defects in a change or to audit a diff; use deep-review for that (this only ranks and lists symbols, it does not evaluate code quality).

AI & Automation 138 stars 21 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 87/100

Stars 20%
71
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# repo-map Produces a **ranked list of the structurally-important symbol definitions** in a codebase, capped to a token budget. The point: instead of dumping whole files (wasteful, blows the context window), get a cheap "skeleton" of the repo — the functions/classes everything else depends on — and read full files only where it matters. This is our zero-dependency port of [Aider's repo-map](https://aider.chat/docs/repomap.html). ## When to use - **Onboarding** to an unfamiliar or large codebase — get the lay of the land first. - **Before a refactor / `deep-review` / `workflow-orchestration` fan-out** — feed each subagent the map so it knows the important entry points without re-scanning. - **JIT context** (principle 07 / `practice_context_engineering`) — load the map, not the files. - Anytime the instinct is "let me read 20 files to understand this" → run this first. ## Usage ```bash python scripts/repo_map.py [ROOT] [--budget-tokens N] [--top N] [--json] [--no-signature] [--max-files N] ``` - `ROOT` — repo root (default: cwd). If it's a git repo, only **tracked files** are scanned (honors `.gitignore`); otherwise a filtered directory walk is used. - `--budget-tokens` (default 1024) — stop emitting once ~this many tokens are used (≈4 chars/token heuristic). Use 256–512 for a quick orientation, 2048+ for depth. - `--top N` — hard cap on symbols before the budget applies. - `--json` — machine-readable output (for piping into a workflow / another agent). - `--no-sig...

Details

Author
AnastasiyaW
Repository
AnastasiyaW/claude-code-config
Created
4 months ago
Last Updated
yesterday
Language
Python
License
MIT

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category