commit-hygiene

commit-hygiene is a skill for Claude Code from KunanonJ/ai-skills-hub. It costs 18 tokens per session (3,722 once invoked), scanned A, a copy of commit-hygiene, MIT.

A set of Git practices for keeping each commit focused on one logical change and keeping pull requests small enough to review. It also covers stacked pull requests, which are several dependent changes reviewed separately.

In plain words
What is it for?
Use it when deciding how to split changes into commits and pull requests, when to commit, and how to organize dependent pull requests.
Why use it?
It helps prevent oversized changes that are hard to review, likely to hide bugs, or difficult to undo. It also indicates when work should be saved as a new commit.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: positional $N argument; installed under .agents/ (shared by several agents).

Good fit Use it when deciding how to split changes into commits and pull requests, when to commit, and how to organize dependent pull requests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kunanonj/ai-skills-hub/commit-hygiene
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add KunanonJ/ai-skills-hub --skill commit-hygiene
Clone the repo
git clone --depth 1 https://github.com/KunanonJ/ai-skills-hub

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for commit-hygiene

README.md
[![agentmods](https://agentmods.dev/badge/skills/kunanonj/ai-skills-hub/commit-hygiene/github.svg)](https://agentmods.dev/skills/kunanonj/ai-skills-hub/commit-hygiene)
Your own site
<a href="https://agentmods.dev/skills/kunanonj/ai-skills-hub/commit-hygiene"><img src="https://agentmods.dev/badge/skills/kunanonj/ai-skills-hub/commit-hygiene/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for commit-hygiene

Your own site · 80×15
<a href="https://agentmods.dev/skills/kunanonj/ai-skills-hub/commit-hygiene"><img src="https://agentmods.dev/badge/skills/kunanonj/ai-skills-hub/commit-hygiene.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,722 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00018 $0.03722
Opus 5 $0.00009 $0.01861
Sonnet 5 $0.00004 $0.00744
Haiku 4.5 $0.00002 $0.00372

Measured 9d ago against content hash 1807a34d461e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

commit-hygiene scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to commit-hygiene — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.agents/skills/commit-hygiene/SKILL.md · 552 lines

How it starts

The opening of the file, as written. The whole thing — 552 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Commit Hygiene Skill

Purpose: Keep commits atomic, PRs reviewable, and git history clean. Advise when it's time to commit before changes become too large.


Core Philosophy

┌─────────────────────────────────────────────────────────────────┐
│  ATOMIC COMMITS                                                  │
│  ─────────────────────────────────────────────────────────────  │
│  One logical change per commit.                                  │
│  Each commit should be self-contained and deployable.            │
│  If you need "and" to describe it, split it.                     │
├─────────────────────────────────────────────────────────────────┤
│  SMALL PRS WIN                                                   │
│  ─────────────────────────────────────────────────────────────  │
│  < 400 lines changed = reviewed in < 1 hour                      │
│  > 1000 lines = likely rubber-stamped or abandoned               │
│  Smaller PRs = faster reviews, fewer bugs, easier reverts        │
├─────────────────────────────────────────────────────────────────┤
│  COMMIT EARLY, COMMIT OFTEN                                      │
│  ─────────────────────────────────────────────────────────────  │
│  Working code? Commit it.                                        │
│  Test passing? Commit it.                                        │
│  Don't wait for "done" - commit at every stable point.           │
└─────────────────────────────────────────────────────────────────┘

Commit Size Thresholds

Warning Thresholds (Time to Commit!)

Metric Yellow Zone Red Zone Action
Files changed 5-10 files > 10 files Commit NOW
Lines added 150-300 lines > 300 lines Commit NOW
Lines deleted 100-200 lines > 200 lines Commit NOW
Total changes 250-400 lines > 400 lines Commit NOW
Time since last commit 30-60 min > 60 min Consider committing

Ideal Commit Size

Read the full file on GitHub · 552 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 552 lines · 18 tokens per session scan A 1807a34d461e

Subscribe to this mod's changes

commit-hygiene is a skill published in the GitHub repository KunanonJ/ai-skills-hub (5 stars, last pushed 1mo ago), licensed MIT. It adds 18 tokens to every session and 3,722 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to commit-hygiene, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

commit-pr

Mandatory Codex/Copilot publication adapter for opencode-swarm. Use for every GitHub issue assignment that results in code changes, commits, pushes, draft PRs, PR body edits, PR readying, release notes, or CI closeout. Must be loaded before git push, gh pr create, gh pr edit, or gh pr ready. Routes to the single…

ZaxbyHub/opencode-swarm · 100 tokens

contributing

Codex adapter for the opencode-swarm contribution checklist. Use when preparing user-visible changes, release note fragments, local validation, branch hygiene, PR checklist items, or contribution-policy compliance before publishing work.

ZaxbyHub/opencode-swarm · 44 tokens

github-commenting

How to post clean, rich, deduplicated GitHub PR review comments — suggestion blocks, multi-line anchors, markers, formatting rules. Load before posting or fixing any PR comment.

juspay/neurolink · 41 tokens

core-workflow

Detailed development workflow patterns, checklists, and standards. Auto-loads for complex tasks, planning, debugging, testing, or when explicit patterns are needed. Contains session protocols, git conventions, security checklists, testing strategy, and communication standards.

travisjneuman/.claude · 53 tokens

git-workflow

Skill "git-workflow" from halflength-ampleness75/claude-code-recipes, covering git workflow, branch naming, rules, conventional commits and format.

halflength-ampleness75/claude-code-recipes · 0 tokens

ship-quick

Land a single self-contained change with quality bar.

Acendas/shipyard · 14 tokens