committing-changes
Skill5 starsChanged 7 months agoMITView on GitHub
Commit via feature branch + PR + git hooks; never push main, never merge.
- Commits and pushes
3 other projects use a version of this.
Adopted by
Most recently taken up by
- Muriel-Salvan/x_aeon_agentstheir own version, first seen Sep 10, 2026
- gannonh/skillstheir own version, first seen Aug 24, 2026
- Diviner-Dojo/agent_framework_templatetheir own version, first seen Aug 18, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- Diviner-Dojo/agent_framework_template★ 4same name
- gannonh/skills★ 2same name
- Muriel-Salvan/x_aeon_agents★ 2same 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 repository11 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- creating-block-issuesSkill
- designing-architectureSkill
- engineering-philosophySkill
- go-conventionsSkill
- implementing-blocksSkill
- python-conventionsSkill
- reviewing-changesSkill
- running-tdd-cyclesSkill
- shell-disciplineSkill
- solidity-conventionsSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 22
Branch check: If on main, switch to a feature branch:
- Very specific: line 28
Auto-fix before commit: Run the project's linter/formatter (e.g., ruff format && ruff check for Python, golangci-lint run for Go, forge fmt …
- Very specific: line 58
Never push directly to
main: Always feature branches + PRs. - Distinctive: line 59
Never merge branches or PRs: Always let the user merge.
“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
Workflow
Install hooks (once per repo). From inside the repo, run the installer that ships with this skill:
bash <skills>/committing-changes/scripts/install-hooks.shThis copies
commit-msgandpre-pushinto.git/hooks/and makes them executable. Idempotent.Then install the PR-size CI workflow:
bash <skills>/committing-changes/scripts/install-pr-size-workflow.shThis drops
.github/workflows/pr-size.ymland appends.gitattributesexclusions. Idempotent.- Branch check. If on
main, switch to a feature branch:
Validgit checkout -b <type>/<description>typeprefixes:feat,fix,refactor,docs,test,chore,infra,ai-native. - Auto-fix before commit. Run the project's linter/formatter (e.g.,
ruff format && ruff checkfor Python,golangci-lint runfor Go,forge fmt && solhintfor Solidity). The pre-commit hook (if installed) runs the project's full quality gate. - Commit & push.
git add <specific paths> git commit -m "<subject conforming to rules below>" git push -u origin <branch> - Sync with main.
Resolve conflicts; commit the merge; push.git fetch origin main git merge origin/main - PR creation (first push only).
gh pr list --head <branch> gh pr create --fill # if no PR exists yet - Branch cleanup (after the user has merged).
git fetch --prune git branch --merged main | grep -v '^\*\|main' | xargs -r git branch -d
Rules
- Never push directly to
main. Always feature branches + PRs. Thepre-pushhook blocks this. - Never merge branches or PRs. Always let the user merge.
- Never force-push. No
--force, no--force-with-lease. Create new commits instead. - One logical change per commit.
- PR size: ≤1000 changed lines per PR (excluding tests, docs, lockfiles, generated). Enforced by
.github/workflows/pr-size.yml. - Commit-message subject (enforced by
commit-msghook):- Capital start (imperative mood: "Add", "Fix", "Refactor", not "added"/"adds").
- ≤ 72 chars.
- No trailing period.
- No
Co-Authored-By:lines.
Why this discipline
Each rule traces to a specific failure mode:
- No direct push to main → no broken
main, every change is reviewable. - No agent-side merge → the human keeps the merge decision; agents never close the loop unilaterally.
- No force-push → preserves history; reviewers can trust commit hashes.
- One logical change per commit → bisect works; reverts are surgical.
- Subject rules → consistent log readability; no noisy attribution lines.
Cross-references
shell-discipline— issue thesegit/ghcommands one per call, no&&chains.engineering-philosophy— "Small Steps" and "Investigate, Don't Mask" map directly to one-logical-change-per-commit and don't-disable-failing-hooks.
Reference
- scripts/commit-msg — subject-line rules enforcer.
- scripts/pre-commit — runs project's lint/format/test before commit.
- scripts/pre-push — blocks direct push to
main/master. - scripts/install-hooks.sh — idempotent installer.
- templates/pr-size.yml — GitHub Actions workflow that labels PR size and fails when >1000 changed lines (excluding tests, docs, lockfiles, generated).
- templates/gitattributes.example —
linguist-generated/linguist-vendoredentries appended to.gitattributesso GitHub collapses generated files in PR diffs. - scripts/install-pr-size-workflow.sh — idempotent installer for the workflow +
.gitattributesblock. - reference/commit-md-original.md — original Claude-Code
commit.mdcommand verbatim. - reference/git-rule.md — original
rules/git.mdverbatim. - reference/hook-troubleshooting.md — common failure modes + fixes.
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.

