About commit-message
A skill for developers that generates a single-line English Git commit message from staged or unstaged changes. It grounds the wording in diffs and supported intent, and outputs no explanation.
Key features
- 01Check staged changes first
- 02Review working-tree changes when needed
- 03Assess untracked files alongside diffs
- 04Generate a single-line imperative message
Use cases
- 01Write a message for staged changes
- 02Summarize behavioral changes from unstaged edits
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ ycs77/ skills --skill commit-messageAfter installing, type/commit-messagein Claude Code to confirm it loaded.
Details
From the project READMEGit Commit Message Generator
Generate concise, descriptive and intent-driven Git commit messages in English.
Process
- Run
git diff --cacheddirectly to check for staged changes - If staged changes exist: generate commit message based on staged changes only
- If no staged changes: run
git diffdirectly to review unstaged changes andgit status --longdirectly to list untracked paths - For untracked files, intelligently assess which need content review (code/config files) vs which can be inferred from filename (assets, dependencies)
- Combine the diff with the intent supported by the conversation context; do not invent motivation that is not evident
- Generate a single-line commit message that prioritizes known intent, then observable outcome, then the concrete change
Output
Output ONLY the commit message — a single line, no explanation, no code block fencing.
Format
- In English, imperative mood, under 72 characters
- Prefer the intended outcome over the edited file or implementation detail. If the intent is unknown, describe the concrete behavioral change.
- No type prefix (e.g.,
feat:,fix:) unless the user explicitly requests Conventional Commits format
Examples
Add JWT authentication to protect account access
Add payment edge-case tests to prevent regressions
Validate login input before submitting credentials
Make search accessible from the navbar
Clarify installation requirements in README
Remove deprecated endpoints to simplify the API surface
Rename userService to clarify account responsibilities
Handle missing users during authentication
Fix database deadlock when updating concurrent balances
Preserve authentication behavior with regression tests
Return actionable errors when payment processing fails
Reduce page load time by batching database queries
Decouple user persistence with a repository pattern
Keep CI builds portable by migrating to GitHub Actions
Upgrade Vue to resolve hydration errors
Comments
Markdown supported