Pre-deployment review — runs infra-review + compliance + secrets scan + cost-review as a comprehensive gate
Scope: $ARGUMENTS
Run a comprehensive pre-deployment review by checking all critical dimensions. Execute each section in order and produce a unified report.
Review all IaC files (Terraform, K8s manifests, Helm charts, Dockerfiles) in scope:
Check against applicable frameworks:
Scan code and config for hardcoded secrets:
Identify cost optimization opportunities:
## Deploy Review: [scope]
### Gate Status: ✅ PASS / ❌ FAIL / ⚠️ WARNINGS
### Infrastructure
| Finding | Severity | File | Fix |
|---------|----------|------|-----|
### Compliance
| Control | Status | Remediation |
|---------|--------|-------------|
### Secrets
| Type | Location | Action |
|------|----------|--------|
### Cost
| Opportunity | Current | Recommended | Savings |
|-------------|---------|-------------|---------|
### Summary
- Critical blockers: X
- Warnings: Y
- Cost savings: $Z/month
- Recommendation: [deploy / fix first / review required]