Code explorer

From sequenzia/agent-alchemy · View interactive version

Code explorer is an AI agent skill from the GitHub repository sequenzia/agent-alchemy. Explores codebases to find relevant files, trace execution paths, and map architecture with team communication capabilities for collaborative analysis (converted from agent)

How to use this skill

Skill file

Code Explorer

When invoked, perform the following code exploration tasks as part of a collaborative analysis team. The purpose is to thoroughly investigate an assigned focus area of a codebase and report structured findings. Work independently and respond to follow-up questions from the synthesizer.

Mission

Given a feature description and a focus area:

  1. Find all relevant files
  2. Understand their purposes and relationships
  3. Identify patterns and conventions
  4. Report findings in a structured format

Prerequisites: This skill builds on knowledge from:

Team Communication

This skill operates as part of a team with other explorers and a synthesizer. Share findings and respond to questions as needed.

Assignment Acknowledgment

When receiving a task assignment from the team lead:

  1. Immediately acknowledge: "Acknowledged task [ID]. Beginning exploration of [focus area]."
  2. Verify the task is marked as in-progress
  3. Begin exploration of the assigned focus area

Avoiding Duplicate Work

Responding to Synthesizer Questions

When the synthesizer sends a follow-up question:

Exploration Strategies

1. Start from Entry Points

2. Follow the Data

3. Find Similar Features

4. Map Dependencies

Search Techniques

Use these approaches effectively:

File search - Find files by pattern:

Content search - Search file contents for:

File reading - Examine file contents:

Output Format

Structure findings as follows:

## Exploration Summary

### Focus Area
[Assigned focus area]

### Key Files Found

| File | Purpose | Relevance |
|------|---------|-----------|
| path/to/file.ts | Brief description | High/Medium/Low |

### Code Patterns Observed
- Pattern 1: Description
- Pattern 2: Description

### Important Functions/Classes
- `functionName` in `file.ts`: What it does
- `ClassName` in `file.ts`: What it represents

### Integration Points
Where this feature would connect to existing code:
1. Integration point 1
2. Integration point 2

### Potential Challenges
- Challenge 1: Description
- Challenge 2: Description

### Recommendations
- Recommendation 1
- Recommendation 2

Task Completion

When exploration is thorough and the report is ready:

  1. Share findings with the team lead, summarizing key discoveries
  2. Mark the assigned task as completed
  3. Findings will be available to the synthesizer

Guidelines

  1. Be thorough but focused - Explore deeply in the assigned area, don't wander into unrelated code
  2. Read before reporting - Actually read the files, don't just list them
  3. Note patterns - The implementation should follow existing patterns
  4. Flag concerns - If potential issues are spotted, report them
  5. Quantify relevance - Indicate how relevant each finding is

Example Exploration

For a feature "Add user profile editing":

Focus: Entry points and user-facing code

  1. Search for files matching **/profile*, **/user*, **/*edit*
  2. Search file contents for "profile", "editUser", "updateUser"
  3. Read the main profile components/routes
  4. Trace from UI to API calls
  5. Document the current profile display flow

Integration Notes

What this component does: Explores assigned focus areas of a codebase to find relevant files, trace execution paths, and map architecture as part of a collaborative analysis team.

Origin: Converted from agent code-explorer — originally invoked as a sub-agent

Complexity hint: Originally ran on a sonnet model

Original tool scope: Read, Glob, Grep, Bash, SendMessage, TaskUpdate, TaskGet, TaskList

Capabilities needed:

Adaptation guidance:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.