agentleFS
Lethe044Lethe044/agentskill-kit/skills/commit-message-writer/SKILL.md

commit-message-writer

Skill48 starsChanged 17 days agoMITView on GitHub

Writes clear git commit messages in the conventional commits style from a diff or a description of the change. Use when the user asks for a commit message, wants to tidy up a message before pushing, or has staged changes and no wording yet.

7 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

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

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 5

    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:

    Use the body for the reason, the trade-off or the side effects.

    line 36
  2. Distinctive:

    If the diff mixes unrelated changes, say so and propose one message per change.

    line 38
  3. Distinctive:

    Read the diff and find the single main intent.

    line 42
  4. Distinctive:

    Write the summary, then the body only if the reason is not obvious.

    line 44
  5. Distinctive:

    If there is no diff and no description, ask what changed instead of guessing.

    line 61

“Common” is measured: kept by at least 6 in 10 of the 6 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 message writer

When to use

  • The user pastes a diff, or says "write a commit message for this".
  • The user shows a vague message ("fix stuff", "wip") and wants it improved.
  • A change touches several areas and should be split into more than one commit.

Format

<type>(<optional scope>): <summary>

<optional body>

<optional footer>

Types: feat, fix, docs, refactor, perf, test, build, ci, chore. Add ! after the type or a BREAKING CHANGE: footer for incompatible changes.

Rules

  1. The summary is at most 72 characters, in the imperative mood ("add", not "added"), with no trailing period.
  2. Say what changed and why, not how. The diff already shows how.
  3. Use the body for the reason, the trade-off or the side effects. Wrap lines at 72 characters.
  4. Reference issues in the footer, for example Closes #42.
  5. If the diff mixes unrelated changes, say so and propose one message per change.

Steps

  1. Read the diff and find the single main intent.
  2. Pick the type and a scope that matches a folder or module name used in the repo.
  3. Write the summary, then the body only if the reason is not obvious.
  4. Return the message in a code block, and mention any suggested split.

Example

Change: a retry loop was added around an HTTP call and the timeout was raised from 5 to 15 seconds.

fix(client): retry failed requests and raise timeout

The upstream API drops about 2% of connections under load. Retry up to
three times with backoff and use a 15 second timeout so slow responses
are not cut off.

Errors

If there is no diff and no description, ask what changed instead of guessing.

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.