commit
Skill459 starsChanged 3 months agoMITView on GitHub
MANDATORY skill for ALL commits. Must be used EVERY TIME before creating any git commit. No exceptions.
We split this skill into the rules it gives an agent
15 rules. 0 are common, 12 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 168 edited versions we read keep these.
12
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
- Distinctive: line 12
ALWAYS: run git diff --staged first to see changes
- Very specific: line 15
ALWAYS: run the checks relevant to the change before committing (there are no test/lint/format scripts — invoke the binaries with npx.
- Distinctive: line 20
NEVER: commit automatically as a side effect of making code changes.
- Distinctive: line 32
If splitting into multiple commits: the full split plan (which files go in which commit, in what order)
- Distinctive: line 33
If fixup: which commit SHA it targets and why
- Distinctive: line 35
Then ask the user to confirm: Do not proceed until they approve.
- Distinctive: line 41
Before creating a new commit, check whether the staged changes should be fixup'd into a recent commit on the current branch.
- Distinctive: line 45
Run git log main..HEAD --oneline to list all commits on the branch since diverging from main
- Distinctive: line 47
If a staged change clearly amends or extends code from a previous commit (same file, nearby lines, related logic — e.g.
- Very specific: line 52
Run git commit --fixup=<sha> (with user confirmation)
- Distinctive: line 55
If the change doesn't clearly relate to a previous commit, proceed with a normal new commit.
- Distinctive: line 89
ONLY add a body when the header alone isn't enough for a reviewer:
- Distinctive: line 91
Use the imperative present tense, same as the subject
- Distinctive: line 94
Keep every line under 100 characters
- Very specific: line 107
Only add a Co-Authored-By trailer when Claude actually wrote the code being committed.
“Common” is measured: kept by at least 6 in 10 of the 168 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
Generating Commit Messages
Mandatory Process
BEFORE ANY git commit COMMAND:
- ALWAYS run
git diff --stagedfirst to see changes - ALWAYS analyze the staged changes thoroughly
- ALWAYS split the code changes into atomic commits, one per coherent / cohesive change. Tests for a change should be in the same commit as the change itself. A single feature spanning multiple files (module + view + test) is ONE cohesive change — do not split it by file. Only split when changes are truly unrelated (e.g. a bug fix + a new feature + a docs update)
- ALWAYS run the checks relevant to the change before committing (there are no
test/lint/formatscripts — invoke the binaries withnpx;yarn vitest/yarn eslint/yarn prettierfail on Yarn 4):- Tests:
npx vitest run <path>when a*.test.tscovers the change (isolate with a path or-t '<name>') - Types/Svelte:
yarn svelte-checkwhen.svelte/.tstyping is affected (this one is a real script) - Lint:
npx eslint <changed files>
- Tests:
- ALWAYS generate a commit message following the format below
- NEVER commit automatically as a side effect of making code changes. Only commit when the user explicitly invokes the commit skill or says "commit".
Confirmation Before Committing
--auto (caller runs autonomously): skip all approval/confirmation waits here (commit-plan gate below + fixup/rebase) — commit directly. Diff review, atomic splitting, checks, message format unchanged.
User trust requires seeing the plan before execution. Always present the full commit plan and wait for explicit approval before running any git commit command.
For each commit (regular or fixup), present:
- The commit message (header + body if applicable)
- The list of files included
- If splitting into multiple commits: the full split plan (which files go in which commit, in what order)
- If fixup: which commit SHA it targets and why
Then ask the user to confirm. Do not proceed until they approve. If they request changes to the message or grouping, adjust and re-present.
This applies equally to regular commits, fixups, and any commits triggered during the open-pr workflow.
Auto-Fixup Detection
Before creating a new commit, check whether the staged changes should be fixup'd into a recent commit on the current branch.
Process:
- Run
git log main..HEAD --onelineto list all commits on the branch since diverging from main - For each staged file, check
git log main..HEAD -- <file>to see if it was modified in a recent branch commit - If a staged change clearly amends or extends code from a previous commit (same file, nearby lines, related logic — e.g. fixing a typo introduced in a prior commit, adding a missing import for a recently added module), suggest fixup'ing into that commit
- Present the suggestion: "This change to
<file>looks like it should be fixup'd into<sha> <message>. Want me to fixup instead of creating a new commit?"
When fixup is confirmed:
- Run
git commit --fixup=<sha>(with user confirmation) - Then run
GIT_SEQUENCE_EDITOR=true git rebase --interactive --autosquash mainto squash immediately (with user confirmation before the rebase)
If the change doesn't clearly relate to a previous commit, proceed with a normal new commit.
Required Commit Message Format
This repo uses Conventional Commits (enforced by the @commitlint/config-conventional config inline in package.json). The format is fixed:
<type>(<scope>): <subject>
<BLANK LINE>
<body>
<BLANK LINE>
<footer>The header is mandatory; scope, body, and footer are optional.
Header
Shape: <type>(<scope>): <subject>
<type>is one of:buildcidocsfeatfixfix-nextperfrefactorreleasestyletest<scope>(optional) is the affected area — usually a feature underapp/components/or a service underapp/services/(e.g.ocr,pdf,camera,sync,settings,security,edit,pkpass). When a change is platform-specific, prefix the scope with the platform:android/sync,ios/camera<subject>: imperative present tense ("change" not "changed"), lowercase first letter, no trailing period- No line may exceed 100 characters
Examples:
docs(README): add build setup steps for submodules
fix(ios/camera): correct preview orientation on rotationBody
ONLY add a body when the header alone isn't enough for a reviewer:
- Use the imperative present tense, same as the subject
- Explain WHAT changed only if the commit touches more than 3 files
- Explain WHY — the motivation, contrasted with previous behavior
- Keep every line under 100 characters
Footer
- Reference the issue this commit closes:
Fixes #<issue>/Closes #<issue> - Breaking changes start with
BREAKING CHANGE:followed by a description and migration path
Revert
A commit that reverts another begins with revert: followed by the reverted header. The body states This reverts commit <hash>.
Co-Authored-By
Only add a Co-Authored-By trailer when Claude actually wrote the code being committed. If the user wrote the changes themselves (and Claude is just committing), do not add it.
Other versions189 projects use a version of this.
Word for word · 1
- Akylas/OSS-DocumentScanner★ 2.6k100% same
Edited · 0
None found.
Wrote their own version · 188
- microsoft/vscode★ 194ksame name
- TryGhost/Ghost★ 56ksame name
- ToolJet/ToolJet★ 41ksame name
- ShareX/ShareX★ 41ksame name
- openai/symphony★ 27ksame name
- ccusage/ccusage★ 19ksame name
- ryoppippi/ccusage★ 19ksame name
- windmill-labs/windmill★ 18ksame name
- EverMind-AI/EverOS★ 14ksame name
- EverMind-AI/EverMemOS★ 14ksame name
178 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.
Used alongsideProjects with it also use act-on-feedback, add-mcp-tools 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.
MicrosoftSkillact-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 3 projects that use this
decocmsSkilladd-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
MicrosoftSkillgenerate-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 3 projects that use this
decocmsSkillrun-local-freestyle
Run Studio locally with chats and task runs executing in real Freestyle sandboxes, reachable through an ngrok tunnel. Use when asked to "run locally with Freestyle", "test claude-code chats locally", "run the sandbox harness end to end", or to try daemon/harness-runner changes in a real sandbox.
Also in 3 projects that use this
mitsuhikoSkilloebb-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
mitsuhikoSkillpi-share
Load and parse session transcripts from shittycodingagent.ai/buildwithpi.ai/buildwithpi.com/pi.dev (pi-share) URLs. Fetches gists, decodes embedded session data, and extracts conversation history.
Also in 3 projects that use this
In this repository11 other files it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
- branch-checkSkill
- writing-great-skillsSkill
- documentSkill
- featSkill
- fixSkill
- grill-meSkill
- investigate-contractSkill
- open-prSkill
- save-plan-to-githubSkill
- understand-projectSkill
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.

