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
npx -y skills add tandnguyendev/dev-workflow --skill rollbackAssembled 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:
- 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-rollbackcheckpoint):python3 "${CLAUDE_SKILL_DIR}/../../hooks/checkpoint.py" list - Perform the rollback (pass the chosen ref, or omit for the default):
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.python3 "${CLAUDE_SKILL_DIR}/../../hooks/checkpoint.py" rollback [ref]undois not pre-approved either: it is itself a rollback (to thepre-rollbackcheckpoint) and rewrites the working tree just the same, so it gets the same confirmation. Onlylistis read-only. - Relay the tool's output verbatim, including how to reverse it:
Also note that files CREATED since the checkpoint are left in place (they show up inpython3 "${CLAUDE_SKILL_DIR}/../../hooks/checkpoint.py" undogit 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.