create-commit-message
Skill486 starsChanged 15 days agoApache-2.0View on GitHub
Rules and guidelines for creating well-formatted commit messages, including 72-char limits, scope prefixes, and trailer blocks for tasks, PR closing, and attribution.
We split this skill into the rules it gives an agent
12 rules. 0 are common, 5 are distinctive, and 7 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
When asked to create a commit message, follow these exact guidelines:
- Very specific: line 11
Start the subject line with a scope prefix in brackets, e.g., [tui], [core], [macro].
- Very specific: line 12
Always scan the recent git log history for the files you are modifying to determine the appropriate prefix.
- Distinctive: line 15
Subject Line: Keep the subject line (including the scope prefix) to a maximum of 72 characters.
- Distinctive: line 17
Tone: Use the imperative mood in the subject line (e.g., "Add feature" not "Added feature").
- Distinctive: line 20
All trailers MUST be grouped together in a single contiguous block at the absolute end of the commit message.
- Very specific: line 26
When a commit implements work from a task/*.md file, add a Task: trailer.
- Very specific: line 27
Do NOT include any directory prefixes (like task/ or task/done/) in the filenames.
- Very specific: line 34
If the commit fully resolves a GitHub Issue or PR, include Closes #XXX.
- Very specific: line 36
If you are integrating work from another contributor (e.g., merging a community PR manually), include their attribution: Co-authored-by: …
- Distinctive: line 53
If the user asks you to copy the commit message to the clipboard (e.g., they will handle the actual git commit step themselves), execute …
- Very specific: line 54
Write the commit message to /tmp/commit.msg.txt using the write_to_file tool.
“Common” is measured: kept by at least 6 in 10 of the 3 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
Create Commit Message Skill
You are an expert at writing clean, standard, and highly descriptive git commit messages. When asked to create a commit message, follow these exact guidelines:
1. Scope Prefix (Mandatory)
Start the subject line with a scope prefix in brackets, e.g., [tui], [core], [macro].
- Always scan the recent
git loghistory for the files you are modifying to determine the appropriate prefix. For example:git log --oneline -- <file_path>will show you what prefix is typically used for that component.
2. Formatting & Length Constraints
- Subject Line: Keep the subject line (including the scope prefix) to a maximum of 72 characters.
- Body: Wrap the commit message body to 72 characters per line.
- Tone: Use the imperative mood in the subject line (e.g., "Add feature" not "Added feature").
3. Trailer Block (Footers)
All trailers MUST be grouped together in a single contiguous block at the absolute end of the commit message.
- There must be exactly one blank line before the start of the trailer block.
- There must be zero blank lines between the trailers themselves.
Required / Optional Trailers
- Task Tracking (
Task:):- When a commit implements work from a
task/*.mdfile, add aTask:trailer. - Do NOT include any directory prefixes (like
task/ortask/done/) in the filenames. - For multiple tasks, list them on separate lines with a comma ending each line except the last.
Task: one.md, two.md
- When a commit implements work from a
- Issue/PR Closing (
Closes):- If the commit fully resolves a GitHub Issue or PR, include
Closes #XXX.
- If the commit fully resolves a GitHub Issue or PR, include
- Attribution (
Co-authored-by:):- If you are integrating work from another contributor (e.g., merging a community PR manually), include their attribution:
Co-authored-by: Name <email@example.com>.
- If you are integrating work from another contributor (e.g., merging a community PR manually), include their attribution:
Example
[tui] Add DECCKM tracking and refactor parser state
This commit integrates the DECCKM (Cursor Key Mode) tracking logic from
PR #470, adding the missing `cursor_key_mode` field to the terminal
state and validating it with a new conformance integration test.
Task: prepare-v0.8.0-meta-task.md,
pty-mux-bracketed-paste.md
Closes #470
Co-authored-by: Cecile Tonglet <cecile.tonglet@cecton.com>4. Copying to Clipboard
If the user asks you to copy the commit message to the clipboard (e.g., they will handle the actual git commit step themselves), execute these exact steps:
- Write the commit message to
/tmp/commit.msg.txtusing thewrite_to_filetool. - Execute the following in the
run_commandtool:fish -c "cat /tmp/commit.msg.txt | setclip" - Execute the following in the
run_commandtool:rm /tmp/commit.msg.txt
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- isac7722/skills★ 1same name
- nortonx/ai-tooling-free★ 1same name
- richardkmichael/claude-rodin★ 0same name
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 repository30 other files it gives its agents.
- .agents/AGENTS.mdAGENTS.md
- AGENTS.mdAGENTS.md
- build-infra/AGENTS.mdAGENTS.md
- rust-analyzer-mcp-server/AGENTS.mdAGENTS.md
- task/AGENTS.mdAGENTS.md
- llms.txtllms.txt
- analyze-log-filesSkill
- analyze-performanceSkill
- audit-taskSkill
- batch-refactor-with-sub-agentsSkill
- check-bounds-safetySkill
- check-code-qualitySkill
- check-test-coverageSkill
- code-reviewSkill
- concurrency-safetySkill
- create-prSkill
- design-philosophySkill
- fast-string-allocationsSkill
- fix-issueSkill
- merge-prSkill
- organize-modulesSkill
- organize-testsSkill
- release-crateSkill
- remove-crate-prefixSkill
- review-prSkill
- run-clippySkill
- safe-renamingSkill
- test-cross-platformSkill
- write-documentationSkill
- write-structured-tracingSkill
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.

