بنقرة واحدة
deployment-procedures
Production deployment workflows, rollback strategies, and CI/CD best practices.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Production deployment workflows, rollback strategies, and CI/CD best practices.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | deployment-procedures |
| description | Production deployment workflows, rollback strategies, and CI/CD best practices. |
| version | 1.0.0 |
| allowed-tools | Read, Glob, Grep, Bash |
Every deployment is a risk. Minimize risk through preparation, not speed.
| Category | What to Check |
|---|---|
| Code Quality | Tests passing, linting clean, reviewed |
| Build | Production build works, no warnings |
| Environment | Env vars set, secrets current |
| Safety | Backup done, rollback plan ready |
1. PREPARE
└── Verify code, build, env vars
2. BACKUP
└── Save current state before changing
3. DEPLOY
└── Execute with monitoring open
4. VERIFY
└── Health check, logs, key flows
5. CONFIRM or ROLLBACK
└── All good? Confirm. Issues? Rollback.
| Phase | Principle |
|---|---|
| Prepare | Never deploy untested code |
| Backup | Can't rollback without backup |
| Deploy | Watch it happen, don't walk away |
| Verify | Trust but verify |
| Confirm | Have rollback trigger ready |
# Preview deploy (automatic on PR)
git push origin feature-branch
# Production deploy
git push origin main
# or
vercel --prod
# Deploy hosting
firebase deploy --only hosting
# Deploy functions
firebase deploy --only functions
# Build and push
docker build -t app:latest .
docker push registry/app:latest
# On server
docker pull registry/app:latest
docker-compose up -d
| Symptom | Action |
|---|---|
| 5xx errors | Rollback immediately |
| Critical feature broken | Rollback |
| Minor visual bug | Hotfix forward |
| Performance degradation | Evaluate, then decide |
| Platform | Method |
|---|---|
| Vercel | Redeploy previous commit, or use dashboard |
| Firebase | firebase hosting:rollback |
| Docker | Switch to previous image tag |
| Strategy | When to Use |
|---|---|
| Blue-Green | Multiple servers, quick switch |
| Rolling | Gradual, Kubernetes |
| Canary | Test with subset of users |
| ❌ Don't | ✅ Do |
|---|---|
| Deploy on Friday | Deploy early in week |
| Rush deployment | Follow the process |
| Skip staging | Always test first |
| Deploy without backup | Backup before deploy |
| Walk away after deploy | Monitor for 15+ min |
| Multiple changes at once | One change at a time |
Before deploying:
develop → staging (auto) → main → production (auto)
│ │ │
└── PR ────┴── Review ────┴── Deploy
main requires PR approvalGolden Rule: If in doubt, don't deploy. Wait, prepare, then deploy.
Pull request lifecycle domain knowledge — branch strategy detection, PR size classification, confidence-scored review, git-aware context, PR analytics, dependency management, and split/merge/describe operations.
Production readiness audit domains, weighted scoring criteria, and check specifications for the /preflight workflow.
Application scaffolding orchestrator. Creates full-stack applications from requirements, selects tech stack, coordinates agents.
Internationalization and localization patterns for multi-language applications
Mobile UI/UX patterns for iOS and Android. Touch-first, platform-respectful design with React Native/Expo focus.
Web application testing principles. E2E, Playwright, component testing, and deep audit strategies.