mathcomp-review

mathcomp-review is a command for coding agents from LLM4Rocq/mathcomp-skills. It costs 18 tokens per session (1,946 once invoked), scanned A, original, Apache-2.0.

A read-only style review for math-comp and mathcomp-analysis Rocq files, which use the .v extension. It reports possible issues without changing the files.

In plain words
What is it for?
It reviews changed files, selected files, or every tracked .v file for style and axiom-related issues.
Why use it?
It gives developers a consistent checklist and a focused list of candidate problems while leaving the build as the final authority.

Command

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 commands/llm4rocq/mathcomp-skills/mathcomp-review
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-review

README.md
[![agentmods](https://agentmods.dev/badge/commands/llm4rocq/mathcomp-skills/mathcomp-review.svg)](https://agentmods.dev/commands/llm4rocq/mathcomp-skills/mathcomp-review)
Your own site
<a href="https://agentmods.dev/commands/llm4rocq/mathcomp-skills/mathcomp-review"><img src="https://agentmods.dev/badge/commands/llm4rocq/mathcomp-skills/mathcomp-review.svg" alt="Measured on agentmods" height="20"></a>
Per session 18 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,946 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.00018 $0.01946
Opus 5 $0.00009 $0.00973
Sonnet 5 $0.00004 $0.00389
Haiku 4.5 $0.00002 $0.00195

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

Security

Grade A, and why

mathcomp-review 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 4d 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.

commands/mathcomp-review.md · 179 lines

How it starts

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

mathcomp-review

Read-only style review of math-comp / mathcomp-analysis Rocq (.v) files. Runs the mechanical scanner, the SKILL.md Reviewer Checklist, and axiom hygiene, then emits a structured punch list keyed to reference.md section numbers.

Non-destructive: never edits, stages, or commits .v files. Every finding is a CANDIDATE — the build is the oracle.

Usage

/mathcomp-review                       # changed .v files (git diff)
/mathcomp-review theories/foo.v        # one explicit target
/mathcomp-review theories/*.v          # several explicit targets
/mathcomp-review --scope=project       # whole project (prompts first)

Inputs

Arg Required Description
target No One or more .v files (or a directory) to review
--scope No changed (default), project, or implicit when targets set

Defaults:

  • No args → --scope=changed (files modified since last commit).
  • One or more targets → review exactly those.
  • --scope=project → review every tracked .v (requires confirmation).

Project-wide confirmation:

This will review every .v file in the project. Proceed? (yes / no)

Scope Behavior

  1. changedgit diff --name-only and git diff --name-only --cached, filtered to *.v. If empty, report "no changed .v files" and stop.
  2. explicit targets — exactly the paths passed (glob-expanded by the shell). Skip non-.v and unreadable paths with a note.
  3. projectgit ls-files '*.v' after the confirmation prompt.

The header of the report always echoes the resolved scope.

Actions

Run per resolved scope, naming the exact tool for each step.

  1. Resolve scope — compute the target list (changed via git diff --name-only | explicit targets | git ls-files '*.v').

  2. Build statusmcp__rocq-mcp__rocq_compile_file on each target (file=<path>); surface any errors. If the rocq-mcp server is not configured/available, emit "build: skipped (rocq-mcp absent)" and continue — the rest of the review is static and does not depend on it. A broken build is reported but does not abort the review.

Read the full file on GitHub · 179 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. 4d ago First seen · 179 lines · 18 tokens per session scan A 8687ea8c9989

Subscribe to this mod's changes

mathcomp-review is a command published in the GitHub repository LLM4Rocq/mathcomp-skills (5 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 18 tokens to every session and 1,946 once invoked, about $0.0001 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.