Skill Git Guardrails Claude Code — Git skill for Claude Code
git-guardrails-claude-code:Set up Claude Code hooks to block dangerous git commands (push, reset --hard, clean, branch -D, etc.) before they execute.
How to install Skill Git Guardrails Claude Code
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open eli-ovops/skill-git-guardrails-claude-code and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Skill Git Guardrails Claude Code does
git-guardrails-claude-code:Set up Claude Code hooks to block dangerous git commands (push, reset --hard, clean, branch -D, etc.) before they execute。
Alternatives in Git
- Ws Reset — Reset the current branch to main, fetch upstream, and update submodules 38.1k ★
- Clean Worktrees (Automatic) — Automatically remove all worktrees for branches merged into master 25.5k ★
- 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 ★
README
git-guardrails-claude-code · Agent Skill
git-guardrails-claude-code:Set up Claude Code hooks to block dangerous git commands (push, reset --hard, clean, branch -D, etc.) before they execute。
内容
本公开副本包含 3 个来源与许可文件;技能正文、脚本和参考文件按实际保留的包结构组织。
使用入口
先阅读 [`SKILL.md`](SKILL.md),确认依赖、数据去向和权限要求后再使用。发布过程没有安装或执行此技能。
来源与许可
- 上游:mattpocock/skills
- 上游技能入口
- 上游许可证;类型:MIT。
- 本地技能正文与该来源的非空行相似度为 98.6%,用于确认包的来源线索;本地修改仍可能存在。
- 原许可证及署名保存在 LICENSE;新增发布介绍的许可单列在 LICENSE.publication-notes。
- 包内另有来源的材料按其自身许可处理,未确认的嵌套复制目录仍保留在本地。
当前状态与验证边界
- 已完成公开副本整理、来源依据核对和许可证补齐。
- 未执行技能、安装依赖或验证实际提效,不将静态检查表述为运行验收。
- 隐私、凭证、原始聊天及尚未确认可公开的材料没有纳入。
- 来源文件与哈希清单
Related Skills
Claude Git Reset
Claude Code hook to block destructive git commands (reset --hard, force push, etc.)
Foxel RmShield
Foxel rmShield: a Claude Code mod that holds risky shell commands (rm -rf, git reset --hard, force push, migra
Anti Hall
Anti-hallucination guardrails for Claude Code and Codex: verify-first hooks that block unverified claims, risk
Rewrite History
Reimplement the current branch with a clean, narrative-quality git commit history suitable for reviewer compre
Claude Mod Blast Radius Ps
Holds risky Bash and PowerShell commands (recursive deletes, git clean/reset/force-push, migrations) and shows
Impact Radius
A Claude Code mod that holds risky shell commands (rm -rf, git reset --hard, force pushes, migrations, global
Related Agents
Merger
Reviews, validates, and merges arc-agents PRs. Sole authority for destructive git ops (rebase, push, merge, br
Git Manager
Use this agent when you need to stage, commit, and push code changes to the current git branch while ensuring
GitOps
Git operations specialist. MUST BE USED for branch management, conflict resolution, git history analysis, work