Agent skill
deploy
Deploy feature to target environment (dev/staging/prod) with level-based strategy. Triggers: deploy, /pdca deploy, 배포, デプロイ, 部署, desplegar, déployer, bereitstellen, distribuire.
Install this agent skill to your Project
npx add-skill https://github.com/popup-studio-ai/bkit-claude-code/tree/main/skills/deploy
SKILL.md
Deploy Skill
Deploy code to target environment with automated CI/CD pipeline generation. Strategy adapts based on project level (Starter/Dynamic/Enterprise).
Usage
/pdca deploy {feature} # Deploy to default env (dev)
/pdca deploy {feature} --env dev # Deploy to DEV
/pdca deploy {feature} --env staging # Deploy to STAGING (requires DEV 90%+)
/pdca deploy {feature} --env prod # Deploy to PROD (requires STAGING 95%+ & Human Approval)
/pdca deploy status # Show deploy state machine status
Level-Based Strategy
| Level | Strategy | Environments | Tools |
|---|---|---|---|
| Starter | Guide only | dev | GitHub Pages, Netlify, Vercel |
| Dynamic | Docker + GHA | dev, staging | Docker Compose, GitHub Actions |
| Enterprise | 6-Layer CI/CD | dev, staging, prod | Terraform, EKS, ArgoCD, Canary |
Deploy Flow
/pdca deploy feature --env dev
│
▼
① Level Detection (Starter/Dynamic/Enterprise)
│
▼
② Generate CI/CD Files (if not exist)
├── .github/workflows/deploy.yml
├── Dockerfile (Dynamic/Enterprise)
├── docker-compose.yml (DEV)
├── k8s/ manifests (Enterprise)
└── terraform/ (Enterprise)
│
▼
③ Deploy State Machine Transition
init → dev → verify(90%) → staging → verify(95%) → approval → prod(canary) → complete
│
▼
④ Return to PDCA Check phase
Environment Promotion Gates
| Gate | Condition | Action |
|---|---|---|
| DEV → STAGING | Match Rate ≥ 90% | Auto-promote |
| STAGING → PROD | Match Rate ≥ 95% + Human Approval | Require /pdca deploy --env prod |
| PROD Canary | Error rate < threshold | Auto-rollout 10% → 25% → 50% → 100% |
Generated Files
Starter
- Deployment guide document only
Dynamic
.github/workflows/deploy.yml— Docker build + push + deployDockerfile— Multi-stage builddocker-compose.yml— DEV environment.env.example— Environment variables template
Enterprise (additional)
infra/terraform/— AWS infrastructureinfra/k8s/— Kubernetes manifestsinfra/argocd/— ArgoCD Application + Helm- Security scan steps in CI/CD
Rollback
/pdca deploy rollback {feature} # Rollback current deploy
/pdca deploy rollback {feature} --env prod # Rollback specific environment
Rollback triggers:
- Manual:
/pdca deploy rollbackcommand - Auto: Error rate spike detected by ops-metrics (> 5% threshold)
- Canary fail: Argo Rollouts auto-rollback on metrics failure
Rollback resets deploy state machine to idle and restores previous version.
Hook Events
| Event | When | Hook |
|---|---|---|
deploy-start |
Deploy initiated | Pre-validation |
deploy-complete |
Deploy successful | Post-notification |
deploy-failed |
Deploy failed | Error handling + rollback suggestion |
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
phase-5-design-system
zero-script-qa
Zero Script QA — test without scripts using structured JSON logging and Docker monitoring. Triggers: zero-script-qa, log testing, docker logs, QA, 제로 스크립트 QA.
phase-6-ui-integration
Implement frontend UI and integrate with backend APIs — state management and API clients. Triggers: UI integration, frontend-backend, API client, 프론트엔드 통합, UI 구현.
phase-3-mockup
Create UI/UX mockups and HTML/CSS/JS prototypes without a designer. Triggers: mockup, prototype, wireframe, UI design, 목업, 프로토타입.
desktop-app
Desktop app development guide — Electron and Tauri for cross-platform apps. Triggers: desktop app, Electron, Tauri, mac app, windows app, 데스크톱 앱.
btw
By-The-Way: 작업 중 개선 제안을 즉시 수집하고 관리하는 스킬. Triggers: /btw, /btw list, /btw analyze, /btw promote, /btw stats Keywords: btw, 개선, 제안, suggestion, improve, idea, feedback
Didn't find tool you were looking for?