Analyze a codebase architecture and produce a structured report (stack, organization, key points) in chat. Trigger whenever {USER_NAME} gives a repo path to explore, says "analyze this project", "what does this code do", "look at [project] architecture", "explore this repo", or wants to document an old dev project before creating a Past Project card.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Explore Codebase?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/zoomma1-explore-codebase)
---
name: explore-codebase
description: Analyze a codebase architecture and produce a structured report (stack, organization, key points) in chat. Trigger whenever {USER_NAME} gives a repo path to explore, says "analyze this project", "what does this code do", "look at [project] architecture", "explore this repo", or wants to document an old dev project before creating a Past Project card.
---
# Skill: `/explore-codebase`
Explore a repo and produce a structured architecture report in chat.
## Input
`$ARGUMENTS` = absolute path to repo to analyze.
If no path provided → ask: "What's the repo path?" and wait.
---
## Step 1 — Verify path
Verify the path exists. If missing → "Path not found: [path]. Correct?" and wait.
---
## Step 2 — README (optional)
Use Glob to search for `README*` at repo root (depth 1 only).
- If found → read first 50 lines and extract 2-3 sentence summary
- If missing → note "Missing" and continue
---
## Step 3 — Configuration & Stack
Use Glob to search for config files at root:
`package.json`, `pom.xml`, `requirements.txt`, `Cargo.toml`, `go.mod`, `build.gradle`, `composer.json`, `Gemfile`, `.csproj`, `pyproject.toml`, etc.
For each found file:
- Read content (max 100 lines)
- Extract: primary language, framework/runtime, 5–10 key dependencies
- If multiple configs → rank by priority (ex: package.json + Dockerfile → Node + Docker)
If **no config found** → note "No config detected — structural analysis only" and continue to Step 4.
---
## Step 4 — Folder structure
Use Glob to explore structure with `**/*` (depth 2-3 suggested).
Exclude: `node_modules/`, `.git/`, `.github/`, `dist/`, `build/`, `target/`, `__pycache__/`, `.venv/`, `venv/`, `.next/`, `.nuxt/`, `out/`, `coverage/`.
Produce a condensed tree (max 15 lines) showing:
- Main folders and typical content
- Paths to source (ex: `src/`, `lib/`, `app/`, `backend/`)
- Entry point files if detected
---
## Step 5 — Entry points (optional)
Use Grep to search for `main.*`, `index.*`, `App.*`, `server.*` at root and in `src/` (max 10 results).
Select max 2 relevant files. Read first 50 lines of each to understand entry point.
---
## Step 6 — Architecture & Patterns
By examining structure, config, and entry points, identify the architectural pattern:
- **MVC**: controllers/, models/, views/
- **Layered**: controllers/, services/, repositories/, entities/
- **Feature-based**: features/feature-A/, features/feature-B/
- **Monolithic**: everything in src/ without clear separation
- **Monorepo**: packages/, workspaces/, multiple package.json
- **Other**: describe briefly
Justify in 1 sentence based on structure evidence.
---
## Step 7 — Final report
Assemble report combining all elements above. Produce in chat this exact format:
```
## [Project Name]
**Stack**: [language(s) + framework(s) + runtime]
**Architecture**: [identified pattern] — [1-sentence justification]
**Structure**:
[condensed tree, 10-15 lines]
**Key dependencies**: [5-10 main libs, or "No config detected"]
**Notable points**:
- [observation on patterns, structure, tech choices]
- [visible tech debt or obvious limitation]
- [example: "Monorepo without Lerna/pnpm", "TypeScript strict mode disabled", etc.]
- [max 5 points]
**README**: [2-3 sentence summary, or "Missing"]
```
---
## Absolute rules
- Never create files, never modify the analyzed repo
- Report in chat only — no vault notes created
- Analysis is purely descriptive: don't recommend changes or critique project choices
- If a step lacks data (no README, no config, no clear entry point) → continue anyway — report is partial but complete