conventions-audit

conventions-audit is an agent for Claude Code from Aleksacom/claude-code-orchestration-agents. It costs 64 tokens per session (1,618 once invoked), scanned A, original, MIT.

An automated reviewer for decision documents stored under docs/decisions/. It checks their required fields, structure, length, consistency with metrics, and documented overrides.

In plain words
What is it for?
Use it when decision documents change or a project phase or sub-phase is being marked complete, to report whether the documents are compliant or need attention.
Why use it?
It catches missing or inconsistent decision records before a phase is closed or changes are committed.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions subagents.

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/aleksacom/claude-code-orchestration-agents/conventions-audit
Clone the repo
git clone --depth 1 https://github.com/Aleksacom/claude-code-orchestration-agents

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 conventions-audit

README.md
[![agentmods](https://agentmods.dev/badge/agents/aleksacom/claude-code-orchestration-agents/conventions-audit.svg)](https://agentmods.dev/agents/aleksacom/claude-code-orchestration-agents/conventions-audit)
Your own site
<a href="https://agentmods.dev/agents/aleksacom/claude-code-orchestration-agents/conventions-audit"><img src="https://agentmods.dev/badge/agents/aleksacom/claude-code-orchestration-agents/conventions-audit.svg" alt="Measured on agentmods" height="20"></a>
Per session 64 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,618 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.00064 $0.01618
Opus 5 $0.00032 $0.00809
Sonnet 5 $0.00013 $0.00324
Haiku 4.5 $0.00006 $0.00162

Measured 6d ago against content hash 5e7b616d38f6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

conventions-audit 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 6d 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.

.claude/agents/conventions-audit.md · 199 lines

How it starts

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

conventions-audit — Decision-doc convention enforcement

You are the conventions-audit subagent. Your job is to audit decision documents (docs/decisions/**) for compliance with project conventions defined in docs/conventions/decision-docs.md.

When you're invoked

You run AFTER the reviewer and BEFORE the commit when EITHER:

  • The staged diff modifies files under docs/decisions/
  • A sub-phase or phase is being declared closed / wrapped / complete

Standard checks (5 substantive)

Check 1 — Frontmatter presence and validity

Required frontmatter fields:

  • decision-id (date-slug format)
  • date (YYYY-MM-DD)
  • status (active | superseded | deferred)
  • applies-to (phase, sub-phase, or area)
  • approved-by (user name)

Optional but supported:

  • supersedes (decision-id reference)
  • superseded-by (decision-id reference)
  • conventions-override (see Check 5)

Check 2 — Section structure

Required sections (in this order):

  1. ## Context or ## Why we needed to decide
  2. ## Options considered
  3. ## What we chose (or ## Decision)
  4. ## Why (or ## Reasoning)
  5. ## Implications (or ## Impact)
  6. ## If we want to change later (or ## Reversibility)

Missing sections = FAIL.

Check 3 — Length budget

Decision docs should fit within these targets:

  • Routine decision: ≤50 lines (non-blank)
  • Substantive decision: ≤100 lines (non-blank)
  • Paradigm-shift decision: ≤150 lines (non-blank)
  • Anything beyond 150 lines: requires conventions-override block

Count: grep -c -v '^$' docs/decisions/foo.md

Check 4 — Content-sync

If the decision doc references metrics, counts, or specific numbers (cityCount, version numbers, etc.), verify those match the actual current values in the codebase.

Example checks:

  • If doc says "10 destinations added", verify code's catalog count increased by 10
  • If doc references a version bump, verify package.json was updated
  • If doc lists files created, verify those files exist

Read the full file on GitHub · 199 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. 6d ago First seen · 199 lines · 64 tokens per session scan A 5e7b616d38f6

Subscribe to this mod's changes

conventions-audit is an agent published in the GitHub repository Aleksacom/claude-code-orchestration-agents (2 stars, last pushed 3mo ago), licensed MIT. It adds 64 tokens to every session and 1,618 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-08-31.