git-initial-setup

Community

Secure your main branch by default.

AuthorRyoMurakami1983
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill automates the setup of essential Git protections, ensuring that your main branch is always safeguarded against accidental direct commits or pushes, thereby maintaining code integrity and stability.

Core Features & Use Cases

  • Branch Protection Rules: Configures GitHub settings to require pull requests for merges into the main branch.
  • Local Hook Installation: Installs pre-commit and pre-push Git hooks to prevent direct commits and pushes to protected branches locally.
  • Global Hook Defaults: Sets up Git to use a global hooks path, ensuring new repositories automatically inherit these protections.
  • Use Case: When initializing a new project or onboarding a new team member, running this skill ensures that all developers adhere to a safe and standardized Git workflow from the outset, preventing common mistakes that could destabilize the main branch.

Quick Start

Run the setup script to install Git hooks for the 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: git-initial-setup
Download link: https://github.com/RyoMurakami1983/skills_repository/archive/main.zip#git-initial-setup

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