# code-explorer

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.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 146 installs · ★ 559 repo stars
- Author: waybarrios
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/waybarrios/opencode-power-pack/tree/HEAD/skills/code-explorer/SKILL.md
- Updated: 2026-10-19
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/code-explorer

## What it 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`.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add waybarrios/opencode-power-pack --skill code-explorer -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/code-explorer/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/code-explorer/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add waybarrios/opencode-power-pack --skill code-explorer -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/code-explorer/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add waybarrios/opencode-power-pack --skill code-explorer -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/code-explorer/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install waybarrios/opencode-power-pack skills/code-explorer
```

2. **Manually: put the files in place**
- File: `.github/skills/code-explorer/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add waybarrios/opencode-power-pack --skill code-explorer -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/waybarrios/opencode-power-pack --path skills/code-explorer
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/code-explorer/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add waybarrios/opencode-power-pack --skill code-explorer -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/waybarrios/opencode-power-pack/tree/HEAD/skills/code-explorer/SKILL.md

## When to use it
- 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
- 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.

## Similar
- [general-code-explorer](https://affpapa.org/en/nevibecode/agents/general-code-explorer.md) — subagent · ★ 372 repo stars
- [explore](https://affpapa.org/en/nevibecode/skills/orchestkit-explore.md) — skill · 224 installs
- [codemap](https://affpapa.org/en/nevibecode/skills/codemap.md) — skill · 167 installs
- [researcher](https://affpapa.org/en/nevibecode/agents/researcher.md) — subagent · ★ 850 repo stars
- [understand](https://affpapa.org/en/nevibecode/skills/understand.md) — skill · 6100 installs
- [spec-miner](https://affpapa.org/en/nevibecode/skills/spec-miner.md) — skill · 4900 installs

From the same set: [waybarrios/opencode-power-pack](https://affpapa.org/en/nevibecode/by/waybarrios/opencode-power-pack.md) — 7 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
