allowed-tools | description | |||||
---|---|---|---|---|---|---|
|
Create detailed map of code area dependencies and structure |
Generate a comprehensive map of the specified code area.
Map the physical organization:
- All files in the specified area
- Folder hierarchy and organization
- File sizes and complexity indicators
- Related test files
Trace relationships:
- Imports: What this area imports
- Importers: What imports this area
- External deps: npm packages used
- Circular deps: Any circular dependencies
Identify critical elements:
- Main entry points
- Core functions/classes
- Exported interfaces
- Constants and configuration
Track how data moves:
- Input sources (user input, API, storage)
- Transformations applied
- Output destinations
- Side effects triggered
Show current development:
- Last 10 commits touching area
- Active branches with changes
- Open PRs affecting this code
- Related GitHub issues
Map connections:
- Chrome APIs used
- Message passing endpoints
- Storage keys accessed
- External API calls
Present as structured map:
π Area: [name]
βββ π Core Files (X files, Y lines)
βββ π Dependencies (X internal, Y external)
βββ π Usage (imported by X files)
βββ π Recent Activity (X commits this week)
βββ β‘ Key Functions
βββ entryPoint() - main function
βββ processData() - transforms input
βββ handleError() - error boundary
Include visual representation if helpful.
- Standard: Core structure and key relationships
- With
--verbose
: Include all file details, full dependency chains - Piped output: Machine-readable format for further processing
Mapping "tooltip" would show:
- tooltip.ts and related UI files
- Dependencies on React, DOM APIs
- Usage by main.ts and widget.ts
- Recent fixes for positioning bugs
- Key functions like show(), hide(), position()