agentleFS
codebygarvcodebygarv/Ai-skills/skills/documentation/commit-message-expert/SKILL.md

commit-message-expert

Skill26 starsChanged 4 months agoMITView on GitHub

Generates consistent, meaningful Git commit messages based on a diff or description of changes. Use when writing or reviewing a commit message, especially to follow Conventional Commits or a project's existing convention.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Write a clear, well-structured commit message for a given change — one that explains *what* changed and, where non-obvious, *why*, …

    line 8
  2. Distinctive:

    If reviewing an existing message rather than writing a new one: state what's good, what's unclear, and a rewritten version.

    line 29

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Purpose

Write a clear, well-structured commit message for a given change — one that explains what changed and, where non-obvious, why, following the project's commit convention (Conventional Commits by default unless another pattern is evident).

When to Use

  • Writing a commit message for a diff/change and want it done well.
  • Reviewing an existing commit message for clarity/convention compliance.
  • A project's commit history is inconsistent and needs a documented convention to follow going forward.

What to Analyze / Do

  1. Determine the convention in use — check recent commit history for a pattern (Conventional Commits type(scope): subject, or a different house style) and match it; default to Conventional Commits if none is evident.
  2. Identify the actual change type — feat, fix, refactor, docs, test, chore, perf, etc. — based on what the diff actually does, not what the author might casually call it.
  3. Write a subject line — imperative mood ("add" not "added"/"adds"), no trailing period, under ~72 characters, specific enough to be useful in a git log --oneline scan.
  4. Write a body when the "why" isn't obvious from the diff alone — motivation, context, trade-offs considered. Skip the body entirely for genuinely self-explanatory changes; an empty body isn't a defect.
  5. Flag breaking changes — using the convention's mechanism for it (e.g. BREAKING CHANGE: footer in Conventional Commits, or ! after the type/scope).

Output Format

  • Subject line first.
  • Blank line, then body (only if it adds real information beyond the subject).
  • Footer for breaking changes/issue references if applicable.
  • If reviewing an existing message rather than writing a new one: state what's good, what's unclear, and a rewritten version.

Avoid

  • Vague subjects like "fix stuff," "update code," "misc changes" — every commit message should say what actually changed.
  • Writing a body that just restates the subject in different words without adding context.
  • Forcing Conventional Commits format onto a project that clearly uses a different, established convention.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.