branch-protection
CommunityGuard your main branch.
AuthorhypeJunction
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill prevents accidental or malicious destructive Git operations (like force-pushing or deleting) on critical branches, safeguarding your codebase's integrity.
Core Features & Use Cases
- Real-time Git Operation Interception: Hooks into Bash commands to analyze Git operations before execution.
- Protected Branch Enforcement: Automatically blocks or warns against dangerous commands targeting branches like
mainormaster. - Use Case: An AI assistant attempting to force-push to the
mainbranch will be blocked, preventing accidental history rewriting.
Quick Start
Configure your AI assistant to use the branch-protection hook by adding it to your Claude Code settings.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 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: branch-protection Download link: https://github.com/hypeJunction/ai-assistant-starter/archive/main.zip#branch-protection 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.