Skip to content
Agent Orchestration
Skill

/revert-surgical

Undo a bad change without nuking unrelated work. Use when a specific commit or change broke something.

BOOST
From plugin
loopkit
75553 skills1 agent4 commands2 MCP
Install
$ npx -y skills add Archive228/loopkit --skill revert-surgical --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/revert-surgical

Context preview

The summary Claude sees to decide when to auto-load this skill.

Undo a bad change without nuking unrelated work. Use when a specific commit or change broke something.

SKILL.md

revert-surgical.SKILL.md
name: revert-surgical
description: Undo a bad change without nuking unrelated work. Use when a specific commit or change broke something.
when_to_use: "revert this", a bad deploy, one commit broke prod, undo without losing other work

Surgical Revert

Don't `git reset --hard` away three good commits to undo one bad one.

  • **Single commit** — `git revert <sha>` creates an inverse commit; history stays intact and shared-branch-safe.
  • **One file from a commit** — `git checkout <good-sha> -- path/to/file`.
  • **Hunk-level** — `git checkout -p` to revert specific changes, keep the rest.
  • **A merge** — `git revert -m 1 <merge-sha>` (pick the mainline parent).

On a shared branch, always revert (forward), never rewrite history. Reproduce the breakage first so you revert the RIGHT thing, then verify the revert actually fixes it.

Ships withloopkit

33 battle-tested skills + minimal .claude harness for any coding agent (Claude Code, Cursor, Codex, Gemini CLI).

Get the whole plugin

Other skills on loopkit.