agentleFS
abevzabevz/devops-skills/skills/git-message/SKILL.md

git-message

Skill0 starsChanged 41 days agoMITView on GitHub

Use when the agent needs to write a Git commit message from staged or unstaged changes. Mention "commit message", "write a commit", or "conventional commit" as triggers.

  • Commits and pushes

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 7 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    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:

    Use read-only git diff --staged or git diff to inspect the actual change.

    line 18
  2. Distinctive:

    Do not invent a change the diff does not contain.

    line 22
  3. Distinctive:

    Follow the Workflow, Safety rules, and Quality checklist below.

    line 26
  4. Distinctive:

    Use when the user asks for a commit message, wants help writing one from a diff, or asks to follow Conventional Commits for a change that …

    line 36
  5. Very specific:

    Check for breaking changes.

    line 52
  6. Distinctive:

    Do not run git commit, git push, or stage files automatically unless the user explicitly asks you to.

    line 60
  7. Distinctive:

    Do not invent details not visible in the diff or supplied by the user — if intent is unclear, say so instead of guessing.

    line 62
  8. Distinctive:

    Never include secrets, tokens, or credentials that may appear in a diff.

    line 64

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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 Message

TL;DR checklist

  • Read staged changes, or unstaged diff if nothing is staged.
  • Choose the conventional type and useful scope.
  • Write an imperative subject and a body explaining motivation and context.

Key read-only checks

  • Use read-only git diff --staged or git diff to inspect the actual change.

Common pitfalls

  • Do not invent a change the diff does not contain.

Agent procedure

Follow the Workflow, Safety rules, and Quality checklist below.

Quick references

  • Workflow below.

Last verified: unverified

When to use

Use when the user asks for a commit message, wants help writing one from a diff, or asks to follow Conventional Commits for a change that is staged, unstaged, or described in words.

Goal

Produce a high-quality, Conventional-Commits-style commit message that explains why the change was made, not just what changed.

Workflow

  1. Inspect the diff (git diff --staged, falling back to git diff if nothing is staged).
  2. Identify the change type: feat, fix, refactor, docs, test, chore, perf, ci, build, style.
  3. Identify the scope (package, module, or service touched), if it adds clarity.
  4. Draft a subject line: <type>(<scope>): <imperative summary>, ≤72 characters.
  5. Draft a body: explain motivation and context, not a line-by-line restatement of the diff.
  6. Check for breaking changes; if present, add a BREAKING CHANGE: footer describing the impact and migration path.
  7. Note any risk (e.g. touches shared config, no tests added, affects a hot path) as a short "Risk notes" line.
  8. Suggest the exact git commit command the user can run, but do not run it yourself.

Safety rules

  • Do not run git commit, git push, or stage files automatically unless the user explicitly asks you to.
  • Do not invent details not visible in the diff or supplied by the user — if intent is unclear, say so instead of guessing.
  • Never include secrets, tokens, or credentials that may appear in a diff; flag them instead of quoting them.

Output format

Subject: <type>(<scope>): <summary>

Body:
<why this change was made, context, tradeoffs>

Breaking changes: <none | description + migration notes>

Risk notes: <none | short risk callout>

Suggested command:
git commit -m "<subject>" -m "<body>"

Quality checklist

  • Subject uses imperative mood and a valid Conventional Commits type
  • Subject is ≤72 characters
  • Body explains motivation, not just mechanics
  • Breaking changes are called out explicitly if present
  • No secrets or credentials are echoed from the diff
  • Commit was not executed automatically

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.