# Git Commit Writer: Conventional Commits from Your Diff

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

Git Commit Writer: Conventional Commits from Your Diff is a free AI agent skill on Agensi by Mas Boy, in Code Quality & Review. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Mas Boy](https://www.agensi.io/creators/masboyalexandria)
- Category: [Code Quality & Review](https://www.agensi.io/skills/code-quality-review)
- Version: 1.0
- Last updated: 2026-12-01
- Security: scan passed (2026-12-01); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/git-commit-writer-conventional-commits-from-your-diff
- Tags: code-review, devops, git, conventional-commits, commit-message, devtools, version-control, changelog

## 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

## Requires

- Node.js
- Git

## Known limitations

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 this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Git Commit Writer: Conventional Commits from Your Diff skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What specific problems does this skill solve for my development workflow?

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.

### What do I need to provide for the skill to generate a commit message?

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.

### What is the final output I get after the analysis?

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.

### Why is this better than just asking a standard AI agent to write a commit message?

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.

### Are there any types of code changes that the skill cannot perfectly detect?

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.

### How do I ask my agent to begin the analysis?

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.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
