Agent skill

Managing Deployment Rollbacks

by jeremylongshore in jeremylongshore/tons-of-skills-marketplace

Deploy use when you need to work with deployment and CI/CD. An agent skill from jeremylongshore/tons-of-skills-marketplace.

MITAuto-check passedDevOps & Cloud

Install Managing Deployment Rollbacks

skills CLI
$ npx skills add jeremylongshore/tons-of-skills-marketplace --skill managing-deployment-rollbacks -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install jeremylongshore/tons-of-skills-marketplace managing-deployment-rollbacks --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/.curated/managing-deployment-rollbacks .claude/skills/managing-deployment-rollbacks && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
managing-deployment-rollbacks
GitHub stars
2.8k
Token cost
~1.2k tokens
SKILL.md length
503 words
Files
10 (incl. scripts, references, assets)
Skills in repo
3,342
Repo updated
First seen
Licence
MIT

At a glance

Deploy use when you need to work with deployment and CI/CD. An agent skill from jeremylongshore/tons-of-skills-marketplace.

  • Works in 9 steps: Detect deployment failure: monitor error… → Assess rollback scope: determine if the… → For Kubernetes: execute kubectl rollout… → …
  • You need to work with deployment and CI/CD
  • SKILL.md covers Overview, Prerequisites, Instructions and Output, plus 3 more sections
  • Runs Python scripts from its folder; calls kubectl

What it does

Managing Deployment Rollbacks is an agent skill from jeremylongshore/tons-of-skills-marketplace. Deploy use when you need to work with deployment and CI/CD. This skill provides deployment automation and orchestration with comprehensive guidance and automation. Trigger with phrases like "deploy application", "create pipeline", or "automate deployment".

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 12 other files, including scripts, reference files and assets (for example `assets/README.md`, `assets/example_rollback_config.yml` and `assets/rollback_report_template.md`). Compatibility notes: Designed for Claude Code

It sits in DevOps & Cloud, covering Deployment. It works with Kubernetes. The repository describes itself as: Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com. The licence is MIT.

When your agent uses it

  • You need to work with deployment and CI/CD
  • With phrases like deploy application
  • Create pipeline
  • Automate deployment

Example prompts

  • “deploy application”
  • “create pipeline”
  • “automate deployment”
  • “/managing-deployment-rollbacks”

Requirements

  • Python 3
  • Docker
  • Compatibility (from SKILL.md): Designed for Claude Code
  • Pre-approved tools (allowed-tools): Read, Write, Edit, Grep, Glob, Bash(git:*), Bash(docker:*), Bash(kubectl:*)

Workflow steps

