agentleFS
ankitgoyalioankitgoyalio/skills/skills/write/git-commit-message/SKILL.md

git-commit-message

Skill1 starsChanged 2 months agoMITView on GitHub

Draft or revise Git commit messages in Conventional Commits format. Use when the user asks for a commit message, wants changes summarized for a commit, or needs an existing commit message checked or improved.

23 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use brainstorm and tdd.

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.
  • nicolasestremSkill

    brainstorm

    Structured idea generation and solution exploration with systematic analysis.

    Also in 3 projects that use this

  • GoogleSkill

    tdd

    Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 18 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use the user's stated intent and supplied diff as the primary evidence.

    line 20
  2. Distinctive:

    If the evidence contains unrelated changes, propose a separate message for each logical commit instead of hiding them under a vague subject.

    line 22
  3. Distinctive:

    Ask a focused question only when missing intent would materially alter the type, scope, or breaking-change declaration.

    line 23
  4. Very specific:

    Add a short, stable scope only when it helps locate the affected area, such as parser, auth, or cli.

    line 35
  5. Very specific:

    Add ! before the colon when the change breaks compatibility.

    line 36
  6. Distinctive:

    Write a concise imperative description that states the outcome.

    line 37
  7. Distinctive:

    Use the body to explain motivation, important behavior, or non-obvious tradeoffs.

    line 42
  8. Distinctive:

    Put issue references, acknowledgements, and other trailers after another blank line.

    line 43

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

Git Commit Message

Produce a message that accurately represents one logical change:

<type>[optional scope][optional !]: <description>

[optional body]

[optional footer(s)]

Gather the change

  • Use the user's stated intent and supplied diff as the primary evidence.
  • In a Git worktree, inspect git status --short, the relevant diff, and recent commit subjects when that context is needed. Prefer the staged diff for a pending commit; keep staged and unstaged changes distinct.
  • If the evidence contains unrelated changes, propose a separate message for each logical commit instead of hiding them under a vague subject.
  • Ask a focused question only when missing intent would materially alter the type, scope, or breaking-change declaration.
  • Drafting a message does not authorize staging files, creating a commit, amending history, or pushing.

Choose the header

  • Select the narrowest accurate type. Prefer repository-defined types when available; otherwise use:
    • feat: user-visible capability or behavior
    • fix: bug correction
    • perf: performance improvement
    • refactor: internal restructuring without a feature or fix
    • docs, test, build, ci, style, or chore: the corresponding supporting change
    • revert: reversal of an earlier change
  • Add a short, stable scope only when it helps locate the affected area, such as parser, auth, or cli.
  • Add ! before the colon when the change breaks compatibility.
  • Write a concise imperative description that states the outcome. Keep it specific, omit a trailing period, and avoid implementation trivia already obvious from the diff.

Add context only when useful

  • Omit the body for a small, self-explanatory change.
  • Use the body to explain motivation, important behavior, or non-obvious tradeoffs. Separate it from the header with one blank line.
  • Put issue references, acknowledgements, and other trailers after another blank line.
  • For a breaking change that needs migration detail, add a BREAKING CHANGE: <impact and migration> footer. The footer must describe what consumers need to change.

Deliver

Return the ready-to-use commit message without commentary unless the user asks for alternatives or an explanation. Preserve exact multiline formatting. When reviewing an existing message, provide the corrected message first, followed by only the material reasons for the revision.

Examples:

feat(search): add filters for archived results
refactor(config)!: replace legacy environment names

Use one canonical name for each deployment environment.

BREAKING CHANGE: rename `qa` to `staging` in deployment configuration.

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.