Agent skill · AI & Agents

repo-map

Navigate a codebase by map instead of reading files wholesale — a deterministic stdlib script that emits the tree with line counts and top-level symbols, plus the read-the-map-first discipline that cuts exploration tokens by an order of magnitude. Use when asked explore this repo efficiently, stop re-reading the whole codebase, make a map of this project, or which files should the agent actually open. Produces the compact map with its token math (map vs. everything), the navigation discipline, and the open-only-what-matches rule.

mohitagw15856github.com/mohitagw15856GitHub ↗
claude-codecursorships scriptsMIT
Install
npx skills add mohitagw15856/pm-claude-skills --skill repo-map --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 5 KB
Bundled scripts: yes
Path: skills/repo-map/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 1,255
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Repo Map Skill Agents burn their context windows on exploration: reading ten files to find the one, re-reading them next session, paying full price for code that was only ever navigation. The fix is the oldest one in computing — an index. This skill generates a compact, deterministic map (tree + line counts + top-level symbols via regex, no parser dependencies, nothing leaves the machine) and installs the discipline that makes it pay: *read the map first, open only the files whose names and symbols match the task.* The script prints its own economics: a typical map costs ~3% of reading everything. ## What This Skill Produces - **The map** — tree with per-file line counts and top-level symbols (functions, classes, types) for ~10 common languages - **The token math** — reading-everything vs. reading-the-map, printed in the header - **The navigation plan** — for the task at hand: which files the map says to open, which to skip - **The refresh rule** — when the map is stale and what it costs to regenerate (nothing — it's local and instant) ## Required Inputs Ask for these if not provided: - **The directory** — repo root or the subdirectory that matters (mapping `src/` beats mapping `

What's inside
Steps it walks through
  1. What This Skill Produces
  2. Required Inputs
  3. Programmatic Helper
  4. Framework: The Navigation Discipline
  5. Output Format
  6. Navigation Plan (for: [the task])
  7. Quality Checks
  8. Anti-Patterns
  9. Based On
Ships with 1 file
  • scripts/repo_map.py
Commands it runs
python3 scripts/repo_map.py .
python3 scripts/repo_map.py src --max-files 400 --max-symbols 8
More from pm-claude-skills
All skills →
About this skill
What does the repo-map skill do?

Navigate a codebase by map instead of reading files wholesale — a deterministic stdlib script that emits the tree with line counts and top-level symbols, plus the read-the-map-first discipline that cuts exploration tokens by an order of magnitude. Use when asked explore this repo efficiently, stop re-reading the whole codebase, make a map of this project, or which files should the agent actually open. Produces the compact map with its token math (map vs. everything), the navigation discipline, and the open-only-what-matches rule.

How do I install it?

Run `npx skills add mohitagw15856/pm-claude-skills --skill repo-map --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From mohitagw15856/pm-claude-skills, a repository with 1,255 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going