agentleFS
hugobatistahugobatista/agent-skills/skills/utilities/commit-message/SKILL.md

commit-message

Skill1 starsChanged 53 days agoMITView on GitHub

Propose a git commit message using conventional commits format (feat:, fix:, refactor:, etc.) based on staged/unstaged changes. Always in English. Never commit without explicit user approval.

62 other projects use a version of this.

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

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

  • 0

    Common

    Most of the 51 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:

    When the user asks you to suggest or propose a commit message, follow this workflow.

    line 10
  2. Distinctive:

    If empty, fall back to:

    line 18
  3. Distinctive:

    If both are empty, inform the user and stop.

    line 24
  4. Distinctive:

    Never commit automatically: Only run git commit if the user explicitly says to (e.g.

    line 50
  5. Distinctive:

    If the user asks for adjustments, incorporate the feedback and re-propose.

    line 54

“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

When the user asks you to suggest or propose a commit message, follow this workflow.

1. Detect changes

git diff --cached

If empty, fall back to:

git diff

If both are empty, inform the user and stop.

2. Analyze the diff

Determine these four parts:

PartRules
TypeOne of feat, fix, refactor, docs, style, test, chore, perf, ci, build, revert. Prefer feat/fix unless the change is clearly neither.
Scope (optional)The module or area affected. Infer from file paths (e.g. auth, expenses, ui, backend, frontend).
Short descriptionImperative present tense, lowercase, no trailing period, max 72 characters.
Body (optional)Blank line followed by bullet points or short paragraphs explaining motivation and context. Wrap at 72 characters.

3. Propose

Present the message in a code block. Ask the user:

  • Use as-is?
  • Edit it (adjust type / scope / description)?
  • Reject and start over?

4. Commit only on explicit approval

git commit -m "type(scope): description" -m "body line 1\nbody line 2"

Never commit automatically. Only run git commit if the user explicitly says to (e.g. "yes, commit it", "go ahead").

5. Iterate

If the user asks for adjustments, incorporate the feedback and re-propose.

Examples

feat(auth): add force password change on first login
fix(expenses): prevent division by zero in split calculation

The split amount formula divided by participant count without
checking for zero, causing a 500 error when removing all
participants.
refactor(api): extract validation logic into reusable helpers
docs: update API endpoint list in architecture.md

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.