c/devops › command
0votes

Git safety (Wayne Sutton)

Skill
submitted by CommandVault editors to c/devops

Stops 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

0 commentsreport

Install this skill

Agent Skills are folders with a SKILL.md file. Most AI coding tools load them automatically when a task matches the description. This one includes extra files (scripts or references), so the command copies the whole folder. Tip: .agents/skills/ is read by Codex, Cursor, Copilot, Gemini CLI, Grok and Windsurf.

One command
npx commandvault add git-safety-wayne-sutton-951d574b --tool claude
Install (run in your project folder)
npx degit waynesutton/builder-skills/skills/git-safety .claude/skills/git-safety

Use it: Claude uses it automatically when a task matches, or type /git-safety.

From Claude Code's docs , checked Oct 17, 2026.

Made by Wayne Sutton, Apache-2.0 license. Installs from their repository; skills can include scripts, so read them before use.

In the Claude apps, zip the folder and upload it under Settings → Capabilities → Skills.

More from c/devops

See all of c/devops →
0 comments

Log in to join the discussion.