agentleFS
romermaromerma/mstack/skills/commit/SKILL.md

commit

Skill1 starsChanged 13 days agoMITView on GitHub

Write commit messages that hold to Conventional Commits 1.0.0, with the type the change actually earns and a description a stranger can read from the log alone. Use before every git commit, when amending or rewording one, when squashing, and when writing a PR title.

187 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use act-on-feedback, generate-run-commands and 10 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

    act-on-feedback

    Act on user feedback attached to the current session. Use when the user submits feedback on the session's changes via the Submit Feedback button.

    Also in 4 projects that use this

  • MicrosoftSkill

    generate-run-commands

    Generate or modify run commands for the current session. Use when the user wants to set up or update run commands that appear in the session's Run button.

    Also in 4 projects that use this

  • shawn-dumasSkill

    validate-plan

    Validate an orchestration plan after pre-flight certification. Runs adversarial review, deep review (verify prompt data against codebase), and PoC gate for risky approaches. Auto-invoked by orchestrate-* skills at Step 8.

    Also in 5 projects that use this

  • MindgamesSkill

    branch

    Use when a user asks to create a new local git branch and start issue work (for example, "create branch" or "start working on issue XYZ"). Use this for issue-based branch naming in the `type/scope-short-description` pattern and for always syncing local `main` from `origin/main` before creating the new branch, creating the local tracking `main` branch first when needed.

    Also in 9 projects that use this

  • decocmsSkill

    add-mcp-tools

    Guide for adding new MCP tools with consistent patterns for schemas, tool definitions, registry updates, and Better Auth integration

    Also in 3 projects that use this

  • mitsuhikoSkill

    oebb-scotty

    Austrian rail travel planner (ÖBB Scotty). Use when planning train journeys in Austria, checking departures/arrivals at stations, or looking for service disruptions. Covers ÖBB trains, S-Bahn, regional trains, and connections to neighboring countries.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 166 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    One commit, one change: If the description needs an "and" joining two unrelated things, it is two commits.

    line 51
  2. Very specific:

    Keep the subject short enough to read in git log --oneline.

    line 54
  3. Distinctive:

    Check the type against what actually changed, not against what you set out to do.

    line 84
  4. Very specific:

    Check the repository's CLAUDE.md or CONTRIBUTING.md for rules of its own.

    line 85
  5. Very specific:

    Do not claim otherwise when explaining a rejection.

    line 89

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

The log is read by people who were not in the session. A subject that made sense with the diff open in front of you is not the test. The test is whether it still says something six months later in git log --oneline.

$ARGUMENTS

The shape

<type>[optional scope]: <description>

[optional body]

[optional footer(s)]

The colon and the space after it are required. So is the description.

Pick the type

Two are fixed by the spec and the rest are convention:

  • feat when the commit adds a feature. This is the only thing that earns feat.
  • fix when the commit repairs a bug. Not "touched a file under src/".
  • docs, test, refactor, perf, build, ci, style, chore, revert for everything else.

The type is a claim about the change, and a wrong one is a lie the release tooling believes: fix cuts a PATCH release, feat cuts a MINOR one, and a breaking change cuts a MAJOR one. Reaching for chore because the change is hard to classify is how a feature ships unreleased.

A scope is optional. Use one when the repository has real sections a reader would recognise (fix(parser):), and leave it off rather than inventing one.

Write the description

The spec says only that a description follows the colon and space, and that it is a short summary of the change. Write it so a stranger can read it from the log:

  1. Imperative mood is a common habit, not a rule: "add the receipt" rather than "adds" or "added". Follow it where the repository does.
  2. Name the change, not the file. "fix the gate" says nothing that --stat does not.
  3. One commit, one change. If the description needs an "and" joining two unrelated things, it is two commits.

Keep the subject short enough to read in git log --oneline. A repository's own rules, in its CLAUDE.md or CONTRIBUTING.md, extend or override this skill, including any length limit, casing or trailer policy; read them before you commit.

Breaking changes

Mark them in the prefix with !, in a footer, or both:

feat(api)!: take the store root from the manifest

BREAKING CHANGE: MSTACK_ROOT is no longer read.

BREAKING CHANGE is uppercase, and it is the one part of the format that is case sensitive. BREAKING-CHANGE is the same token. With ! in the prefix the footer may be dropped, and the description then has to carry the break on its own.

Body and footers

The body starts one blank line after the description and says why, not what. The diff already holds the what. A body earns its place when the change had a reason that is not obvious: a rejected alternative, a constraint, a measurement.

Footers start one blank line after the body. Each is a token, then : or #, then a value. Tokens use - instead of spaces, so Reviewed-by, Refs: #33, Closes #12.

Before you commit

  1. git diff --staged. Commit what is staged, not what you remember doing.
  2. Check the type against what actually changed, not against what you set out to do.
  3. Check the repository's CLAUDE.md or CONTRIBUTING.md for rules of its own.

What the standard does not say

Do not claim otherwise when explaining a rejection. Conventional Commits 1.0.0 does not require imperative mood, lower case, a subject length limit, or any particular type beyond feat and fix. It is also silent on merge commits. A repository may enforce any of these as a house rule, but a house rule is not the specification.

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.