troykelly/claude-skills/environment-bootstrap
Claude Code and agent skill by troykelly/claude-skills
- community
Checking that the SKILL.md file is still in the repository.
Use for development environment setup - create and maintain init scripts, run smoke tests, ensure consistent environment across sessions
Install
npx vskill@latest install troykelly/claude-skills/environment-bootstrapSKILL.md
The same SKILL.md was published earlier as troykelly/claude-skills/environment-bootstrap.
Environment Bootstrap
Overview
Set up and maintain consistent development environments.
Core principle: Every session should start with a known-good environment.
Announce at start: "I'm using environment-bootstrap to set up the development environment."
When to Use
| Situation | Action | |
|---|---|---|
| First clone of repository | Create init script | |
| Starting new session | Run init script | |
| After pulling changes | Re-run init if deps changed | |
| Environment seems broken | Run init to reset |
The Init Script
Location
Template
Making Executable
Running the Init Script
Standard Run
With Dev Server
After Pulling Changes
Smoke Test
After environment setup, verify basic functionality:
What to Test
| Test | How | Pass Criteria | |
|---|---|---|---|
| Build | pnpm build | No errors | |
| Tests | pnpm test | All pass | |
| Dev server | pnpm dev | Server starts | |
| Health check | curl http://[::1]:3000/health | 200 OK (IPv6-first) | |
| Basic flow | Run E2E test | Passes |
Smoke Test Script
Environment Documentation
README Section
Clone repository
git clone https://github.com/owner/repo.git cd repo
Run setup
./scripts/init.sh
Start development
pnpm dev
Maintaining Init Scripts
When to Update
Update the init script when:
- New prerequisite added
- New environment variable needed
- Build process changes
- New verification step needed
Version in Commit
When updating init script:
Troubleshooting
Common Issues
| Issue | Solution | |
|---|---|---|
| "command not found" | Install missing prerequisite | |
| "permission denied" | chmod +x scripts/init.sh | |
| "node version" | Use nvm: nvm use 18 | |
| "pnpm install failed" | Delete node_modules, try again | |
| "build failed" | Check for type errors, missing deps |
Reset Environment
When environment is in unknown state:
Checklist
Init script should:
- [ ] Check all prerequisites
- [ ] Verify correct versions
- [ ] Install dependencies
- [ ] Set up environment files
- [ ] Run build
- [ ] Run tests
- [ ] Start development services (if docker-compose exists)
- [ ] Verify services are ready (postgres, redis, etc.)
- [ ] Optionally start dev server
- [ ] Verify server responds (if started)
- [ ] Print clear success/failure
Environment documentation should:
- [ ] List prerequisites
- [ ] Explain quick start
- [ ] Document env variables
- [ ] Explain common issues
Integration
This skill is called by:
session-start- Beginning of each sessionerror-recovery- Resetting environment
This skill ensures:
- Consistent development environment
- Quick session startup
- Early detection of environment issues
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/environment-bootstrap/SKILL.md
Popularity
- Repository stars
- 11
- 7-day trend score
- 12
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 2 Apr 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/troykelly/claude-skills/environment-bootstrap)