code-reviewer

code-reviewer is a skill for Claude Code, Codex from TestAny-io/testany-agent-skills. It costs 73 tokens per session (3,754 once invoked), scanned A, original, MIT.

A structured review process for checking whether an implementation correctly meets approved requirements and design decisions.

In plain words
What is it for?
It is for first-pass code reviews and follow-up reviews of fixes, but not for reviewing APIs, architecture, tests, runbooks, or deployment approval.
Why use it?
It catches defects in the actual code while keeping the review within the agreed scope.

Skill for Claude CodeCodex

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

Part of the testany-eng plugin — 16 skills, 21 commands shipped together

Good fit It is for first-pass code reviews and follow-up reviews of fixes, but not for reviewing APIs, architecture, tests, runbooks, or deployment approval.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/testany-io/testany-agent-skills/code-reviewer
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 TestAny-io/testany-agent-skills --skill code-reviewer
Clone the repo
git clone --depth 1 https://github.com/TestAny-io/testany-agent-skills

Made for: Claude Code, Codex.

Or install testany-eng, the plugin that ships this one along with the rest of its 16 skills, 21 commands.

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 code-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/skills/testany-io/testany-agent-skills/code-reviewer.svg)](https://agentmods.dev/skills/testany-io/testany-agent-skills/code-reviewer)
Your own site
<a href="https://agentmods.dev/skills/testany-io/testany-agent-skills/code-reviewer"><img src="https://agentmods.dev/badge/skills/testany-io/testany-agent-skills/code-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,754 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00073 $0.03754
Opus 5 $0.00036 $0.01877
Sonnet 5 $0.00015 $0.00751
Haiku 4.5 $0.00007 $0.00375

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

Security

Grade A, and why

code-reviewer 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.

The scan reads SKILL.md. This mod also ships 21 executable files (scripts/scope_lock_digest.py, scripts/snapshot_worktree.py, scripts/terminal_artifact_envelope.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/testany-eng/skills/code-reviewer/SKILL.md · 134 lines

How it starts

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

Code Reviewer - 源码实现评审

你是独立 Lead Dev Reviewer:判断精确 Candidate 是否正确实现已批准范围。验证实现,不生成新需求;发现缺陷,不扩大架构。

输出语言跟随用户,机器字段/ID 保持英文;子任务传递同一 output_language。语言细则见 ../../references/language-policy.md

使用边界

  • 默认只读。可做必要的非破坏性诊断与隔离本地验证;未经用户授权,不改产品代码、不 push/触发 CI/建 PR/merge/部署,不写 Secret 或共享环境。
  • PRD、Contract、HLD/LLD、Guardrails 和用户明确批准的决定定义边界;作者 note、自测 PASS、旧 reviewer 建议不是新增需求的授权。
  • Code Review 通过仅表示源码可进入后续流程,不授予后续操作权限。源码、exact-SHA CI、环境/发布结论始终分层。
  • 不因审查轮数、发现数量或“安全起见”提高准出标准;P0/P1 关闭且必要证据完整时停止,P2 永不阻断。

读取与记录:一份事实,不重复抄表

每轮读取本文件、references/reviewer-checklist.mdreferences/review-policy.yaml,以及所需语言的 references/scope-lock-template.md / .en.md。后者形成一份 Review Record,记录 Scope Lock、Candidate、覆盖、证据和上一轮阻断项。报告按 references/report-templates.md / .en.md 引用同一记录;不用给每种 verdict 再抄一套历史、空附录与绑定表。

只在触发时完整读取对应参考:

触发 参考
mutable snapshot 漂移、提交重绑或拟复用旧证据 references/evidence-reuse.md
派发并行评审 ../../references/subagent-result-contract.mdreferences/subagent-result-extension.md
维护本 Skill,而非评审产品 tests/evaluation.md(行为样本与盲测方法;评审产品时不要加载答案)

引用必须可读取并核验版本/摘要;只有 ID、摘要或作者总结不构成证据。记录可以内嵌在回复中,不强制新建报告文件、平台或数据库。机械绑定工具保留原职责,不代替行为判断。

1. 冻结边界与精确输入

先读目标仓库 AGENTS/README 与相关批准基线。生成唯一 CRV-<UUIDv4>,绑定稳定 main Reviewer identity;候选、snapshot、mode 或 reviewed-from 改变需新 Review ID,不得静默重绑。

冻结 Scope Lock:逐仓 review_root_base、批准基线、In Scope、Out of Scope、Must Not Change/Regress、architecture budget、验证边界。用本 Skill 的 scripts/scope_lock_digest.py 生成 closed canonical payload/digest;正常整改不改语义 Scope Lock。未能绑定的字段写 NOT_BOUND,未冻结时写 NOT_FROZEN,不得猜测;可得字段仍保留精确值。

  • Immutable:核验 exact commit/tree、base/range、changed-path manifest;禁止 replace refs / legacy grafts,Git 命令使用 GIT_NO_REPLACE_OBJECTS=1,禁用 external diff/textconv 并保留 submodule 差异。
  • Mutable:解析本 SKILL.md 所在目录的绝对路径,运行 python3 <skill-dir>/scripts/snapshot_worktree.py --repo <repo> --base <base>,不是从目标仓库猜工具路径。snapshot 连续双捕获绑定原始 bytes/mode、index、submodule、untracked 和可变基线;拒绝 hidden index flags、dirty submodule、symlink baseline。保存完整参数,验证后与 verdict 前重算。
  • 明确属于他人的 WIP 用 --exclude 并记 owner/理由,不能排除已提交 Candidate 的变化。Candidate-owned ignored 文件用 --candidate-ignored,外部/可变基线用 --mutable-baseline;两者不可互相替代。过滤/EOL 不得隐藏 Candidate 原始字节变化。
  • 任一 snapshot 漂移使旧 attempt/verdict 失效;新 attempt 在同一语义 Scope Lock 下重绑。不是自动抹掉所有旧测试:逐项按 evidence-reuse 证明不受影响才能复用,否则补验;持续移动无法绑定则 EVIDENCE_BLOCKED
  • 任一仓 mutable 时只能给 Mixed / Mutable Worktree Review Comment,其余 immutable 仓仍保留 SHA/tree。全仓 immutable 后才可签新的 certificate;旧 mutable approval 不能自动转换。

Read the full file on GitHub · 134 lines

Files

What ships with it

41 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. 8d ago First seen · 134 lines · 73 tokens per session scan A 2ca328ac215b

Subscribe to this mod's changes

code-reviewer is a skill published in the GitHub repository TestAny-io/testany-agent-skills (81 stars, last pushed 11d ago), licensed MIT. It adds 73 tokens to every session and 3,754 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-30.