Agent Skillssequenzia/agent-alchemy › code-explorer

code-explorer

GitHub

作为代码探索专家,根据功能描述和关注区域,深入调查代码库以查找相关文件、追踪执行路径并映射架构。支持团队协作与合成器问答,提供结构化发现报告。

ported/20260304-102613/core-tools/skills/code-explorer/SKILL.md sequenzia/agent-alchemy

Trigger Scenarios

需要理解特定功能或模块的代码实现细节 需要梳理代码库的文件关系和执行流程 在团队中负责特定代码区域的深度分析任务

Install

npx skills add sequenzia/agent-alchemy --skill code-explorer -g -y
More Options

Non-standard path

npx skills add https://github.com/sequenzia/agent-alchemy/tree/main/ported/20260304-102613/core-tools/skills/code-explorer -g -y

Use without installing

npx skills use sequenzia/agent-alchemy@code-explorer

指定 Agent (Claude Code)

npx skills add sequenzia/agent-alchemy --skill code-explorer -a claude-code -g -y

安装 repo 全部 skill

npx skills add sequenzia/agent-alchemy --all -g -y

预览 repo 内 skill

npx skills add sequenzia/agent-alchemy --list

SKILL.md

Frontmatter
{
    "name": "code-explorer",
    "description": "Explores codebases to find relevant files, trace execution paths, and map architecture with team communication capabilities for collaborative analysis (converted from agent)",
    "dependencies": [
        "project-conventions",
        "language-patterns"
    ]
}

Code Explorer

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

Prerequisites

Before beginning exploration, ensure familiarity with:

  • project-conventions -- For discovering and following the target codebase's conventions
  • language-patterns -- For recognizing language-specific patterns in the code being explored

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

Team Communication

When part of a team with other explorers and a synthesizer:

Assignment Acknowledgment

When receiving a task assignment from the team lead:

  1. Acknowledge the task: "Acknowledged task [ID]. Beginning exploration of [focus area]."
  2. Begin exploration of the assigned focus area

Avoiding Duplicate Work

  • If receiving an assignment for a task already completed: respond "Task [ID] already completed. Findings were submitted." Do not re-explore.
  • If receiving an assignment for a task currently in progress: respond "Task [ID] already in progress." Continue current work.
  • If receiving a message that doesn't match any assigned task: inform the lead and wait for clarification.

Responding to Synthesizer Questions

When the synthesizer asks a follow-up question:

  • Provide a detailed answer with specific file paths, function names, and line numbers
  • If the question requires additional exploration, do it before responding
  • If you can't determine the answer, say so clearly and explain what you tried

Exploration Strategies

1. Start from Entry Points

  • Find where similar features are exposed (routes, CLI commands, UI components)
  • Trace the execution path from user interaction to data storage
  • Identify the layers of the application

2. Follow the Data

  • Find data models and schemas related to the feature
  • Trace how data flows through the system
  • Identify validation, transformation, and persistence points

3. Find Similar Features

  • Search for features with similar functionality
  • Study their implementation patterns
  • Note reusable components and utilities

4. Map Dependencies

  • Identify shared utilities and helpers
  • Find configuration files that affect the feature area
  • Note external dependencies that might be relevant

Search Techniques

Use these approaches effectively:

File pattern search -- Find files by pattern:

  • **/*.ts -- All TypeScript files
  • **/test*/** -- All test directories
  • src/**/*user* -- Files with "user" in the name

Content search -- Search file contents for:

  • Function/class names
  • Import statements
  • Configuration keys
  • Comments and TODOs

File reading -- Examine file contents:

  • Read key files completely
  • Understand the structure and exports
  • Note coding patterns used

Output Format

Structure findings as follows:

## Exploration Summary

