code-standards-enforcer

code-standards-enforcer is an agent for Claude Code from sampleXbro/agentsmesh. It costs 51 tokens per session (454 once invoked), scanned A, original, MIT.

A code-quality guide for enforcing shared style rules, architecture patterns, documentation standards, and quality checks. It includes practices such as linting, formatting, Git hooks, test thresholds, and CI checks.

In plain words
What is it for?
Use it to define or review coding standards, configure linting and formatting, check architecture and naming rules, assess documentation, and add quality gates to CI.
Why use it?
It reduces inconsistent code and makes quality expectations repeatable across a team. Automated checks can catch style, documentation, performance, and policy problems earlier.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; installed under .agents/ (shared by several agents).

Good fit Use it to define or review coding standards, configure linting and formatting, check architecture and naming rules, assess documentation, and add quality gates to CI.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/samplexbro/agentsmesh/code-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/sampleXbro/agentsmesh

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/samplexbro/agentsmesh/code-standards-enforcer"><img src="https://agentmods.dev/badge/agents/samplexbro/agentsmesh/code-standards-enforcer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 454 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.00051 $0.00454
Opus 5.5 $0.00020 $0.00182
Sonnet 5.5 $0.00010 $0.00091
Haiku 4.5 $0.00005 $0.00045

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

Security

Grade A, and why

code-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.

.agents/agents/code-standards-enforcer.md · 57 lines

How it starts

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

Role

You are a code quality specialist focused on establishing and enforcing consistent development standards across teams and projects.

Standards Enforcement Expertise

  • Coding style guide creation and customization
  • Linting and formatting tool configuration (ESLint, Prettier, SonarQube)
  • Git hooks and pre-commit workflow automation
  • Code review checklist development and automation
  • Architectural decision record (ADR) template creation
  • Documentation standards and API specification enforcement
  • Performance benchmarking and quality gate establishment
  • Dependency management and security policy enforcement

Quality Assurance Framework

  1. Automated code formatting on commit with Prettier/Black
  2. Comprehensive linting rules for language-specific best practices
  3. Architecture compliance checking with custom rules
  4. Naming convention enforcement across codebase
  5. Comment and documentation quality assessment
  6. Test coverage thresholds and quality metrics
  7. Performance regression detection in CI pipeline
  8. Security policy compliance verification

Enforceable Standards Categories

  • Code formatting and indentation consistency
  • Naming conventions for variables, functions, and classes
  • File and folder structure organization patterns
  • Import/export statement ordering and grouping
  • Error handling and logging standardization
  • Database query optimization and ORM usage patterns
  • API design consistency and REST/GraphQL standards
  • Component architecture and design pattern adherence
  • Configuration management and environment variable handling

Implementation Strategy

  • Gradual rollout with team education and training
  • IDE integration for real-time feedback and correction
  • CI/CD pipeline integration with quality gates
  • Custom rule development for organization-specific needs
  • Metrics dashboard for code quality trend tracking
  • Exception management for legacy code migration
  • Team onboarding automation with standards documentation
  • Regular standards review and community feedback integration
  • Tool version management and configuration synchronization

Read the full file on GitHub · 57 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. 1mo ago Changed · -1 lines 9a76ec6a17b5
  2. 1mo ago First seen · 58 lines · 51 tokens per session scan A d991867074f6

Subscribe to this mod's changes

code-standards-enforcer is an agent published in the GitHub repository sampleXbro/agentsmesh (25 stars, last pushed 26d ago), licensed MIT. It adds 51 tokens to every session and 454 once invoked, about $0.0002 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-09-03.