repo-map
Skill3 starsChanged 21 days agoApache-2.0View on GitHub
Use when starting work in an unfamiliar or large repository, before broad grep/glob/read exploration, or when you need to know where a function, class, or module is defined and which files use it. Builds a compact map of files, public symbols, and imports so you open only the files that matter.
13 other projects use a version of this.
Adopted by
Most recently taken up by
- jocarrd/crux-agentstheir own version, first seen Nov 8, 2026
- idaibin/skillstheir own version, first seen Nov 8, 2026
- Tcuzzo/backs-aios-skillstheir own version, first seen Nov 3, 2026
- marinvch/Cortextheir own version, first seen Nov 1, 2026
- Rktmkalita/claude-skillstheir own version, first seen Nov 1, 2026
- AnastasiyaW/codex-claude-code-configtheir own version, first seen Oct 30, 2026
Other versions13 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 13
- AnastasiyaW/claude-code-config★ 214same name
- AnastasiyaW/codex-claude-code-config★ 214same name
- ejboy/agent-scripts★ 116same name
- idaibin/skills★ 6same name
- yeaight7/agent-powerups★ 6same name
- jocarrd/crux-agents★ 4same name
- mmaripanguec/dev-sdd-kit★ 2same name
- Tcuzzo/backs-aios-skills★ 2same name
- David-Florian2013/Stop-trusting-made-it-faster-here-is-5-best-skills-for-Claude-★ 1same name
- hanzhangzzz/agent-skills-zh★ 1same name
3 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository16 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- clarifySkill
- code-reviewSkill
- debugSkill
- designSkill
- exam-prepSkill
- fresh-eyesSkill
- music-studioSkill
- nutshellSkill
- planSkill
- shipSkill
- simplifySkill
- specSkill
- tddSkill
- verifySkill
- writing-skillsSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 0 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 12 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 22
Before a change that may touch several files (pairs with plan)
- Very specific: line 39
Do not re-verify what --find already showed with a second repo-wide grep.
- Very specific: line 55
Add .nuts/ to .gitignore if the user does not want the map committed.
“Common” is measured: kept by at least 6 in 10 of the 12 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Repo map
Core rule: Know the structure before you read the code. Open a file only when the map or --find points to it.
The map lists every source file with its public symbols, signatures, imports, and reverse imports in roughly 1/20 to 1/30 of the size of the source. It pays off for structure questions; for a question with a distinctive keyword, one targeted grep is just as cheap.
When to use
- First task in an unfamiliar repo: "how is this project organized?", "where would X live?"
- "What calls Y?", "where is Z defined?" when you know a symbol name
- Before a change that may touch several files (pairs with
plan)
Skip it for a one-file change when you already know the file, and when a single grep on a distinctive word (an error message, a config key) answers the question.
Process
- Know a symbol name? Use
--findfirst (run from the repo root;SKILL_DIRis this skill's folder):
Output:python SKILL_DIR/scripts/repo_map.py . --find run_for_takefile:line signature, thenreferenced at:with every line that mentions the name in the defining file and in files that import it. This is usually the whole answer to "what calls Y?". - Need the big picture? Build the map:
It writespython SKILL_DIR/scripts/repo_map.py ..nuts/repo-map.md. Do not read it whole on a large repo: grep it for a folder or keyword (grep -n "^## src/billing" .nuts/repo-map.md) and read only those sections. Rebuild after large changes. - Open only the candidate files, and only the relevant line ranges when files are long.
- Fall back to grep for things the map cannot show: private names, string literals, config keys, dynamic dispatch.
- Do not re-verify what
--findalready showed with a second repo-wide grep.
What the map contains
## shop/cart.py (16 lines)
- def load_items(path)
- def total(path, *, rounding=2)
imports: shop/models.py
used by: tests/test_cart.py- Python is parsed with
ast(classes, methods, functions, signatures, relative and absolute imports). - JS/TS: exported functions, classes, consts, interfaces/types; relative imports are resolved to files.
- Go, Rust, Java, Kotlin, C#, Ruby, PHP, Swift: top-level types and public functions by pattern. Imports are not resolved for these.
- Private names (leading
_) are hidden. Vendored and build folders (node_modules,dist,.venv, …) are skipped.
Rules
- Add
.nuts/to.gitignoreif the user does not want the map committed. Ask before editing.gitignore. - The map is a guide, not truth: confirm by opening the file before you edit or cite a line.
Done when
- The map was built or refreshed this session
- Files were opened because the map pointed to them, not by blind search
Related: plan, debug, nutshell.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

