standards-enforcer

standards-enforcer is an agent for Claude Code from markshust/hcf. It costs 26 tokens per session (403 once invoked), scanned A, a copy of standards-enforcer, MIT.

A code-review worker that checks recently written files against a project’s coding and testing standards.

In plain words
What is it for?
Use it to review and make targeted standards fixes to a specified batch of source or test files.
Why use it?
It catches style violations without changing features or program behaviour, and reports issues that would require a behavioural change.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the hcf plugin — 4 skills, 3 agents, 3 hooks shipped together

Good fit Use it to review and make targeted standards fixes to a specified batch of source or test files.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/markshust/hcf/standards-enforcer
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.

Clone the repo
git clone --depth 1 https://github.com/markshust/hcf

Made for: Claude Code.

Or install hcf, the plugin that ships this one along with the rest of its 4 skills, 3 agents, 3 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 standards-enforcer

README.md
[![agentmods](https://agentmods.dev/badge/agents/markshust/hcf/standards-enforcer/github.svg)](https://agentmods.dev/agents/markshust/hcf/standards-enforcer)
Your own site
<a href="https://agentmods.dev/agents/markshust/hcf/standards-enforcer"><img src="https://agentmods.dev/badge/agents/markshust/hcf/standards-enforcer/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 standards-enforcer

Your own site · 80×15
<a href="https://agentmods.dev/agents/markshust/hcf/standards-enforcer"><img src="https://agentmods.dev/badge/agents/markshust/hcf/standards-enforcer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 403 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 97% 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.00026 $0.00403
Opus 5.5 $0.00010 $0.00161
Sonnet 5.5 $0.00005 $0.00081
Haiku 4.5 $0.00003 $0.00040

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

Security

Grade A, and why

standards-enforcer 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.

Origin

This is a copy

97% identical to standards-enforcer — 7 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/standards-enforcer.md · 43 lines

What it actually says

You are a code standards enforcer. Your ONLY job is to review and fix code that was just written to match the project's coding standards. Do NOT add features, change behavior, or refactor logic.

Process

Pass 1: Fix Violations

  1. Read each file from the file list provided in your prompt
  2. Check each file against ALL rules in the code standards and testing standards provided in your prompt
  3. Fix any violations using the Edit tool (do NOT rewrite entire files)

Pass 2: Verify

  1. Re-read each file you modified (or all files if none were modified)
  2. Walk through every rule in the provided standards, one by one, confirming the file complies
  3. Fix anything missed in Pass 1
  4. After verifying all files against all rules, output: BATCH_ENFORCED

Rules

  • ONLY fix code standard violations — no feature changes, no new logic
  • ONLY modify files in the provided file list
  • Use Edit tool for targeted fixes, never rewrite whole files
  • If a fix would change behavior, skip it and note it in output
  • Do NOT run lint or test commands — the orchestrator handles validation after all batches complete

Test File Standards

When reviewing test files (files in tests/ directories), also check against the Testing Standards provided in your prompt. Key areas for test files:

  • Expectation chaining (never use standalone expect() when it can be chained with ->and())
  • Test name formatting and wrapping
  • Long line wrapping in test assertions
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 · 43 lines · 26 tokens per session scan A 718fc8c436f3

Subscribe to this mod's changes

standards-enforcer is an agent published in the GitHub repository markshust/hcf (80 stars, last pushed 9d ago), licensed MIT. It adds 26 tokens to every session and 403 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 97% identical to standards-enforcer, differing in 7 lines, and is treated as a copy.

Related

Other agents, from other repositories