coding-conventions-agent

coding-conventions-agent is a skill for Claude Code, Codex from richfrem/agent-plugins-skills. It costs 45 tokens per session (1,439 once invoked), scanned A, original, MIT.

A coding standards agent that checks new and existing code against project rules. It covers Python, TypeScript, JavaScript, and C#/.NET source files and their documentation.

In plain words
What is it for?
Use it when writing code, reviewing quality, adding required headers and docstrings, or checking whether project coding policies are being followed.
Why use it?
It reduces inconsistent style, missing file headers, incomplete documentation, and untyped Python function signatures across a codebase.

Skill for Claude CodeCodex

Part of the dev-utils plugin — 17 skills, 2 agents shipped together

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 skills/richfrem/agent-plugins-skills/coding-conventions-agent
Any agent
npx skills add richfrem/agent-plugins-skills --skill coding-conventions-agent
Clone the repo
git clone --depth 1 https://github.com/richfrem/agent-plugins-skills

Made for: Claude Code, Codex.

Or install dev-utils, the plugin that ships this one along with the rest of its 17 skills, 2 agents.

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 coding-conventions-agent

README.md
[![agentmods](https://agentmods.dev/badge/skills/richfrem/agent-plugins-skills/coding-conventions-agent.svg)](https://agentmods.dev/skills/richfrem/agent-plugins-skills/coding-conventions-agent)
Your own site
<a href="https://agentmods.dev/skills/richfrem/agent-plugins-skills/coding-conventions-agent"><img src="https://agentmods.dev/badge/skills/richfrem/agent-plugins-skills/coding-conventions-agent.svg" alt="Measured on agentmods" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,439 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 $0.00045 $0.01439
Opus 5 $0.00023 $0.00720
Sonnet 5 $0.00009 $0.00288
Haiku 4.5 $0.00005 $0.00144

Measured yesterday against content hash 6429f2bc66cc, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

coding-conventions-agent 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.

The scan reads SKILL.md. This mod also ships 4 executable files (assets/templates/bash-tool-header-template.sh, assets/templates/js-tool-header-template.js, assets/templates/python-tool-header-template.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugins/dev-utils/skills/coding-conventions-agent/SKILL.md · 194 lines

How it starts

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

Dependencies

This skill requires Python 3.8+ and standard library only. No external packages needed.

To install this skill's dependencies:

pip-compile ./requirements.in
pip install -r ./requirements.txt

See ./././requirements.txt for the dependency lockfile (currently empty — standard library only).


Identity: The Standards Agent 📝

You enforce project-wide coding policy alignment across all scripts and code.

Your Mission: Ensure 100% codebase compliance with .agent/rules/ policies so that:

  1. Policies are consistently enforced - No scripts are exempt or grandfathered in
  2. Fresh agents can understand code at a glance - First 20 lines answer: what/why/how/dependencies
  3. Code quality is uniform - Standards are applied systematically, not ad-hoc

Authority: All standards defined in .agent/rules/coding-conventions.md and related policy files

🚫 Non-Negotiables

  1. Dual-layer docs — external comment above + internal docstring inside every non-trivial function/class
  2. File headers — every source file starts with a purpose header
  3. Type hints — all Python function signatures use type annotations
  4. Namingsnake_case (Python), camelCase (JS/TS), PascalCase (C# public)
  5. Refactor threshold — 50+ lines or 3+ nesting levels → extract helpers
  6. Manifest schema — use simple {title, description, files} format (ADR 097)

📂 Header Templates

  • Python: ../../assets/templates/python-tool-header-template.py
  • JS/TS: ../../assets/templates/js-tool-header-template.js
  • TSX (React): ../../assets/templates/tsx-tool-header-template.tsx

📝 File Headers

Python

#!/usr/bin/env python
"""
Script Name
=====================================

Purpose:
    What the script does and its role in the system.

Layer: Investigate / Codify / Curate / Retrieve

Usage:
    python script.py [args]
"""

TypeScript/JavaScript

/**
 * path/to/file.js
 * ================
 *
 * Purpose:
 *   Component responsibility and role in the system.
 *
 * Key Functions/Classes:
 *   - functionName() - Brief description
 */

Read the full file on GitHub · 194 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 First seen · 194 lines · 45 tokens per session scan A 6429f2bc66cc

Subscribe to this mod's changes

coding-conventions-agent is a skill published in the GitHub repository richfrem/agent-plugins-skills (6 stars, last pushed yesterday), licensed MIT. It adds 45 tokens to every session and 1,439 once invoked, about $0.0002 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.