protect-push

Official

Prevent direct pushes to main branch, enforce PR workflow.

Authorheyu-ai
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill prevents direct pushes to the main branch, ensuring that all changes go through the Pull Request (PR) workflow, maintaining code quality and collaboration.

Core Features & Use Cases

  • Prevent Direct Pushes: Blocks direct pushes to the main branch if the branch is tracking origin/main or origin/master.
  • Branch Tracking Check: Checks the branch tracking configuration before executing any git push.
  • User-Friendly Warnings: Provides clear instructions on how to resolve the issue, such as creating a feature branch or adjusting the branch tracking.

Quick Start

Run the 'protect-push' skill to install the hook in your project.

Dependency Matrix

Required Modules

None required

Components

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: protect-push
Download link: https://github.com/heyu-ai/yibi-stack/archive/main.zip#protect-push

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 620,000+ vetted skills library on demand.