git-commit-hygiene

Automate atomic Git commits with message templates and validation before push.

7|Updated Feb 14, 2026
One-click install
npx skills add https://github.com/KentoShimizu/sw-agent-skills --skill git-commit-hygiene
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-commit-hygiene
Source: https://github.com/KentoShimizu/sw-agent-skills/tree/main/skills/git-commit-hygiene
Command: npx skills add https://github.com/KentoShimizu/sw-agent-skills --skill git-commit-hygiene

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and assets (resource) components.

What problem does it solve?

This skill guides teams to maintain clean, atomic commits with explicit rationale, enabling easier reviews, safer bisects, and auditable history.

Core Features & Use Cases

  • Enforces one primary intent per commit to keep history readable.
  • Provides a commit-slicing checklist and a commit message template to guide changes.
  • Ensures each commit is independently reviewable and reversible, with traceability for audits.
  • Encourages a workflow that preserves a passing repository state before push.

Quick Start

Apply the commit-slicing checklist and the commit message template to create atomic, traceable commits before pushing.

Frequently Asked Questions about git-commit-hygiene

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

FAQPage Schema
How do I create atomic commits with clear traceability in Git?

You create atomic commits with traceability by applying a commit-slicing checklist and message templates that enforce one primary intent per commit, ensuring each change remains independently reviewable and reversible.

What is the best way to maintain a passing repository state before pushing Git commits?

The best way to maintain a passing repository state before pushing Git commits is to validate changes using a guided workflow that enforces commit hygiene and ensures each atomic commit is independently reviewable.

How does a commit-slicing checklist improve version control and code review?

A commit-slicing checklist improves version control and code review by isolating one primary intent per commit, which produces bisectable changes and explicit rationale for safer, faster historical audits.

Can I use this commit hygiene workflow for feature, bugfix, and refactor tasks?

Yes, you can use this commit hygiene workflow for feature, bugfix, and refactor tasks. It applies to individual developers and teams performing code changes that require clear history and auditable review trails.

Why does enforcing a commit message template help with Git bisects?

Enforcing a commit message template helps with Git bisects by preserving explicit rationale and traceability for each atomic change, allowing you to safely isolate and reverse specific commits when tracking down regressions.