branch-protection

Official

Guard Git workflows with branch protection.

Authorintelligentcode-ai
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Branch protection prevents risky git operations by blocking direct commits to main/master and preventing destructive actions like force pushes or resets, enabling a reliable dev-first workflow.

Core Features & Use Cases

  • Enforce protected branches: prevent direct pushes to main and dev and require PR-based merges.
  • Dev-first workflow enforcement: ensure all changes flow through the dev branch before main.
  • Configurable rules: tweak protection behavior via icc.config.json.
  • Use Case: teams collaborate on features by creating feature/* branches, merging through dev, then releasing from dev to main.

Quick Start

Enable default protection by setting icc.config.json and create the Branch Hierarchy (main, dev, feature/*). Work on a feature branch, open a PR to dev, test, and once dev is stable, open a PR to main.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 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/intelligentcode-ai/intelligent-claude-code/archive/main.zip#branch-protection

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.