Use when entering a new codebase, needing a fast architecture map, or generating onboarding notes from an unfamiliar project. Focuses on reconnaissance first, then targeted reads. Describes the repo for navigation only.
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 Codebase Onboarding?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/mxrsv-codebase-onboarding)
---
name: codebase-onboarding
description: Use when entering a new codebase, needing a fast architecture map, or generating onboarding notes from an unfamiliar project. Focuses on reconnaissance first, then targeted reads. Describes the repo for navigation only.
---
# Codebase Onboarding
Use this skill for fast orientation in a new repository.
## Workflow
1. Reconnaissance first:
- inspect top-level structure
- detect language, framework, package manager, tests, CI, env files
2. Identify:
- entry points
- key directories
- request/data flow
- project conventions
3. Read only the files that matter for those findings.
4. Emit the result according to the contract in the "Bootstrap" section below.
## Output Shape
- `Stack`
- `Architecture`
- `Key directories`
- `Common commands`
- `Conventions`
- `Gotchas`
## Rules
- Do not read everything.
- Prefer `rg`, manifests, config files, and a few representative files.
- Optimize for navigation and execution, not encyclopedic coverage.
## Bootstrap (`--bootstrap`)
Map the recon results to the right files per the D-rules:
| Recon item | Target file | Template |
| -------------------------------------------- | --------------------------------------------------------------- | ---------------------------------------------------- |
| Stack, Common commands, Conventions, Gotchas | `AGENTS.md` (repo root) | `~/.claude/templates/AGENTS.template.md` |
| Architecture, request/data flow | `docs/internals/overview.md` | `~/.claude/templates/internals-overview.template.md` |
| — | `docs/README.md` — index pointing to `user/`, `internals/`, `operations/` (omit tiers that do not exist) | — |
"Current status" belongs in the existing spec's `## Status`, or in chat for small work. Do not create a separate status document or require a tracker.
Rules when generating:
- **NEVER overwrite an existing file.** Already exists → skip it and report "already exists". Fixing an old file to comply with the living-docs rules is separate manual work, NOT part of bootstrap.
- Behavior claims in `AGENTS.md` MUST be markdown links **relative to the file containing the link**. In `docs/internals/*.md`, links out to code → start with `../../`; no label needed.
- `docs/internals/overview.md` keeps only what "a maintainer would get wrong without it": decisions + rationale, cross-module constraints, traps. No file catalogs, no control-flow retelling.
- Do not make things up. Cannot verify → write `unknown`.
- When done, run `bash ~/.claude/scripts/docs-compliance.sh <repo>` and `bash ~/.claude/scripts/docs-anchors.sh <repo>`, and paste the output.
## Permissions
Bootstrap authorizes creating the missing files above without overwriting existing ones. Routine documentation needs no separate approval; unclear requirements and material decisions follow the approval rule in `rules/core/docs.md`. Staging and committing follow the task's authorization.