Analyze deployment processes and create a deployment improvement plan
Analyzes deployment processes and creates a comprehensive improvement plan for CI/CD pipelines and release management
/plugin marketplace add dgriffith/bad-daves-robot-army/plugin install dgriffith-bad-daves-robot-army@dgriffith/bad-daves-robot-armyUsing @agent-deployment-specialist prepare a deployment review report. You must analyze deployment processes, CI/CD pipelines, and release management practices in the codebase and create a comprehensive plan WITHOUT making any changes.
The user invoked: /deployment-review {optional_scope}
Valid scopes:
git status and git diff)git log and git diff)gh pr view and gh pr diff)If scope is "current changes":
git status to identify changed filesgit diff to see uncommitted changesIf scope is "recent changes":
git log --oneline -10 to see recent commitsgit diff HEAD~5..HEAD or appropriate rangeIf scope starts with "PR":
gh pr view {number} to get PR detailsgh pr diff {number} to get the changesIf scope is a path:
If no scope provided:
Deployment Process Review
Automation Assessment
Risk and Reliability Analysis
Create a markdown file at /reports/deployment-review-{timestamp}.md with:
# Deployment Review Plan
Generated: {timestamp}
Scope: {full_path_or_entire_project}
## Executive Summary
Brief overview of deployment maturity and critical findings
## Deployment Process Findings
### Critical Issues (High Risk)
- [ ] Manual deployment steps: Process X
- [ ] No rollback mechanism: Service Y
- [ ] Missing health checks: Component Z
### High Priority Issues
- [ ] Inconsistent environments: Dev/Staging/Prod
- [ ] No automated testing: Pipeline A
- [ ] Configuration drift: Service B
### Medium Priority Issues
- [ ] Slow build times: Module C
- [ ] Limited deployment visibility: System D
## Current Deployment Assessment
### Pipeline Overview
- CI/CD Tool: Current platform
- Build time: Average duration
- Deployment frequency: X per day/week
- Success rate: Y%
- MTTR: Z minutes
### Deployment Stages
- Build: Process and duration
- Test: Coverage and types
- Deploy: Method and targets
- Verify: Health checks and monitoring
## Deployment Improvement Plan
### Immediate Actions (1-3 days)
1. Add deployment health checks
2. Document rollback procedures
3. Implement basic monitoring
### Short-term Improvements (1-2 weeks)
1. Automate manual deployment steps
2. Add integration tests to pipeline
3. Implement configuration management
### Long-term Transformations (2-6 weeks)
1. Implement blue-green deployments
2. Add progressive rollout capabilities
3. Create full GitOps workflow
## Automation Opportunities
### Build Optimization
- Parallel build steps
- Dependency caching
- Incremental builds
- Build time target: X minutes
### Test Automation
- Unit test coverage: Current → Target
- Integration tests: Add X tests
- E2E tests: Implement Y scenarios
- Performance tests: Add benchmarks
### Deployment Automation
- Environment provisioning
- Database migrations
- Configuration updates
- Smoke tests
## Zero-Downtime Strategy
### Implementation Plan
1. Add health check endpoints
2. Implement graceful shutdown
3. Configure load balancer
4. Enable rolling updates
### Feature Flag Strategy
- Tool selection
- Flag lifecycle management
- A/B testing capabilities
- Gradual rollout process
## Environment Management
### Consistency Improvements
- Infrastructure as Code adoption
- Environment parity checklist
- Configuration templating
- Secret management
### Environment Pipeline
- Development: Purpose and refresh
- Staging: Production mirror
- Production: High availability
- DR environment: Setup plan
## Monitoring and Observability
### Deployment Metrics
- Deploy frequency
- Lead time for changes
- MTTR tracking
- Change failure rate
### Alerting Strategy
- Deployment notifications
- Failure alerts
- Performance degradation
- Rollback triggers
## Security Integration
### Pipeline Security
- SAST implementation
- Dependency scanning
- Container scanning
- Secret detection
### Compliance Checks
- Policy as code
- Audit logging
- Access controls
- Approval workflows
## Risk Mitigation
### Deployment Risks
- Database migration risks
- Service dependency risks
- Configuration risks
- Performance risks
### Mitigation Strategies
- Canary deployments
- Feature flags
- Automated rollback
- Deployment windows
## Release Management
### Version Strategy
- Semantic versioning
- Release notes automation
- Changelog generation
- Tag management
### Communication Plan
- Stakeholder notifications
- User announcements
- Documentation updates
- Training needs
## Estimated Benefits
- Deployment frequency: X → Y per day
- Lead time: A → B hours
- MTTR: C → D minutes
- Change failure rate: E% → F%
## Implementation Roadmap
### Week 1-2: Foundation
- Health checks and monitoring
- Basic automation
- Documentation
### Week 3-4: Acceleration
- Advanced automation
- Testing integration
- Performance optimization
### Week 5-6: Excellence
- Zero-downtime deployment
- Progressive delivery
- Full observability
## Success Metrics
- Deployment success rate > 95%
- Rollback time < 5 minutes
- Build time < 10 minutes
- Full automation achieved
YOU MUST CREATE THE REPORT FILE. This is not optional.
Create the report file using the Write tool at the specified path:
/reports/{command-name}-{scope}-{timestamp}.mdYYYY-MM-DD-HHmmss/reports/architecture-review-entire-project-2025-10-14-143022.mdFill in ALL sections of the report template
Confirm completion by telling the user:
❌ DON'T: Just summarize findings in the chat ❌ DON'T: Say "I'll create a report" without actually doing it ❌ DON'T: Leave sections incomplete or with placeholders ❌ DON'T: Forget to use the Write tool
✅ DO: Always use the Write tool to create the markdown file ✅ DO: Fill in every section with real findings ✅ DO: Provide the full path to the user when done ✅ DO: Include actionable recommendations
Before responding to the user, verify:
Remember: The report is the primary deliverable. The chat summary is secondary.