name: navigate-code description: Triggered when user asks to navigate codebase, find code patterns, trace dependencies, map code relationships, or understand code structure. Automatically delegates to the code-navigator agent. allowed-tools: Read, Grep, Glob, CodebaseSearch context: fork agent: code-navigator
Navigate Code Skill
Trigger Phrases
This skill is automatically triggered when the user:
- Asks to "find code", "search codebase", or "locate code"
- Requests to "find all usages" or "trace dependencies"
- Wants to "understand code structure" or "map code relationships"
- Mentions "code navigation", "code exploration", or "codebase analysis"
- Asks about "where is X used", "how does X work", or "find pattern"
- Mentions "imports", "exports", or "dependencies"
Delegation Instructions
When this skill is triggered:
- CRITICAL: Pass ALL collected information - Include every answer, decision, and preference collected from the user
- Delegate to the
code-navigatoragent with complete context - Include ALL user answers about:
- What to search for
- Search scope and criteria
- Relationship types to trace
- Analysis goals
- Provide search context and starting points
- Include any constraints or requirements
Context to Pass (MUST INCLUDE ALL)
-
ALL User Answers: Every answer collected during information gathering:
- Search query and criteria
- Code patterns to find
- Relationship types
- Analysis goals
- User Request: The original request for code navigation
- Search Context: Starting files or patterns
- Project Structure: Codebase organization
- Search Scope: Directories or file types to search
- Relationship Types: Imports, exports, calls, etc.
IMPORTANT: Never delegate without passing ALL collected information. The agent needs complete context to work correctly.
Agent Responsibilities
The code-navigator agent will:
- Search codebase for patterns
- Trace dependencies and imports
- Map code relationships
- Understand code structure
- Find similar implementations
- Document findings
- Provide code navigation summary
Usage Examples
Example 1: Find Code Pattern
User: "Find all places where we handle user authentication"
Delegation: Delegate to code-navigator with:
- Query: User authentication handling
- Scope: Entire codebase
- Context: Authentication patterns
Example 2: Trace Dependencies
User: "Trace all dependencies of the user service"
Delegation: Delegate to code-navigator with:
- Target: User service
- Type: Import dependencies
- Context: Service dependencies
Example 3: Understand Structure
User: "Map out how the API routes are organized"
Delegation: Delegate to code-navigator with:
- Target: API routes
- Goal: Understand organization
- Context: Route structure
Best Practices
- ALWAYS pass ALL collected information - Never omit any user answers or decisions
- Use semantic search when appropriate
- Trace relationships thoroughly
- Document findings clearly
- Provide code snippets
- Maintain context consistency across all delegations
chat Comments (0)
Sign in to join the discussion and leave a comment.
Skill Details
GitHub Stars
1
GitHub Forks
0
Created
Mar 2026
Last Updated
il y a 3 mois
tools
tools ide plugins
Related Skills
Build your own?
Join 12,000+ developers contributing to the Claude ecosystem.
No comments yet. Be the first to share your thoughts!