agentsclimarketplace

Rollback

Skill tandnguyendev/dev-workflow/skills/rollback

Undo an AI agent's changes by restoring the git working tree to a checkpoint. Safe and reversible — saves current state first, never moves your branch, never hard-deletes. Optionally pass a checkpoint ref; defaults to the most recent.From its SKILL.md

Install
npx -y skills add tandnguyendev/dev-workflow --skill rollback

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

2.0 KB, as published. Nobody here has run it

Restore the working tree to a checkpoint, undoing recent agent changes. This is safe: it first saves the current state as a reversible pre-rollback checkpoint, never moves your branch/HEAD, and never hard-deletes anything from git.

The CLI is python3 "${CLAUDE_SKILL_DIR}/../../hooks/checkpoint.py" <cmd> (this resolves to the plugin's hooks/checkpoint.py).

Steps:

  1. If the user did NOT name a checkpoint, first list them and show the user so they can confirm the target (default = most recent non-pre-rollback checkpoint):
    python3 "${CLAUDE_SKILL_DIR}/../../hooks/checkpoint.py" list
    
  2. Perform the rollback (pass the chosen ref, or omit for the default):
    python3 "${CLAUDE_SKILL_DIR}/../../hooks/checkpoint.py" rollback [ref]
    
    This step is intentionally NOT pre-approved — because a rollback rewrites the working tree, Claude Code will ask the user to permit this exact command. That confirmation is expected; wait for it. undo is not pre-approved either: it is itself a rollback (to the pre-rollback checkpoint) and rewrites the working tree just the same, so it gets the same confirmation. Only list is read-only.
  3. Relay the tool's output verbatim, including how to reverse it:
    python3 "${CLAUDE_SKILL_DIR}/../../hooks/checkpoint.py" undo
    
    Also note that files CREATED since the checkpoint are left in place (they show up in git status) and can be removed manually if unwanted.

Only meaningful in a git repository. If the CLI prints "not a git repository" or "no checkpoints", relay that and stop. Do not attempt manual git reset/checkout yourself — always go through the CLI so the operation stays safe and reversible.

Keep looking

Skills are one crate of 609,689. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.