the9ball/.dotfiles/commit-message
Claude Code and agent skill by the9ball/.dotfiles
- community
Checking that the SKILL.md file is still in the repository.
Apply formatting and history rules when creating or editing a Git commit message. It will not be activated for unrelated tasks.
Install
npx vskill@latest install the9ball/.dotfiles/commit-messageSKILL.md
The same SKILL.md was published earlier as the9ball/.dotfiles/commit-message.
Commit message workflow
Discovery contract
- Host fallback: required
- Positive trigger: Create/edit a new commit message or amend target message.
- Negative trigger: Does not create a commit message, just reads the existing history.
- Conditional dependency: There is no additional dependency contract; the history of the current Git repository is checked directly.
- Failure mode: Don't assume defaults, check and stop if format or history basis cannot be determined.
Runtime contract
Only when this Skill is discovered, the Guide section below will be applied as a normative contract. Load conditional dependencies only when necessary. If a dependency cannot be resolved, do not guess or silently omit it; stop the work fail-safe.
Guide
Read this guide when creating or editing a commit message, including message editing by --amend.
Scope of application
The unit to check the rules and history is the Git repository you are currently trying to commit to. When committing within a submodule, treat the submodule as the target repository. Do not mix in the parent repository's conventions or history; the same applies in reverse.
Messages generated or inherited from Git or existing commits, such as merge, revert, fixup, squash, and cherry-pick messages, are special because their format has meaning. They are excluded from the format determination below, including when determining history conventions, and are not rewritten to the default format unless explicitly instructed otherwise.
Application order
If there are instructions from a higher level or explicit instructions from the user, those take precedence. Otherwise, check in the following order.
- Explicit commit conventions in the target Git repository (for example,
CONTRIBUTING.md) - Commit history for author matching current Git user
- Commit history for the entire target Git repository
- Default conventions for this guide
Check existing history
An author matching the current Git user is an author whose name and email both equal the current git config user.name and git config user.email.
Confirm both the individual's history and the history of the entire repository using the following criteria.
- First, check the most recent 20 items.
- If a consistent format is not clear, expand the scope of checks to a maximum of 50 items.
- If there are fewer than 20 items, check the range that can be retrieved.
- If the format is mixed, there is little history, or it is difficult to judge, proceed to the next item in the Application order as "no clear convention".
This fallback applies to history that was retrieved and checked, including history that is empty, short, mixed, or inconclusive. If an existing convention source or the history that the Application order requires cannot be read or retrieved (for example, a Git command fails for a reason other than the repository having no commits, or access is denied), do not assume the defaults; check and stop.
Default format
scope is optional. type has the following basic candidates.
feat: Added functionalityfix: Bug fixesdocs: Document changestyle: Cosmetic changes that do not affect behaviorrefactor: Structural changes not intended to add functionality or fix defectsperf: Performance improvementstest: Addition/modification of testschore: Maintenance changes such as build and auxiliary tools
Use AngularJS's Git Commit Guidelines as a format reference. This guide's defaults do not include additional requirements such as a 100-character limit, a lowercase Subject beginning, or a strict revert: format.
Reference: <https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#-git-commit-guidelines>
Subject
- Write concisely.
- Essentially imperative and present tense.
- Do not add a period at the end.
- Use an expression that makes it easy to understand what has changed in the Subject alone.
Body
Use a Body when the reason for or background of the change needs explanation. Instead of repeating the Subject, describe the following as needed.
- Why did we change it?
- Differences from previous behavior and state
- Important assumptions for judgment
Footer
If necessary, include information to be recorded separately from the main text, such as related issues and breaking changes.
Example
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinglink-targets/agents/skills/commit-message/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/the9ball/.dotfiles/commit-message)