git-guardrails
CommunitySecure your Git workflow.
Authorwalid-mos
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill prevents accidental or unauthorized execution of dangerous Git commands that could lead to data loss or unintended changes.
Core Features & Use Cases
- Command Interception: Blocks destructive Git commands like
push,reset --hard,clean -f,branch -D,checkout ., andrestore .. - Safety Guardrails: Ensures that critical Git operations are reviewed or prevented, especially in automated or AI-assisted workflows.
- Use Case: When an AI assistant is about to push changes to a production branch, this hook will block the action, prompting the user to confirm or reconsider.
Quick Start
Install the git-guardrails skill to protect your repository from dangerous Git commands.
Dependency Matrix
Required Modules
None requiredComponents
scripts
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: git-guardrails Download link: https://github.com/walid-mos/mac-config/archive/main.zip#git-guardrails Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.