git-commit-rules

Enforce Git commit message types and structured formats for consistent history.

9|Updated Nov 22, 2025
One-click install
npx skills add https://github.com/Unson-LLC/brainbase --skill git-commit-rules
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-commit-rules
Source: https://github.com/Unson-LLC/brainbase/tree/main/.claude/skills/git-commit-rules
Command: npx skills add https://github.com/Unson-LLC/brainbase --skill git-commit-rules

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Brainbase Git commit rules standardize messages to improve readability and traceability of project history.

Core Features & Use Cases

  • Defined types and formats: Provides a concise type list (feat, fix, docs, refactor, chore, style) and a recommended message structure.
  • Guided coaching: Offers templates and guidelines to craft meaningful commits during development and code reviews.

Quick Start

  • Use the git-commit-rules to format your commit message as: "<type>: <summary>" followed by optional “Why/What” sections, as described in the guidance.
  • Example: git commit -m "feat: add user authentication" followed by a brief Why/What section to explain the change.

Frequently Asked Questions about git-commit-rules

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

FAQPage Schema
How do I standardize git commit messages for my team?

To standardize git commit messages, apply a predefined type list like feat, fix, docs, refactor, chore, and style, followed by a structured summary and optional context sections to explain the change.

What is the conventional commit format for a feature or bug fix?

The conventional commit format for a feature or bug fix uses a structured type prefix, such as feat or fix, followed by a colon and a concise summary, with optional sections to detail the why and what of the change.

How do I enforce consistent git commit rules in a CI pipeline?

Enforce consistent git commit rules in a CI pipeline by validating messages against a defined type list and structured format, ensuring history readability and traceability across automated builds and pull request reviews.

Can I include additional context in a structured git commit message?

Yes, you can include additional context in a structured git commit message by appending optional Why and What sections after the initial type and summary, helping reviewers understand the reasoning behind the code changes.

What commit types should I use for documentation or refactoring?

For documentation or refactoring, use the docs or refactor commit types respectively, applying them within a structured message format to categorize changes and maintain a readable project history.