<< All versions

Skill v1.0.0

currentTrusted Publisher100/100
microsoft/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:

  1. Service health: All health checks passing (status = "healthy")
  2. Error rate baseline: Current error rate < 2% (deploying into an already-degraded service is risky)
  3. CPU headroom: CPU < 70% (deployment causes brief CPU spikes)
  4. No active incidents: Check if the service is currently under investigation
  5. 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:

MetricThresholdWindow
Error rate increase> 2% above baseline2 minutes
Health check failureAny check failsImmediate
CPU spike> 95% sustained1 minute
Response time increase> 50% above baseline2 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

  1. Call rollback_service with the deployment ID
  2. Wait 30 seconds for rollback to complete
  3. Verify health checks are passing again
  4. Report final status to the user
All versions