codebase-onboarding
Skill36 starsChanged 6 months agoMITView on GitHub
Systematically analyze an unfamiliar codebase and produce structured onboarding artifacts — architecture map, key entry points, conventions, and a tailored CLAUDE.md. Use when joining a new repository, analyzing a client codebase, or generating/updating CLAUDE.md for an existing project.
- Reads credentials
38 other projects use a version of this.
Adopted by
Most recently taken up by
- JameMy0001/antigravity-skills-hubtheir own version, first seen Oct 2, 2026
- PassionZale/skillstheir own version, first seen Sep 22, 2026
- ZeroTokenClaw/agents-skillstheir own version, first seen Sep 21, 2026
- beelabstudio/aitheir own version, first seen Sep 20, 2026
- mxrsv/agents-skillstheir own version, first seen Sep 19, 2026
- templetongroup/radianttheir own version, first seen Sep 17, 2026
Used with
Projects with it also use pytorch-patterns, continuous-agent-loop and 9 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
mryeastcodeSkillpytorch-patterns
PyTorch deep learning patterns and best practices for building robust, efficient, and reproducible training pipelines, model architectures, and data loading.
Also in 5 projects that use this
InfopibeSkillcontinuous-agent-loop
Patterns for continuous autonomous agent loops with quality gates, evals, and recovery controls.
Also in 7 projects that use this
tpavanipradeepSkillai-regression-testing
Regression testing strategies for AI-assisted development. Sandbox-mode API testing without database dependencies, automated bug-check workflows, and patterns to catch AI blind spots where the same model writes and reviews code.
Also in 5 projects that use this
tpavanipradeepSkilldata-scraper-agent
Build a fully automated AI-powered data collection agent for any public source — job boards, prices, news, GitHub, sports, anything. Scrapes on a schedule, enriches data with a free LLM (Gemini Flash), stores results in Notion/Sheets/Supabase, and learns from user feedback. Runs 100% free on GitHub Actions. Use when the user wants to monitor, collect, or track any public data automatically.
Also in 5 projects that use this
InfopibeSkillagent-harness-construction
Design and optimize AI agent action spaces, tool definitions, and observation formatting for higher completion rates.
Also in 5 projects that use this
Arnav-0Skillagent-designer
Use when the user asks to design multi-agent systems, create agent architectures, define agent communication patterns, or build autonomous agent workflows.
Also in 3 projects that use this
- +5 more from Infopibe
Other versions38 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 38
- loulanyue/awesome-claude-notes★ 272same name
- templetongroup/radiant★ 113same name
- Jamkris/everything-gemini-code★ 87same name
- andreaswasita/copilot-agents-dojo★ 54same name
- Hassaan146/claude-skills★ 18same name
- kaizakin/dotfiles★ 16same name
- woxiangyangzhimao/skills★ 14same name
- noah-sheldon/ai-dev-kit★ 13same name
- hukusuke1007/agent-skills★ 8same name
- mxrsv/agents-skills★ 8same name
28 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository157 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- a2ui-angularSkill
- accessibility-auditSkill
- adk-deploy-guideSkill
- adk-dev-guideSkill
- adk-eval-guideSkill
- adk-observability-guideSkill
- agentic-ai-coding-standardSkill
- agentic-ai-devSkill
- ai-auditSkill
- ai-chatSkill
- ai-decision-recordSkill
- ai-incident-responseSkill
- ai-launch-checkSkill
- ai-playbookSkill
- angular-best-practicesSkill
- angularSkill
- angular-spaSkill
- angular-ui-patternsSkill
- api-design-principlesSkill
- app-store-optimizationSkill
- architect-reviewSkill
- architecture-decision-recordsSkill
- architecture-designSkill
- asc-cli-usageSkill
- asc-crash-triageSkill
- asc-id-resolverSkill
- asc-release-flowSkill
- asc-signing-setupSkill
- asc-submission-healthSkill
- asc-testflight-orchestrationSkill
- browser-testingSkill
- changelog-generatorSkill
- claude-actions-auditorSkill
- clean-codeSkill
- code-explainerSkill
- code-reviewerSkill
- code-simplifierSkill
- comment-analyzerSkill
- database-schema-designerSkill
- ddd-architectSkill
- decision-frameworksSkill
- dedup-code-agentSkill
- deployment-ci-cdSkill
- design-systemSkill
- dockerSkill
- documentation-generationSkill
- domain-finderSkill
- error-detectiveSkill
- eval-guideSkill
- feature-forgeSkill
- firebase-basicsSkill
- firebase-hosting-basicsSkill
- fixing-accessibilitySkill
- fixing-motion-performanceSkill
- flutter-animationsSkill
- flutter-genuiSkill
- flutter-mobileSkill
- flutter-security-expertSkill
- frontend-designSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 7 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 33 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Iron Law: Read actual files before making any claims about the codebase.
- Distinctive: line 69
After fingerprinting, read selectively:
- Distinctive: line 169
If CLAUDE.md exists: enhance, do not replace.
- Distinctive: line 171
If missing: create at project root.
- Distinctive: line 206
If a manifest file is detected but unreadable:
- Distinctive: line 212
If no manifest files found at project root:
- Distinctive: line 222
After generating both artifacts:
“Common” is measured: kept by at least 6 in 10 of the 33 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Iron Law: Read actual files before making any claims about the codebase. Never infer stack from directory names alone — read the config files. A wrong CLAUDE.md is worse than no CLAUDE.md.
Codebase Onboarding Skill
Systematically maps an unfamiliar codebase in 4 phases, then generates two artifacts: a structured Onboarding Guide and a tailored CLAUDE.md.
When to Use
- Opening a new client project with Claude Code for the first time
- Joining a new team repository
- User asks "onboard me", "analyze this codebase", "generate a CLAUDE.md"
- Updating an existing CLAUDE.md to reflect current project state
Four-Phase Analysis Workflow
Phase 1: Reconnaissance (read config files, not source)
Gather signals without reading all source files. Run these in sequence:
# 1. Package manifest detection
ls pom.xml package.json pyproject.toml pubspec.yaml angular.json go.mod Cargo.toml Gemfile 2>/dev/null
# 2. Framework fingerprinting — read the detected manifests
cat pom.xml 2>/dev/null | grep -E "<artifactId>spring-boot|webflux|r2dbc" | head -5
cat package.json 2>/dev/null | grep -E "@nestjs/core|@angular/core|fastify|prisma" | head -5
cat pyproject.toml 2>/dev/null | grep -E "fastapi|langchain|langgraph" | head -5
cat pubspec.yaml 2>/dev/null | grep -E "^name:|flutter:|riverpod|go_router" | head -5
# 3. Entry point identification
ls src/main/java 2>/dev/null || ls src/app 2>/dev/null || ls lib/main.dart 2>/dev/null || ls main.py 2>/dev/null
# 4. Directory snapshot (top 2 levels, ignore noise)
find . -maxdepth 2 -type d \
! -path "*/node_modules/*" ! -path "*/.git/*" ! -path "*/build/*" \
! -path "*/dist/*" ! -path "*/.dart_tool/*" ! -path "*/target/*" \
! -path "*/__pycache__/*" ! -path "*/.gradle/*" 2>/dev/null | sort
# 5. CI/CD and tooling detection
ls .github/workflows/ Dockerfile docker-compose*.yml .env.example 2>/dev/nullStack fingerprint → skill mapping:
| Detected | Stack | Load Skill |
pom.xml + spring-boot | Java 21 / Spring Boot 3.5.x WebFlux | java-spring-api |
package.json + @nestjs/core | NestJS 11.x / Fastify / Prisma | nestjs-api |
pyproject.toml + fastapi | Python 3.14 / FastAPI 0.135.2 | python-dev |
pyproject.toml + langchain/langgraph | Agentic AI / LangGraph | agentic-ai-dev |
angular.json | Angular 21.x / daisyUI | angular-spa |
pubspec.yaml + flutter: | Flutter 3.41.x / Dart 3.10.9 | flutter-mobile |
Phase 2: Architecture Mapping
After fingerprinting, read selectively:
# For each detected stack, read key config files
# Spring Boot
cat src/main/resources/application.yml 2>/dev/null | head -40
find src/main/java -name "*Application.java" -o -name "*Router*.java" 2>/dev/null | head -5
# NestJS
cat src/app.module.ts 2>/dev/null | head -40
find src -name "*.module.ts" 2>/dev/null | head -10
# Python/FastAPI
cat main.py 2>/dev/null | head -40
find src -name "router*.py" -o -name "routes*.py" 2>/dev/null | head -5
# Flutter
cat lib/main.dart 2>/dev/null | head -40
find lib -name "*.dart" -path "*/di/*" -o -path "*/config/*" 2>/dev/null | head -10Map these dimensions:
- Tech Stack — Languages, frameworks, databases, build tools
- Architecture Pattern — Monolith / microservices / monorepo; reactive vs imperative; API style
- Key Directories — top-level folder to purpose mapping
- Data Flow — trace a request: entry → validation → service → repository → database
Phase 3: Convention Detection
# Naming conventions — sample 5 files from each layer
find src -name "*.java" | head -5 | xargs ls -1 2>/dev/null
find src -name "*.ts" | head -10 | xargs ls -1 2>/dev/null
find lib -name "*.dart" | head -10 | xargs ls -1 2>/dev/null
# Error handling pattern — grep for try/catch patterns
grep -r "catch\|@ExceptionHandler\|@ControllerAdvice\|GlobalExceptionHandler" src/ --include="*.java" -l 2>/dev/null | head -3
grep -r "catch\|ExceptionFilter\|@Catch" src/ --include="*.ts" -l 2>/dev/null | head -3
# Git conventions
git log --oneline -10 2>/dev/null
git branch -a 2>/dev/null | head -5Phase 4: Generate Artifacts
Produce both outputs. Do not skip either.
Artifact 1: Onboarding Guide
Save to docs/ONBOARDING.md (create if missing, enhance if exists):
# {Project Name} — Onboarding Guide
**Generated:** {ISO-8601 date} **Stack:** {detected stacks}
## Overview
{1-2 sentences: what the project does and who uses it}
## Tech Stack
| Layer | Technology | Version |
|-------|-----------|---------|
| {layer} | {tech} | {version} |
## Architecture
{Architecture pattern: reactive/imperative, monolith/microservices}
{Key architectural decisions detected from code}
## Directory Map
| Path | Purpose |
|------|---------|
| `{path}` | {one-line purpose} |
## Request Lifecycle
{Request flow: entry → validation → business logic → data access — traced from actual code}
## Conventions Detected
- **Naming:** {file naming pattern observed}
- **Error handling:** {pattern observed — @ControllerAdvice / ExceptionFilter / etc.}
- **Testing:** {test framework and patterns found}
- **Git:** {branch naming, commit style observed}
## Common Tasks
```bash
# Build
{actual build command}
# Test
{actual test command}
# Run locally
{actual run command}Skills to Load
{list skills from fingerprint table above}
#### Artifact 2: CLAUDE.md (create or enhance)
If `CLAUDE.md` exists: **enhance, do not replace**. Add detected sections while preserving existing content.
If missing: create at project root. Target: under 100 lines.
```markdown
# {Project Name}
## Tech Stack
{detected stack versions}
## Build & Run
```bash
{commands from package manager}Code Conventions
- {naming pattern detected}
- {error handling pattern}
- {test framework}
Key Entry Points
{file}:{line}— {description}
Skills
{stack-appropriate skills from this workspace}
## Anti-Patterns
- **Don't read every source file** — use Glob/Grep for reconnaissance; read selectively only when signals are ambiguous
- **Don't infer from directory names** — a folder called `auth/` might contain Firebase logic, not custom auth. Read the files.
- **Don't replace existing CLAUDE.md** — enhance and preserve existing guidance
- **Don't guess version numbers** — read `pom.xml`, `package.json`, `pubspec.yaml` for exact versions
- **Don't generate CLAUDE.md over 100 lines** — scannable in 2 minutes is the goal
## Error Handling
If a manifest file is detected but unreadable:BLOCKED: Cannot read {file} — permission denied or binary format. Proceeding without {stack} stack analysis.
If no manifest files found at project root:No standard manifest detected at project root. Searching subdirectories... [run find . -name "pom.xml" -o -name "package.json" -maxdepth 3] If still none found: "This may not be a standard project root. Please cd to the correct directory."
## Verify Step
After generating both artifacts:
```bash
# Confirm files exist and are non-empty
wc -l docs/ONBOARDING.md CLAUDE.md 2>/dev/nullReport: "Generated: docs/ONBOARDING.md ({N} lines), CLAUDE.md ({N} lines)"
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

