All skills
Skillintermediate
map
Generate a dependency map showing how modules and files relate to each other in the codebase.
Claude Code Knowledge Pack7/10/2026
Overview
Generate a dependency map showing how modules and files relate to each other in the codebase.
Steps
- Scan all source files and extract import/require statements.
- Build a dependency graph:
- Classify modules by role:
- Calculate module metrics:
- Identify high-risk areas:
- Generate a visual map in text or Mermaid format.
Format
Core Modules (high fan-in):
- <module>: imported by files
Dependency Chains:
Rules
- Only map first-party code, not node_modules or third-party packages.
- Flag circular dependencies as issues that need resolution.
- Highlight modules that are single points of failure.