Command Palette

Search for a command to run...

Back to skills
skill № 66533

git-rules

Run after each commit to check commit hygiene, diff sanity, and whether the working tree is unexpectedly dirty.

FreeRuns bundled scripts
agentclashby agentclash★ 38 GitHub stars

Install git-rules in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

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.

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

  • post-commit.sh

FAQ

What does the git-rules skill do?

Run after each commit to check commit hygiene, diff sanity, and whether the working tree is unexpectedly dirty.

How do I install the git-rules skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the git-rules skill run scripts?

Yes, this skill bundles executable scripts. Review the source before installing.

Related skills

Compare git-rules with