git-conventions

Enforce safe Git conventions across repositories and CI pipelines.

Updated Jan 8, 2026
One-click install
npx skills add https://github.com/biwakonbu/cc-plugins --skill git-conventions-biwakonbu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-conventions
Source: https://github.com/biwakonbu/cc-plugins/tree/main/plugins/git-actions/skills/git-conventions
Command: npx skills add https://github.com/biwakonbu/cc-plugins --skill git-conventions-biwakonbu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Teams often suffer from inconsistent Git usage, risky commands, and hidden history, leading to merges conflicts, lost changes, and audit challenges. This skill defines a safe, repeatable set of Git rules to apply automatically in workflows.

Core Features & Use Cases

  • Enforces direct execution in the working directory, avoiding -C path hacks.
  • Prohibits dangerous operations like force-push, unverified commits, or bypassing pre-commit hooks.
  • Applies across commit, push, and branch workflows to reduce risk and improve collaboration.

Quick Start

Integrate these conventions with your Git tooling and invoke them as part of pre-commit or CI pipelines. For example, ensure you run git status and git diff directly in the repository root before committing, and never use git -C.

Frequently Asked Questions about git-conventions

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce safe git conventions across a repository?

To enforce safe git conventions, apply standardized rules across commit, push, and branch workflows to prevent risky commands and nondeterministic histories. These rules integrate directly into pre-commit hooks and CI pipelines for automatic compliance.

What git operations should be prohibited to prevent accidental data loss?

Prohibited git operations include force-push, unverified commits, and bypassing pre-commit hooks. Additionally, avoid using git -C path hacks and ensure standard commands execute directly in the working directory to maintain history integrity.

Do I need any special dependencies to set up pre-commit hooks for git workflows?

No special dependencies are required to set up pre-commit hooks for git workflows. You only need standard Git and shell tooling already available in your environment to integrate and enforce these safety conventions locally or in CI.

Why should I avoid using the git -C path option in my workflows?

You should avoid the git -C path option because it creates hidden execution contexts that bypass standard workflow safety. Enforcing direct execution in the repository root ensures transparent git status and git diff checks before committing.

What is the best way to standardize git commit and push rules in CI pipelines?

The best way to standardize git commit and push rules in CI pipelines is by codifying a repeatable set of safe git rules and invoking them as part of the pipeline to enforce policy conformance automatically across all repositories.