map
Codebase Symbol Map Generator
Generate a semantic symbol map showing where all exports, classes, functions, and interfaces are defined. This eliminates guessing with rg by providing precise file:line locations.
When to Use
- Starting work on an unfamiliar codebase
- Before large-scale refactoring
- When needing to understand code structure
- To avoid
rgtext-matching confusion (same name in comments/strings)
Execution
Run the generator script:
python3 ~/.claude/skills/map/scripts/symbol_map.py
The script will:
- Detect project language (TypeScript/JavaScript/Python/Rust/Go)
- Extract all exported symbols with their locations
- Generate a markdown map at
~/.claude/codebase-maps/{project}_symbols.md
Output Format
## Symbol Index by Type
### Classes
| Symbol | Location |
| -------------- | ------------------------- |
| `AuthProvider` | `src/auth/provider.ts:15` |
### Functions
| Symbol | Location |
| ------------ | ---------------------- |
| `formatDate` | `src/utils/date.ts:42` |
Usage After Generation
After running /map, use the symbol locations directly:
- "Read
src/auth/provider.ts:15to check AuthProvider" - "The
formatDatefunction atsrc/utils/date.ts:42needs modification"
No more grepping and guessing.
More from htlin222/dotfiles
cpp
Write modern C++ with RAII, smart pointers, and STL. Use for C++ development, memory safety, or performance optimization.
130refactor
Refactor code for quality and maintainability. Use for cleanup and tech debt reduction.
74data-science
Data analysis, SQL queries, BigQuery operations, and data insights. Use for data analysis tasks and queries.
52c-lang
Write efficient C code with proper memory management and system calls. Use for C optimization, memory issues, or system programming.
46quarto-book
Generate Quarto Book project structure with chapters, configuration, and output settings. Use when user wants to create a book, multi-chapter document, technical manual, or asks about Quarto book setup.
45scientific-figure-assembly
Assemble multi-panel scientific figures with panel labels (A, B, C) at publication quality (300 DPI) using R. Use when combining individual plots into journal-ready figures.
43