Deployment execution independent of model capability
deprecation-risk
none
effort
high
description
Deploy feature to target environment (dev/staging/prod) with level-based strategy.
Triggers: deploy, /pdca deploy, 배포, デプロイ, 部署, desplegar, déployer, bereitstellen, distribuire.
argument-hint
[feature] [--env dev|staging|prod]
user-invocable
true
agents
{"orchestrator":"bkit:infra-architect"}
allowed-tools
["Read","Write","Edit","Glob","Grep","Bash"]
pdca-phase
do
task-template
[Deploy] {feature}
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
/pdca deploy rollback {feature} # Rollback current deploy
/pdca deploy rollback {feature} --env prod # Rollback specific environment
Rollback triggers:
Manual: /pdca deploy rollback command
Auto: Error rate spike detected by ops-metrics (> 5% threshold)
Canary fail: Argo Rollouts auto-rollback on metrics failure
Self-healing escalation: When self-healing agent exhausts its 5-iteration auto-fix budget without restoring SLO, it triggers /pdca deploy rollback as final remediation (see Self-Healing Integration below).
Rollback resets deploy state machine to idle and restores previous version.
Self-Healing Integration (v2.1.13)
The self-healing agent (linked-from-skills: deploy) closes the deploy ⇄ recovery loop:
Explicit: /pdca deploy rollback first checks for active self-healing session and aborts to wait for it; user can force-bypass with --force-rollback
The self-healing → deploy contract is mediated by lib/audit/audit-logger.js ACTION_TYPES (rollback_executed, agent_completed, gate_failed) so all transitions remain audit-trail compliant.