commit-guard

commit-guard is a skill for Claude Code from uqeu/estelle-cli. It costs 0 tokens per session (282 once invoked), scanned A, original, Apache-2.0.

A commit-time check that formats, lints, type-checks, and tests the files staged for a Git commit.

In plain words
What is it for?
It helps enforce local code quality before commits, including running tests related to the changed files.
Why use it?
It stops straightforward problems from entering the repository and reports the check that caused a commit to fail.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the estelle plugin — 26 skills, 4 agents, 9 hooks shipped together

Good fit It helps enforce local code quality before commits, including running tests related to the changed files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/uqeu/estelle-cli/commit-guard
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 uqeu/estelle-cli --skill commit-guard
Clone the repo
git clone --depth 1 https://github.com/uqeu/estelle-cli

Made for: Claude Code.

Or install estelle, the plugin that ships this one along with the rest of its 26 skills, 4 agents, 9 hooks.

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-guard

README.md
[![agentmods](https://agentmods.dev/badge/skills/uqeu/estelle-cli/commit-guard/github.svg)](https://agentmods.dev/skills/uqeu/estelle-cli/commit-guard)
Your own site
<a href="https://agentmods.dev/skills/uqeu/estelle-cli/commit-guard"><img src="https://agentmods.dev/badge/skills/uqeu/estelle-cli/commit-guard/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-guard

Your own site · 80×15
<a href="https://agentmods.dev/skills/uqeu/estelle-cli/commit-guard"><img src="https://agentmods.dev/badge/skills/uqeu/estelle-cli/commit-guard.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 282 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 original No closer match found 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.00000 $0.00282
Opus 5.5 $0.00000 $0.00113
Sonnet 5.5 $0.00000 $0.00056
Haiku 4.5 $0.00000 $0.00028

Measured 1mo ago against content hash 26db3a536896, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

commit-guard 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 1mo 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.

estelle-plugin/skills/commit-guard/SKILL.md · 20 lines

What it actually says

commit-guard

Estelle's commit-time hygiene gate. Cheap, fast, and local — the tree is green before the commit lands, not after CI catches it.

Procedure

  1. Scope to staged — diff --cached to get exactly the files entering the commit; run everything against that set, not the whole repo.
  2. Format — run the formatter on staged files and re-stage the results; a formatting-only diff never reaches review.
  3. Lint — run the linter on the staged set; block on errors, surface warnings.
  4. Typecheck — run the type/static checker; a type error is a hard block.
  5. Affected tests — map changed files to their tests and run only those (fast path); on any failure, abort the commit with the failing line.
  6. Block or pass — any red step stops the commit and reports the single reason; all green lets it through untouched.

Output

A pass/fail verdict at commit time with the one check that failed. Serves everyday hygiene; hand off to verify-gate for the deeper pre-PR gate.

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. 1mo ago First seen · 20 lines · 0 tokens per session scan A 26db3a536896

Subscribe to this mod's changes

commit-guard is a skill published in the GitHub repository uqeu/estelle-cli (0 stars, last pushed 14d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 282 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-12.

Related

Other skills, from other repositories

vhs-e2e-gif

Record a test run, a TUI session, or any terminal command as a GIF with VHS and attach it to a GitHub PR as a release-hosted asset, never a repo commit. Use when asked to record an e2e run, demo a fix on a PR, attach a GIF or screen recording to a pull request, show a test passing visually, or produce a terminal…

dimetron/pi-go · 106 tokens

issue-to-pr

Implement one bounded repository issue with normal host tools, prove the tested change through one scafld finalize wall, and optionally publish the exact pull request through scoped provider authority with readback.

runxhq/runx · 41 tokens

cocosearch-commit

Use when committing changes — analyzes staged (or unstaged) diffs with CocoSearch semantic search and dependency impact to generate comprehensive Conventional Commit messages. Reviews changes thoroughly, then asks user to approve, edit, or abort the commit.

VioletCranberry/coco-search · 53 tokens

test-then-commit

Implements a small change and commits it. Use when the user asks for a quick fix with a commit.

Goldziher/ai-rulez · 28 tokens

loop-gh-pr

A recipe for a scheduled GitHub pull-request watcher. It checks open pull requests for new activity and prepares read-only review drafts without posting comments or merging anything.

restarter/lets-workflow · 118 tokens

git-iris

Use this skill when generating commit messages, pull request descriptions, release notes, changelogs, or code reviews in a repository where git-iris is available. Activates on requests like "commit this", "write a commit message", "draft a PR", "generate release notes", "write a changelog", or "review my changes" when…

hyperb1iss/git-iris · 81 tokens