git-hygiene
Skill9 starsChanged 3 months agoMITView on GitHub
- Commits and pushes
4 other projects use a version of this.
Adopted by
Most recently taken up by
- adamentwistle/fable-skillstheir own version, first seen Sep 3, 2026
- neeraj181-dot/ClaudeSkillstheir own version, first seen Aug 25, 2026
- adityaarakeri/senior-agent-skillstheir own version, first seen Jul 22, 2026
- jpsweeney97/claude-code-skillstheir own version, first seen May 8, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- adamentwistle/fable-skills★ 98same name
- adityaarakeri/senior-agent-skills★ 2same name
- jpsweeney97/claude-code-skills★ 0same name
- neeraj181-dot/ClaudeSkills★ 0same 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 repository109 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/agents.mdAGENTS.md
- agent/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- router/CLAUDE.mdCLAUDE.md
- .agents/skills/llms.txtllms.txt
- agent-harnessSkill
- auto-fixSkill
- brain-dumpSkill
- industrial-brutalist-uiSkill
- changelog-enforcerSkill
- checkpoint-strategySkill
- context-primeSkill
- cooldown-resumeSkill
- council-reviewSkill
- data-quality-auditSkill
- debug-tracerSkill
- dependency-auditSkill
- deslopSkill
- docs-syncSkill
- duplicate-threadSkill
- email-triageSkill
- fabric-patternsSkill
- feature-flagSkill
- graphifySkill
- implementation-plannerSkill
- insightsSkill
- issue-resolverSkill
- learn-ruleSkill
- local-ai-querySkill
- lr-schedule-advisorSkill
- minimalist-uiSkill
- modularity-reviewSkill
- full-output-enforcementSkill
- parallel-agentsSkill
- parallel-worktreesSkill
- prompt-librarySkill
- prompt-transparencySkill
- pro-workflowSkill
- redesign-existing-projectsSkill
- release-readinessSkill
- replay-learningsSkill
- repo-memory-updaterSkill
- repowise-intelligenceSkill
- researchSkill
- resource-panelSkill
- risky-module-reviewSkill
- sandboxed-execSkill
- scope-guardSkill
- self-improveSkill
- session-handoffSkill
- skill-composerSkill
- smart-commitSkill
- high-end-visual-designSkill
- stitch-design-tasteSkill
- system-prompt-auditSkill
- task-alive-updatesSkill
- task-scoperSkill
- design-taste-frontendSkill
- test-first-executorSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. 0 are common, 9 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
9
Distinctive
This author's own choices. Worth a look.
5
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 7
Before pushing commits to master or opening a PR
- Distinctive: line 8
When git history has become messy (fixup commits, WIP messages, etc.)
- Very specific: line 10
When the changelog-enforcer or release-readiness skills are applied
- Distinctive: line 15
Run git status to see what's changed
- Very specific: line 17
Check .gitignore is catching what it should
- Distinctive: line 20
Run git log --oneline -20 to inspect recent commits
- Very specific: line 25
Ensure messages follow the pattern: <type>: <short description> [#issue]
- Distinctive: line 28
No trailing periods in subject line
- Distinctive: line 33
Do not rewrite history on shared branches unless explicitly authorized
- Distinctive: line 36
Ensure the working branch is up to date with its upstream
- Very specific: line 42
Use --force-with-lease only if a rebase was performed, never --force
- Distinctive: line 46
No unintended files committed
- Distinctive: line 50
Never commit secrets, credentials, or API keys
- Very specific: line 52
If in doubt about a commit, use git diff HEAD~1 to review what it contains
“Common” is measured: kept by at least 6 in 10 of the 4 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
Skill: Git Hygiene
Purpose
Ensures the repository's git history, branch state, and commit messages are clean, meaningful, and follow project conventions before pushing or merging.
When to Use
- Before pushing commits to master or opening a PR
- When git history has become messy (fixup commits, WIP messages, etc.)
- As a final step in any implementation workflow
- When the
changelog-enforcerorrelease-readinessskills are applied
Process
1. Review Staged and Unstaged Changes
- Run
git statusto see what's changed - Confirm no unintended files are staged (build artifacts, secrets, editor files)
- Check
.gitignoreis catching what it should
2. Review Commit History
- Run
git log --oneline -20to inspect recent commits - Flag commits with vague messages: "fix", "wip", "test", "asdf", etc.
- Note commits that could be squashed without losing meaning
3. Validate Commit Messages
- Ensure messages follow the pattern:
<type>: <short description> [#issue] - Valid types:
feat,fix,docs,chore,refactor,test,style - Subject line should be ≤72 characters
- No trailing periods in subject line
4. Clean Up if Needed
- Squash fixup commits with
git rebase -iif appropriate - Amend the most recent commit message with
git commit --amendif needed - Do not rewrite history on shared branches unless explicitly authorized
5. Confirm Branch State
- Ensure the working branch is up to date with its upstream
- Resolve any merge conflicts before pushing
- Confirm you are on the intended branch
6. Push
- Push with
git push origin <branch> - Use
--force-with-leaseonly if a rebase was performed, never--force
Output
- Clean git history with meaningful commit messages
- No unintended files committed
- Successful push to the correct branch
Notes
- Never commit secrets, credentials, or API keys
- Binary files and generated files should generally not be committed
- If in doubt about a commit, use
git diff HEAD~1to review what it contains
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.

