git-rules

Validate git commit hygiene and working tree status post-commit.

25|2|Updated Mar 4, 2026
One-click install
npx skills add https://github.com/agentclash/agentclash --skill git-rules
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-rules
Source: https://github.com/agentclash/agentclash/tree/main/skills/git-rules
Command: npx skills add https://github.com/agentclash/agentclash --skill git-rules

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill addresses the common issue of messy commit histories and accidental changes left in the working tree, ensuring every commit is clean and reviewable.

Core Features & Use Cases

  • Commit Hygiene: Validates that commits are scoped and inspectable.
  • Diff Sanity: Automatically checks for whitespace errors or patch-shape issues.
  • Working Tree Validation: Detects if the repository is left in a dirty state after a commit.
  • Use Case: Use this after a complex refactor to ensure no stray debug logs or unintended file modifications were accidentally included in your latest commit.

Quick Start

Run the git-rules skill to verify the integrity and cleanliness of your most recent commit.

Frequently Asked Questions about git-rules

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Can I automatically validate git commit hygiene and diff sanity?

To validate git commit hygiene, automated checks inspect your latest commit to ensure it is scoped, reviewable, and free of diff anomalies or whitespace errors.

What is the best way to detect stray debug logs included in my git commit?

Yes, you need standard git CLI tools installed in your local repositories to perform repository state verification and execute patch sanity checks.

Do I need standard git CLI tools to verify repository state and patch sanity?

Yes, you need standard git CLI tools installed in your local repositories to perform repository state verification and execute patch sanity checks.

How do I check my git working tree for uncommitted changes after a commit?

To check your git working tree for uncommitted changes, you can run automated post-commit analysis to detect if the repository is left in a dirty state with stray file modifications.