git-commit

Analyze working tree diffs and generate atomic git commit messages.

17|1|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/thoughtbot/rails-consultant --skill git-commit-thoughtbot
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-commit
Source: https://github.com/thoughtbot/rails-consultant/tree/main/skills/git-commit
Command: npx skills add https://github.com/thoughtbot/rails-consultant --skill git-commit-thoughtbot

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill solves the problem of messy, poorly documented, or overly large git commits by enforcing an atomic, "why-focused" commit strategy that makes project history readable and maintainable.

Core Features & Use Cases

  • Atomic Grouping: Automatically analyzes diffs to group related changes into logical, coherent commits rather than dumping all changes at once.
  • Context-Aware Messaging: Generates commit messages that explain the "why" behind a change, following professional engineering standards.
  • Use Case: After finishing a complex feature that involves model changes, controller logic, and tests, use this skill to bundle the work into a single, clean commit with a descriptive message and proper attribution.

Quick Start

Ask the assistant to commit the current changes with a note about the recent refactor to the user authentication flow.

Frequently Asked Questions about git-commit

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

FAQPage Schema
How do I write better git commit messages automatically?

Git commit messages are generated automatically by analyzing working tree diffs to produce context-rich explanations. The automation groups related changes logically and follows professional standards like imperative mood subject lines and detailed explanatory bodies.

How do I group related code changes into atomic git commits?

Atomic git commits are created by analyzing your working tree diff and grouping related changes into logical, coherent commits. This prevents dumping all modifications at once and ensures project history remains clean and maintainable.

Can I automate co-author attribution in my version control history?

Co-author attribution is automated properly within the generated commit messages. The automation ensures consistent team communication by applying proper attribution alongside professional, context-rich documentation of the changes.

What is the best way to maintain a clean git history for code review?

A clean git history for code review is maintained by enforcing an atomic, why-focused commit strategy. This approach makes project history readable by generating professional commit messages that explain the reasoning behind each change.

Does automated commit generation work with complex software development workflows?

Automated commit generation works with software development workflows by analyzing diffs from complex features involving model changes, controller logic, and tests. It bundles the work into a single, clean commit with a descriptive message and proper attribution.

When should I not use automated git commit generation?

Automated git commit generation should be avoided when you need to dump all changes at once without logical grouping. It is designed for workflows requiring clean, maintainable version control history and consistent team communication through well-documented commits.