From skull
Build a ranked, token-budgeted map of the codebase — the top files and their key symbols, ranked by how referenced they are — so you navigate to the right 3 files instead of reading 30. Triggers on "map the repo", "where is X", "how is this codebase laid out", "lay of the land", "I'm new to this repo", or at the start of work in a large/unfamiliar project. A zero-dependency repo-map (Glob + Grep + reference counts) that approximates a code graph; complements Sentinel's architectural map and saves tokens.
How this skill is triggered — by the user, by Claude, or both
Slash command
/skull:repo-mapThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
In a big or unfamiliar repo, reading files blindly burns tokens and misses the point. Build a **ranked map**
In a big or unfamiliar repo, reading files blindly burns tokens and misses the point. Build a ranked map once — the files that matter, with their key symbols — then use it to jump straight to the right places. This is the "repository map" idea: a computed, importance-ranked structure, not a flat file list.
git ls-files (respects .gitignore); drop vendored/build/binary. Note the dir shape.Grep -n for definitions per language: ^(export )?(async )?function, ^(class|interface| type|enum), ^\s*def , ^func , route decorators, etc. Capture name + signature + path:line.grep -row '\bNAME\b' | wc -l) — most-referenced ≈ most load-bearing. This approximates the
PageRank a tree-sitter graph would compute. (Honest limit: common/overloaded names over-count, and this
is text matching, not a real call graph — refine a hot path with a targeted grep before trusting it.).skull/repomap.md: the top files (by ranked symbols), each with its
highest-ranked signatures + a reference count, plus entry points (main/index/routes) and the dir
shape. Keep it to a token budget (~1–2k) — it's a guide, not a dump.grep before a risky change.git diff --name-only <lastmap>..HEAD; don't rebuild the world.docs/ECOSYSTEM.md for Aider's repo-map, code-graph-mcp, CodeGraph,
and Serena, and the leader will point you there once a repo is big enough that grep-and-read gets expensive.Credits / further reading: the ranked "repository map" concept is from Aider (tree-sitter + PageRank
over the symbol graph). See docs/ECOSYSTEM.md. Pairs with Sentinel + token-economy.
npx claudepluginhub aturzone/skullProduces a token-budgeted, ranked map of important symbols (functions/classes/types) in a codebase. Useful for onboarding to large repos, before deep-review fan-outs, or when JIT context is needed instead of whole-file dumps.
Generates a compact repo map (tree + line counts + top-level symbols) and installs a read-the-map-first discipline to cut exploration tokens by ~97%. Use when asked to explore a repo efficiently or stop re-reading the whole codebase.
Generates navigable _MAP.md files showing exports, imports, function signatures, and class methods via AST parsing. Use when exploring unfamiliar repositories or understanding project structure.