gh-protect-default-branch

Community

Simplify default branch protection for safer repositories.

Authormir-am
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill automates the process of applying and removing branch protections on GitHub repositories, helping developers enforce safe workflow rules efficiently.

Core Features & Use Cases

  • Automatic Detection: Finds the default branch of a GitHub repository.
  • Apply Protection: Sets branch protections that require pull requests for merging and block force pushes and deletions.
  • Remove Protection: Removes existing branch protections upon user request.
  • Use Case: When managing a team repository, you can ensure all changes are reviewed via pull requests, preventing accidental direct pushes.

Quick Start

Use the github protect skill to automatically enforce branch protections on the main branch of your current repository.

Dependency Matrix

Required Modules

None required

Components

scriptsreferences

💻 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: gh-protect-default-branch
Download link: https://github.com/mir-am/skills-agents-ai-coding/archive/main.zip#gh-protect-default-branch

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.