9 steps, taken from the first numbered list in SKILL.md.

  1. Detect deployment failure: monitor error rate, P99 latency, pod restart count, and health check responses for 5-10 minutes post-deploy
  2. Assess rollback scope: determine if the issue is application code, configuration, or infrastructure
  3. For Kubernetes: execute kubectl rollout undo deployment/ to revert to the previous revision
  4. For ECS: update the service to use the previous task definition revision
  5. For Lambda: point the alias back to the previous function version
  6. Verify database compatibility: ensure the previous application version works with the current database schema (no forward-only migrations…
  7. Confirm rollback success: verify health checks pass, error rate returns to baseline, and user-facing functionality is restored
  8. Generate a post-incident report: document what failed, when rollback was triggered, time to recovery, and root cause
  9. Create automated rollback rules: configure Kubernetes readiness probes, Argo Rollouts analysis, or CloudWatch alarms to trigger rollback…

What it can do on your machine

Read from SKILL.md and the folder at commit cfae287. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Write
    • Edit
    • Grep
    • Glob
    • Bash(git:*)
    • Bash(docker:*)
    • Bash(kubectl:*)

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 4 files in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • kubectl

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • kubernetes.io
    • argoproj.github.io
    • docs.aws.amazon.com
    • martinfowler.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Designed for Claude Code

    From compatibility in the SKILL.md frontmatter.

Context cost

Managing Deployment Rollbacks loads about 1.2k tokens when it runs, and up to ~1.2k if it reads all its reference files. Until then it costs about 72 tokens; SKILL.md has 503 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~72
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~1.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from jeremylongshore/tons-of-skills-marketplace at commit cfae287, republished under its MIT licence (© jeremylongshore). 503 words, ~1,195 tokens.

Download SKILL.mdSave it as .claude/skills/managing-deployment-rollbacks/SKILL.md (or your agent's skills folder). This skill also uses 9 other files; get the full folder from GitHub.
name
managing-deployment-rollbacks
description
Deploy use when you need to work with deployment and CI/CD. This skill provides deployment automation and orchestration with comprehensive guidance and automation. Trigger with phrases like "deploy application", "create pipeline", or "automate deployment".
allowed-tools
Read, Write, Edit, Grep, Glob, Bash(git:*), Bash(docker:*), Bash(kubectl:*)
compatibility
Designed for Claude Code
version
1.28.0
author
Jeremy Longshore <jeremy@intentsolutions.io>
license
MIT
tags
devops, deployment, ci-cd

Managing Deployment Rollbacks

Overview

Implement and execute deployment rollback procedures for Kubernetes, ECS, Lambda, and cloud VM deployments. Detect failed deployments via health checks and error rate monitoring, then automatically or manually revert to the last known good version with minimal downtime and data integrity preservation.

Prerequisites

  • kubectl configured with cluster access and permission to manage deployments
  • Deployment history retained (Kubernetes revisionHistoryLimit, ECS task definition versions)
  • Monitoring system tracking error rate, latency, and health check status (Prometheus, Datadog, CloudWatch)
  • Previous deployment artifacts (container images, task definitions) still available in the registry
  • Database migration strategy that supports backward compatibility (expand-contract pattern)

Instructions

  1. Detect deployment failure: monitor error rate, P99 latency, pod restart count, and health check responses for 5-10 minutes post-deploy
  2. Assess rollback scope: determine if the issue is application code, configuration, or infrastructure
  3. For Kubernetes: execute kubectl rollout undo deployment/<name> to revert to the previous revision
  4. For ECS: update the service to use the previous task definition revision
  5. For Lambda: point the alias back to the previous function version
  6. Verify database compatibility: ensure the previous application version works with the current database schema (no forward-only migrations were applied)
  7. Confirm rollback success: verify health checks pass, error rate returns to baseline, and user-facing functionality is restored
  8. Generate a post-incident report: document what failed, when rollback was triggered, time to recovery, and root cause
  9. Create automated rollback rules: configure Kubernetes readiness probes, Argo Rollouts analysis, or CloudWatch alarms to trigger rollback without manual intervention

Output

  • Rollback scripts for each deployment target (Kubernetes, ECS, Lambda)
  • Automated rollback configuration (Kubernetes probes, Argo Rollouts AnalysisTemplate)
  • Post-incident report template with timeline and root cause sections
  • Monitoring dashboard with rollback trigger indicators
  • Database migration rollback procedures (down migrations, backward-compatible schemas)
Show full SKILL.md (211 more words)Show less

Error Handling

ErrorCauseSolution
no rollout history foundRevision history limit set to 0 or deployment was created freshIncrease revisionHistoryLimit in deployment spec; manually specify the target image tag
Rollback succeeded but errors persistIssue is in configuration or external dependency, not application codeCheck ConfigMaps, Secrets, and external service health; rollback configuration changes separately
Database schema incompatible after rollbackForward-only migration applied during failed deploymentApply a down migration or use expand-contract pattern; never deploy breaking schema changes alongside code
Old image no longer in registryLifecycle policy deleted the previous imageRestore from backup or rebuild from the git tag; extend image retention for production tags
Rollback causes service disruptionInsufficient replicas during rollback transitionSet maxUnavailable: 0 in rolling update strategy to ensure zero-downtime rollback

Examples

  • "Roll back the production Kubernetes deployment to the previous revision after detecting a spike in 5xx errors."
  • "Create an automated rollback policy using Argo Rollouts that reverts if error rate exceeds 1% during the first 10 minutes after deploy."
  • "Generate a rollback runbook for an ECS service that includes steps to revert task definition, validate health, and notify the team via Slack."

Resources

© jeremylongshore, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 9 other files (scripts, references, assets) in skills/.curated/managing-deployment-rollbacks of jeremylongshore/tons-of-skills-marketplace.

  • SKILL.md
  • assets/README.md
  • assets/example_rollback_config.yml
  • assets/rollback_report_template.md
  • assets/rollback_template.yml
  • references/README.md
  • scripts/README.md
  • scripts/get_previous_version.py
  • scripts/rollback_deployment.py
  • scripts/verify_deployment.py

Open the folder on GitHubat commit cfae287

Compare with similar skills

Managing Deployment Rollbacks next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Managing Deployment Rollbacks compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Managing Deployment Rollbacks this skilljeremylongshore/tons-of-skills-marketplace2.8k—~1.2kAutomated safety check: PassMIT
Kubeshark Installerkubeshark/kubeshark12k—~3.6kAutomated safety check: NotesApache-2.0
KubeSphere ServiceMesh Managerkubesphere/kubesphere17k—~2.4kAutomated safety check: PassCustom licence
Senior DevOps Toolkitmaslennikov-ig/claude-code-orchestrator-kit2606 repos~1.1kAutomated safety check: NotesCustom licence
LangBot Deployment Guidelangbot-app/LangBot18k—~1.2kAutomated safety check: NotesApache-2.0
Openbkn Deployopenbkn-ai/bkn-foundry655—~1.9kAutomated safety check: NotesCustom licence

Similar skills

  • Kubeshark Installer

    kubeshark/kubeshark

    Installs and configures Kubeshark on a Kubernetes cluster, choosing between the quick CLI path and a Helm install with custom values.

    12k GitHub stars~3.6k tokensUpdated yesterday
    DevOps & CloudAuto-check: notes
  • KubeSphere ServiceMesh Manager

    kubesphere/kubesphere

    Installs, checks and troubleshoots the KubeSphere ServiceMesh extension (Istio, Kiali, Jaeger), including grayscale release, sidecar injection, topology and tracing issues.

    17k GitHub stars~2.4k tokensUpdated 2 mo ago
    DevOps & CloudAuto-check passed
  • Senior DevOps Toolkit

    maslennikov-ig/claude-code-orchestrator-kit

    Comprehensive DevOps skill for CI/CD, infrastructure automation, containerization, and cloud platforms (AWS, GCP, Azure). Includes pipeline setup…

    260 GitHub starsUsed in 6 repos~1.1k tokens
    DevOps & CloudAuto-check: notes
  • LangBot Deployment Guide

    langbot-app/LangBot

    Deploys and configures a LangBot instance with Docker Compose or Kubernetes, covering config.yaml, the Box sandbox runtime, the plugin runtime and the global API key.

    18k GitHub stars~1.2k tokensUpdated yesterday
    DevOps & CloudAuto-check: notes
  • Openbkn Deploy

    openbkn-ai/bkn-foundry

    Deploy or upgrade OpenBKN on a customer-authorized Linux server through the repository's deploy scripts, with preflight checks, explicit confirmation, secret handling, and post-deployment…

    655 GitHub stars~1.9k tokensUpdated today
    DevOps & CloudAuto-check: notes
  • KubeShark for Kubernetes

    LukasNiessen/kubernetes-skill

    Keeps Kubernetes manifests, Helm charts and policies grounded by diagnosing six failure modes, such as insecure defaults and API drift, and loading only matching references.

    446 GitHub stars~1.2k tokensUpdated 27 days ago
    DevOps & CloudAuto-check passed

More from jeremylongshore/tons-of-skills-marketplace

All 3,342 skills in this repo
  • Performing Security Code Review

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to conduct a security-focused code review using the security-agent plugin.

    2.8k GitHub starsUsed in 2 repos~1.3k tokens
    Auto-check: notes
  • Adapting Transfer Learning Models

    jeremylongshore/tons-of-skills-marketplace

    Build this skill automates the adaptation of pre-trained machine learning models using transfer learning techniques.

    2.8k GitHub stars~1.1k tokensUpdated yesterday
    Auto-check passed
  • Agent Context Loader

    jeremylongshore/tons-of-skills-marketplace

    Execute proactive auto-loading: automatically detects and loads agents.md files.

    2.8k GitHub stars~1.1k tokensUpdated yesterday
    Auto-check passed
  • Aggregating Performance Metrics

    jeremylongshore/tons-of-skills-marketplace

    Aggregate and centralize performance metrics from applications, systems, databases, caches, and services.

    2.8k GitHub stars~1.2k tokensUpdated yesterday
    Auto-check passed
  • Analyzing Capacity Planning

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to analyze capacity requirements and plan for future growth.

    2.8k GitHub stars~947 tokensUpdated yesterday
    Auto-check passed
  • Analyzing Database Indexes

    jeremylongshore/tons-of-skills-marketplace

    Process use when you need to work with database indexing. An agent skill from jeremylongshore/tons-of-skills-marketplace.

    2.8k GitHub stars~2k tokensUpdated yesterday
    Auto-check passed

Works with

Categories

Questions about Managing Deployment Rollbacks

What does Managing Deployment Rollbacks do?

Deploy use when you need to work with deployment and CI/CD. An agent skill from jeremylongshore/tons-of-skills-marketplace. Managing Deployment Rollbacks is an agent skill from jeremylongshore/tons-of-skills-marketplace. Deploy use when you need to work with deployment and CI/CD.

When should I use Managing Deployment Rollbacks?

Managing Deployment Rollbacks fits situations like: you need to work with deployment and CI/CD; with phrases like deploy application; create pipeline; automate deployment.

How do I install Managing Deployment Rollbacks in Claude Code?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill managing-deployment-rollbacks -a claude-code`. Or copy the skill folder (skills/.curated/managing-deployment-rollbacks in jeremylongshore/tons-of-skills-marketplace) into .claude/skills/managing-deployment-rollbacks in your project. Claude Code loads it when a task matches its description.

How do I install Managing Deployment Rollbacks in Codex?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill managing-deployment-rollbacks -a codex`. Or copy the skill folder (skills/.curated/managing-deployment-rollbacks in jeremylongshore/tons-of-skills-marketplace) into .agents/skills/managing-deployment-rollbacks in your project. Codex loads it when a task matches its description.

Can I use Managing Deployment Rollbacks in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill managing-deployment-rollbacks -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/managing-deployment-rollbacks, .gemini/skills/managing-deployment-rollbacks, .github/skills/managing-deployment-rollbacks and .opencode/skills/managing-deployment-rollbacks in your project.

What does Managing Deployment Rollbacks need to run?

Going by SKILL.md and its folder, Managing Deployment Rollbacks needs Python for the scripts in its folder and the command-line tools its instructions call (kubectl). Our summary lists: Python 3; Docker. Its frontmatter pre-approves these tools: Read, Write, Edit, Grep, Glob, Bash(git:*), Bash(docker:*), Bash(kubectl:*). Compatibility (from SKILL.md): Designed for Claude Code.

Does Managing Deployment Rollbacks access the network?

SKILL.md names 4 domains. As links in the text: kubernetes.io, argoproj.github.io, docs.aws.amazon.com and martinfowler.com. This is read from the text; nothing was executed.

Is Managing Deployment Rollbacks safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Managing Deployment Rollbacks use?

Managing Deployment Rollbacks is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Managing Deployment Rollbacks use?

About 1.2k tokens (SKILL.md is roughly 4.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 18 tokens, read only when the agent opens those files.

What are the alternatives to Managing Deployment Rollbacks?

Skills that share tags, products or a category with Managing Deployment Rollbacks: Kubeshark Installer (kubeshark/kubeshark, 12k stars), KubeSphere ServiceMesh Manager (kubesphere/kubesphere, 17k stars), Senior DevOps Toolkit (maslennikov-ig/claude-code-orchestrator-kit, 260 stars) and LangBot Deployment Guide (langbot-app/LangBot, 18k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Managing Deployment Rollbacks?

jeremylongshore (a GitHub user) maintains it in jeremylongshore/tons-of-skills-marketplace, which has 2,827 GitHub stars. The repository holds 3,342 skills in this directory. The repository was last updated on October 10, 2026.

Source: jeremylongshore/tons-of-skills-marketplace on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.