onboarding-doc
Skill1 starsChanged 6 months agoMITView on GitHub
Write or audit onboarding documentation so a new engineer can get productive without ambient knowledge - setup, architecture, conventions, who to ask. Use when the user asks to write onboarding docs, improve dev setup instructions, create a getting-started guide, or audit new-hire experience.
- Reads credentials
In this repository50 other files it gives its agents.
- accessibility-reviewSkill
- adr-authorSkill
- api-designSkill
- architecture-reviewSkill
- caching-strategySkill
- changelogSkill
- ci-cd-pipelineSkill
- codebase-explorationSkill
- code-reviewSkill
- code-style-guideSkill
- context-engineeringSkill
- conventional-commitsSkill
- cost-optimizationSkill
- database-migrationSkill
- data-privacy-reviewSkill
- debuggingSkill
- dependency-updateSkill
- deprecation-migrationSkill
- error-handlingSkill
- feature-flag-rolloutSkill
- filament-resource-designSkill
- flux-ui-patternsSkill
- git-workflowSkill
- i18n-reviewSkill
- idea-refineSkill
- incident-responseSkill
- incremental-implementationSkill
- inertia-patternsSkill
- laravel-ai-featuresSkill
- laravel-eloquent-performanceSkill
- laravel-queue-designSkill
- laravel-testingSkill
- livewire-component-designSkill
- llm-feature-designSkill
- observabilitySkill
- performance-budgetSkill
- pr-descriptionSkill
- primevue-patternsSkill
- refactoringSkill
- release-checklistSkill
- resilience-patternsSkill
- runbook-authorSkill
- security-auditSkill
- spec-writingSkill
- task-breakdownSkill
- tech-debt-triageSkill
- test-writingSkill
- threat-modelingSkill
- using-elyra-skillsSkill
- vue-component-patternsSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
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 39
If the actual setup takes longer (DB seeding, build), the *first 30 minutes* should include the "press enter and wait" command.
- Distinctive: line 153
Every step should be copy-pasteable and produce visible output.
- Distinctive: line 186
Document the "first PR" path: fork (if external) → branch → push → PR template → who reviews
- Distinctive: line 191
When auditing existing docs:
- Distinctive: line 217
When writing a new onboarding doc, follow the structure template above.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Onboarding Doc
The goal: a new engineer with no prior context can clone, run, change, and ship a small fix on their first day or two. Without DMing anyone.
A README that says "install dependencies and run the app" doesn't pass that bar.
When to use
- "Write onboarding docs for X"
- "Improve our README / setup guide"
- "What does a new dev need to get started?"
- "Audit the new-hire experience"
- "Make it easier to contribute"
Procedure
- Find a recent new hire / outside contributor and ask what tripped them up — that's your spec
- Read the current README cold, pretending you've never seen the code. Note every "wait, what?"
- Try to bootstrap from scratch on a clean machine (or container) — every command you have to figure out is a gap
- Structure as a journey, not a reference (see structure below)
- Cut ruthlessly — every paragraph the reader skips is a paragraph that doesn't exist
The 30-minute rule
A reader should be running the app locally within 30 minutes of opening the README. If they're not, you're losing them.
If the actual setup takes longer (DB seeding, build), the first 30 minutes should include the "press enter and wait" command.
Structure
The order matters. People read top-down and stop when frustrated.
# <Project name>
<One sentence: what this is and who it's for.>
<One paragraph: a bit more context if the one-liner is mysterious.>
## Quick start
\`\`\`bash
git clone <repo>
cd <repo>
<one command to set up>
<one command to run>
\`\`\`
You should see <expected output / page>. If you don't, jump to [Troubleshooting](#troubleshooting).
## Requirements
- <runtime + version, with how to install>
- <language toolchain + version>
- <external service or "none — we mock it locally">
## Repository tour
Where things live. Don't list every file — describe the logical zones.
\`\`\`
src/
domain/ ← business logic, no framework imports
api/ ← HTTP layer
jobs/ ← background workers
tests/ ← mirrors src/
docs/ ← architecture docs and ADRs
\`\`\`
## How things fit together
A diagram or short walkthrough of the request lifecycle.
## Conventions
The things tools can't enforce. Keep this short — link out for details.
- We use Conventional Commits → see `docs/contributing.md`
- Tests live next to code, named `*.test.ts`
- Migrations are expand/contract → see `docs/migrations.md`
## Common tasks
How to do the things you'll actually do daily:
- Run tests: `<command>`
- Run only one test: `<command>`
- Create a migration: `<command>`
- Reset the database: `<command>`
- Run against staging API: `<command or env var>`
## Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
| <error> | <why> | <do this> |
| <error> | <why> | <do this> |
## Where to ask
- General questions: #channel
- This codebase: @<team-handle>
- Security: security@example.comWhat to put in vs link out
In the main onboarding doc
- Quick start
- Requirements
- Repo tour (paragraph + tree)
- Common tasks they'll actually do
- Troubleshooting top issues
- Where to get help
Linked from it (separate docs)
- Architecture deep dive
- Coding conventions in detail
- Deployment / release process
- Security policy
- ADRs
The main doc is the table of contents to the team's knowledge, not all of it.
Make every command runnable
❌ "Set up your environment variables"
✅ "Copy the example env file and fill in the values:
`cp .env.example .env`
The placeholders work for local dev. For staging values, ask in #channel."❌ "Install dependencies"
✅ "`npm install` (uses the version in `.nvmrc`; install [nvm](https://...) first if missing)"Every step should be copy-pasteable and produce visible output.
.env.example matters more than you think
The single most common onboarding failure: an env var that's required but undocumented.
.env.examplelives in the repo, committed- Every key has a one-line comment explaining what it does and where to get the value
- Defaults that work for local dev are filled in
- Secrets clearly marked: "ask in #channel for the staging value"
# .env.example
# App
APP_URL=http://localhost:3000
APP_ENV=local
# Database (local Docker default — see docker-compose.yml)
DATABASE_URL=postgresql://app:app@localhost:5432/app_dev
# Mailer (Mailtrap for local; production uses Postmark)
MAIL_FROM=hello@example.test
MAIL_API_KEY= # ask in #infra for the staging key
# Feature flags (optional)
FLAGS_SDK_KEY= # leave empty for local; flags default to off"First contribution" path
Bonus: identify a small task a new hire can do on day 1–2 to actually ship something.
- Tag good-first-issue / starter tickets
- Document the "first PR" path: fork (if external) → branch → push → PR template → who reviews
- Pair them with a buddy for the first one
Output format
When auditing existing docs:
## Onboarding audit: <project>
**Test scenario:** Cold clone on a fresh machine, no team context.
**Time to first run:** <actual minutes>
**Number of times I had to ask / search:** <n>
### What works
- ✅ <thing>
### Gaps
- 🔴 <missing critical info — blocks setup entirely>
- 🟠 <ambient knowledge assumed — slows but doesn't block>
- 🟡 <polish>
### Top 5 fixes (ordered by impact)
1. <fix> — <impact>
2. …
### Trial: ask <recent new hire> to follow the updated doc
- <observed friction points>When writing a new onboarding doc, follow the structure template above.
Anti-patterns
- ❌ Outdated commands ("we don't use that script anymore")
- ❌ "Just ask
<person>" — the doc is supposed to replace the asking - ❌ Walls of prose where a code block would do
- ❌ Setup that requires access you have to request through five channels with no instructions on which
- ❌ "Run
make setup" wheremake setupdoes undocumented magic - ❌ Docs that describe what the team will do, not what it currently does
- ❌ Burying critical info under "Advanced topics"
- ❌ Treating onboarding as a one-time event rather than an artifact you can run
- ❌ No troubleshooting section — every team has a known list of "if you see X, do Y"
- ❌ Different commands in README, Makefile, and CI — pick one source of truth
Tips
- Audit annually, ideally by sitting next to a new hire. Most onboarding bugs are invisible to those with context.
- Track time-to-first-PR as a metric — it should trend down.
- Make setup scriptable:
bin/setupthat does the right thing on a fresh machine is the gold standard. README then becomes "runbin/setup, then …" - Devcontainers / Nix /
bin/setupscripts save more onboarding pain than any prose. - The team's tribal knowledge is the bug — every "you have to know that…" goes in the doc.
- Read the doc out loud to find dropped antecedents and assumptions.
- Don't fear redundancy — repeat critical things; readers don't read linearly.
References
- GitLab Handbook — extreme example of writing everything down
- Stripe README guide — internal-docs philosophy
- The Documentation System (Diátaxis) — tutorial vs how-to vs reference vs explanation
- Write the Docs guides
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.

