Logo
Agent Skills Guide

git-safety-guard

published 2026/01/22

Installs a Git safety guard hook for Claude Code to prevent destructive Git and filesystem commands. Blocks accidental data loss from commands like 'git checkout --', 'git reset --hard', 'git clean -f', 'git push --force', and 'rm -rf'. Use this skill to set up safety rails in a new or existing repository, or globally for the agent.

📦 Install Skill

Command line install

Install directly with the `skills` CLI.

npx skills add stars-end/agent-skills/git-safety-guard

Local download

Download only this skill directory.

Download git-safety-guard only
File Explorer
0 files
No file selected
readonly

Select a file to view its content