Git safety (Wayne Sutton)
SkillStops an agent from destroying uncommitted work with git.
Before any git command Claude checks git status and stops if there are uncommitted or untracked files. Commands such as reset --hard, checkout or restore of files, clean, stash drop, force push and branch -D need explicit approval of the exact command. Requests to "revert" or "undo" are handled as manual edits of the specific lines, and committed changes are undone with git revert.
Try asking:
- "Undo my last change to the header component"
- "Clean up this branch before I open a PR"
- "Revert the commit that broke the build"
Source: waynesutton/builder-skills · Apache-2.0 · by Wayne Sutton

Log in to join the discussion.