mathcomp-style-auditor

mathcomp-style-auditor is an agent for coding agents from LLM4Rocq/mathcomp-skills. It costs 70 tokens per session (1,077 once invoked), scanned A, original, Apache-2.0.

A read-only reviewer for Rocq files that use the math-comp or mathcomp-analysis libraries. Rocq is a system for writing computer-checked mathematical proofs.

In plain words
What is it for?
It is for producing a structured list of style issues in one or more .v files, with findings tied to sections of the project’s style guide.
Why use it?
It finds style problems without changing, staging, or committing files, making parallel reviews safer.

Agent

Part of the mathcomp-skills plugin — 1 skill, 1 command, 1 agent, 1 hook 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 agents/llm4rocq/mathcomp-skills/mathcomp-style-auditor
Clone the repo
git clone --depth 1 https://github.com/LLM4Rocq/mathcomp-skills

Or install mathcomp-skills, the plugin that ships this one along with the rest of its 1 skill, 1 command, 1 agent, 1 hook.

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 mathcomp-style-auditor

README.md
[![agentmods](https://agentmods.dev/badge/agents/llm4rocq/mathcomp-skills/mathcomp-style-auditor.svg)](https://agentmods.dev/agents/llm4rocq/mathcomp-skills/mathcomp-style-auditor)
Your own site
<a href="https://agentmods.dev/agents/llm4rocq/mathcomp-skills/mathcomp-style-auditor"><img src="https://agentmods.dev/badge/agents/llm4rocq/mathcomp-skills/mathcomp-style-auditor.svg" alt="Measured on agentmods" height="20"></a>
Per session 70 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,077 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.00070 $0.01077
Opus 5 $0.00035 $0.00539
Sonnet 5 $0.00014 $0.00215
Haiku 4.5 $0.00007 $0.00108

Measured 5d ago against content hash 705467731153, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

mathcomp-style-auditor 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 5d 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/mathcomp-style-auditor.md · 102 lines

How it starts

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

mathcomp-style-auditor

You are an extra-critical math-comp / mathcomp-analysis reviewer auditing one .v file (or a small file-group). You are READ-ONLY: you have no Edit/Write tool and you never mutate the file, stage, or commit. You produce a structured punch list only. This is why the parent can safely fan out one instance per file in parallel — no two auditors ever write, so there is no same-file-overwrite race.

Inputs

  • The target .v file path(s).
  • The style guide ships with the skill: read ${CLAUDE_SKILL_DIR}/reference.md (sections 22–33 in particular for fresh-maintainer feedback) and ${CLAUDE_SKILL_DIR}/playbook.md § "Audit recommendations that don't pan out".

Actions

  1. Mechanical first — run the bundled scanner and fold its output into your punch list:

    ${CLAUDE_SKILL_DIR}/scripts/audit-quick.sh <file>
    

    Use Read/Grep to inspect the file directly; do not write scripts or temp files just to view source.

  2. Optional live checks (read-only; skip silently if rocq-mcp is absent — never invoke MCP tool names via Bash):

    • mcp__rocq-mcp__rocq_compile_file file=<path> — confirm the file compiles, so you can mark whether findings are on a green build.
    • mcp__rocq-mcp__rocq_query command="Search …" / "About …" / "Print Assumptions …" — confirm a name exists / its spelling / its axioms before asserting a naming or hygiene finding.
  3. Enumerate every style violation and key each to a reference.md section number. Categories to cover:

    • §1, §6, §22.3 — line length, scope delimiters
    • §3, §23 — fully-qualified module names
    • §8, §26 — proof terminator hygiene
    • §9 — tactic spacing
    • §10–§14 — naming
    • §16, §31 — Arguments / implicits
    • §22.1–22.4 — concision / triviality
    • §24 — type constraint hygiene
    • §25 — @ discipline
    • §27 — bookkeeping idioms
    • §28 — case analysis
    • §29 — rewriting idioms
    • §32 — Definition vs. Notation, is_ prefix on operators

Read the full file on GitHub · 102 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. 5d ago First seen · 102 lines · 70 tokens per session scan A 705467731153

Subscribe to this mod's changes

mathcomp-style-auditor is an agent published in the GitHub repository LLM4Rocq/mathcomp-skills (5 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 70 tokens to every session and 1,077 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.

Related

Other agents, from other repositories

editor

Journal editor who desk-reviews manuscripts, selects two referees with deliberately different dispositions, calibrates to a target journal from .claude/references/journal-profiles.md, and synthesizes an editorial decision (FATAL / ADDRESSABLE / TASTE). Used by /review-paper --peer [journal].

pedrohcgs/claude-code-my-workflow · 64 tokens

Geoprocessing Specialist

ArcPy and Python toolbox expert who automates spatial workflows — builds .pyt toolboxes, Model Builder processes, batch geoprocessing automation, and custom analysis scripts for ArcGIS Pro.

SHAdd0WTAka/Zen-Ai-Pentest · 45 tokens

research-scout

Scans the NeqSim codebase to discover scientific paper opportunities that will drive code improvement. Every paper must improve NeqSim — adding tests, validating models against data, hardening algorithms, or implementing new capabilities. Produces ranked, actionable topics that feed into the planner agent.

equinor/neqsim · 61 tokens

algorithm-expert

RL algorithm expert. Fire when working on GRPO/PPO/DAPO/GSPO/SAPO algorithms, reward functions, advantage normalization, loss computation, or training loop implementation.

redai-infra/Relax · 37 tokens

mathodology-problem-analyst

Use for contest problem decomposition, scoring criteria, constraints, variables, assumptions, and deliverable mapping.

sweetcornna/mathodology · 29 tokens

astronomical-instrumentation-scientist

Reasons from system-level error budgets, the diffraction limit and Strehl ratio, detector figures of merit, and resolving power through Zemax/Code V tolerancing, ETC radiometry, AO modeling, and on-sky standard-star commissioning while treating flexure drift, IR persistence, ghosts, and quasi-static speckles as…

K-Dense-AI/scientific-agents · 78 tokens