| name | source-command-deploy-production |
| description | Design and deploy production infrastructure. IaC, CI/CD, monitoring, security hardening, operational docs. |
source-command-deploy-production
Use this skill when the user asks to run the migrated source command deploy-production.
Command Template
Deploy Production
Purpose
Design and deploy production infrastructure with security-first approach. Creates IaC, CI/CD pipelines, monitoring, and comprehensive operational documentation.
Invocation
/deploy-production
/deploy-production background
Agent
Launches deploying-infrastructure from skills/deploying-infrastructure/.
See: skills/deploying-infrastructure/SKILL.md for full workflow details.
Prerequisites
- PRD, SDD, and sprint plan created
- Sprints implemented and approved
- Security audit passed (recommended)
Workflow
- Project Review: Read PRD, SDD, sprint plan, implementation reports
- Requirements Clarification: Ask about cloud, scaling, security, budget
- Infrastructure Design: IaC, networking, compute, data, security
- Implementation: Provision resources, configure services
- Deployment: Execute with zero-downtime strategies
- Monitoring Setup: Observability, alerting, dashboards
- Documentation: Create runbooks and operational docs
- Knowledge Transfer: Handover with critical info
- Analytics: Update usage metrics (THJ users only)
- Feedback: Suggest
/feedback command
Arguments
| Argument | Description | Required |
|---|
background | Run as subagent for parallel execution | No |
Outputs
| Path | Description |
|---|
grimoires/loa/deployment/infrastructure.md | Architecture overview |
grimoires/loa/deployment/deployment-guide.md | How to deploy |
grimoires/loa/deployment/runbooks/ | Operational procedures |
grimoires/loa/deployment/monitoring.md | Dashboards, alerts |
grimoires/loa/deployment/security.md | Access, secrets |
grimoires/loa/deployment/disaster-recovery.md | Backup, failover |
grimoires/loa/a2a/deployment-report.md | Report for audit |
Requirements Clarification
The architect will ask about:
- Deployment Environment: Cloud provider, regions
- Blockchain/Crypto: Chains, nodes, key management
- Scale and Performance: Traffic, data volume, SLAs
- Security and Compliance: SOC 2, GDPR, secrets
- Budget and Cost: Constraints, optimization
- Team and Operations: Size, on-call, tools
- Monitoring: Metrics, channels, retention
- CI/CD: Repository, branch strategy, deployment
- Backup and DR: RPO/RTO, frequency, failover
Quality Standards
- Infrastructure as Code (version controlled)
- Security (defense in depth, least privilege)
- Monitoring (comprehensive before going live)
- Automation (CI/CD fully automated)
- Documentation (complete operational docs)
- Tested (staging tested, DR validated)
- Scalable (handles expected load)
- Cost-Optimized (within budget)
- Recoverable (backups tested, DR in place)
Error Handling
| Error | Cause | Resolution |
|---|
| "PRD not found" | Missing prd.md | Run /plan-and-analyze first |
| "SDD not found" | Missing sdd.md | Run /architect first |
| "Sprint plan not found" | Missing sprint.md | Run /sprint-plan first |
Feedback Loop
After deployment, run /audit-deployment for security review:
/deploy-production
↓
[deployment-report.md created]
↓
/audit-deployment
↓
[feedback or approval]
↓
If issues: fix and re-run /deploy-production
If approved: Ready for production
Next Step
After deployment: /audit-deployment for infrastructure security audit