agentleFS
Haitam-ElgharrasHaitam-Elgharras/claude-skill-improver/skills/commit-message/SKILL.md

commit-message

Skill1 starsChanged 4 months agoMITView on GitHub

Write a Conventional Commits message for staged changes. Use when the user asks for a commit message, asks you to commit staged work, or asks to reword the last commit. Do not use for branch names, PR titles, or changelog entries.

62 other projects use a version of this, 1 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use pr-description, changelog and 9 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.
  • MicrosoftSkill

    pr-description

    Draft Nacelle PR titles, pull request descriptions, commit titles, commit descriptions, and squash commit messages. Use when asked for PR or commit wording, a branch summary, or a PR description that can be used in a commit. Omit validation sections from commit bodies and remove filler.

    Also in 9 projects that use this

  • 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

    code-review

    Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.

    Also in 7 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

  • +2 more from google

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 51 edited versions we read keep these.

  • 3

    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 Commits message describing the staged changes.

    line 8
  2. Distinctive:

    Run git diff --staged. If nothing is staged, run git diff and say you're describing unstaged changes.

    line 17
  3. Distinctive:

    Never invent a scope or a ticket reference that isn't in the diff or the user's message.

    line 64
  4. Very specific:

    Never add trailers (Co-Authored-By, Signed-off-by) unless asked.

    line 66

“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 Commits message describing the staged changes.

This is the demo skill shipped with claude-skill-improver. It exists so you can drive the feedback → eval → patch loop end to end without writing a skill first. It's small on purpose — the point is the loop, not the skill. Delete it once you've pointed the loop at your own skills.

Step 1 — Read the change

Run git diff --staged. If nothing is staged, run git diff and say you're describing unstaged changes. If both are empty, stop and say there's nothing to describe.

Step 2 — Pick the type and scope

typeuse when
featnew user-facing capability
fixcorrects broken behaviour
refactorrestructures code without changing behaviour
docsdocumentation only
testtests only
chorebuild, deps, tooling, config

Scope is the affected area in lowercase (auth, parser, ci). Omit the scope rather than inventing a vague one like core or misc.

Step 3 — Write the subject

Format: type(scope): summary

  • Imperative mood: "add", not "added" or "adds".
  • Lowercase after the colon, unless starting with a proper noun.
  • No trailing period.
  • 72 characters maximum, including the type and scope.
  • Describe the effect of the change, not the files touched. fix(auth): reject expired refresh tokens — not fix(auth): update token.ts.

Step 4 — Add a body only when it earns its place

Skip the body when the subject already says everything. Add one when the change needs a why: what was broken, what constraint forced this approach, what the reader would otherwise misread.

Wrap the body at 72 characters. Separate it from the subject with a blank line.

Step 5 — Output

Print the message in a fenced block and nothing else — no preamble, no summary of what you did, no offer to commit unless the user asked you to commit.

Rules

  • One commit message per invocation. If the staged diff clearly contains two unrelated changes, say so and suggest how to split the staging, but still produce the single best message for what's staged.
  • Never invent a scope or a ticket reference that isn't in the diff or the user's message.
  • Never add trailers (Co-Authored-By, Signed-off-by) unless asked.

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.