deploy
Production deployment with pre-flight checks and verification. Use when: "deploy", "ship", "release", "go live", "push to prod", "publish", "launch"
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Production deployment with pre-flight checks and verification. Use when: "deploy", "ship", "release", "go live", "push to prod", "publish", "launch"
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Full codebase audit: architecture health, dependencies, complexity, tech debt. Use when: "audit", "health check", "codebase analysis", "tech debt", "architecture review", "dependency check", "code quality"
Structured brainstorming with multiple approaches and tradeoffs. Use when: "brainstorm", "explore options", "what are my options", "compare approaches", "pros and cons", "which is better", "how should I", "alternatives"
Build error diagnosis and resolution. Use when: "build failed", "compile error", "bundler error", "fix build", "npm error", "type error", "won't compile"
Scaffold a new application with interactive dialogue. Use when: "create", "build me", "make an app", "new project", "scaffold", "generate app", "start new"
Generate a new custom skill from natural language description. Use when: "create skill", "new skill", "make a skill", "add command", "custom workflow", "skill template", "generate skill"
Systematic debugging with hypothesis-driven investigation. Use when: "debug", "not working", "bug", "broken", "error", "unexpected behavior", "fix issue", "investigate"
| name | deploy |
| description | Production deployment with pre-flight checks and verification. Use when: "deploy", "ship", "release", "go live", "push to prod", "publish", "launch" |
| argument-hint | [check|preview|production|rollback] |
| user-invocable | true |
| disable-model-invocation | true |
$ARGUMENTS
This command handles production deployment with pre-flight checks, deployment execution, and verification.
/deploy - Interactive deployment wizard
/deploy check - Run pre-deployment checks only
/deploy preview - Deploy to preview/staging
/deploy production - Deploy to production
/deploy rollback - Rollback to previous version
Before any deployment:
## 🚀 Pre-Deploy Checklist
### Code Quality
- [ ] No TypeScript errors (`npx tsc --noEmit`)
- [ ] ESLint passing (`npx eslint .`)
- [ ] All tests passing (`npm test`)
### Security
- [ ] No hardcoded secrets
- [ ] Environment variables documented
- [ ] Dependencies audited (`npm audit`)
### Performance
- [ ] Bundle size acceptable
- [ ] No console.log statements
- [ ] Images optimized
### Documentation
- [ ] README updated
- [ ] CHANGELOG updated
- [ ] API docs current
### Ready to deploy? (y/n)
┌─────────────────┐
│ /deploy │
└────────┬────────┘
│
▼
┌─────────────────┐
│ Pre-flight │
│ checks │
└────────┬────────┘
│
Pass? ──No──► Fix issues
│
Yes
│
▼
┌─────────────────┐
│ Build │
│ application │
└────────┬────────┘
│
▼
┌─────────────────┐
│ Deploy to │
│ platform │
└────────┬────────┘
│
▼
┌─────────────────┐
│ Health check │
│ & verify │
└────────┬────────┘
│
▼
┌─────────────────┐
│ ✅ Complete │
└─────────────────┘
## 🚀 Deployment Complete
### Summary
- **Version:** v1.2.3
- **Environment:** production
- **Duration:** 47 seconds
- **Platform:** Vercel
### URLs
- 🌐 Production: https://app.example.com
- 📊 Dashboard: https://vercel.com/project
### What Changed
- Added user profile feature
- Fixed login bug
- Updated dependencies
### Health Check
✅ API responding (200 OK)
✅ Database connected
✅ All services healthy
## ❌ Deployment Failed
### Error
Build failed at step: TypeScript compilation
### Details
error TS2345: Argument of type 'string' is not assignable...
### Resolution
1. Fix TypeScript error in `src/services/user.ts:45`
2. Run `npm run build` locally to verify
3. Try `/deploy` again
### Rollback Available
Previous version (v1.2.2) is still active.
Run `/deploy rollback` if needed.
| Platform | Command | Notes |
|---|---|---|
| Vercel | vercel --prod | Auto-detected for Next.js |
| Railway | railway up | Needs Railway CLI |
| Fly.io | fly deploy | Needs flyctl |
| Docker | docker compose up -d | For self-hosted |
/deploy
/deploy check
/deploy preview
/deploy production --skip-tests
/deploy rollback