agentleFS
bt2gobt2go/claude-skills/skills/commit-message/SKILL.md

commit-message

Skill0 starsChanged 3 months agoMITView on GitHub

Use when the user is about to commit, asks for a commit message, or asks what to call a change.

62 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use changelog, refactor and 7 more.

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

    changelog

    Add a `.changelog/<PR_NUMBER>.txt` entry for a GitHub Pull Request, commit, and push.

    Also in 3 projects that use this

  • GitHubSkill

    refactor

    Surgical code refactoring to improve maintainability without changing behavior. Covers extracting functions, renaming variables, breaking down god functions, improving type safety, eliminating code smells, and applying design patterns. Less drastic than repo-rebuilder; use for gradual improvements.

    Also in 3 projects that use this

  • GoogleSkill

    grilling

    Grill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking, or uses any 'grill' trigger phrases.

    Also in 3 projects that use this

  • OpenAISkill

    brainstorming

    You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.

    Also in 3 projects that use this

  • GoogleSkill

    improve-codebase-architecture

    Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.

    Also in 3 projects that use this

  • MicrosoftSkill

    grill-with-docs

    Grilling session that challenges your plan against the existing domain model, sharpens terminology, and updates documentation (CONTEXT.md, ADRs) inline as decisions crystallise. Use when user wants to stress-test a plan against their project's language and documented decisions.

    Also in 3 projects that use this

  • +1 more from google

The file

We split this skill into the rules it gives an agent

10 rules. 0 are common, 9 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 51 edited versions we read keep these.

  • 9

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Write one conventional commit message from the staged diff.

    line 8
  2. Distinctive:

    Run git diff --staged --stat to see the shape of the change.

    line 12
  3. Distinctive:

    If the stat is empty, stop and tell the user nothing is staged.

    line 13
  4. Distinctive:

    Run git diff --staged and read it.

    line 14
  5. Distinctive:

    Write the subject in the imperative mood, under 52 characters, no trailing period.

    line 17
  6. Distinctive:

    Add a body only when the reason for the change is not visible in the diff.

    line 18
  7. Very specific:

    Add BREAKING CHANGE: or Closes #n footers only when the diff or the user gave you the fact.

    line 19
  8. Distinctive:

    Never write vague subjects like "update stuff" or "various fixes".

    line 23
  9. Distinctive:

    Never invent an issue number, a ticket id or a reviewer.

    line 24
  10. Distinctive:

    Never mention the tool that wrote the message.

    line 25

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

Write one conventional commit message from the staged diff. Nothing else.

Procedure

  1. Run git diff --staged --stat to see the shape of the change.
  2. If the stat is empty, stop and tell the user nothing is staged.
  3. Run git diff --staged and read it. Do not skim only filenames.
  4. Classify the change into exactly one type: feat, fix, refactor, perf, docs, test, chore, build, ci. When two apply, pick the one a reader would care about most.
  5. Set the scope to the top level directory that holds most of the changed lines. Drop the scope if the change spans three or more unrelated areas.
  6. Write the subject in the imperative mood, under 52 characters, no trailing period.
  7. Add a body only when the reason for the change is not visible in the diff. Wrap at 72 columns.
  8. Add BREAKING CHANGE: or Closes #n footers only when the diff or the user gave you the fact.

Rules

  • Never write vague subjects like "update stuff" or "various fixes".
  • Never invent an issue number, a ticket id or a reviewer.
  • Never mention the tool that wrote the message.
  • Describe what the change does, not what files moved.

Output format

<type>(<scope>): <subject>

<optional body>

<optional footer>

Print the message in a fenced block, then a single line offering to run the commit.

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.