agentleFS
ahfarhan001-dotahfarhan001-dot/dev-ai-tools/skills/commit-helper/SKILL.md

commit-helper

Skill0 starsChanged 5 days agoMITView on GitHub

Write a clear conventional commit message from staged changes. Use when the user asks for a commit message, or before committing.

11 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use code-reviewer.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.

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 8 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:

    Look at the staged diff (git diff --cached).

    line 12
  2. Distinctive:

    No filler like "updated files" or "minor changes".

    line 25
  3. Distinctive:

    Never commit anything yourself — only write the message and show it to the user.

    line 38
  4. Distinctive:

    If the diff is huge or unclear, ask what the change is for instead of guessing.

    line 39
  5. Distinctive:

    Keep the subject honest: it must describe what the change actually does.

    line 40

“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 Helper

Turn staged changes into one good commit message. Follow Conventional Commits.

How to work

  1. Look at the staged diff (git diff --cached). If nothing is staged, say so and stop.
  2. Work out the single main purpose of the change. If the diff does two unrelated things, say that and suggest splitting the commit.
  3. Pick the type from this list:
    • feat — a new feature
    • fix — a bug fix
    • docs — documentation only
    • style — formatting, no code change
    • refactor — code change that is neither a feature nor a fix
    • test — adding or fixing tests
    • chore — build, tooling, or dependency changes
  4. Write the message:
    • Subject line: type(scope): short summary, 50 characters or fewer, lowercase, no full stop at the end.
    • Body (only if it adds real information): 1–3 short lines saying what changed and why. Wrap at 72 characters.
    • No filler like "updated files" or "minor changes".

Example

feat(auth): add password reset via emailed link

Users can now request a reset link from the login page.
The link expires after one hour.

Rules

  • Never commit anything yourself — only write the message and show it to the user.
  • If the diff is huge or unclear, ask what the change is for instead of guessing.
  • Keep the subject honest: it must describe what the change actually does.

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.