commit-validator

commit-validator is a skill for OpenCode from TheArchitectit/agent-guardrails-template. It costs 23 tokens per session (302 once invoked), scanned A, original, BSD-3-Clause.

A checker for Git commits, which are saved snapshots of code changes. It verifies the commit message, change scope, secrets in the diff, tests, linting, formatting, and self-review requirements.

In plain words
What is it for?
Use it before committing code to enforce the required message format, AI attribution, one-purpose commits, clean checks, and secret scanning.
Why use it?
It helps prevent unclear commits, mixed unrelated changes, leaked credentials, and commits made while the project is failing checks.

Skill for OpenCode

Written for OpenCode: installed under .opencode/.

Good fit Use it before committing code to enforce the required message format, AI attribution, one-purpose commits, clean checks, and secret scanning.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/thearchitectit/agent-guardrails-template/commit-validator
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 TheArchitectit/agent-guardrails-template --skill commit-validator
Clone the repo
git clone --depth 1 https://github.com/TheArchitectit/agent-guardrails-template

Made for: OpenCode.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/thearchitectit/agent-guardrails-template/commit-validator/github.svg)](https://agentmods.dev/skills/thearchitectit/agent-guardrails-template/commit-validator)
Your own site
<a href="https://agentmods.dev/skills/thearchitectit/agent-guardrails-template/commit-validator"><img src="https://agentmods.dev/badge/skills/thearchitectit/agent-guardrails-template/commit-validator/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-validator

Your own site · 80×15
<a href="https://agentmods.dev/skills/thearchitectit/agent-guardrails-template/commit-validator"><img src="https://agentmods.dev/badge/skills/thearchitectit/agent-guardrails-template/commit-validator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 302 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 23
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
How audits are shown
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.00023 $0.00302
Opus 5.5 $0.00009 $0.00121
Sonnet 5.5 $0.00005 $0.00060
Haiku 4.5 $0.00002 $0.00030

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

Security

Grade A, and why

commit-validator 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.

.opencode/skills/commit-validator/SKILL.md · 55 lines

What it actually says

Commit Validator Agent

Validate all git commits against COMMIT_WORKFLOW.md standards.

Validation Rules

1. AI Attribution (REQUIRED)

Every commit message MUST include AI attribution: Co-Authored-By: Claude <[email protected]>

2. Single Focus Rule

  • One commit = One logical change
  • No unrelated changes in the same commit

3. No Secrets in Diff

Scan for API keys, tokens, passwords, private keys, .env contents, DB connection strings. Block immediately if found.

4. Pre-Commit Requirements

  • All relevant tests MUST pass
  • No linting or formatting errors
  • Code has been self-reviewed

Commit Message Format

<type>: <description>

[optional body]

Co-Authored-By: Claude <[email protected]>

Types: feat, fix, docs, style, refactor, test, chore

Validation Failure Actions

If validation fails:

  1. Block the commit
  2. Explain the violation
  3. Provide specific fix instructions
  4. Require user confirmation before proceeding

References

  • docs/workflows/COMMIT_WORKFLOW.md - Commit standards
  • skills/shared-prompts/error-recovery.md - Recovery procedures
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 · 55 lines · 23 tokens per session scan A 0c51b72a291d

Subscribe to this mod's changes

commit-validator is a skill published in the GitHub repository TheArchitectit/agent-guardrails-template (1 stars, last pushed yesterday), licensed BSD-3-Clause. It adds 23 tokens to every session and 302 once invoked, about $0.0001 per session on Opus 5.5. 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-08-30.

Related

Other skills, from other repositories

code-changes

Change the user's own program, on their machine or through GitHub. Use when a request needs a change to the user's code (instrument tracing, wire the SDK, fix the agent behind a failing scenario, add a run parameter to a connected agent, version a hardcoded prompt) and not when the platform alone can do it (create a…

langwatch/langwatch · 84 tokens

git-expert

Expert-level Git version control with advanced workflows, branching strategies, and best practices for team collaboration. Use when the user mentions version control, collaboration, or workflow, or when the task involves Essential Git Commands, Advanced Git Techniques, Branching Strategies, or Conflict Resolution.

personamanagmentlayer/pcl · 57 tokens

tldr-commit

Ultra-compressed commit message generator. Cuts noise from commit messages while preserving intent and reasoning. Conventional Commits format. Subject ≤50 chars, body only when "why" isn't obvious. Use when user says "write a commit", "commit message", "generate commit", "/commit", or invokes /tldr-commit.…

0p9b/TLDR · 77 tokens

caveman-commit

Write a Conventional Commits message compressed to intent only. Use for "write a commit", "commit message", /commit or /caveman-commit.

JuliusBrussee/caveman · 38 tokens

contextual-commit

Write contextual commits that capture intent, decisions, and constraints alongside code changes. Use when committing code, finishing a task, or when the user asks to commit. Extends Conventional Commits with structured action lines in the commit body that preserve WHY code was written, not just WHAT changed.

yamadashy/repomix · 62 tokens

resolve-publish

Commit the validated fix and follow local-only, workflow-owned, or direct PR publication.

omnigent-ai/omnigent · 21 tokens