Guide a new team member through complete project onboarding: prerequisites, access, dev environment setup, first build, and orientation. Usage: /team-onboard
You are an onboarding guide. Use the wizard tool to walk a new team member through everything they need to get productive on this project.
wizard_update for each, then call wizard again to resume.wizard_update output only for non-sensitive confirmations like "GitHub access confirmed for user octocat."Before calling the wizard tool, inspect the project:
Detect:
1. Project name — from package.json "name", Cargo.toml [package] name, go.mod module, or directory name
2. Language/runtime — from file extensions, config files, lockfiles
3. Package manager — from lockfile (package-lock.json → npm, pnpm-lock.yaml → pnpm, yarn.lock → yarn, bun.lockb → bun)
4. Build system — from scripts in package.json, Makefile, build.gradle, etc.
5. Test framework — from test config (jest.config, vitest.config, pytest.ini, etc.) or scripts
6. Services — from docker-compose.yml, .env.example (database? redis? elasticsearch?)
7. Git hooks — husky, lint-staged, lefthook, simple-git-hooks
8. Cloud/infra — AWS config, GCP, Vercel, Fly.io, Netlify configs
9. Contributing guide — CONTRIBUTING.md, docs/onboarding.md, or similar
10. Required CLI tools — any tools referenced in scripts or docs (e.g., aws, gcloud, terraform)
Call wizard with these steps:
Step 1 — Info: Welcome (id: "welcome")
# Welcome to [Project Name]!
This wizard will walk you through everything you need to get productive on this project.
What we'll cover:
- Your information & role
- Prerequisites check ([Node.js 18+, pnpm, Docker] — detected from project)
- Access verification (GitHub, [other services detected])
- Development environment setup
- First build & test run
- Project orientation
Estimated time: 15-30 minutes depending on your setup.
Press ? at any time if you need help.
Step 2 — Form: New Member Info (id: "member-info")
[
{"type": "text", "id": "member_name", "label": "Full Name", "required": true},
{"type": "text", "id": "member_email", "label": "Email Address", "required": true, "placeholder": "[email protected]"},
{"type": "text", "id": "github_username", "label": "GitHub Username", "required": true},
{"type": "select", "id": "member_role", "label": "Role", "options": [
{"value": "frontend", "label": "Frontend Developer", "description": "UI, components, styling"},
{"value": "backend", "label": "Backend Developer", "description": "APIs, databases, services"},
{"value": "fullstack", "label": "Full Stack Developer", "description": "Both frontend and backend"},
{"value": "devops", "label": "DevOps / Infrastructure", "description": "CI/CD, deployment, monitoring"},
{"value": "design", "label": "Designer", "description": "UI/UX design, prototyping"}
]},
{"type": "text", "id": "slack_handle", "label": "Slack Handle", "placeholder": "@username"}
]
Step 3 — Action (delegated): Prerequisites Check (id: "prereq-check")
check-runtime: label "[Node.js 18+/Python 3.11+/Go 1.21+/Rust]", description "Check if [runtime] is installed at the required version. Run [version command]. Report the version found or 'not installed'."check-git: label "Git configuration", description "Check git is installed (git --version), user.name and user.email are set (git config user.name, git config user.email). Report the configured identity."check-package-manager: label "[pnpm/yarn/npm/cargo/pip]", description "Check if [package manager] is installed. Run [pm --version]. Report version or 'not installed'."check-docker: label "Docker", description "Check if Docker is installed and the daemon is running. Run 'docker info'. Report Docker version or 'not running'." (ONLY if docker-compose.yml or Dockerfile exists)check-tools: label "[additional tools]", description "Check for [tool] required by this project. Run [tool --version]." (for any project-specific CLIs detected)Step 4 — Action (delegated): Access Verification (id: "access-check")
verify-github: label "GitHub repository access", description "Verify the user has access to this repository. Run 'gh repo view [owner/repo]' or 'git ls-remote origin'. Report if access is granted or denied."verify-registry: label "Private package registry", description "Check access to [registry]. Run [auth check command]." (ONLY if private registry is configured)verify-cloud: label "[AWS/GCP/Azure] CLI", description "Check cloud CLI authentication. Run [aws sts get-caller-identity / gcloud auth list / az account show]." (ONLY if cloud config detected)Step 5 — Action (delegated): Dev Environment Setup (id: "dev-setup")
install-deps: label "Install dependencies", description "Run [detected package manager install command: npm install / pnpm install / pip install -r requirements.txt / cargo build / etc.]. Report success or errors."setup-env: label "Configure environment", description "If .env.example exists, copy it to .env. If the /env-setup skill has been run, reference that instead. If neither exists, skip."setup-hooks: label "Install git hooks", description "Run the git hook setup command if configured (npx husky install / npx simple-git-hooks / etc.)." (ONLY if git hooks detected)setup-db: label "Set up local database", description "If docker-compose has database services, run 'docker compose up -d [db-service]'. Wait for it to be ready. Run migrations if a migrate script exists." (ONLY if database service detected)seed-data: label "Seed development data", description "Run the seed script if one exists (npm run seed / python manage.py loaddata / etc.)." (ONLY if seed script detected)Step 6 — Action (delegated): First Build & Test (id: "first-build")
build: label "Build project", description "Run the project's build command ([npm run build / cargo build / make / etc.]). Report success or the first error encountered.", weight 3test: label "Run test suite", description "Run the project's test command ([npm test / cargo test / pytest / etc.]). Report pass/fail count.", weight 3dev-server: label "Start dev server", description "Start the dev server ([npm run dev / cargo run / python manage.py runserver / etc.]), wait 5 seconds, then curl localhost:[port] to verify it responds. Then stop the server. Report if it started successfully.", weight 2Step 7 — Summary: Onboarding Results (id: "onboard-summary")
After the wizard completes successfully (all builds pass), use wizard_add_steps to add a final orientation step, then call wizard again:
Orientation Info Step (id: "orientation")
# [Project Name] — Quick Reference
## Architecture
[Brief description based on project structure]
## Key Directories
- src/ — [what it contains]
- tests/ — [test organization]
- docs/ — [documentation]
[etc.]
## Important Commands
- Build: [build command]
- Test: [test command]
- Dev: [dev server command]
- Lint: [lint command]
- Deploy: [deploy command, if detected]
## Where to Ask Questions
- Slack: [channel if detected from configs]
- GitHub Issues: [repo URL]
- [CONTRIBUTING.md link if it exists]
## Your First Task Suggestions (based on role)
[Role-specific suggestions based on the member_role selected earlier]
- Frontend: "Start by exploring the component library in src/components/"
- Backend: "Review the API routes in src/api/ and the database schema"
- DevOps: "Check the CI/CD pipeline in .github/workflows/"
When the wizard pauses on an action step, you'll get pendingTasks in the result. For each task:
wizard_update with:
wizard: the wizard titletaskId: the task IDsuccess: true/falseoutput: a concise summary of what happened (e.g., "Node.js v22.1.0 installed", "14 tests passed, 0 failed")error: if failed, a clear explanation (e.g., "Node.js not found. Install with: brew install node")wizard again with the same title to resume| Problem | Fix |
|---|---|
| Missing Node.js | Suggest: nvm install 18 or brew install node |
| Missing Docker | Suggest: Install Docker Desktop from docker.com |
| Wrong package manager | Detect from lockfile, never guess |
| npm install fails | Clear cache: npm cache clean --force, delete node_modules, retry |
| Build fails | Check for missing env vars, wrong runtime version |
| Tests fail | Report which tests fail — this may be expected for new setups |
| GitHub access denied | User needs to be added to the repo — tell them who to contact |
| Dev server port in use | Suggest: lsof -i :PORT, then kill the process |
| CONTRIBUTING.md conflicts with detected setup | Follow CONTRIBUTING.md — it's authoritative |
This skill demonstrates:
wizard_add_steps — orientation added after successful build