Prevents destructive Git operations by requiring backup and confirmation. Blocks git reset --hard, git push --force on main, git clean -fd. Requires backup before git checkout, git reset, git rebase. Activate on any destructive git command.
npx playbooks add skill svenja-dev/claude-code-skills --skill safe-git-guard
The Safe Git Guard tool prevents destructive Git operations by requiring backup and confirmation, blocking commands such as git reset --hard, git push --force on main, and git clean -fd, and requiring backup before git checkout, git reset, and git rebase. This tool is used to safeguard against accidental loss of work and data corruption, and is activated on any destructive Git command. Developers would reach for this tool when they want to add an extra layer of protection to their Git workflow and prevent mistakes that could result in lost work or data corruption.
At 36 words, this compact prompt gives your agent specialized developer workflow expertise with structured patterns and output formats. Install via CLI or copy the prompt below.
Prevents destructive Git operations by requiring backup and confirmation. Blocks git reset --hard, git push --force on main, git clean -fd. Requires backup before git checkout, git reset, git rebase. Activate on any destructive git command.
Safe Git Guard is a free developer workflow skill for AI coding agents. Prevents destructive Git operations by requiring backup and confirmation. Blocks git reset --hard, git push --force on main, git clean -fd. Requires backup before git checkout, git reset, git rebase. Activate on any destructive git command.. It provides a specialized system prompt that configures your agent with developer workflow expertise.
Run npx playbooks add skill svenja-dev/claude-code-skills --skill safe-git-guard in your terminal to install Safe Git Guard into your Claude Code session. It works immediately after installation.
Safe Git Guard is compatible with Claude Code, Cursor, GitHub Copilot, Windsurf, OpenClaw, Cline, and any AI agent that supports custom system prompts or .cursorrules files.
Yes, Safe Git Guard is completely free and open source. The full source is available on GitHub at https://github.com/svenja-dev/claude-code-skills/tree/main/skills/safe-git-guard. You only need a subscription to the AI agent you use it with.
Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.