platform: Agent for Claude Code

.claude/agents/convention-eval.md

convention-eval is an agent for Claude Code from ambient-code/platform. It costs 29 tokens per session (975 once invoked), scanned A, original, MIT.

A code-review agent that checks a whole codebase against written coding and security rules, then gives a scored report. It is run by the `/align` skill.

In plain words
What is it for?
Use it to review a project’s adherence to its conventions and identify higher-severity issues that need attention.
Why use it?
It helps find places where the code differs from the team’s documented standards, including unsafe error handling, exposed tokens, and inconsistent frontend or backend patterns.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

This is ambient-code/platform's own configuration. It tells Claude Code how to work on platform itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything platform configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ambient-code/platform. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ambient-code/platform/main/.claude/agents/convention-eval.md
Clone the repo
git clone --depth 1 https://github.com/ambient-code/platform

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 convention-eval

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/ambient-code/platform/convention-eval"><img src="https://agentmods.dev/badge/agents/ambient-code/platform/convention-eval.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 975 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.00029 $0.00975
Opus 5.5 $0.00012 $0.00390
Sonnet 5.5 $0.00006 $0.00195
Haiku 4.5 $0.00003 $0.00097

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

Security

Grade A, and why

convention-eval 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.

.claude/agents/convention-eval.md · 131 lines

How it starts

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

Convention Evaluation Agent

Evaluate codebase adherence to documented conventions. Produce a scored report.

Context Files

Load these before running checks:

  1. specs/standards/backend/conventions.spec.md
  2. specs/standards/backend/error-handling.spec.md
  3. specs/standards/backend/k8s-client.spec.md
  4. specs/standards/frontend/conventions.spec.md
  5. specs/standards/frontend/react-query.spec.md
  6. specs/standards/control-plane/conventions.spec.md
  7. specs/standards/security/security.spec.md

Checks by Category

Backend (8 checks, weight: 25%)

# Check Severity
B1 No panic() in production Blocker
B2 User-scoped clients for user ops Blocker
B3 No direct type assertions Critical
B4 No silent error handling Critical
B5 No internal error exposure Major
B6 No tokens in logs Blocker
B7 Error wrapping with %w Major
B8 Files under 400 lines Minor

Frontend (8 checks, weight: 25%)

# Check Severity
F1 No raw HTML elements Critical
F2 No manual fetch() Critical
F3 No interface declarations Major
F4 No any types Critical
F5 Components under 200 lines Minor
F6 Loading/error states Major
F7 Colocated single-use components Minor
F8 Feature flag on new pages Major

Operator (7 checks, weight: 20%)

# Check Severity
O1 OwnerReferences on child resources Blocker
O2 Proper reconciliation patterns Critical
O3 SecurityContext on Job pods Critical
O4 Resource limits/requests Major
O5 No panic() in production Blocker
O6 Status condition updates Critical
O7 No context.TODO() Minor

Runner (4 checks, weight: 10%)

# Check Severity
R1 Proper async patterns Major
R2 Credential handling Blocker
R3 Error propagation Critical
R4 No hardcoded secrets Blocker

Read the full file on GitHub · 131 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 First seen · 131 lines · 29 tokens per session scan A c4155659eb71

Subscribe to this mod's changes

convention-eval is an agent published in the GitHub repository ambient-code/platform (131 stars, last pushed yesterday), licensed MIT. It adds 29 tokens to every session and 975 once invoked, about $0.0001 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-08-30.

Related

Other agents, from other repositories

checker

Judges finished work against its validator and the real need, leaving nothing unchecked. Use when code or a deliverable needs independent verification before it ships. Never edits the work, never implements the fix.

ai-driven-dev/framework · 42 tokens

analytics_engineer

Analytics engineering specialist for event tracking implementation, analytics schemas, conversion funnels, A/B test design, and measurement planning. Use when the task requires instrumenting features with analytics, designing event taxonomies, building conversion funnels, or planning experiments. For example: adding…

josstei/maestro-orchestrate · 77 tokens

compliance_reviewer

Legal and regulatory compliance specialist for privacy auditing, GDPR/CCPA compliance, cookie consent implementation, data handling documentation, open-source license auditing, and terms of service review. Use when the task requires regulatory compliance assessment, privacy policy review, cookie consent architecture…

josstei/maestro-orchestrate · 86 tokens

i18n_specialist

Internationalization specialist for i18n architecture, string extraction, locale management, pluralization rules, RTL support, and date/number/currency formatting. Use when the task requires internationalizing an application, setting up locale file structures, extracting hardcoded strings, or adding right-to-left…

josstei/maestro-orchestrate · 91 tokens

mobile_engineer

Mobile engineering specialist for iOS, Android, React Native, and Flutter feature work. Use when the task requires native platform APIs, mobile navigation flows, platform-specific UI patterns, background tasks, or app store compliance. For example: building a push notification handler, wiring biometric auth…

josstei/maestro-orchestrate · 71 tokens

product_manager

Product management specialist for requirements gathering, PRDs, user stories, feature prioritization, and competitive analysis. Use when the task requires defining product requirements, writing user stories with acceptance criteria, prioritizing features, or conducting competitive research. For example: writing a PRD…

josstei/maestro-orchestrate · 78 tokens