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

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.

agentmods
npx agentmods add agents/samplexbro/agentsmesh/code-standards-enforcer
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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00026 $0.00227
Sonnet 5 $0.00010 $0.00091
Haiku 4.5 $0.00005 $0.00045

Measured yesterday against content hash 9a76ec6a17b5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 yesterday.

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. yesterday Changed · -1 lines 9a76ec6a17b5
  2. 2d 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 (24 stars, last pushed yesterday), licensed MIT. It adds 51 tokens to every session and 454 once invoked, about $0.0003 per session on Opus 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.

Related

Other agents, from other repositories

cicd-automation-deployment-engineer

Expert deployment engineer specializing in modern CI/CD pipelines, GitOps workflows, and advanced deployment automation. Masters GitHub Actions, ArgoCD/Flux, progressive delivery, container security, and platform engineering. Handles zero-downtime deployments, security scanning, and developer experience optimization.…

wshobson/agents · 83 tokens

cicd-automation-kubernetes-architect

Expert Kubernetes architect specializing in cloud-native infrastructure, advanced GitOps workflows (ArgoCD/Flux), and enterprise container orchestration. Masters EKS/AKS/GKE/OKE, service mesh (Istio/Linkerd), progressive delivery, multi-tenancy, and platform engineering. Handles security, observability, cost…

wshobson/agents · 101 tokens

monorepo-architect

Expert in monorepo architecture, build systems, and dependency management at scale. Masters Nx, Turborepo, Bazel, and Lerna for efficient multi-project development. Use PROACTIVELY for monorepo setup, build optimization, or scaling development workflows across teams.

wshobson/agents · 63 tokens

devops-ci-cd-agent

Agent "devops-ci-cd-agent" from girijashankarj/cursor-handbook, covering ci/cd pipeline agent, invocation, scope, expertise and when to use.

girijashankarj/cursor-handbook · 0 tokens

megalinter-watcher

Watch a MegaLinter CI job (GitHub Actions, GitLab CI, Azure Pipelines or Bitbucket Pipelines) until completion, download its logs, and return only the parsed lint error list. Use to keep large CI logs out of the main context. Observes only — never fixes, edits or pushes.

ulises-jeremias/agent-toolkit · 70 tokens

devops-engineer

Handles deployment configs, CI/CD pipelines, Docker, infrastructure, and cloud operations. Use for deployment reviews and infrastructure tasks.

faizkhairi/claude-code-blueprint · 29 tokens