Basic information
About commit-message
Generate conventional commit messages based on staged changes. Use when writing commit messages, understanding conventional commit format, or ensuring consistent commit history.
commit-message is an agent skill listed in the AddMCP.net directory, published by appleboy. Runtime: Go. License: MIT. The repository has 1,504 GitHub stars. Source code is hosted on github.com. Related topics: chatgpt, chatgpt-api, git, git-hook, golang.
Overview
What is commit-message?
name: commit-messages description: Generate conventional commit messages based on staged changes. Use when writing commit messages, understanding conventional commit format, or ensuring consistent commit history.
Commit Message Guide
Generates conventional commit messages that are clear, consistent, and informative.
Core Principles
- Follow Project Style - Mimic existing
git logpatterns above all else. - Imperative mood - "add feature" not "added feature"
- Explain why - Body explains motivation, not just what changed
- Concise subject - 72 characters or less, no period
- Scope when helpful - Include scope when it clarifies the change
Commit Formats
1. Conventional Commits (Standard)
The most common standard, widely used across the industry.
<type>(<scope>): <subject>
Example: feat(auth): add login page
2. Path-Based / Scoped (Alternative)
Common in monorepos or systems like Nixpkgs.
<path/to/component>: <subject>
Example: programs/waybar: update config
Detailed Reference Material
- [reference.md](reference.md) - Commit Types table, Scope determination,
Breaking Changes, and Alternative Conventions.
- [examples.md](examples.md) - Good and bad examples for various scenarios.
Analyzing Changes for Commit Type
- Look at files changed
- New files = likely
feat - Test files only =
test - Config/build files =
buildorci - README/docs =
docs
- Examine the diff
- Bug fix patterns =
fix - New exports/functions =
feat - Restructuring =
refactor - Optimizations =
perf
- Check
git log
- Verify if the repo uses
type(scope):orpath/to/file:style.
See Also
- Code review: See [code-review](../code-review/) for reviewing commits
- Git workflows: See [git-workflows](../git-workflows/) for branching
strategies
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In