Commit Rules
A shared rule set defining commit message style and hard technical constraints for any skill that creates git commits.
Dev & CodingBeginner★ 405⑂ 32AI score 7/10Last updated: Sep 28, 2026
What it does
- Tells Claude to inspect
git log -n 10 --onelineand match the repository's existing commit style. - Enforces message conventions: imperative mood, present tense, subject ≤100 characters, no commit body — everything in one line.
- Locks in technical constraints: use
git commit -m "..."directly (no heredoc, since the sandbox blocks temp files), never bypass commit signing (--no-gpg-sign), and ask the user when signing fails. - Forbids leaking local-only
.turbo/details (filenames, step numbers, headings) into commit messages.
Who it's for
- Developers who want consistent, high-quality commit messages enforced automatically.
- Anyone using GPG-signed commits who wants to guarantee the agent never disables signing.
- People building multiple custom skills that should share one commit policy.
Examples
- You say "commit this" — Claude checks the last 10 commits and writes a one-line message in the same tone.
- A commit fails because a signing key prompt needs approval — Claude asks you how to proceed instead of silently skipping the signature.
- A release or PR skill references this file so both reuse the identical commit rules.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/tobihagemann/turbo/HEAD/claude/skills/commit-rules/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the claude/skills/commit-rules folder from the GitHub repo tobihagemann/turbo into my ~/.claude/skills/commit-rules/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/tobihagemann/turbo.git && mkdir -p ~/.claude/skills && cp -r turbo/claude/skills/commit-rules ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Create the skills directory:
mkdir -p ~/.claude/skills - Clone the repo:
git clone https://github.com/tobihagemann/turbo.git - Copy the skill:
cp -r turbo/claude/skills/commit-rules ~/.claude/skills/ - (Optional) Edit
~/.claude/skills/commit-rules/SKILL.mdto adjust or remove the.turbo/specific rule for your own project. - Restart Claude Code and try "commit following the commit rules" to confirm it loads.
View source on GitHub ↗License: MIT