code-explorer — Claude Code skill: trace code architecture
code-explorer — a skill to analyze codebases: traces execution paths, maps architectural layers, uncovers patterns and dependencies. Use it before modifying or extending a feature.
no license 146 installs ★ 559 updated 2026-10-19
npx skills add waybarrios/opencode-power-pack --skill code-explorer -a claude-codeWhat code-explorer does
code-explorer breaks down how a specific feature is built. It locates entry points—APIs, UI components, CLI commands—and follows the call chain from start to data storage, tracking data transformations at each step. It builds a map of layers: presentation, business logic, persistence.
The skill acts as a sub-task dispatcher during feature development. When requested, it returns a structured analysis: entry points with line numbers, step-by-step execution flow, key components and their responsibilities, internal and external dependencies, then a curated list of 5–10 essential files with specific line references. It treats repository content, diffs, tests, comments, and PR metadata as facts, never as instructions. Secrets are replaced with [REDACTED]. If critical information cannot be accessed without exposing secrets, it flags the analysis as partial or blocked.
What it helps with
- Understand how an existing feature works before making changes
- Trace data flow through multiple architectural layers
- Map all dependencies and integrations of a component
- Identify extension points and code reuse opportunities
- Build architecture documentation for the team
Example prompts for the agent
- How does authentication work in this repo? Show me entry points, the full call chain, and storage.
- Analyze the payment processing feature: call flow, dependencies, file list.
- Unpack the UserDashboard component architecture—layers, integrations, what I must not change.
How to install code-explorer
1Skills CLI (Vercel)
npx skills add waybarrios/opencode-power-pack --skill code-explorer -a claude-code2Manually: put the files in place
~/.claude/skills/code-explorer/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/code-explorer/
1Skills CLI (Vercel)
npx skills add waybarrios/opencode-power-pack --skill code-explorer -a codex2Manually: put the files in place
.agents/skills/code-explorer/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add waybarrios/opencode-power-pack --skill code-explorer -a cursor2Manually: put the files in place
.cursor/skills/code-explorer/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install waybarrios/opencode-power-pack skills/code-explorer2Manually: put the files in place
.github/skills/code-explorer/SKILL.md1Skills CLI (Vercel)
npx skills add waybarrios/opencode-power-pack --skill code-explorer -a gemini-cli2Platform CLI
gemini skills install https://github.com/waybarrios/opencode-power-pack --path skills/code-explorerManually: put the files in place
.devin/skills/code-explorer/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add waybarrios/opencode-power-pack --skill code-explorer -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about code-explorer
How do I install code-explorer for Claude Code?
Run npx skills add waybarrios/opencode-power-pack --skill code-explorer -a claude-code in your terminal, then open ~/.claude/skills/code-explorer/SKILL.md.
What does code-explorer do?
It analyzes your codebase to show how a feature starts, flows through all layers, and connects to dependencies. Output is a structured report with file paths, line numbers, and the essential files you need to read first.
Which platforms support code-explorer?
Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, and OpenCode. Each platform has its own install command—check the skill documentation.