### Focus Area
[Your 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. Report findings to the team lead with a summary of key discoveries
  2. Mark the 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 you see potential issues, 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 codebases to find relevant files, trace execution paths, map architecture, and report structured findings as part of a collaborative analysis team.

Origin: Agent (converted to skill)

Complexity hint: Originally a Sonnet-tier model (parallelizable broad search)

Tool Capability Summary:

  • File reading, pattern search, content search, shell execution
  • Team messaging (report findings, respond to questions)
  • Task status management (acknowledge, mark complete)

Adaptation guidance:

  • This was originally an agent with read-only file access plus shell and team communication tools. In the target harness, it needs file reading and search capabilities at minimum.
  • Team communication (reporting findings, responding to synthesizer questions) should map to whatever messaging mechanism the target harness provides.
  • Task status updates (marking tasks complete) should map to the target harness's task management system.

Version History

  • fc1a336 Current 2026-07-25 09:55

Dependencies

Same Skill Collection

claude/claude-tools/skills/claude-code-tasks/SKILL.md
claude/claude-tools/skills/claude-code-teams/SKILL.md
claude/core-tools/skills/codebase-analysis/SKILL.md
claude/core-tools/skills/deep-analysis/SKILL.md
claude/core-tools/skills/language-patterns/SKILL.md
claude/core-tools/skills/project-conventions/SKILL.md
claude/core-tools/skills/technical-diagrams/SKILL.md
claude/cs-tools/skills/data-structures/SKILL.md
claude/cs-tools/skills/dp-patterns/SKILL.md
claude/cs-tools/skills/graph-algorithms/SKILL.md
claude/cs-tools/skills/math-and-combinatorics/SKILL.md
claude/cs-tools/skills/search-and-optimization/SKILL.md
claude/cs-tools/skills/solve/SKILL.md
claude/cs-tools/skills/string-algorithms/SKILL.md
claude/cs-tools/skills/verify/SKILL.md
claude/dev-tools/skills/architecture-patterns/SKILL.md
claude/dev-tools/skills/bug-killer/SKILL.md
claude/dev-tools/skills/changelog-format/SKILL.md
claude/dev-tools/skills/code-quality/SKILL.md
claude/dev-tools/skills/docs-manager/SKILL.md
claude/dev-tools/skills/document-changes/SKILL.md
claude/dev-tools/skills/feature-dev/SKILL.md
claude/dev-tools/skills/project-learnings/SKILL.md
claude/dev-tools/skills/release-python-package/SKILL.md
claude/git-tools/skills/git-commit/SKILL.md
claude/opencode-tools/skills/oc-create-agent/SKILL.md
claude/opencode-tools/skills/oc-create-command/SKILL.md
claude/opencode-tools/skills/oc-create-skill/SKILL.md
claude/opencode-tools/skills/oc-tool-dev/SKILL.md
claude/opencode-tools/skills/oc-update-agent/SKILL.md
claude/opencode-tools/skills/oc-update-command/SKILL.md
claude/opencode-tools/skills/oc-update-skill/SKILL.md
claude/plugin-tools/skills/bump-plugin-version/SKILL.md
claude/plugin-tools/skills/dependency-checker/SKILL.md
claude/plugin-tools/skills/port-plugin/SKILL.md
claude/plugin-tools/skills/update-ported-plugin/SKILL.md
claude/plugin-tools/skills/validate-adapter/SKILL.md
claude/sdd-tools/skills/analyze-spec/SKILL.md
claude/sdd-tools/skills/create-spec/SKILL.md
claude/sdd-tools/skills/create-tasks/SKILL.md
claude/sdd-tools/skills/execute-tasks/SKILL.md
claude/sdd-tools/skills/run-tasks/SKILL.md
claude/tdd-tools/skills/analyze-coverage/SKILL.md
claude/tdd-tools/skills/create-tdd-tasks/SKILL.md
claude/tdd-tools/skills/execute-tdd-tasks/SKILL.md
claude/tdd-tools/skills/generate-tests/SKILL.md
claude/tdd-tools/skills/tdd-cycle/SKILL.md
ported/20260304-102613/core-tools/skills/code-architect/SKILL.md
ported/20260304-102613/core-tools/skills/code-synthesizer/SKILL.md

Metadata

Files
0
Version
fc1a336
Hash
697bdcff
Indexed
2026-07-25 09:55

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-20 08:51
浙ICP备14020137号-1 $Гость$