Deploy Skill
Purpose
Automate the deployment pipeline: build → test → deploy → verify.
Prerequisites
- All tests passing
- Environment variables configured
- Access to deployment target
Steps
1. Verify Clean State
bashgit status git pull origin main
2. Run Tests
bashnpm test
If tests fail → STOP. Report failures.
3. Build
bashnpm run build
4. Deploy by Environment
Development:
bashdocker-compose -f docker-compose.dev.yml up -d --build
Production:
bashdocker-compose -f docker-compose.prod.yml pull docker-compose -f docker-compose.prod.yml up -d
5. Health Check
bashcurl -f http://localhost:3000/health || echo "Health check failed"
6. Tail Logs (first 30 seconds)
bashdocker-compose logs --tail=50 -f app
Rollback
bashgit revert HEAD --no-edit git push origin main # Redeploy previous version
Success Criteria
- Health endpoint returns 200
- No error logs in initial 30 seconds
- All smoke tests pass


