Agent skill

explore-codebase

Explore and understand how the codebase works. Use when user asks "how does the authentication work", "where is the API endpoint defined", "show me how data flows through the system", "explain this module's architecture", "trace the request from controller to database", or "I need to understand this feature before making changes".

Stars 30
Forks 9

Install this agent skill to your Project

npx add-skill https://github.com/Uniswap/ai-toolkit/tree/next/packages/plugins/development-codebase-tools/skills/explore-codebase

SKILL.md

Codebase Explorer

Build comprehensive understanding of codebase areas before implementation or to answer questions about how things work.

When to Activate

  • User asks "how does X work?"
  • User wants to understand existing code
  • User asks where something is implemented
  • Before planning any feature (preparation step)
  • User asks about architecture or patterns
  • User wants to trace data flow or execution

Quick Process

  1. Identify the topic from user's natural language
  2. Map relevant files using Glob and Grep
  3. Trace dependencies and integration points
  4. Identify patterns and conventions
  5. Document findings for implementation work

Input Parsing

Extract from user's request:

  • topic: Main area/feature/component to explore
  • files: Specific files mentioned (optional)
  • focus: Particular aspects to emphasize (optional)

Delegation

Invoke the context-loader-agent agent with extracted parameters for comprehensive analysis.

Output Format

Return structured analysis:

  • Summary: Executive overview of the area
  • Key Components: Core files and responsibilities
  • Patterns: Conventions to follow
  • Dependencies: External integrations
  • Data Flow: How data moves through the system
  • Gotchas: Non-obvious behaviors and pitfalls
  • Implementation Notes: Key considerations for new work

Workflow Integration

This is Step 1 of the implementation workflow:

  1. Explore (this) → 2. Plan → 3. Review → 4. Execute

After exploring, context is automatically available for /plan or the plan-implementation skill.

Detailed Reference

For exploration strategies and patterns, see exploration-guide.md.

Expand your agent's capabilities with these related and highly-rated skills.

Uniswap/ai-toolkit

review-plan

Review implementation plans for completeness and feasibility. Use when user says "review this plan before I start", "is this implementation plan complete", "check if this plan aligns with our patterns", "give me feedback on my implementation strategy", or "validate this plan before we execute it".

30 9
Explore
Uniswap/ai-toolkit

plan-implementation

Create implementation plans for features and changes. Use when user says "plan how to implement user authentication", "how should I add dark mode to the app", "what's the best way to refactor the database layer", "create a plan for migrating to the new API", or "I need to implement [feature] - help me plan it out".

30 9
Explore
Uniswap/ai-toolkit

execute-plan

Execute implementation plans step-by-step. Use when user says "execute the plan", "implement the plan we created", "start building based on the plan", "go ahead and implement it", "proceed with the implementation", "execute as a stack", "create a PR stack while implementing", "implement with one PR per step", or references a plan file and wants to begin coding.

30 9
Explore
Uniswap/ai-toolkit

generate-commit-message

Generate well-structured git commit messages. Use when user says "generate commit message", "write a commit", "what should my commit message be", "create commit message for these changes", or needs help crafting conventional commit messages.

30 9
Explore
Uniswap/ai-toolkit

plan-swarm

Refine plans through multi-agent expert discussion. Use when user says "get multiple expert opinions on this plan", "I want different perspectives on this approach", "have the agents discuss this strategy", "refine the plan through collaborative review", or "what would different specialists think about this design".

30 9
Explore
Uniswap/ai-toolkit

create-pr

Create or update pull requests with conventional commits. Use when user says "create a PR for these changes", "submit this for review", "open a pull request", "push these changes and create a PR", "I'm ready to submit this work", or "create PR and link to issue

30 9
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results