This skill formats commit messages following Conventional Commits, helping you generate clear, release-ready messages for staged changes.
npx playbooks add skill wesleysmits/agent-skills --skill commit-message-formatter
git diff --cached<type>[optional scope][!]: <description>
[optional body]
[optional footer(s)]
| Type | When to Use |
| ---------- | ----------------------------------------------- |
| feat | New feature for the user |
| fix | Bug fix for the user |
| docs | Documentation only changes |
| style | Formatting, missing semicolons (no code change) |
| refactor | Code change that neither fixes nor adds feature |
| perf | Performance improvement |
| test | Adding or correcting tests |
| build | Changes to build system or dependencies |
| ci | CI configuration changes |
| chore | Other changes that don't modify src or tests |
| revert | Reverts a previous commit |
! after type/scope: feat(api)!: remove deprecated endpointsBREAKING CHANGE: footer in the bodyRun the following to get staged diffs:
git diff --cached --stat
git diff --cached
Analyze the changes to determine the appropriate type:
src/ with new functionality → featfix.md, .txt, or docs folder → docsstylerefactorperftestpackage.json, webpack.config., tsconfig. → build.github/workflows/, CI configs → cichoreDerive scope from the primary affected area:
src/components/Button.tsx → scope: buttonsrc/api/users.ts → scope: api or userslib/utils/ → scope: utilsLook for indicators of breaking changes:
Subject line rules:
Body (if needed):
Footer (if needed):
BREAKING CHANGE: <description>Fixes #123 or Closes #456Reviewed-by: Name <email>Present the formatted message to the user:
**Suggested commit message:**
feat(auth): add OAuth2 login support
Implement OAuth2 authentication flow with Google and GitHub providers.
Users can now sign in using their existing accounts.
Closes #142
If approved, execute:
git commit -m "<subject>" -m "<body>" -m "<footer>"
Or for simple commits:
git commit -m "<type>(<scope>): <description>"
feat(cart): add quantity selector to cart items
fix(auth): prevent token refresh race condition
Multiple simultaneous requests could trigger parallel refresh attempts.
Added mutex lock to ensure single refresh execution.
Fixes #287
feat(api)!: migrate to v2 response format
BREAKING CHANGE: API responses now use camelCase keys instead of snake_case.
All clients must update their parsing logic.
docs(readme): add installation instructions for Windows
refactor(utils): extract date formatting into separate module
Before committing, verify:
git status to confirm. Prompt user to stage files first.git status for conflicts or hooks blocking commit.git commit --help for options.Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.