undo-and-recover
Installation
SKILL.md
Undo and Recover
Objective
Restore the user's intended local state with the least destructive applicable mechanism, preserving rescue evidence and avoiding shared-history rewrite.
Use When
- Unstaging or restoring selected changes.
- Aborting a merge, rebase, cherry-pick, or revert.
- Creating, applying, or recovering a stash.
- Recovering a deleted branch or commit from current refs/reflogs.
- Resetting local refs or cleaning exact paths.
- Creating a new revert commit for an existing commit.