Setup Git Guard — Git skill for Claude Code
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
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 RepositoryRelated Skills
Lane Safety
Safety and hygiene lane. Own redaction and every repository hygiene guard. Nothing derived from a game log rea
Cc Safety Net
description: Configure CC Safety Net rulebooks for user, project, or shareable GitHub scope.
Bench Setup
Build a new benchmark scope tailored to the user's task. Four-question intake plus a provider picker; accepts
Grant Commit
Grant consent for Claude to run git commit. Workflow-scoped when a workflow is active, else a time window. Req
Grant Push
Grant consent for Claude to run git push. Valid for 5 minutes. Required by the Git Commit Guard hook on protec
Specpilot Archive
Archive oversized .specs/ files (tasks.md Completed section, prompts.md) with a branch safety guard
Related Agents
Reva Setup Installer
Use this agent when:\n1. The project is being set up for the first time\n2. Build failures occur with errors a
Scope Guard
Protect the MVP from scope creep. Invoke when the user proposes a new feature outside the current development
Docs Dx
Read-only documentation and developer-experience reviewer. Invoke when public-facing docs, prompts, setup inst