git-commits

Standardize git commit messages with enforced pre-commit checks and batching discipline.

4|11|Updated May 1, 2025
One-click install
npx skills add https://github.com/Rational-Partners/ai-training-practical --skill git-commits-rational-partners
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-commits
Source: https://github.com/Rational-Partners/ai-training-practical/tree/main/.claude/skills/git-commits
Command: npx skills add https://github.com/Rational-Partners/ai-training-practical --skill git-commits-rational-partners

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Standardizes git commit workflows to ensure changes are recorded clearly, verifiable, and easy to review, reducing friction during reviews and deployments.

Core Features & Use Cases

  • Build verification before commits: ensure frontend and backend builds pass prior to recording changes.
  • Standardized commit messages: enforce a consistent <type>: <subject> format with an optional body.
  • Quality gates and safe batching: require tests, lint, and no secrets before integrating changes.

Quick Start

Make a small change, verify the build, and commit using the standardized message format.

Frequently Asked Questions about git-commits

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

FAQPage Schema
How do I enforce a consistent git commit message format across my team?

You can enforce a consistent git commit message format by applying a standardized structure like <type>: <subject> with an optional body. This ensures changes are recorded clearly and are easy to review during deployments.

What is the best way to verify frontend and backend builds before committing changes?

The best way to verify builds before committing changes is to run build verification as a pre-commit quality gate. This ensures both frontend and backend builds pass successfully prior to recording any git commits.

How do I prevent secrets from being committed to version control?

To prevent secrets from being committed to version control, implement pre-commit quality gates that scan changes. Requiring no secrets before integrating changes ensures sensitive data stays out of your git history.

Can I batch multiple file changes into a single git commit safely?

Yes, you can batch changes safely by applying batching discipline alongside quality gates. Verifying that tests and lint checks pass before integrating grouped changes ensures your git commits remain clean and verifiable.

What pre-commit checks should I run for feature development and bug fixes?

For feature development and bug fixes, you should run pre-commit checks including build verification, lint, and tests. These quality gates ensure your code changes are verifiable and reduce friction during code reviews.

Does this git workflow support both frontend and backend projects?

Yes, this git workflow supports both frontend and backend projects. It applies standardized commit messages and build verification across all project types to ensure clean, verifiable changes are recorded consistently.