Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+23 more

    Git Commit Writer: Conventional Commits from Your Diff

    by Mas Boy

    1

    '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

    Security scanned
    Git Commit Writer: Conventional Commits from Your Diff

    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 drafted BREAKING 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): feat for the coupon module and rename, test for the tests, build(deps) for the zod bump, and docs for 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.

    runs as or with a piped diff on stdin, and writes commit.json

    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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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.jsGit

    Permissions

    Terminal / Shell
    Write Files
    Listed1 day ago

    What's inside

    Frequently Asked Questions

    This skill transforms raw code diffs into three ranked Conventional Commit candidates. It solves the problem of messy git histories by automatically detecting breaking changes, inferring the correct scope based on file paths, and identifying when a large diff should be split into multiple smaller commits.

    You need to provide the code diff you want analyzed. You can do this by providing a file path to a diff, a repository path where the skill can run a read-only git diff command, or by simply pasting the diff text directly into the chat.

    You will receive three ranked commit message options following the Conventional Commit format, including a header, bulleted body, and a reasoning statement for each. If the skill detects unrelated changes, it will also provide a split suggestion showing how to group files into separate, logical commits.

    The skill uses a script to extract hard evidence from your code, such as added or removed exports and dependency changes, to ensure every part of the message is traceable to a specific line. This prevents the hallucinations often found in generic AI prompts that might miss subtle breaking changes or invent features.

    Type and scope inference are based on heuristics like file churn and exports, which is why three options are provided rather than a single definitive answer. Additionally, while the skill flags name-level breaking changes like renamed exports, incompatible signature changes still require manual verification by the user.

    You can start by providing your diff and asking the agent to write a commit message for it or to check your current changes. For example, you can say, what should this commit say, or provide a specific path by saying, analyze the diff at this repo path.

    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.

    Free