git-commit

Generate WHY-focused commit messages for staged changes with testing and linting checks.

26|Updated Feb 5, 2022
One-click install
npx skills add https://github.com/atusy/dotfiles --skill git-commit-atusy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-commit
Source: https://github.com/atusy/dotfiles/tree/main/dot_claude/skills/git-commit
Command: npx skills add https://github.com/atusy/dotfiles --skill git-commit-atusy

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps developers stage meaningful changes and craft commits that explain the rationale behind each change, improving traceability and code review quality.

Core Features & Use Cases

  • WHY-focused messages: generate commits that state the purpose and impact of the change.
  • Discipline checklist: enforces testing, linting, and single logical unit per commit.
  • Use Case: when implementing a feature or fixing a bug, use this skill to produce concise, context-rich commits for your repository.

Quick Start

Use the /git:commit slash command to commit staged changes with an explicit WHY.

Frequently Asked Questions about git-commit

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

FAQPage Schema
How do I write git commit messages that explain the rationale behind code changes?

WHY-focused git commit messages state the purpose and impact of staged changes rather than just the what. They improve traceability and code review quality by conveying the developer's intent behind each modification.

What is the best way to automate disciplined git commits for code reviews?

The best way to automate disciplined git commits for code reviews is to enforce a checklist requiring tests and linting to pass before committing, while deriving context-rich messages from the change details and rationale.

How do I commit staged changes with a single logical unit using version control?

To commit staged changes as a single logical unit in version control, apply a discipline checklist that groups related modifications, requires passing tests and linting, and generates a concise WHY-focused message for the specific change.

Does this git workflow require tests and linting to pass before committing?

Yes, this git workflow requires tests and linting to pass before committing. It enforces a discipline checklist that ensures staged code changes meet quality standards and represent a single logical unit before generating a commit message.

When do I need WHY-focused commit messages in my version control workflow?

You need WHY-focused commit messages in your version control workflow during daily code changes, feature work, bug fixes, and code reviews, where commit messages must clearly convey the intent and rationale behind each modification.

Can I use this commit approach for both individual developers and teams?

Yes, you can use this commit approach for both individual developers and teams. It applies to daily code changes and code reviews, ensuring commits reflect a single logical unit with context-rich WHY-focused messages for everyone.