onboarding-docs
Generate or update onboarding documentation — README, CONTRIBUTING guide, dev environment setup script, and new-developer validation checklist
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate or update onboarding documentation — README, CONTRIBUTING guide, dev environment setup script, and new-developer validation checklist
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Health check procedures D1–D14 for the Audit agent — structural validation, attention budget, version checks, workspace integrity, and static audit
Configure and manage Model Context Protocol servers for external tool access
Review a UI for accessibility — WCAG 2.1 AA compliance, semantic HTML, ARIA usage, keyboard navigation, focus management, colour contrast, and screen reader compatibility
Design or review a REST or GraphQL API — resource modeling, versioning strategy, error contract, OpenAPI/schema-first workflow, and security baseline
Generate a CHANGELOG.md entry from staged changes, a commit range, or a PR diff — following Keep a Changelog format with conventional commit classification
Set up and audit environment variable management — create .env.example, add startup validation, separate secrets from config, and document every variable
| name | onboarding-docs |
| description | Generate or update onboarding documentation — README, CONTRIBUTING guide, dev environment setup script, and new-developer validation checklist |
| compatibility | >=0.7.0 |
Skill metadata: version "1.0"; license MIT; tags [docs, onboarding, readme, contributing, setup]; compatibility ">=0.7.0"; recommended tools [codebase, editFiles, runCommands].
Generate clear, actionable onboarding documentation so a new developer can go from zero to a working dev environment in under 30 minutes.
Check for and read:
README.md — overview, setup, usage, linksCONTRIBUTING.md — contribution workflow, conventions, PR processdocs/ directorysetup.sh, Makefile, justfile)Note what is missing, outdated, or unclear.
Sections in order:
# Project Name
One-sentence description.
## Prerequisites
| Tool | Version | Install |
|------|---------|---------|
| Node.js | ≥22 | https://nodejs.org |
| Docker | ≥25 | https://docker.com |
## Quick Start
\`\`\`bash
git clone https://github.com/org/repo
cd repo
cp .env.example .env # fill in required values
npm install
npm run dev # starts at http://localhost:3000
\`\`\`
## Project Structure
\`\`\`
src/
api/ — HTTP handlers
services/ — Business logic
models/ — Data access
tests/ — Test suites
docs/ — Extended documentation
\`\`\`
## Available Commands
| Command | Description |
|---------|-------------|
| `npm run dev` | Start dev server with hot reload |
| `npm test` | Run test suite |
| `npm run lint` | Run linter |
| `npm run build` | Build for production |
## Environment Variables
See `.env.example` for all required variables and descriptions.
## Contributing
See [CONTRIBUTING.md](CONTRIBUTING.md).
## License
MIT — see [LICENSE](LICENSE).
Rules:
# Contributing
## Development workflow
1. Fork and clone the repository
2. Create a feature branch: `git checkout -b feat/my-feature`
3. Make changes, write tests
4. Commit with conventional commits: `feat(scope): description`
5. Push and open a PR against `main`
## Commit style
Follow [Conventional Commits](https://conventionalcommits.org):
- `feat:` — new feature
- `fix:` — bug fix
- `docs:` — documentation only
- `refactor:` — no behaviour change
- `test:` — test additions or fixes
- `chore:` — tooling, CI, dependencies
## Code style
- Run `npm run lint` before committing
- All new code must have tests
- PRs require at least one review before merging
## Branching
| Branch | Purpose |
|--------|---------|
| `main` | Production-ready code |
| `feat/*` | New features |
| `fix/*` | Bug fixes |
| `docs/*` | Documentation |
## Running tests
\`\`\`bash
npm test # run all tests
npm test -- --watch # watch mode
\`\`\`
## PR checklist
- [ ] Tests pass locally
- [ ] Linter passes
- [ ] CHANGELOG updated (if user-facing change)
- [ ] PR description explains *why*, not just *what*
Provide a script that confirms the environment is ready:
#!/usr/bin/env bash
set -euo pipefail
# scripts/check-dev-env.sh — run after first setup to validate everything works
OK=true
check() {
local name="$1" cmd="$2" expected="$3"
if version=$(eval "$cmd" 2>&1); then
echo "✓ $name: $version"
else
echo "✗ $name not found — install from $expected"
OK=false
fi
}
check "Node.js" "node --version" "https://nodejs.org"
check "npm" "npm --version" "bundled with Node.js"
check "Docker" "docker --version" "https://docker.com"
if [[ "$OK" == "false" ]]; then
echo ""
echo "Some requirements are missing. See README Prerequisites."
exit 1
fi
echo ""
echo "✓ All prerequisites met. Run: npm install && npm run dev"
Add a checklist to README or CONTRIBUTING:
## New developer checklist
- [ ] Prerequisites installed and verified (`bash scripts/check-dev-env.sh`)
- [ ] `.env` created from `.env.example` with real values
- [ ] Dependencies installed (`npm install`)
- [ ] Dev server starts without errors (`npm run dev`)
- [ ] Test suite passes (`npm test`)
- [ ] Linter passes (`npm run lint`)
- [ ] Read CONTRIBUTING.md
- [ ] Made one small change and opened a draft PR (optional but recommended)
Test the README literally — follow every step from a clean environment. Fix anything that does not work exactly as written.
# Smoke test — does the quick start actually work?
# In a fresh directory, follow the README step by step
.env.example