api-reviewer

api-reviewer is a command for Claude Code from TestAny-io/testany-agent-skills. It costs 12 tokens per session (371 once invoked), scanned A, original, MIT.

A review process for an API contract, the document that defines how software components communicate. It checks whether the contract matches the product requirements and covers protocol, compatibility, versioning, and error behavior.

In plain words
What is it for?
Use it to review an API contract together with its Product Requirements Document (PRD), identify issues, and produce a review report or approval certificate.
Why use it?
It catches missing details, conflicting changes, and differences between requirements and the planned interface before implementation begins.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

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

Good fit Use it to review an API contract together with its Product Requirements Document (PRD), identify issues, and produce a review report or approval certificate.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/testany-io/testany-agent-skills/api-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.

Clone the repo
git clone --depth 1 https://github.com/TestAny-io/testany-agent-skills

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/testany-io/testany-agent-skills/api-reviewer/github.svg)](https://agentmods.dev/commands/testany-io/testany-agent-skills/api-reviewer)
Your own site
<a href="https://agentmods.dev/commands/testany-io/testany-agent-skills/api-reviewer"><img src="https://agentmods.dev/badge/commands/testany-io/testany-agent-skills/api-reviewer/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 api-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/commands/testany-io/testany-agent-skills/api-reviewer"><img src="https://agentmods.dev/badge/commands/testany-io/testany-agent-skills/api-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 371 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.00012 $0.00371
Opus 5 $0.00006 $0.00186
Sonnet 5 $0.00002 $0.00074
Haiku 4.5 $0.00001 $0.00037

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

Security

Grade A, and why

api-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 9d 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/testany-eng/commands/api-reviewer.md · 43 lines

What it actually says

API Reviewer

启动 API Contract 评审流程。作为进入 HLD/LLD/实现前的门禁,检测 PRD→Contract 漂移与契约完整性。

使用方式

提供文档路径:

$ARGUMENTS

API 审查在研发流程中的位置

PRD → API Writer → API Contract → [API Reviewer] → HLD/LLD/实现

审查框架

采用四道门审查:

  1. Gate 1 - 基线与覆盖:PRD 基线、范围/所有权、映射覆盖率
  2. Gate 2 - 协议完整性:各协议必填项检查
  3. Gate 3 - 漂移与冲突:PRD 漂移、重复造轮子、兼容冲突
  4. Gate 4 - 兼容性与演进:版本策略、破坏性变更、幂等与错误语义

准出门槛

  • P0 = 0(任一 P0 即阻断)
  • P1 = 0(任一 P1 即不通过)
  • P2 ≤ 2(超过 2 个 P2 不通过)

必需产出

  • 审查报告(含问题清单和证据)
  • 准出证书(通过时)

请提供 Contract 路径开始评审。建议同时提供 PRD 和 Index(如为多协议)。

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. 9d ago First seen · 43 lines · 12 tokens per session scan A 3844cb442833

Subscribe to this mod's changes

api-reviewer is a command published in the GitHub repository TestAny-io/testany-agent-skills (81 stars, last pushed yesterday), licensed MIT. It adds 12 tokens to every session and 371 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-30.