git-rules
Maintain repository quality by auditing commit hygiene and working tree state.
Install
mkdir -p .claude/skills/git-rules && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/11687" && unzip -o skill.zip -d .claude/skills/git-rules && rm skill.zipInstalls to .claude/skills/git-rules
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Run after each commit to check commit hygiene, diff sanity, and whether the working tree is unexpectedly dirty.Key capabilities
- →Verify new commit is inspectable and scoped
- →Check for whitespace or patch-shape issues in diffs
- →Check if the working tree is unexpectedly dirty after commit
- →Remind user to push only intentional changes
How it works
This skill runs a series of checks after each Git commit to ensure consistency in commit hygiene, diff quality, and the state of the working tree.
Inputs & outputs
When to use git-rules
- →Verify commit hygiene
- →Check for whitespace issues in diffs
- →Ensure the working tree is clean
- →Audit post-commit repository state
About this skill
Git Rules Skill
Use this skill after every commit.
Purpose:
- keep commit hygiene consistent
- catch post-commit repository drift
- make sure a commit leaves the repo in a reviewable state
Checks:
- verify the new commit is inspectable and scoped
- check for whitespace or patch-shape issues
- check whether the working tree is unexpectedly dirty after commit
- remind the user to push only intentional changes
This skill is lightweight and should run on every commit.
When not to use it
- →When the task is not related to post-commit checks
- →When the user intends to have a dirty working tree
Limitations
- →Only runs after a commit
- →Does not prevent commits with issues, only reports them
How it compares
This skill automates post-commit validation, providing immediate feedback on repository state and commit quality, rather than relying on manual review or later CI checks.
Compared to similar skills
git-rules side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| git-rules (this skill) | 0 | 5mo | Review | Beginner |
| resolve-conflicts | 81 | 8mo | Review | Intermediate |
| dependency-upgrade | 26 | 5mo | Review | Intermediate |
| git-commits | 21 | 4mo | No flags | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
resolve-conflicts
antinomyhq
Use this skill immediately when the user mentions merge conflicts that need to be resolved. Do not attempt to resolve conflicts directly - invoke this skill first. This skill specializes in providing a structured framework for merging imports, tests, lock files (regeneration), configuration files, and handling deleted-but-modified files with backup and analysis.
dependency-upgrade
wshobson
Manage major dependency version upgrades with compatibility analysis, staged rollout, and comprehensive testing. Use when upgrading framework versions, updating major dependencies, or managing breaking changes in libraries.
git-commits
bonny
Create well-structured git commits in logical chunks following best practices
git-advanced-workflows
wshobson
Master advanced Git workflows including rebasing, cherry-picking, bisect, worktrees, and reflog to maintain clean history and recover from any situation. Use when managing complex Git histories, collaborating on feature branches, or troubleshooting repository issues.
github-multi-repo
ruvnet
Multi-repository coordination, synchronization, and architecture management with AI swarm orchestration
git-workflow-enforcer
CrazyDubya
Ensures commits follow conventional commits, branch naming conventions, and PR templates. Use when creating commits, branches, or PRs, or when user mentions git workflow.