<< All versions
Skill v1.0.0
currentTrusted Publisher100/100microsoft/pilotswarm/deployment-safety
──Details
PublishedOctober 6, 2026 at 02:23 PM
Content Hashsha256:2f57fba0532d5e7b...
Git SHA
──Files
Files (1 file, 1.5 KB)
SKILL.md1.5 KBactive
SKILL.md · 46 lines · 1.5 KB
version: "1.0.0" name: deployment-safety description: Deployment best practices — canary patterns, rollback triggers, and health check interpretation.
Deployment Safety
Pre-Flight Checks
Before any deployment, verify:
- Service health: All health checks passing (status = "healthy")
- Error rate baseline: Current error rate < 2% (deploying into an already-degraded service is risky)
- CPU headroom: CPU < 70% (deployment causes brief CPU spikes)
- No active incidents: Check if the service is currently under investigation
- Recent deploys: No other deployment to the same service in the last 10 minutes
Rollback Triggers
Automatically recommend rollback if ANY of these occur post-deploy:
| Metric | Threshold | Window | |
|---|---|---|---|
| Error rate increase | > 2% above baseline | 2 minutes | |
| Health check failure | Any check fails | Immediate | |
| CPU spike | > 95% sustained | 1 minute | |
| Response time increase | > 50% above baseline | 2 minutes |
Deployment Monitoring Pattern
Deploy → Wait 30s → Check metrics → Wait 30s → Check metrics → Verdict
- Minimum 2 check cycles before declaring success
- If first check shows degradation, wait for second check to confirm
- If both checks show degradation, recommend rollback
Rollback Procedure
- Call
rollback_servicewith the deployment ID - Wait 30 seconds for rollback to complete
- Verify health checks are passing again
- Report final status to the user