review-contract

review-contract is a skill for Claude Code from Jerrylalala/compound-engineering. It costs 61 tokens per session (2,226 once invoked), scanned A, original, MIT.

A review policy that divides code reviewers into three levels: blocking issues, analytical concerns, and optional advice. It adds rules for how certain reviewers must be and how findings should be classified.

In plain words
What is it for?
Use it before running the project's code review process to decide which reviewers to involve and whether findings should block a change, prompt investigation, or remain advisory.
Why use it?
It makes code reviews stricter for security and deployment risks while preventing unsupported worries from being reported as definite problems.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md; mentions Codex.

Part of the compound-engineering plugin — 78 skills, 4 commands, 2 hooks shipped together

Good fit Use it before running the project's code review process to decide which reviewers to involve and whether findings should block a change, prompt investigation, or remain advisory.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jerrylalala/compound-engineering/review-contract
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 Jerrylalala/compound-engineering --skill review-contract
Clone the repo
git clone --depth 1 https://github.com/Jerrylalala/compound-engineering

Made for: Claude Code.

Or install compound-engineering, the plugin that ships this one along with the rest of its 78 skills, 4 commands, 2 hooks.

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-contract

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/jerrylalala/compound-engineering/review-contract"><img src="https://agentmods.dev/badge/skills/jerrylalala/compound-engineering/review-contract.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,226 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.00061 $0.02226
Opus 5 $0.00030 $0.01113
Sonnet 5 $0.00012 $0.00445
Haiku 4.5 $0.00006 $0.00223

Measured 8d ago against content hash 62abf7effc9f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

review-contract 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 8d 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.

plugins/compound-engineering/skills-custom/review-contract/SKILL.md · 155 lines

How it starts

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

Review Contract — Fork Overlay

基础层:上游 ce:review 已实现 P0-P3 严重级别、confidence 阈值(≥0.60 才报告)、autofix_class 路由。

本 Overlay 增量:三档 Tier 分类 + 对应的 anti-leniency 强度 + conclusion_type 覆盖层。


Tier 分类

命名规范[上游] = 在 skills/ce-review/references/persona-catalog.md 中有记录,由 ce:review 编排器实际派发。 [本地] = 仅在 agents/review/ 中存在但不在 persona-catalog,需手动调用,不被编排器自动派发。

Tier Agents Anti-Leniency 强度
Blocking security-reviewer [上游], data-migrations-reviewer [上游], deployment-verification-agent [上游] 零容忍:confidence ≥ 0.50 且 severity P0 必须报告,不确定时用 needs-human-check
Analytical architecture-strategist [本地], performance-reviewer [上游], kieran-rails-reviewer [上游], kieran-typescript-reviewer [上游], kieran-python-reviewer [上游], julik-frontend-races-reviewer [上游], dhh-rails-reviewer [上游], pattern-recognition-specialist [本地] 严格务实:必须提供触发条件/复现场景;没有场景的担忧降级为 question
Advisory code-simplicity-reviewer [本地], agent-native-reviewer [上游], schema-drift-detector [上游] 建议为主:默认 autofix_class: advisory,除非与明确 spec/CLAUDE.md 冲突

已更正的名称对照(原名 → persona-catalog 名):

  • security-sentinelsecurity-reviewer
  • data-integrity-guardian + data-migration-expertdata-migrations-reviewer(合并,上游统一入口)
  • performance-oracleperformance-reviewer

结论类型系统(conclusion_type 覆盖层)

注意conclusion_type 是本 overlay 新增的本地语义字段,不存在于上游 findings-schema.json。 上游 schema 使用 autofix_classseverityconfidence 等字段。 本字段仅在此 overlay 内部使用,不写入上游 schema。

上游 schema 已有 autofix_class 路由。本 overlay 增加一个更语义化的 conclusion_type 字段,与上游字段并存:

conclusion_type 映射关系 何时使用
finding 上游 P0/P1/P2 + confidence ≥ 0.70 有确凿证据的问题,有代码引用
question 上游 residual_risks / confidence 0.60-0.69 不确定,需要讨论
needs-human-check 上游 requires_verification: true 超出 AI 判断能力
clear 上游 findings 为空 此项无问题

Anti-Leniency 参考原则(仅供分类框架参考)

Read the full file on GitHub · 155 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. 8d ago First seen · 155 lines · 61 tokens per session scan A 62abf7effc9f

Subscribe to this mod's changes

review-contract is a skill published in the GitHub repository Jerrylalala/compound-engineering (5 stars, last pushed 3mo ago), licensed MIT. It adds 61 tokens to every session and 2,226 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.