| name | deploy |
| description | Use this skill to help deploy code to an environment. Triggered by
"deploy", "deploy to staging", "deploy to production", "ship it".
|
| argument-hint | [environment: staging|production|preview] |
| allowed-tools | Bash, Read |
| disable-model-invocation | true |
Deployment Helper
Safely deploy to $ARGUMENTS (defaults to staging if not specified).
Pre-Deploy Checklist
!git status && echo "---" && git log --oneline -3
1. Environment Confirmation
Target: $ARGUMENTS
⚠️ If deploying to production, I will explicitly confirm with you before running any deploy commands.
2. Pre-flight Checks
git status
npm test
npm run lint
npm audit --audit-level=high
npm run build
3. Deploy Steps
Depending on your setup, deploy with one of:
vercel --prod
vercel
railway up
fly deploy
cdk deploy
sam deploy
kubectl apply -f k8s/ --namespace=production
docker-compose -f docker-compose.prod.yml up -d
git push heroku main
gh workflow run deploy.yml --ref main -f environment=$ARGUMENTS
4. Post-Deploy Verification
curl -f https://your-app.com/health
5. Rollback (if needed)
Rules
- Always run tests before deploying
- Always confirm before deploying to production
- Keep a rollback plan ready
- Monitor error rates for 10 minutes post-deploy
$ARGUMENTS