git-discipline
Skill6 starsChanged 5 months agoMITView on GitHub
Enforce conventional commits, clean branch strategy, small focused diffs, and PR-ready history. Use before any commit or when preparing work for review. Triggers: "commit this cleanly", "prepare for PR", "fix the git history", "use git-discipline".
13 other projects use a version of this.
Adopted by
Most recently taken up by
- curvedinf/dev-skillstheir own version, first seen Oct 20, 2026
- Confidence-huang/agent-git-disciplinetheir own version, first seen Oct 13, 2026
- Sapere-IA/sdd-onboarding-kittheir own version, first seen Oct 6, 2026
- devpilotX/skillstheir own version, first seen Sep 22, 2026
- AL-JANEF/janef-forgetheir own version, first seen Sep 19, 2026
- AL-JANEF/janefskillstheir own version, first seen Sep 19, 2026
Other versions13 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 13
- Sapere-IA/sdd-onboarding-kit★ 19same name
- annatchijova/SKILLS★ 9same name
- curvedinf/dev-skills★ 7same name
- radif-ru/ai-multi-agent-system★ 6same name
- dekoza/oh-my-slop★ 4same name
- AL-JANEF/janef-forge★ 1same name
- AL-JANEF/janefskills★ 1same name
- Confidence-huang/agent-git-discipline★ 0same name
- devpilotX/skills★ 0same name
- edrethardo/werkbank-board★ 0same name
3 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.
In this repository7 other files it gives its agents.
- AGENTS.mdAGENTS.md
- architecture-reviewerSkill
- mcp-orchestratorSkill
- plan-mode-orchestratorSkill
- security-auditSkill
- subagent-arenaSkill
- tdd-intelligenceSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 6 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 11 edited versions we read keep these.
6
Distinctive
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
- could be automatic: a setting could enforce it
- Distinctive: line 13
Never let agentic speed destroy repository hygiene.
- Distinctive: line 24
Rebase or merge cleanly: before opening PR.
- Distinctive: line 25
PR description: should reference the plan or relevant skills used.
- Distinctive: line 29
After edits, offer to run git diff --staged and propose a commit.
- Distinctive: line 30
If history is messy, propose a rebase plan (never force-push without confirmation).
- Distinctive: line 31
When multiple logical changes are staged together, split them.
“Common” is measured: kept by at least 6 in 10 of the 11 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
Git Discipline
Never let agentic speed destroy repository hygiene.
Mandatory Steps
- Stage intentionally — only the files that belong in this logical change.
- Write a Conventional Commit message:
feat:,fix:,refactor:,docs:,test:,chore:,perf:- Scope when useful:
feat(api): ... - Body that explains why, not just what.
- Create or update branch following
feature/,fix/, etc. - Never commit directly to main.
- Rebase or merge cleanly before opening PR.
- PR description should reference the plan or relevant skills used.
Agent Behavior
- After edits, offer to run
git diff --stagedand propose a commit. - If history is messy, propose a rebase plan (never force-push without confirmation).
- When multiple logical changes are staged together, split them.
Verification
git log --oneline -10should tell a clear story.- Each commit should be buildable/testable in isolation where practical.
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.

