Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Release And Rollback

ASecurity

Plans a deployment so every step is independently reversible and the result is observable: rollback first, then sequencing, feature flags, canary or percentage rollout, abort criteria, and alerting. Use before shipping to production, when a release involves a migration or a flag, or when a change has no rollback path yet.

9 stars
0 votes
0 copies
0 views
Added 9/27/2026
ai-agentsrustgo

Security Analysis

A100/100

Scanned 9/27/2026

Install to Claude Code

$npx -y skills add khuynh22/agent-dev-team --skill release-and-rollback --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Release And Rollback?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Release And Rollback
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/khuynh22-release-and-rollback/badge)](https://www.skillsdirectory.com/skills/khuynh22-release-and-rollback)

More formats (shields.io, HTML) on the badges page.

Download with Pro
Files
SKILL.md
---
name: release-and-rollback
description: Plans a deployment so every step is independently reversible and the result is observable: rollback first, then sequencing, feature flags, canary or percentage rollout, abort criteria, and alerting. Use before shipping to production, when a release involves a migration or a flag, or when a change has no rollback path yet.
license: MIT
metadata:
  phase: ship
  owners: [sre]
  version: "0.1.0"
---

# Release and Rollback

Plan the rollback before the rollout. A change that cannot be undone or observed is not
ready, whatever its tests say.

## Process

1. **Answer the rollback question first.** What single action undoes this, how long does it
   take, and can someone do it at 3am from a phone? If there is no answer, stop here and
   escalate; that is a design problem, not a release problem.

2. **Sequence so each step is independently reversible.** The safe shape for a data change
   is four deploys, not one:

   1. Schema change that is backward compatible (add, do not rename or drop).
   2. Code that writes both shapes and reads the old one.
   3. Code that reads the new shape.
   4. Removal of the old shape, after usage is measured at zero.

   Four reversible deploys beat one irreversible one every time.

3. **Choose the rollout shape and the abort criterion together.** Canary, percentage,
   ring, or flag. The abort criterion is a number measured from a named query, decided
   before the rollout starts. Deciding it in the moment, while looking at a graph you want
   to look good, does not work.

4. **Make it observable before it ships.** You must be able to answer from telemetry alone:
   is the new path being taken, is it succeeding, how long does it take. Write the three
   queries down. See `references/observability-checklist.md`.

5. **Feature flags with a lifecycle.** A flag has an owner, a default, a removal date, and
   someone who can flip it without a deploy. A flag with no removal plan becomes permanent
   configuration and doubles the state space forever.

6. **Write the runbook for the alert, not for the service.** The reader is woken up and has
   five minutes.

7. **Check the pipeline.** Reproducible build, pinned toolchain, no secret in scope for
   untrusted pull-request code, and a green run you can point at.

## Release plan

```markdown
## Release: <change>
- **Rollback:** <single action> — takes <duration> — executed in staging: yes/no
- **Steps:** <ordered, each independently reversible>
- **Flag:** <name, default, who can flip it, removal date>
- **Rollout:** <canary %, soak duration, then next stage>
- **Abort if:** <metric crosses <threshold>, from query `<q>`>
- **Observability:** <the three queries: taken / succeeding / duration>
- **Runbook:** <path>
- **Blast radius if wrong:** <who, how many, for how long>
```

## Runbook

```markdown
# Alert: <name>
**Means:** <the user-visible symptom>
**Check first:** <one dashboard or query>
**Common causes:** <ranked, each with its distinguishing signal>
**Mitigation:** <the action that stops the bleeding, before diagnosis>
**Escalate to:** <who, and when>
```

## Migrations

- Run it forward against a copy of realistic production data, not a fixture.
- Execute the rollback at least once, somewhere real. An untested rollback is a plan, not
  a capability.
- Long-running migrations run in batches with progress and a resume point.
- Check locking on large tables. "It only adds a column" is true right up until it takes a
  lock and the site stops.

## Verification

- Rollback is a single documented action with a known duration, executed at least once.
- The abort criterion is a number from a named query.
- The three observability questions have concrete queries written down.
- Every alert added has a runbook and an owner.
- Every flag has a removal date.

## Red flags

| Thought | Reality |
|---------|---------|
| "We can roll forward if it breaks" | Roll-forward under pressure turns a small outage into a long one. |
| "The migration is safe, it only adds a column" | With a default, on a large table, with a lock. Check. |
| "We will watch it after deploy" | Watch what? Name the query before you ship. |
| "It passed CI so it is ready" | CI proves the code. It says nothing about rollback or observability. |
| "Alert on CPU" | Alert on the symptom a user feels. CPU is a dashboard. |
| "We will remove the flag later" | Give it a date now, or it is permanent. |
| "Rollback should work" | Should is not evidence. Run it. |

Attribution

khuynh22khuynh22
View sourceMore from khuynh22 →
SSkills DirectorySkills Directory

Know which skills are safe — weekly.

Best new skills + every skill we flagged as malicious. From the team that scanned 103,619.

Join free

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Know which skills are safe — weekly.

Best new skills + every skill we flagged as malicious. From the team that scanned 103,619.

Join free

Related Skills

Caveman

Ultra-compressed communication mode that cuts output tokens while keeping technical accuracy. Levels: lite, full, ultra and the wenyan variants. Use for /caveman, "caveman mode", "talk like caveman", "be brief" or "less tokens".

1074701 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

694821 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3351 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

691 votes

math-skill

A comprehensive mathematical reasoning skill for AI assistants — handles arithmetic to research-level problems with rigorous step-by-step reasoning, systematic verification, and transparent uncertainty handling

381 votes
View all in ai-agents →