agentleFS
shinzoxDshinzoxD/knackbox/skills/coding/commit-messages/SKILL.md

commit-messages

Skill0 starsChanged 5 months agoApache-2.0View on GitHub

Write clear, conventional git commit messages from diffs or

9 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 4

    Distinctive

    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:

    Test: the line should complete the sentence "If applied, this commit will ___".

    line 37
  2. Distinctive:

    Never end the summary with a period.

    line 39
  3. Distinctive:

    Add a body only when the diff doesn't speak for itself — explain constraints, trade-offs, or the bug's root cause.

    line 42
  4. Distinctive:

    No diff provided: ask for git diff --staged output or a short description of the change.

    line 72

“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “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 Messages

Produce commit messages in Conventional Commits style that explain why a change exists, not just what changed. A reader six months from now should understand the intent without opening the diff.

Format

<type>(<optional scope>): <summary in imperative mood, ≤50 chars>

<optional body: what and why, wrapped at 72 chars>

<optional footer: BREAKING CHANGE, issue refs>

Types: feat, fix, refactor, perf, docs, test, build, ci, chore.

Rules

  1. Summary line uses the imperative mood: "add", not "added" or "adds". Test: the line should complete the sentence "If applied, this commit will ___".
  2. Never end the summary with a period.
  3. Choose the type by intent, not by files touched: a bug fix that adds a test is fix, not test.
  4. Add a body only when the diff doesn't speak for itself — explain constraints, trade-offs, or the bug's root cause. Skip it for trivial changes.
  5. Breaking changes get a ! after the type/scope and a BREAKING CHANGE: footer describing the migration.
  6. One logical change per message. If the diff contains unrelated changes, say so and propose splitting it into separate commits.

Examples

Good:

fix(auth): prevent session fixation on login

Regenerate the session ID after successful authentication.
Previously the pre-login session ID was reused, allowing an
attacker who set a victim's cookie to hijack the session.

Closes #482

Bad (vague, past tense, wrong type):

chore: updated some auth stuff and fixed bugs.

Edge cases

  • No diff provided: ask for git diff --staged output or a short description of the change; don't invent specifics.
  • Huge mixed diff: summarize the dominant change as the commit, list the unrelated changes, and recommend separate commits for them.
  • User's repo has its own convention (visible from git log): match the existing convention instead of this one, and say you're doing so.

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.