name: deploy description: Safe deployment workflow with pre-checks and rollback capability
Deploy Skill
Pre-Deployment Checks
- • All tests passing
- • No uncommitted changes
- • Version bumped
- • Changelog updated
- • Branch is up to date with main
Safety Rules
- •NEVER deploy on Friday after 3pm
- •ALWAYS create a backup before deploying
- •REQUIRE manual confirmation for production
Workflow
1. Pre-flight Check
bash
git status # Check for uncommitted changes npm test # Run tests npm run build # Verify build succeeds
2. Version Bump (if needed)
bash
npm version patch|minor|major
3. Deploy
Vercel
bash
vercel --prod
Docker
bash
docker build -t app:latest . docker push registry/app:latest
Custom
bash
npm run deploy
4. Post-Deploy Verification
- •Check health endpoint
- •Monitor logs for errors
- •Verify critical user flows
- •Check error tracking dashboard
Rollback Plan
If issues detected:
- •Revert to previous version
- •Check logs for root cause
- •Fix and re-deploy
- •Document incident
Notifications
Notify team in #deployments channel:
- •What was deployed
- •Any notable changes
- •Who to contact for issues