shape-commit
Skill2 starsChanged 2 days agoMITView on GitHub
Checks that staged work is one commit's worth, proposes a split when it is not, and writes the commit subject and branch name. Use before every commit and when choosing a pull request title.
- Reads credentials
In this repository26 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- add-chainSkill
- add-mcp-toolSkill
- add-migrationSkill
- add-protocol-operationSkill
- add-venueSkill
- clean-diffSkill
- debug-failureSkill
- handle-security-reportSkill
- releaseSkill
- review-diffSkill
- review-money-pathSkill
- review-testsSkill
- run-testsSkill
- speed-up-testsSkill
- test-telegramSkill
- tune-ciSkill
- vet-releaseSkill
- write-adrSkill
- binference-toolsSkill
- copy-tradingSkill
- dca-planSkill
- meme-huntingSkill
- safe-swapSkill
- token-due-diligenceSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Every pull request is squashed into one commit on master, and its title becomes the subject.
- Distinctive: line 32
When a split is needed, name each commit and the files it holds.
- Distinctive: line 49
When two fit, use the one the user notices.
- Distinctive: line 63
No vague words, no dashes as punctuation, no emojis, no issue numbers, no task ids.
≈ “Common” is an estimate: at least 1 in 5 of the 383,637 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Shape the commit
Every pull request is squashed into one commit on master, and its title becomes the subject.
The release notes are written from those subjects.
1. Read what is staged
git diff --staged --stat
git diff --stagedStage only the files the change needs.
2. One commit's worth
- One reason to exist. If the subject needs "and" to join two unrelated changes, split it.
- Complete: code, tests, TSDoc, English and Chinese messages, docs pages, the config migration and the ADR travel together.
- Apart, each in its own commit: a refactor or rename the feature needs (first), formatting-only changes, one dependency update, an unrelated fix found on the way.
- Together: a schema migration and the code that needs it; generated files and their cause.
- Over about 400 changed lines, tests and generated files left out: propose a stack of pull requests (ports and types, then the adapter, then the wiring), each green and useful alone.
- Nothing private: no secrets,
.envfiles, keystores, local paths or internal notes.
When a split is needed, name each commit and the files it holds.
3. Type
| Type | When |
feat | A user or developer can do something new |
fix | Behavior was wrong and is now right |
perf | Same behavior, measurably faster or lighter |
refactor | Same behavior, better structure; existing tests pass unchanged |
test | Tests only |
docs | Documentation only |
ci | GitHub workflows and CI scripts |
build | The toolchain, packaging and dependencies |
chore | Repo upkeep that is none of the above |
revert | Undoes an earlier commit on master |
When two fit, use the one the user notices.
4. Scope
One scope, never two: the package folder, the plugin folder, a feature folder of engine or
runtime, or one of deps, skills, dev-skills, docs, release. Pick the most specific
owner of the behavior. Leave the scope out only for a change across the repo.
5. Subject
type(scope): description, 72 characters at most.
- The description starts lowercase, has no period and says exactly what changed.
- A fix names the symptom the user saw, not the code that changed.
- No vague words, no dashes as punctuation, no emojis, no issue numbers, no task ids.
- A breaking change adds
!and a body paragraph that starts withBreaking:. - A revert reads
revert: <original subject>withThis reverts commit <hash>.in the body. - A body, when a reviewer needs one, is a few plain paragraphs wrapped at 72 characters, with no headings and no checklists. No AI attribution lines.
6. Branch
<type>/<short-name>, such as fix/trailing-stop-restart.
7. Verify
printf '%s\n' "<subject>" | pnpm exec commitlint
pnpm check:style --text "<subject>"Give the subject, the body if any, and the branch name.
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.

