Created
July 15, 2025 13:45
-
-
Save rishabhsonker/c75980459764dc56a9d2508a61581480 to your computer and use it in GitHub Desktop.
Revisions
-
rishabhsonker created this gist
Jul 15, 2025 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,82 @@ --- allowed-tools: ["Grep", "Read", "mcp__git__git_log", "mcp__ide__getDiagnostics", "Task"] description: Create detailed map of code area dependencies and structure --- # Map: $ARGUMENTS Generate a comprehensive map of the specified code area. ## Mapping Dimensions ### 1. File Structure Map the physical organization: - All files in the specified area - Folder hierarchy and organization - File sizes and complexity indicators - Related test files ### 2. Dependency Analysis Trace relationships: - **Imports**: What this area imports - **Importers**: What imports this area - **External deps**: npm packages used - **Circular deps**: Any circular dependencies ### 3. Key Components Identify critical elements: - Main entry points - Core functions/classes - Exported interfaces - Constants and configuration ### 4. Data Flow Track how data moves: - Input sources (user input, API, storage) - Transformations applied - Output destinations - Side effects triggered ### 5. Recent Activity Show current development: - Last 10 commits touching area - Active branches with changes - Open PRs affecting this code - Related GitHub issues ### 6. Integration Points Map connections: - Chrome APIs used - Message passing endpoints - Storage keys accessed - External API calls ## Output Format 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. ## Verbosity Levels - Standard: Core structure and key relationships - With `--verbose`: Include all file details, full dependency chains - Piped output: Machine-readable format for further processing ## Example 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()