- Home
- Skills
- Code Quality & Review
- Git Commit Writer: Conventional Commits from Your Diff
Works with the AI Agents you already use
Git Commit Writer: Conventional Commits from Your Diff
by Mas Boy
'fix stuff' is not a commit message. Paste your diff and get a proper Conventional Commit — type, scope and a subject line that says what actually changed — plus the body explaining why, ready to paste into git commit.
Free
Git Commit Writer: Conventional Commits from Your Diff
Example session with this skill installed
Write commit messages for this mixed cart-library diff: a new coupon module, a negative-quantity guard, a renamed export calcTotal → calculateTotal, tests, a zod bump, and a README update (5 files, +53/−5). Rank the conventional-commit candidates with reasoning, flag any breaking change, and tell me if this should be split into separate commits.
- Read your context and instructions
- Compiled the git commit writer
Summary
Worked example run 1 December 2026: a mixed cart-library diff (new coupon module, negative-quantity guard, renamed export calcTotal → calculateTotal, tests, zod bump, README; 5 files, +53/−5) produced feat(cart)!: add validate coupon with a drafted BREAKING CHANGE footer for the rename, a fix(cart) alternative, and a four-way split suggestion (feat/test/build(deps)/docs). The --repo mode was also verified on a scratch git repo, producing feat(auth): add logout from a real unstaged diff.
What the run produced
- Candidate 1:
feat(cart)!: add validate coupon— the new coupon module is the best-supported reading of the diff. The!and the draftedBREAKING CHANGE:footer cover the renamed export calcTotal → calculateTotal, paired by name similarity. - Candidate 2: a
fix(cart)alternative for the negative-quantity guard — the right pick if the guard was the point of the change rather than the new coupon feature. - Split suggestion (four-way):
featfor the coupon module and rename,testfor the tests,build(deps)for the zod bump, anddocsfor the README — so each commit reviews and reverts cleanly. - Every bullet names a real file and its churn; nothing describes a change the diff doesn't contain.
Also verified
Running with --repo <path> (read-only git diff) on a scratch git repo produced feat(auth): add logout from a real unstaged diff. The skill also runs as node scripts/commit.mjs changes.diff or with a piped diff on stdin, and writes commit.json for tooling.
Connects securely to your tools. The creator never sees your data.
About this skill
'fix stuff' is not a commit message. Paste your diff and get a proper Conventional Commit — type, scope and a subject line that says what actually changed — plus the body explaining why, ready to paste into git commit.
It works from the diff itself, not vibes: files grouped by area for the scope, new files and exports signal feat, new guards and error handling signal fix, dependency manifests become build(deps): bump zod ^3.22.0 -> ^3.23.8, docs-only diffs become docs. Candidate 1 is the best-supported reading; candidates 2–3 are the plausible alternatives, labeled with what would make each the right pick — because intent can't be proven from a diff, and this skill says so instead of pretending.
Two things most commit helpers skip:
- Breaking-change detection — removed or renamed exports and deleted modules are caught (a calcTotal → calculateTotal rename is paired by name similarity), the header gets its !, and the BREAKING CHANGE: footer is drafted from the evidence.
- Split suggestions — when one diff mixes a feature, a dependency bump, and docs, you get the commit grouping with draft headers, so each commit reviews and reverts cleanly.
Proof — run on real git history, 1 Dec 2026. Three real commits from a live repo: commit 8e285d7 became 'feat(board)!: add snapshot protocol' with five breaking-change footers the original message never mentioned. Commit 8f6cbc9: top candidate 'feat(model): extend model' — an honest miss, the correct 'fix' ranked second (shown, not hidden). Commit d0574e7: 'docs(docs): update README docs' — right type, generic subject. Real diffs in, paste-ready commits out, misses included.
Runs three ways: node scripts/commit.mjs changes.diff, --repo <path> (read-only git diff), or piped stdin. Zero dependencies, Node 22+, deterministic — same diff in, same candidates out. Writes commit.json for tooling.
Honest limits: type inference is heuristic (paths, exports, churn suggest intent; they can't prove it), and breaking detection is name-level — an incompatible signature change under a kept name needs your eye. Subjects are drafted from file/export names; polish the wording before committing.
One commit message is the start of a release, not the whole job. When you need the full pack — splitting a branch into a clean commit series, the PR description, the changelog entry, and the semver bump computed from your breaking changes — that's Release Pack Pro, the paid companion to this skill.
One commit message is the start of a release, not the whole job. When you need the full pack — commits grouped by type, a paste-ready PR description, the Keep-a-Changelog entry, a semver call with evidence, split commands for mixed commits, and a factual release post — that's Release Pack, the paid companion to this skill. 👉 https://www.agensi.io/skills/release-pack-changelog-version-bump-and-notes-in-one-go
Heuristic type inference based on churn. Automatic breaking change detection is limited to name-level signals; signature changes require manual verification. Processes one commit at a time.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 1 day ago
- Free with an Agensi account
- Software
Node.js
Git
Permissions
What's inside
Frequently Asked Questions
New in Code Quality & Review
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Code Quality & Review.