Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Analyze staged/unstaged changes and create semantic conventional commits with context about WHY, not just WHAT. Auto-detects commit type and scope from the diff. Supports optional type/scope arguments. Usage - /commit-smart, /commit-smart fix, /commit-smart refactor api
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-05 | ✗→✓ | ▲ Improved | 34% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 48% | 0% |
| case-15 | ✗→✓ | ▲ Improved | 57% | 0% |
| case-23 | ✓→✗ | ▼ Worse | -42% | 0% |
| case-04 | ✓→✓ | = Same ✓ | 109% | 0% |
Create meaningful conventional commits by analyzing your actual changes.
Run these commands to understand the current state:
bashgit status git diff --stat git diff --cached --stat
If nothing is staged (git diff --cached is empty):
git add <files>If changes are already staged, proceed to analysis.
Read the full staged diff:
bashgit diff --cached
Determine the commit type from the changes:
| Signal | Type | |--------|------| | New files with new functionality | feat | | New test files or test additions | test | | Changes to existing logic fixing incorrect behavior | fix | | Structural changes without behavior change | refactor | | package.json, tsconfig, CI config changes | chore | | Build/bundler config changes | build | | README, docs, comments only | docs | | Formatting, whitespace, semicolons only | style | | Performance improvements | perf |
Determine the scope from the primary directory or module affected:
src/api/ -> apisrc/components/auth/ -> authtests/ -> testsIf the user provided arguments via $ARGUMENTS:
fix) -> use as commit typerefactor api) -> use as type and scopeFormat: type(scope): imperative short description
Rules:
Example:
feat(auth): add JWT refresh token rotation
Tokens were expiring mid-session for users with slow connections.
Rotating refresh tokens extends the session without compromising
security, since each refresh token can only be used once.Show the user the proposed commit message and ask for confirmation.
If confirmed, run:
bashgit commit -m "<message>"
Then verify with:
bashgit log --oneline -1
Show the committed hash and message.
! after the scope: feat(api)!: change response formatOther measured skills in the registry, with their headline benchmark lift.