writing-commit-messages
Skill0 starsChanged 47 days agoMITView on GitHub
Use when a commit is about to be made — "commit this", staged changes waiting, a fix-up after review, a delegated diff the orchestrator is committing — and when a commit message is being edited or squashed before a push.
15 other projects use a version of this.
Adopted by
Most recently taken up by
- steventsvik/GhosttyEXTREMEtheir own version, first seen Nov 8, 2026
- steventsvik/Telluriontheir own version, first seen Nov 8, 2026
- jyjeanne/ditacrafttheir own version, first seen Nov 1, 2026
- Wescholm/ghostty-fleettheir own version, first seen Oct 15, 2026
- weaverbase/skillstheir own version, first seen Oct 13, 2026
- dzakirinf/skillstheir own version, first seen Oct 13, 2026
Other versions15 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 15
- ghostty-org/ghostty★ 64ksame name
- ZenPrivacy/zen-desktop★ 4.4ksame name
- rjdellecese/confect★ 381same name
- steventsvik/GhosttyEXTREME★ 141same name
- steventsvik/Tellurion★ 141same name
- Lugia123/polter★ 20same name
- jyjeanne/ditacraft★ 19same name
- lucavb/skills★ 3same name
- witi-projects/Skills★ 2same name
- dzakirinf/skills★ 1same name
5 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository18 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- addressing-review-feedbackSkill
- budgeting-agentic-workSkill
- delegating-to-subagentsSkill
- git-syncSkill
- implementation-gatesSkill
- implement-planSkill
- landing-merged-workSkill
- maintaining-project-memorySkill
- plan-featureSkill
- reporting-defects-upstreamSkill
- review-prSkill
- tracking-open-asksSkill
- verifying-before-sendingSkill
- writing-code-commentsSkill
- writing-for-audiencesSkill
- writing-plan-docsSkill
- writing-pr-descriptionsSkill
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 15 edited versions we read keep these.
0
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
- Very specific: line 41
When an agent produced the diff, the orchestrator commits it (delegating-to-subagents owns that rule) and writes the message from the diff …
“Common” is measured: kept by at least 6 in 10 of the 15 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.
Files
Writing Commit Messages
A commit message is read after the branch is gone: in blame, in generated release notes, and by the PR description that curates its body. It is the durable record of why the tree changed, so it describes the change and its mechanism, never the session that produced it.
The shape
- Subject: the outcome of applying the commit, imperative, in the repo's own convention — read
git log --format=%s -20before writing the first one. It states what is true after the commit, not the activity: "Address review comments", "Fix typo", "Update summary", "WIP" tell the reader nothing they can act on. - Body: the mechanism, whenever the subject cannot carry it — what was wrong or missing, and why this shape of change. Present tense for what now holds. This is the "why" the PR description curates and the release notes print; if it is not here, it is nowhere.
- Trailers: only the ones the repo's own history or contributing guide asks for — an issue reference, a sign-off; the repo's log shows which exist here, and a trailer another tool offers by default is that tool's convention, not the repo's. The exception is the attribution trailer the harness itself instructs you to add: that instruction sits in the session's system context, which a loaded skill does not outrank, so the harness's own attribution setting and the user's instruction files decide it, not this skill. A repository that keeps attribution out says so in one of those, where the harness reads it.
Example of the shape (invented):
Retry the export upload once on a gateway timeout
The upstream gateway drops long uploads with a 504 a few times a day, and every one of them surfaced as a failed export the operator had to rerun by hand. A 504 now retries once after a short pause; any other failure still fails the export immediately.
What the message never carries
- Who asked, and when. "As the reviewer requested", "after the demo", "per our discussion" — the request lives in the thread and the ticket; the commit records the change. A reference the repo's convention asks for ("Closes #12") is a trailer, not narration.
- The session's route. Attempts, reverts, "also while I was in there". The diff shows what changed; the message says why.
- The file list.
git show --stathas it, with provenance.
One commit per workstream
Staged changes that would be reverted separately are separate commits. The test: if one of them turns out wrong, can it be reverted without the other? "Also fixed X while there" in a draft body is the tell that two workstreams are staged as one — split them (git add -p) before writing either message.
The split follows what compiles, not the kind of file: an existing test that now specifies the changed behavior belongs in the commit that changes the behavior. Split into a separate tests commit, the source commit fails its own suite and breaks bisect across the range. Check each commit of a split at its own SHA in a detached worktree — the working tree that resembles the last commit says nothing about the first.
A fix to a mistake made on this same branch, before anyone reviewed it, is not a commit with a story: mark it for the commit it fixes (git commit --fixup <sha>). The squash that rewrites history is the author's decision — perform it only when the branch is unpushed and the user has asked for it; otherwise leave the fixup commit in place and say it is there. After review, the fix is its own commit whose message describes the delta, not the review.
Delegated diffs
When an agent produced the diff, the orchestrator commits it (delegating-to-subagents owns that rule) and writes the message from the diff and the brief, never from the agent's report — the report narrates; the message states.
Red flags
| Thought | Reality |
| "The reviewer asked for this — say so" | The thread holds the request. The message holds the change |
| "It's tiny, 'fix typo' is enough" | Say what is now correct. The subject is the outcome |
| "I'll mention the other thing I fixed" | Two workstreams, two commits. Split first, then write |
| "The tool adds a trailer, leave it" | The repo's log decides, bar the harness's own attribution trailer, which its setting and the user's instructions decide |
| "The agent's summary is the message" | The report narrates; the message states the mechanism |
| "It's a fixup, I'll squash it now" | History rewrites are the author's call. Mark it, say it is there |
| "The PR description will explain it" | It curates from bodies. An empty body leaves it nothing to curate |
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
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.

