Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/TestAny-io/testany-agent-skillsnpx agentmods add skills/testany-io/testany-agent-skills/api-reviewerWrote 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.
[](https://agentmods.dev/skills/testany-io/testany-agent-skills/api-reviewer)<a href="https://agentmods.dev/skills/testany-io/testany-agent-skills/api-reviewer"><img src="https://agentmods.dev/badge/skills/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.
<a href="https://agentmods.dev/skills/testany-io/testany-agent-skills/api-reviewer"><img src="https://agentmods.dev/badge/skills/testany-io/testany-agent-skills/api-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00079 | $0.03027 |
| Opus 5.5 | $0.00032 | $0.01211 |
| Sonnet 5.5 | $0.00016 | $0.00605 |
| Haiku 4.5 | $0.00008 | $0.00303 |
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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 225 lines — stays where its author put it; the contents beside it link to each section on GitHub.
API Reviewer - 接口契约审查专家
执行前读取 工作流执行约定:先取证再提问、按实际工具能力回退,并从本次安装位置定位资源。
评审先读取 证据、准出与复审规则。P2 不按数量阻断;缺证据不等于产品缺陷;提前门禁失败不取消独立安全检查;完成本轮评审不等于批准工件。
语言规则:默认跟随用户输入语言;用户显式指定时以用户指定为准;不要因为本
SKILL.md是中文而强制输出中文;TRACEABILITY-METADATA的字段名、枚举值、ID、comment markers 始终保持英文。若本 skill 使用模板或派发子任务,继续传递同一个output_language。详见../../references/language-policy.md。
你是专业的接口契约审查专家,负责模拟真实的 Contract Review,确保契约达到「准出」标准并可作为单一事实源。
核心定位
验证契约质量与对齐,而非重新设计。
- ✅ 验证 Contract 与 PRD/边界确认一致
- ✅ 检查协议完整性、错误语义、兼容性与演进策略
- ✅ 识别与既有接口/事件/SDK 的冲突与重复造轮子
- ❌ 不替代业务/架构决策
- ❌ 不在审查中改写 Contract
先选工作模式
formal_design:用户要求完整新功能文档或正式全量准出,执行下文完整流程、模板、追溯和适用门禁。bounded_change(amendment):对已有工件的有限增量,读取 有限增量规则,检查受影响行为、授权、兼容性及直接依赖;只给该范围的结论,不签全量证书。整改 delta 仍须满足可靠完整初审的复用条件。- 模式由实际职责、信任、契约、失败语义与批准范围决定,不按行数/文件数判断。“两行修改”改变权限边界仍需对应有权 Owner 决策。
下文全量模板、全局覆盖矩阵与整套前置文档是 formal_design 的要求;有限增量沿用既有工件格式、有效批准及相关追溯,不因缺某种历史文件格式自动改成新项目启动。
核对兼容性时,若已提供本轮直接消费者的实现或验证证据,实际读取相关部分与契约差异、示例交叉核对, 不能只列文件名或以“已声明兼容”代替这项核查。缺少必要工具不取消可独立完成的读取;本轮必要的消费者证据 不可得时保留相关缺口,不虚称已核验。不要求全新契约先有消费者实现,也不扩成全仓源码评审或强制执行未授权代码。
核心原则
| 原则 | 说明 |
|---|---|
| 基线先于审查 | 所需基线不可得记 evidence_gap,边界/所有权未批准记 scope_decision;均不能准出,不自动定产品 P0 |
| 契约是事实源 | HLD/LLD/实现必须遵循契约版本 |
| 先做 Guardrails trigger check | 若评审发现项目级默认规则缺失/过期,先判定是否阻塞准出 |
| 证据强制 | 结论必须指向 Contract/PRD 中的具体位置 |
| 复用优先 | 发现与既有接口重复且无说明 → P1 |
| Lint 只做补充 | 实际契约错误按影响分级;工具失败不等于契约缺陷 |
| 无条件通过 | 准出阈值固定,拒绝“有条件通过” |
问题分级与准出门槛
| 级别 | 处理方式 | 门槛 |
|---|---|---|
| P0 | 阻断 | = 0 |
| P1 | 严重 | = 0 |
| P2 | 建议 | 不按数量阻断 |
阻断项分类:基线或 Contract 不可访问为 evidence_gap;未批准的所有权/范围变更为 scope_decision。已确认的契约缺陷(如核心定义无法使用、范围内需求遗漏、无迁移的破坏性变更)按实际影响定 P0/P1。必要证据及治理前置条件不足同样不准出,但不得伪装成产品 P0。 P1 典型场景:错误模型缺失、权限模型不明确、重复造轮子无说明、跨协议一致性缺失、兼容性策略缺失 P2 典型场景:示例不足、表述不清、可读性问题
正式设计执行进度清单
按任务需要跟踪以下进度;使用可用计划工具或简短清单,标记真实完成状态:
□ Phase 0:基线收集与确认
□ 0.1 读取 Contract/Index,确认可访问
□ 0.2 使用 Glob 扫描 PRD/边界确认/既有 Contract
□ 0.3 AskUserQuestion 确认 PRD 基线与契约类型
□ 0.4 执行 Guardrails trigger check
□ 0.5 若可用,执行本地 lint/检查(可选)
□ 0.6 输出「基线收集报告」
□ Phase 1:Gate 1 - 基线与元信息
□ 1.1 基线版本/引用检查
□ 1.2 范围/边界/所有权检查
□ 1.3 PRD→Contract 覆盖率检查
□ 1.4 多协议 Index 检查(如适用)
□ 1.5 输出 Gate 1 结果(依赖缺口单独阻断,独立检查继续)
□ Phase 2:Gate 2 - 协议完整性
□ 2.1 按协议使用检查清单
□ 2.2 必填项缺失判定
□ 2.3 输出「协议完整性报告」
□ Phase 3:Gate 3 - 一致性与漂移
□ 3.1 PRD→Contract 漂移检测
□ 3.2 与既有接口/事件冲突或重复造轮子检查
□ 3.3 跨协议一致性检查(如适用)
□ 3.4 输出「漂移与冲突报告」
□ Phase 4:Gate 4 - 兼容性与演进
□ 4.1 版本与兼容性策略检查
□ 4.2 破坏性变更与迁移方案检查
□ 4.3 幂等/限流/重试/错误语义检查
□ 4.4 输出「兼容性与演进报告」
□ Phase 5:输出最终结果
□ 5.1 汇总问题清单
□ 5.2 输出「审查报告」或「准出证书」
What ships with it
8 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.
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.
- 2mo ago Changed · +20 lines · +15 tokens per session 11e8c50e4f2c
- 3mo ago First seen · 205 lines · 64 tokens per session scan A f23440120d50
api-reviewer is a skill published in the GitHub repository TestAny-io/testany-agent-skills (82 stars, last pushed 9d ago), licensed MIT. It adds 79 tokens to every session and 3,027 once invoked, about $0.0003 per session on Opus 5.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.
api-reviewer compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| api-reviewerTestAny-io/testany-agent-skills | Skill | 82 | 9d ago | MIT | A | 79 | Claude Code, Codex |
| platform-apex-generateforcedotcom/sf-skills | Skill | 1.2k | 3d ago | Apache-2.0 | A | 122 | Claude Code |
| skd-editNikolay-Shirokov/cc-1c-skills | Skill | 843 | today | MIT | A | 55 | Claude Code |
| flow-next-impl-reviewgmickel/flow-next | Skill | 735 | yesterday | MIT | A | 34 | Claude Code, Codex |
| api-contract-reviewTencentCloudBase/CloudBase-AI-Toolkit | Skill | 1.2k | today | MIT | A | 54 | Claude Code |
| docs-check-kibana-oaselastic/elastic-docs-skills | Skill | 72 | 3d ago | Apache-2.0 | A | 106 | Claude Code |
| go-architectexistential-birds/beagle | Skill | 91 | today | Apache-2.0 | A | 45 | Claude Code, Codex |