Agent skill
repo-map
Generate a ranked codebase map showing key files and relationships
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/repo-map
SKILL.md
Codebase Map Generator
Generate a graph-ranked map of the codebase showing the most important files, dependencies, and call relationships.
What To Do
-
Analyze the repository structure: Use Glob to find all source files, count per directory, identify entry points.
-
Rank files by importance:
- Fan-in (how many files reference this file) -- higher = more important
- Fan-out (how many files this file imports) -- moderate = hub file
- Size and change frequency via
git log - Entry points (Controllers, Program.cs, App.tsx) rank highest
-
Generate the map as structured summary:
## Core (highest rank) src/backend/Program.cs -- Entry point, DI registration src/backend/Services/MatchingService.cs -- Core matching algorithm (12 refs) ## API Layer src/backend/Controllers/CandidateController.cs -- 8 endpoints ## Domain src/backend/Models/CandidateProfile.cs -- Central model (18 refs) -
Focus mode: When
--focus=<module>, zoom into that module with full dependency graph.
Arguments
--depth=<n>: Directory tree depth (default: 2)--focus=<module>: Focus on specific module--format=<md|mermaid|json>: Output format
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?