| name | setup-env |
| description | Bootstrap a complete development environment for new contributors. Installs dependencies, configures tools, seeds databases, and verifies everything works. |
Setup Dev Environment
Automate the full development environment setup for new contributors. This skill handles dependency installation, tool configuration, database setup, and verification — reducing "works on my machine" issues.
When to Use
Use this skill when:
- A new developer is joining the project
- Setting up the project on a new machine
- Resetting a broken local environment
- Verifying the setup docs are accurate
Instructions
-
Read the project template at ../../_references/project-template.md for the expected project structure and tooling.
-
Check system prerequisites:
- Node.js version matches
.nvmrc or .node-version or engines in package.json
- Package manager is correct (npm, pnpm, or yarn — check for lockfiles)
- Git is installed and configured with name and email
- Docker is running (if project uses Docker for databases/services)
- Required CLI tools are installed (check project README for prerequisites)
If prerequisites are missing, provide install commands:
brew install node@20 pnpm docker
nvm use
-
Install dependencies:
- Run the correct install command (
pnpm install, npm install, yarn)
- Verify no peer dependency warnings
- Check that postinstall scripts completed successfully (Prisma generate, Husky, etc.)
-
Configure environment:
- Copy
.env.example to .env if .env doesn't exist
- Fill in safe development defaults for all variables
- Flag any variables that require manual setup (API keys, OAuth credentials)
- Generate required secrets (e.g.,
openssl rand -hex 32 for JWT secrets)
-
Set up the database (if applicable):
-
Configure development tools:
- Set up Git hooks (Husky):
npx husky install
- Verify editor config is picked up (
.editorconfig, VS Code settings)
- Install recommended VS Code extensions if
.vscode/extensions.json exists
- Set up pre-commit hooks (lint-staged, commitlint)
-
Verify the setup:
Run each verification step and report results:
npx tsc --noEmit
npm run lint
npm test
timeout 10 npm run dev || true
npm run build
-
Output a setup report:
## Environment Setup Complete
| Step | Status | Notes |
|-------------------|--------|--------------------------|
| Prerequisites | ✅ | Node 20.11, pnpm 8.15 |
| Dependencies | ✅ | 847 packages installed |
| Environment | ⚠️ | 2 vars need manual setup |
| Database | ✅ | Migrated + seeded |
| Dev Tools | ✅ | Husky, lint-staged |
| Verification | ✅ | Types, lint, tests pass |
### Manual Steps Required
1. Get a Stripe test key from dashboard.stripe.com
2. Set up OAuth app at github.com/settings/developers
### Quick Start
npm run dev → http://localhost:3000
Example Usage
Set up this project for local development
I just cloned this repo, help me get it running