deployment-safety
Skill0 starsChanged 5 months agoMITView on GitHub
Ensure safe production deployments using canary, blue-green, and feature flag strategies. Use before deploying to production, when planning a release, when a deployment is going wrong, or when deciding whether to roll back. Trigger keywords: deploy, deployment, canary, rollback, roll back, release, feature flag, blue-green, progressive rollout, production push, ship, go live, hotfix, release train, deployment freeze, failed deploy, bad deploy, should I deploy, is it safe to deploy.
5 other projects use a version of this.
Adopted by
Most recently taken up by
- Ionate-Technologies/indium-agentkittheir own version, first seen Oct 20, 2026
- Indium-AI-Labs/indium-agentkittheir own version, first seen Oct 11, 2026
- adtn0810/truestacktheir own version, first seen Sep 12, 2026
- 05-deepak-patidar/claude-skillstheir own version, first seen Jul 7, 2026
- microsoft/PilotSwarmtheir own version, first seen Mar 6, 2026
Used with
Projects with it also use database-design.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
harrissohail6Skilldatabase-design
Database schema design and SQL best practices. Use when designing tables, writing queries, or optimizing database performance.
Also in 3 projects that use this
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- Indium-AI-Labs/indium-agentkit★ 18same name
- Ionate-Technologies/indium-agentkit★ 17same name
- microsoft/PilotSwarm★ 14same name
- 05-deepak-patidar/claude-skills★ 4same name
- adtn0810/truestack★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository21 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- capacity-planningSkill
- chaos-engineeringSkill
- cost-optimizationSkill
- iac-reviewSkill
- import-rcaSkill
- incident-responseSkill
- knowledge-captureSkill
- observabilitySkill
- oncall-handoffSkill
- oncall-runbookSkill
- postmortemSkill
- production-readiness-reviewSkill
- rca-summarySkill
- rfcSkill
- root-cause-analysisSkill
- runbook-generatorSkill
- security-postureSkill
- slo-monitoringSkill
- toil-trackingSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 3 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
Before loading context files, check if context/CONTEXT.md exists in the current directory.
- Distinctive: line 29
Use the answers inline for this session.
- Very specific: line 38
Read context/CONTEXT.md and context/company/tech-stack.md to determine:
- Distinctive: line 146
If error budget is at <10%: no non-critical deployments until budget recovers.
- Distinctive: line 148
Never deploy during a P0 or P1 incident unless the deploy is the rollback.
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Deployment Safety Skill
Setup Check
Before loading context files, check if context/CONTEXT.md exists in the current directory.
If context/CONTEXT.md exists — read it and proceed normally.
If context/CONTEXT.md does not exist — this skill was installed standalone (e.g. via npx skills add). Ask the user these questions before proceeding:
- Role —
junior-sre/senior-sre/sre-manager(shapes output depth and tone) - Cloud provider —
aws/gcp/azure/on-prem/hybrid - Observability stack — e.g. Datadog, Prometheus+Grafana, New Relic
- Company name and primary services affected (if relevant to this task)
Use the answers inline for this session. For persistent setup across all skills, suggest:
pipx install sre-agent
sre-agent initInstructions
Step 1: Load Context
Read context/CONTEXT.md and context/company/tech-stack.md to determine:
- Deployment tool (ArgoCD, Spinnaker, GitHub Actions, etc.)
- Deployment strategy (canary, blue-green, rolling)
- Feature flag tool (LaunchDarkly, etc.)
- Current SLO status (from
context/CONTEXT.md)
Step 2: Determine the Mode
- Pre-deployment review — user wants to deploy something
- Active deployment — deployment is in progress
- Rollback decision — something went wrong post-deploy
Mode: Pre-Deployment Review
Risk Classification
Score the change on these dimensions:
| Dimension | Low (0) | Medium (1) | High (2) |
| Change scope | Config change | New feature | Schema migration |
| Services affected | 1 service | 2–3 services | Core infrastructure |
| Data mutations | None | Read path | Write path |
| Traffic affected | <5% of users | 5–50% | All users |
| Rollback complexity | Instant | Minutes | Hours or impossible |
| Time of day | Off-peak | Business hours | Peak hours |
Total score:
- 0–3: Green — standard deploy
- 4–6: Yellow — canary required
- 7+: Red — requires manager approval + canary + feature flag
Pre-Deploy Checklist
- Change has been reviewed and approved
- Tests pass in CI (unit, integration, e2e)
- Staging deployment was successful
- Monitoring dashboards are open and baselines noted
- Rollback procedure is documented and tested
- On-call engineer is aware of the deployment
- Feature flag available to disable the change without a deploy (for high-risk changes)
- Database migrations are backwards-compatible (no blocking locks, no data loss)
- Traffic volume is not at peak (for high-risk changes)
Recommended Deployment Strategy (by risk score)
- Green (0–3): Rolling update, monitor for 15 minutes
- Yellow (4–6): Canary — 5% → 25% → 100% with 10-minute bake time per stage
- Red (7+): Canary + feature flag — deploy code off, enable flag for 1% → 10% → 100%
Rollback Trigger Conditions
Define before every deployment:
Rollback immediately if:
- Error rate increases by > <N>% compared to pre-deploy baseline
- P99 latency increases by > <X>ms compared to pre-deploy baseline
- Any new exception type appears in logs
- On-call engineer's gut says something is wrong (trust this)Mode: Active Deployment (monitoring)
During a canary deployment, check these signals at each stage:
- Error rate: current vs. baseline
- Latency P99: current vs. baseline
- Saturation: CPU / memory on new pods vs. old pods
- Business metrics: conversion rate, order volume (if accessible)
Provide a go/no-go recommendation for each canary stage.
Mode: Rollback Decision
Ask:
- What metric or error triggered the concern?
- How many users are affected?
- Is the issue getting worse or stable?
Roll back immediately (no debate) if:
- Error rate is increasing and not stabilizing
- Data corruption is suspected
- The on-call engineer cannot confidently diagnose the cause within 10 minutes
Consider waiting (with close monitoring) if:
- Error rate is elevated but stable and small subset of users
- Root cause is known and a forward fix is possible in < 30 minutes
Rollback Command (output for manual execution)
For ArgoCD:
# Roll back to previous revision — run this yourself:
argocd app rollback <app-name> <revision-number>For kubectl:
# Roll back to previous deployment — run this yourself:
kubectl rollout undo deployment/<name> -n <namespace>
# Verify rollback:
kubectl rollout status deployment/<name> -n <namespace>Guidelines
- If error budget is at <10%: no non-critical deployments until budget recovers.
- Hotfixes bypass risk scoring but still require the pre-deploy checklist.
- Never deploy during a P0 or P1 incident unless the deploy is the rollback.
- Persona (junior-sre): always require a second person to verify rollback trigger conditions before initiating a rollback.
- Persona (sre-manager): include a go/no-go sign-off section for high-risk deploys.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

