git-guardrails-claude-code

Stops dangerous git commands like push and reset before they run, so you do not accidentally wreck your code.

Installation
Run `npx skills add "https://github.com/vinvcn/mattpocock-skills-zh-cn" --skill "git-guardrails-claude-code"` to install this skill, then follow its SKILL.md instructions for my next request.

Paste this into Claude Code, Cursor, or any agent that can run commands.

What this skill does
What it does: - Stops Claude from running dangerous git commands like push, reset hard, clean, branch delete, and checkout - Shows Claude a message saying it cannot access these commands - Lets you choose to set this up for just one project or all your projects - Lets you add or remove commands from the blocked list if you want When to use it: - You want to prevent Claude from accidentally breaking your code with destructive git commands - You are worried Claude might push changes you do not want pushed - You want extra safety when using Claude to work with your code files

The full skill text could not be loaded right now. It installs fine with the command above, or read it at the source.

Mirrored from the author's public source. Install counts from the open skills registry.

The systems behind these skills get built for partners every week.

Partner with us