<< All versions
Skill v1.0.1
currentAutomated scan100/100sir-chawakorn/power-ranger-toolkit/env-setup
3 files
──Details
PublishedOctober 20, 2026 at 08:51 PM
Content Hashsha256:5f64b53e46ba001d...
Git SHAda26dc2dcc16
Bump Typepatch
──Files
Files (1 file, 2.5 KB)
SKILL.md2.5 KBactive
SKILL.md · 145 lines · 2.5 KB
version: "1.0.1"
🔧 Environment Setup Skill
name: env-setup description: Setup and configure development environments for various tech stacks
🎯 Purpose
ตั้งค่า development environment สำหรับ tech stacks ต่างๆ อย่างถูกต้องและครบถ้วน
📋 When to Use
- Start new project
- Onboard new developer
- Setup CI/CD
- Configure new machine
- Troubleshoot env issues
🔧 Environment Components
1. Package Managers
bash
# Node.jsnvm install 20nvm use 20npm install -g pnpm# Pythonpyenv install 3.11pyenv local 3.11pip install pipenv
2. Editor Config
ini
# .editorconfigroot = true[*]indent_style = spaceindent_size = 2end_of_line = lfcharset = utf-8trim_trailing_whitespace = trueinsert_final_newline = true
3. Environment Variables
bash
# .env.exampleDATABASE_URL=postgresql://user:pass@localhost:5432/dbAPI_KEY=your-api-keyNODE_ENV=development
4. Git Hooks
bash
# Setup huskynpx husky-init && npm installnpx husky add .husky/pre-commit "npm run lint"npx husky add .husky/commit-msg "npx commitlint --edit $1"
📝 Project Setup Templates
React/Vite
bash
npm create vite@latest my-app -- --template react-tscd my-appnpm installnpm run dev
Next.js
bash
npx create-next-app@latest my-app --typescript --tailwind --eslintcd my-appnpm run dev
Python/FastAPI
bash
mkdir my-api && cd my-apipython -m venv venvsource venv/bin/activatepip install fastapi uvicorn
📋 Environment Checklist
Development
- [ ] Node.js version correct
- [ ] Package manager installed
- [ ] Dependencies installed
- [ ] Environment variables set
- [ ] Editor extensions installed
- [ ] Git hooks configured
- [ ] Database running
- [ ] Dev server works
Production
- [ ] Build succeeds
- [ ] Env vars configured
- [ ] Database migrated
- [ ] SSL configured
- [ ] Logs configured
- [ ] Health checks work
🔧 Common Issues
| Issue | Solution | |
|---|---|---|
| Node version wrong | Use nvm | |
| Deps not installing | Clear cache, reinstall | |
| Env vars undefined | Check .env, restart | |
| Port in use | Kill process or change port |
✅ Setup Verification
bash
# Check versionsnode --versionnpm --versionpython --version# Check envecho $DATABASE_URL# Test buildnpm run build# Run testsnpm test
🔗 Related Skills
project-setup- Full project setupcontainerization- Docker setupci-cd-pipeline- CI/CD setup