| name | deploy |
| description | Skill to automate the full deployment process including build, test, and release steps |
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
git status
git pull origin main
2. Run Tests
npm test
If tests fail → STOP. Report failures.
3. Build
npm run build
4. Deploy by Environment
Development:
docker-compose -f docker-compose.dev.yml up -d --build
Production:
docker-compose -f docker-compose.prod.yml pull
docker-compose -f docker-compose.prod.yml up -d
5. Health Check
curl -f http://localhost:3000/health || echo "Health check failed"
6. Tail Logs (first 30 seconds)
docker-compose logs --tail=50 -f app
Rollback
git revert HEAD --no-edit
git push origin main
Success Criteria
- Health endpoint returns 200
- No error logs in initial 30 seconds
- All smoke tests pass