Skip to content
Back to skills

Rollback

ASecurity

Roll back a bad release to the previous known-good version (Marcus workflow)

  • 57 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 17, 2026
businessgobashgit

Security analysis

A100/100

Scanned October 17, 2026

npx -y skills add diegosouzapw/awesome-omni-skill --skill rollback --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rollback?

Add the live security badge to your README. It updates with every re-scan.

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

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: rollback
description: Roll back a bad release to the previous known-good version (Marcus workflow)
disable-model-invocation: true
---

Roll back: $ARGUMENTS

When a release causes production issues and a hotfix isn't feasible, roll back to the last known-good state.

## Step 1 — Identify What to Roll Back To
```bash
git tag --sort=-v:refname | head -10
git log --oneline -10
```
Find the last known-good version (usually the tag BEFORE the current one).

## Step 2 — Verify the Target is Good
```bash
git checkout v<known-good-version>
```
Run the test and type-check commands (see project config) to confirm it's stable.

## Step 3 — Choose Rollback Strategy

### Option A: Revert Commit (preferred — preserves history)
```bash
git checkout main
git revert <bad-commit-hash>
```

### Option B: Reset to Tag (if revert is too complex)
```bash
git checkout main
git branch backup/pre-rollback
git reset --hard v<known-good-version>
git push origin main --force-with-lease
```

## Step 4 — Verify Rollback
Run the test and type-check commands.
Verify the app starts correctly using the dev run command (see project config).

## Step 5 — Tag the Rollback
```bash
git tag -a v<rollback-version> -m "Rollback: reverted to v<known-good>"
git push origin main
git push origin v<rollback-version>
```

## Step 6 — Post-Rollback
- Document what went wrong and why
- Create an issue for the proper fix
- Schedule the fix using `/fix-issue` or `/hotfix`
- Consider adding tests that would have caught the issue

## Rules
- ALWAYS verify the target version with tests before rolling back
- ALWAYS create a backup branch before destructive operations
- PREFER `git revert` over `git reset --hard` (preserves history)
- NEVER force-push without team confirmation
- ALWAYS document the rollback reason

Attribution

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

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.