review-invariants

review-invariants is a skill for Claude Code, Codex from rordi-ai/loopbreaker. It costs 75 tokens per session (1,113 once invoked), scanned A, original, MIT.

A structured code-review workflow based on fixed behaviors and project invariants, meaning conditions that must remain true. It uses the Loopbreaker planning and review process to decide whether the implementation is ready.

In plain words
What is it for?
It is for first reviews, checking repairs, validating review findings, checking production wiring, and making ship decisions.
Why use it?
It prevents reviews from drifting into unplanned work and makes the review, planning, and shipping state explicit.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the loopbreaker plugin — 7 skills, 1 agent, 1 MCP server shipped together

Good fit It is for first reviews, checking repairs, validating review findings, checking production wiring, and making ship decisions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rordi-ai/loopbreaker/review-invariants
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.

Any agent
npx skills add rordi-ai/loopbreaker --skill review-invariants
Clone the repo
git clone --depth 1 https://github.com/rordi-ai/loopbreaker

Made for: Claude Code, Codex.

Or install loopbreaker, the plugin that ships this one along with the rest of its 7 skills, 1 agent, 1 MCP server.

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 review-invariants

README.md
[![agentmods](https://agentmods.dev/badge/skills/rordi-ai/loopbreaker/review-invariants/github.svg)](https://agentmods.dev/skills/rordi-ai/loopbreaker/review-invariants)
Your own site
<a href="https://agentmods.dev/skills/rordi-ai/loopbreaker/review-invariants"><img src="https://agentmods.dev/badge/skills/rordi-ai/loopbreaker/review-invariants/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 review-invariants

Your own site · 80×15
<a href="https://agentmods.dev/skills/rordi-ai/loopbreaker/review-invariants"><img src="https://agentmods.dev/badge/skills/rordi-ai/loopbreaker/review-invariants.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,113 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.00075 $0.01113
Opus 5 $0.00037 $0.00557
Sonnet 5 $0.00015 $0.00223
Haiku 4.5 $0.00007 $0.00111

Measured 11d ago against content hash 87573fc5723e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

review-invariants 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 11d 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.

skills/review-invariants/SKILL.md · 111 lines

How it starts

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

Review Invariants

Determine whether the frozen behavior contract is true in production. Produce one comprehensive pass, one repair-verification pass when needed, and at most one decision-only pass. Review evidence supports behavior state; it is not a hidden ship gate.

Non-negotiable state authority

See state authority for the full discipline; it applies here without exception. This skill's header emits five separate lines:

Shape: <exact persisted disposition and readiness>
Planning review: <exact persisted disposition>
Planning: <exact persisted score and readiness>
Review: <current or proposed review result>
Shipping: <exact persisted disposition> [state unchanged when not persisted]

Read references/decision-rules.md completely before reviewing.

Preflight

  1. Resolve the issue and exact artifact: working diff, commit range, or PR.
  2. Call delivery_readiness, then review_substrate, before reading the change. Do not start pass one unless implementation is admitted by shape, planning health, and planning-review approval; return the exact active gate instead.
  3. Treat behavior children as the frozen acceptance surface. Parent context may interpret them but cannot add requirements.
  4. Read review.next_action; never choose a pass from intuition.

Review is read-only with respect to source code, remote reviews, and waivers unless the user separately requests changes. Recording review passes, evidence, and findings in Loopbreaker is part of this skill.

Pass protocol

Pass 1 — comprehensive

Trace every enforced behavior through implementation, active production wiring, and proportionate proof. Enumerate all material root causes now. Collapse symptoms with the same cause. Check candidate invariants only when their declared scope intersects the changed or required-wiring paths.

Pass 2 — repair verification

Check every admitted repair against its named closing proof, then inspect only the repair delta for regressions caused by that repair. Do not reopen allowed designs or scan untouched pre-existing code for additional improvements.

Read the full file on GitHub · 111 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 11d ago First seen · 111 lines · 75 tokens per session scan A 87573fc5723e

Subscribe to this mod's changes

review-invariants is a skill published in the GitHub repository rordi-ai/loopbreaker (3 stars, last pushed 1mo ago), licensed MIT. It adds 75 tokens to every session and 1,113 once invoked, about $0.0004 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.