$npx -y skills add fusengine/agents --skill explorationCodebase exploration techniques for rapid discovery, architecture analysis, pattern detection, and dependency mapping.
| 1 | **Session:** ${CLAUDE_SESSION_ID} |
| 2 | |
| 3 | # Exploration Skill |
| 4 | |
| 5 | ## Exploration Protocol |
| 6 | |
| 7 | Run these 5 phases in order — full commands in `references/exploration-protocol.md`: |
| 8 | |
| 9 | 1. **Initial Reconnaissance** — list root files, find config files, check common entry points |
| 10 | 2. **Structure Mapping** — tree view (excluding noise dirs), identify main directories |
| 11 | 3. **Entry Points Detection** — grep for `main`/`index`/server bootstrap per language |
| 12 | 4. **Dependency Analysis** — read `package.json`/`pyproject.toml`/`go.mod`/`Cargo.toml`/`composer.json` |
| 13 | 5. **Pattern Detection** — check for MVC, Clean/Hexagonal, feature-based, Next.js App Router directories |
| 14 | |
| 15 | --- |
| 16 | |
| 17 | ## Architecture Pattern Detection |
| 18 | |
| 19 | ### Pattern Indicators |
| 20 | |
| 21 | | Pattern | Key Directories | Indicators | |
| 22 | |---------|-----------------|------------| |
| 23 | | **MVC** | `controllers/`, `models/`, `views/` | Rails, Laravel, Express | |
| 24 | | **Clean Architecture** | `domain/`, `application/`, `infrastructure/` | DDD, Use cases | |
| 25 | | **Hexagonal** | `adapters/`, `ports/`, `core/` | Ports & adapters | |
| 26 | | **Feature-based** | `features/[name]/` | All layers per feature | |
| 27 | | **Layered** | `presentation/`, `business/`, `data/` | Traditional 3-tier | |
| 28 | | **Monolith** | Single `src/` | Mixed concerns | |
| 29 | | **Microservices** | Multiple `services/` | Separate repos/folders | |
| 30 | | **Next.js App Router** | `app/`, `components/`, `lib/` | Server/Client components | |
| 31 | | **Modular Monolith** | `modules/[name]/` | Bounded contexts | |
| 32 | |
| 33 | --- |
| 34 | |
| 35 | ## Forbidden Behaviors |
| 36 | |
| 37 | - ❌ Make assumptions without code evidence |
| 38 | - ❌ Ignore configuration files |
| 39 | - ❌ Overlook test directories |
| 40 | - ❌ Skip dependency analysis |
| 41 | - ❌ Miss entry points |
| 42 | - ❌ Assume architecture without verification |
| 43 | |
| 44 | ## Behavioral Traits |
| 45 | |
| 46 | - Systematic and methodical |
| 47 | - Pattern-focused detection |
| 48 | - Context-aware analysis |
| 49 | - Comprehensive yet concise |
| 50 | - Evidence-based insights |
| 51 | - Quick reconnaissance before deep dive |
| 52 | |
| 53 | --- |
| 54 | |
| 55 | ## Detailed References (Load on Demand) |
| 56 | |
| 57 | - `references/exploration-protocol.md` — Load when running the 5-phase protocol (exact shell commands per phase) |
| 58 | - `references/tech-stack-detection.md` — Load when identifying framework/ORM/tooling per language (JS/TS, Python, Go, PHP, Rust) |
| 59 | - `references/code-organization-checks.md` — Load when auditing interface separation, business-logic location, or state management |
| 60 | - `references/response-format.md` — Load when writing the final exploration report |
| 61 | - `references/quick-analysis-commands.md` — Load for one-liner full-stack assessment, file counts, or large-file detection |