agentleFS
Lanier-DevelopmentsLanier-Developments/claude-skills/skills/commit-message-conventions/SKILL.md

commit-message-conventions

Skill0 starsChanged 49 days agoMITView on GitHub

Write or rewrite git commit messages in Conventional Commits style with a clear subject and a body explaining why. Use when asked to commit changes, draft a commit message, clean up commit history, or write a PR description from a diff.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    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:

    Read the staged diff (or the commits in range) before writing anything.

    line 15
  2. Distinctive:

    Write the subject: imperative mood, no trailing period, 72 characters or fewer.

    line 17
  3. Distinctive:

    Write the body only when the reason is not obvious from the diff.

    line 18
  4. Distinctive:

    Follow any attribution or trailer rules the project or environment specifies.

    line 34

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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

Commit Message Conventions

When to use

  • The user asks for a commit message, a squash message, or a PR summary.
  • Reviewing a branch whose history needs tidying before merge.

Steps

  1. Read the staged diff (or the commits in range) before writing anything.
  2. Pick the type: feat, fix, docs, refactor, test, chore, ci, or perf. Add a scope in parentheses if one area dominates.
  3. Write the subject: imperative mood, no trailing period, 72 characters or fewer.
  4. Write the body only when the reason is not obvious from the diff. Explain why the change was made and any trade-off, not a line-by-line restatement.
  5. Note breaking changes with a BREAKING CHANGE: footer.

Output

A commit message in this shape:

type(scope): short imperative summary

Why this change was needed, and anything a reviewer should know.

Notes

  • One logical change per commit. If the diff mixes concerns, suggest splitting it.
  • Follow any attribution or trailer rules the project or environment specifies.

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.