agentleFS
yezzzpyezzzp/agent-relay-protocol/skills/commit/SKILL.md

commit

Skill0 starsChanged 7 days agoMITView on GitHub

Writes and creates commits following Conventional Commits, splitting the work into atomic commits and verifying first. Use when the user asks to commit, save the work, or leave the tree clean. Also when closing a step of a plan.

186 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

  • 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

  • thoughtbotSkill

    implement-with-tdd

    Implement a SPEC, plan, or feature outside-in, with TDD.

    Also in 3 projects that use this

  • thoughtbotSkill

    multi-lens-review

    Review a change for defects, then against its spec, its codebase's conventions, the domains trying to emerge from it, and whatever still depends on what it replaced.

    Also in 3 projects that use this

  • +1 more from thoughtbot

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 6 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 165 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If the tree mixes unrelated changes, do not put them in one commit.

    line 25
  2. Distinctive:

    When two unrelated changes live in the same file, you need to go down to hunks (git apply --cached with a patch).

    line 28
  3. Distinctive:

    If the whole tree is a single logical unit, one commit is enough.

    line 33
  4. Very specific:

    Run the verify command from section 3 of AGENTS.md (or verify.quick in .arp/config.toml) on the whole tree, before the first commit.

    line 37
  5. Distinctive:

    If it fails: commit nothing.

    line 40
  6. Distinctive:

    No body if it touches ≤2 files and the change is obvious from the subject.

    line 75
  7. Distinctive:

    Do not use git commit -a: it breaks the split of step 2.

    line 99
  8. Distinctive:

    Do not amend or rebase already published commits unless asked.

    line 100

“Common” is measured: kept by at least 6 in 10 of the 165 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 — readable, English, atomic history

A commit answers one question: why does this change exist. The diff already says what changed; the message does not repeat it.

1. Look before you write

git status --short
git diff --staged
git diff
git log --oneline -20

The git log is not optional: it gives you the scopes the project already uses. Reuse them instead of inventing synonyms (installer today, install tomorrow).

2. Split the work

If the tree mixes unrelated changes, do not put them in one commit. Group by logical unit and commit one at a time, git add <file> file by file.

When two unrelated changes live in the same file, you need to go down to hunks (git apply --cached with a patch). There, show the commit plan and wait for the user's approval before touching the index. It is the operation where it is easiest to break something.

If the whole tree is a single logical unit, one commit is enough. Do not invent splits.

3. Verify once, before the batch

Run the verify command from section 3 of AGENTS.md (or verify.quick in .arp/config.toml) on the whole tree, before the first commit.

If it fails: commit nothing. Report the error and stop.

Relay commits (wip) are outside this skill: they are save points, not history entries. Their rules are in section 8 of AGENTS.md.

4. Message format

The whole message is in English, even if the conversation is in another language.

type(scope): subject in the imperative

Body wrapped at 72 columns when it applies.

BREAKING CHANGE: what breaks and what to do about it.

Types: feat fix refactor docs test chore perf build ci.

refactor does not change behavior. If it does, it is feat or fix.

A tenth type, wip, exists but you do not write it with this skill: it belongs to the relay protocol and is defined in section 8 of AGENTS.md.

Scope: the top-level directory or module of the touched file, checked against the ones in git log. If the change is cross-cutting, omit it: chore: bump ruff.

Subject: imperative (add, never added or adds), lowercase first letter, no trailing period, ≤50 characters.

Breaking change: ! before the colon (feat(api)!: ...) and a BREAKING CHANGE: footer describing what breaks.

5. When it gets a body

No body if it touches ≤2 files and the change is obvious from the subject.

A body is mandatory if any of these holds:

  • it touches ≥3 files,
  • it changes behavior observable from outside (API, CLI, output format),
  • there was a design decision with alternatives.

The body says why, and what was rejected and why. It never lists files or lines: that is the diff.

refactor(installer): extract TUI selection into a function

The interactive block was tangled with argument parsing, which made
--agents impossible to test without a TTY.

Dropped `dialog`: an external dependency for what amounts to 30 lines
of ANSI escapes.

6. Limits

  • Never push. The user decides that.
  • Do not use git commit -a: it breaks the split of step 2.
  • Do not amend or rebase already published commits unless asked.

7. Close

One line per commit created: short hash and subject. If you stopped because verification was red or you were waiting for hunk approval, say so and do not go on.

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.