ai-output-validation
Validates, parses, and sanitizes AI-generated outputs before they reach end users or downstream systems. Structured output enforcement, schema validation, and…
Zero-downtime deployments with pre-flight checks, staged rollouts, and rollback plans. Never ship to production without a verified rollback strategy.
$ npx -y skills add DevelopersGlobal/ai-agent-skills --skill production-deployment --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/production-deploymentContext preview
The summary Claude sees to decide when to auto-load this skill.
Zero-downtime deployments with pre-flight checks, staged rollouts, and rollback plans. Never ship to production without a verified rollback strategy.
name: production-deployment description: Zero-downtime deployments with pre-flight checks, staged rollouts, and rollback plans. Never ship to production without a verified rollback strategy. category: ship applies-to: [claude, gemini, cursor, copilot, any] version: 1.0.0
Production is not a test environment. Every deployment is a live operation with real consequences — user impact, data integrity risks, and potential outages. This skill encodes the discipline senior engineers apply before, during, and after every production deployment.
The core rule: **never deploy without a rollback plan you've verified can execute in under 5 minutes.**
1. **All tests pass** — CI is green on the exact commit being deployed. Not "mostly green." 2. **Migrations are backward-compatible** — The old code must work with the new schema (for zero-downtime). New columns are nullable; columns aren't dropped until after full rollout. 3. **Feature flags configured** — New features are behind flags, off by default. 4. **Rollback plan written** — Document exactly how to rollback: which commands, which configs, estimated time. 5. **Deployment window confirmed** — Low-traffic period? On-call engineer available? 6. **Stakeholders notified** — Anyone affected by downtime or behavior change knows.
**Verify:** All 6 checklist items confirmed. Do not proceed if any is blocked.
7. Never deploy to 100% of traffic immediately. Use a staged rollout:
8. Monitor key metrics at each stage for at least 15 minutes before expanding:
9. **Define your abort threshold before starting**: *"If error rate exceeds X% or latency p99 exceeds Y ms, rollback immediately."*
**Verify:** Rollout stages and abort thresholds are documented before deployment begins.
10. Execute the deployment using your CI/CD pipeline (not manual commands). 11. Monitor dashboards in real-time during the rollout. 12. Keep communication channel open with on-call engineer. 13. Do not perform any other changes during a deployment (no "quick fixes").
**Verify:** Deployment running via CI/CD, dashboards being monitored actively.
14. Smoke tests pass on production. 15. Key user journeys manually verified. 16. Error rate within normal range (15 minutes post-deploy). 17. No unexpected alerts triggered. 18. Run post-deploy integration tests if available.
**Verify:** All post-deploy checks confirmed green. Deployment marked successful.
19. If any abort threshold is hit: **rollback immediately, without debate.** 20. Execute the pre-written rollback plan. 21. Verify rollback complete: service restored, error rate normalized. 22. Write an incident report — even for near-misses.
**Verify:** Rollback completes in under 5 minutes. Service restored.
| Excuse | Rebuttal | |--------|----------| | "It works in staging" | Staging is not production. Different data, traffic, and configuration. | | "It's just a small change" | Small changes cause the majority of outages. | | "We don't have time for staged rollout" | You have even less time for an incident. | | "I'll watch it for a few minutes" | 15 minutes minimum. Most production failures take time to materialize under load. | | "We can rollback if needed" | Do you have a written, tested rollback plan? No? Then you can't. |
AI agent skills for production grade applications
Validates, parses, and sanitizes AI-generated outputs before they reach end users or downstream systems. Structured output enforcement, schema validation, and…
Design stable, versioned, self-documenting APIs. Easy to use correctly, hard to use incorrectly. Apply Hyrum's Law from day one.
Automated quality gates from commit to production. Every merge to main is potentially shippable. No manual steps in the deployment path.
Get layered, context-aware explanations of unfamiliar code. Understand what it does, why it was written that way, and how to work with it safely.
Structured code review focusing on correctness, security, and maintainability. Correctness before style. Every reviewer comment must be actionable.
Load minimum necessary context into agent context windows. Prevents token bloat, reduces cost, and improves focus. Only load what the current task needs.