SomtoUgeh

Setup Git Guard — Git skill for Claude Code

Git community

Install git safety guard hook at project or user scope.

How to install Setup Git Guard

Installs to ~/.claude/skills/somtougeh-somto-dev-toolkit-setup-git-guard/SKILL.md

Terminal
mkdir -p ~/.claude/skills/somtougeh-somto-dev-toolkit-setup-git-guard && curl -fsSL https://raw.githubusercontent.com/SomtoUgeh/somto-dev-toolkit/HEAD/commands/setup-git-guard.md -o ~/.claude/skills/somtougeh-somto-dev-toolkit-setup-git-guard/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

What Setup Git Guard does


name: setup-git-guard description: Install git safety guard hook at project or user scope argument-hint: "[project|user]" context: fork

Git Safety Guard Setup

You are helping the user install the git safety guard hook. This hook blocks destructive git commands like `git reset --hard`, `git checkout --`, `rm -rf`, etc.

Installation Scope

The user wants to install at: **$ARGUMENTS** scope

  • project: Installs to .claude/settings.json - applies to this project only, can be sh

Alternatives in Git

  • Git Worktree Setup — Create isolated git worktrees with instant feedback and background Rust verification 25.5k ★
  • Push And Release — Git pull, resolve conflicts, push, fix hook errors, then release 1.6k ★
  • Claude Code Safety Net — A Claude Code plugin that acts as a safety net, catching destructive git and filesystem commands before they e 1.2k ★

Full documentation available on GitHub

View Source Repository