repo-onboarding
Skill0 starsChanged 25 days agoMITView on GitHub
Use when entering an unfamiliar repository and needing a trustworthy map before changing code: build and test commands, entry points, data flow, deployment, ownership, and risky areas. Produces a short AGENTS.md plus a file-and-command map backed by evidence. Does not perform refactors or install dependencies.
- Reads credentials
11 other projects use a version of this.
Adopted by
Most recently taken up by
- KhaiTrang1995/nexus-kbtheir own version, first seen Nov 8, 2026
- janghotan/repo-onboardingtheir own version, first seen Oct 25, 2026
- salmandev/everything-geminitheir own version, first seen Oct 17, 2026
- dss-time/repo-doctor-skillstheir own version, first seen Oct 15, 2026
- nhat092005/skillstheir own version, first seen Oct 13, 2026
- exerias21/brainstorm-toolkittheir own version, first seen Oct 4, 2026
Used with
Projects with it also use mcp-maintainer and release-guard.
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.
KhaiTrang1995Skillmcp-maintainer
Operate and maintain the local MCP server for this repository. Use for MCP tool updates, policy-guard changes, host configuration, and MCP runtime troubleshooting.
Also in 3 projects that use this
KhaiTrang1995Skillrelease-guard
Run release-readiness checks for this repository. Use when validating docs, scripts, verification coverage, and operational safety before merge or release.
Also in 3 projects that use this
Other versions11 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 11
- hoangsonww/Claude-Code-Agent-Monitor★ 1.2ksame name
- caiaffa/claude-code-ultimate-engineering-system★ 17same name
- ldilov/harness-forge★ 4same name
- RichardGeorgeDavis/Codex-Workspace★ 2same name
- salmandev/everything-gemini★ 2same name
- dss-time/repo-doctor-skills★ 1same name
- janghotan/repo-onboarding★ 1same name
- KhaiTrang1995/nexus-kb★ 1same name
- nhat092005/skills★ 1same name
- exerias21/brainstorm-toolkit★ 0same name
1 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 repository18 other files it gives its agents.
- docs/agents.mdAGENTS.md
- agent-skill-authorSkill
- api-contract-reviewSkill
- codex-cli-workflowsSkill
- codex-plugin-authorSkill
- context-budgetSkill
- dependency-auditSkill
- docs-writerSkill
- git-recoverySkill
- incident-postmortemSkill
- mcp-server-builderSkill
- performance-profileSkill
- pr-reviewerSkill
- release-engineerSkill
- skill-security-reviewSkill
- sql-migration-reviewSkill
- terminal-debuggerSkill
- test-first-fixSkill
The file
We split this skill into the rules it gives an agent
11 rules. 0 are common, 8 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 11 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
Do this read-only. Editing before you understand the build is how a small task becomes a lost afternoon.
- Distinctive: line 22
Use this skill when:
- Distinctive: line 49
Do not run scripts yet. Read them.
- Distinctive: line 68
Start from what ships or serves:
- Very specific: line 121
Check git log --since="6 months" --name-only for the files that change most.
- Very specific: line 190
Do not run install scripts, postinstall, or arbitrary repo scripts before reading them.
- Distinctive: line 191
Do not execute a migration or deploy to learn what it does.
- Very specific: line 192
Do not print .env or secret values.
- Distinctive: line 193
Do not edit source files during onboarding.
- Distinctive: line 194
Do not trust a stale README over CI and code.
- Distinctive: line 195
If two sources disagree, record both and say which one you tested.
“Common” is measured: kept by at least 6 in 10 of the 11 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
Repo Onboarding
The goal is not to read the whole repository. It is to produce a map precise enough that the next change lands in the right file, using the right command, with a way to verify it.
Do this read-only. Editing before you understand the build is how a small task becomes a lost afternoon.
When to use
Use this skill when:
- You are starting work in a repository you have not seen.
- A task begins with "figure out how this works".
- You need to write or repair
AGENTS.md. - Tests fail and you do not know the intended test command.
- You are estimating the blast radius of a change.
Workflow
1. Inventory the root
ls -la
git status --short
git log -5 --onelineLook for:
- Language and package manifests:
package.json,pyproject.toml,go.mod,Cargo.toml,pom.xml,*.csproj. - Task runners:
Makefile,justfile,Taskfile.yml,turbo.json,nx.json. - Containers:
Dockerfile,docker-compose.yml,compose.yaml. - CI:
.github/workflows/,.gitlab-ci.yml,Jenkinsfile. - Agent instructions:
AGENTS.md,CLAUDE.md,.cursor/rules/,.codex/. - Docs:
README*,docs/,CONTRIBUTING*,ARCHITECTURE*.
Do not run scripts yet. Read them.
2. Establish the commands
Record the exact commands for:
| Need | Where to look | Verified by |
| Install dependencies | package manifest, README, CI | Running it, or the lockfile presence |
| Build | scripts.build, Makefile target, CI | Running the build |
| Unit tests | scripts.test, pytest config, CI | Running the focused suite |
| Lint and format | config files, CI | Running the command |
| Type check | tsc --noEmit, mypy, CI | Running it |
| Run locally | README, compose file, dev script | Starting it and hitting a health endpoint |
CI is the strongest source of truth. A README may be stale; a green pipeline is executed on every change.
3. Find the entry points
Start from what ships or serves:
bin,cmd/,main.*,src/index.*,server.*,app.*.- Framework routers, controllers, handlers.
- CLI command registration.
- Background workers and scheduled jobs.
- Public API definitions: OpenAPI, GraphQL schema, protobuf.
For each entry point, note what it calls next. Stop at the second level. A dependency graph that is three hops deep is enough for orientation.
4. Trace one real request or command
Pick the smallest user-visible behavior. Follow it from input to output and to the side effects:
- Where does input enter and get validated?
- Where is authorization checked?
- Where does data get read or written?
- Where do errors get converted into responses?
- What is logged, and could it contain secrets?
This single trace exposes most of the architecture and the conventions faster than reading folders in alphabetical order.
5. Map the data and configuration
- Database schema and migrations directory.
- ORM models and the tables they map to.
- Cache keys and TTLs.
- Queues, topics, and consumers.
- Environment variables: names, required vs optional, example values in
.env.example. - Feature flags and their defaults.
- Secrets loading path. Never print values.
6. Map the deployment
- What artifact is produced: binary, container image, static bundle, package?
- Where does it run: Kubernetes, VM, serverless, app store?
- What triggers a deploy: tag, merge, manual workflow?
- What is the rollback path?
- What health checks exist?
- Which environments exist and how do they differ?
7. Locate the risk
Spend ten minutes listing the parts that punish mistakes:
- Destructive migrations and backfills.
- Payment, billing, and entitlement logic.
- Auth and permission checks.
- Anything that writes outside its own database.
- Retry loops and idempotency boundaries.
- Code with no tests around a critical path.
- Vendored code and generated files that should not be edited.
Check git log --since="6 months" --name-only for the files that change most. Churn is a proxy for risk and for where the maintainers focus.
8. Write the map
Produce two artifacts:
AGENTS.md at the repository root, short enough that an agent reads all of it:
# Repository Guide
## Commands
- Install: `...`
- Test (focused): `...`
- Test (full): `...`
- Lint: `...`
- Build: `...`
## Layout
- `src/api` — HTTP handlers, no business logic
- `src/core` — domain rules, side-effect free
- `db/migrations` — append-only
## Conventions
- Errors are returned as `Result<T>`; do not throw across module boundaries.
- Every handler test lives next to the handler.
## Do not
- Do not edit `generated/`.
- Do not run the full integration suite without Docker.
- Do not commit `.env`.
## Verify before claiming done
- `npm test -- --run` passes.
- `npm run lint` passes.A working note with the request trace, the risky areas, and open questions. Keep it in the task thread or a scratch file, not in the repository unless the team wants it.
Evidence rules
- A command is "verified" only after you ran it or saw it succeed in CI.
- A file is "the entry point" only if something references it or the runtime loads it.
- An environment variable is "required" only if the code fails without it or the docs say so.
- An architecture claim needs a file path. "Probably a microservice" is not a finding.
Examples
Good opening message after onboarding:
Build: `pnpm build` (verified, 41s).
Tests: `pnpm test -- --run` (verified, 122 tests, 3 skipped).
Entry: `src/server.ts` -> `src/app.ts` -> routes in `src/routes/*.ts`.
Persistence: Postgres via `src/db`, migrations in `db/migrations` (append-only).
Risk: `src/billing/webhooks.ts` has no tests and handles retries; `db/migrations/0042_*` rewrites a large table.
Open: the staging deploy workflow uses a different image tag scheme than production.Bad opening message:
This looks like a standard Node app with a modular architecture. Tests are probably run with npm test.The second gives no file, no command, and no verified fact.
Guardrails
- Do not run install scripts,
postinstall, or arbitrary repo scripts before reading them. - Do not execute a migration or deploy to learn what it does.
- Do not print
.envor secret values. Report variable names only. - Do not edit source files during onboarding. Write the map first.
- Do not trust a stale README over CI and code.
- If two sources disagree, record both and say which one you tested.
Verification checklist
- Working tree state recorded before any command.
- Install, test, lint, and build commands verified.
- Entry points traced to a real handler or command.
- Data stores and migrations located.
- Environment variables listed by name only.
- Deploy trigger and rollback path identified.
- Risky files listed with a reason.
AGENTS.mdwritten and under roughly 60 lines.- Every claim has a file path or a command result.
References
references/agents-md-template.mdcontains a longer template and examples for monorepos and libraries.
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.

