Engineering
commit-msg avatar

commit-msg

Generate professional, compliant Git commit messages from your staged changes using Chris Beams' seven rules.

Introduction

The commit-msg skill is an essential developer tool designed to streamline version control by automatically generating high-quality Git commit messages. It analyzes staged changes in your local repository and produces a message that strictly follows Chris Beams' seven rules for great commit messages, ensuring consistency, readability, and a clean project history. This tool is intended for software engineers and teams who prioritize maintainability and want to eliminate the cognitive load of drafting descriptive commit messages manually.

  • Automatically analyzes diffs of staged changes to identify key modifications.

  • Generates subject lines limited to 50 characters, ensuring imperative mood and proper capitalization.

  • Constructs structured body paragraphs that explain the 'what' and 'why' rather than the 'how', wrapped at 72 characters.

  • Supports multi-line commit messages with clear separation between the subject and the detailed explanation.

  • Seamlessly integrates with existing Git workflows (git add) to provide rapid feedback.

  • Ensure all desired changes are staged using 'git add' before invoking the skill.

  • The tool ignores intermediate or noise changes by focusing on the final state of the staged files.

  • Use trigger phrases like 'create commit message' or '커밋 메시지 만들어줘' to start the process.

  • The generated output is a template; users are encouraged to review the content before finalizing the commit.

  • Ensure the user's working directory is correct; the agent executes analysis directly within the local context.

  • Perfect for standardizing repository logs, linking issue tracking references (e.g., Fixes #1234), and improving the quality of pull request histories in environments using Git, GitHub, or GitLab.

Repository Stats

Stars
1
Forks
0
Open Issues
0
Language
Python
Default Branch
main
Sync Status
Idle
Last Synced
May 3, 2026, 08:12 PM
View on GitHub