code-cartographer
Installation
SKILL.md
Code Cartographer
Map the architecture, data flow, and risks in legacy codebases. Transform complex, untested code into visual diagrams and actionable guidance.
Core Analysis Workflow
Given a function name or file path:
- Find the entry point - Locate the target in the codebase using Glob/Grep
- Map call relationships - Trace callers (who uses this) and callees (what this uses)
- Detect side effects - Identify hidden state changes and external dependencies
- Filter signal from noise - Exclude vendor/node_modules, focus on custom logic
- Visualize and summarize - Generate Mermaid diagram, risk list, and plain English summary
Step 1: Locate the Target
Use Glob to find files, then Grep to locate the specific function/class: