api-contract-review

api-contract-review is a skill for Claude Code, Codex from KimYx0207/Kim_Service. It costs 71 tokens per session (586 once invoked), scanned A, original, MIT.

An API contract review checks whether a software interface can be called correctly, fails clearly, and remains compatible with its users. An API is a defined way for programs to exchange requests and responses; OpenAPI is a common format for describing one.

In plain words
What is it for?
Use it to map endpoints to consumers, review requests, responses, errors, versions, pagination, permissions, repeated requests, and asynchronous operations.
Why use it?
It finds changes that could break existing clients, such as new required fields, removed responses, changed permissions, or unsafe retries. It gives teams a shared interface before they build against it.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to map endpoints to consumers, review requests, responses, errors, versions, pagination, permissions, repeated requests, and asynchronous operations.

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

Made for: Claude Code, Codex.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/kimyx0207/kim_service/api-contract-review"><img src="https://agentmods.dev/badge/skills/kimyx0207/kim_service/api-contract-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 586 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.00071 $0.00586
Opus 5.5 $0.00028 $0.00234
Sonnet 5.5 $0.00014 $0.00117
Haiku 4.5 $0.00007 $0.00059

Measured 19d ago against content hash 65cb9471a1e7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

api-contract-review 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 19d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (tests/contract.test.mjs), 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.

skills/api-contract-review/SKILL.md · 47 lines

What it actually says

API 契约审查

检查接口是否能被真实调用、正确失败并兼容现有消费者。

输入与开始方式

  • contract:当前和候选OpenAPI/接口说明及版本。缺规范可从真实调用归纳草案。
  • consumers:消费者、调用流程和兼容承诺。先识别已知消费者,未知项单列。
  • examples:真实或合成请求响应、异常和权限场景。可先写可执行契约样例,标明合成。

缺少非关键资料时,先给明确假设下的草案或局部结果;资料补齐后只重验受影响部分。授权已覆盖的可逆工作继续,不重复确认。

执行

  1. 读取当前接口和消费者,按用户动作定位实际调用链。
  2. 校验字段、可空性、枚举、状态码、分页和安全方案,再检查语义缺口。
  3. 比较旧新版本,标出请求新增必填、响应移除或权限语义变化。
  4. 对幂等、未知结果和异步接口写具体请求响应序列。
  5. 交修正清单与最小契约用例,独立消费者可据此并行。

按需要读 专业方法 和 完整案例。

交付

  • interfaceMap:接口与消费者映射。
  • compatibility:兼容性变化。
  • behaviorCases:行为案例。
  • recommendations:最小修正建议。

检查结果

  • 每关键动作有请求、响应、身份、错误和版本关系。
  • 区分请求约束变严、响应字段变化和业务语义变化,给迁移窗口。
  • 覆盖无权限、重复请求、分页边界、异步结果和错误恢复。
  • 按真实消费者影响排序,先修阻断联调问题。

检查方法和证据要求在 method.json;参考 作者正反例 识别实际错误。

需要额外处理的动作

线上写入和第三方调用按当前授权;契约分析、样例生成和本地测试继续。

Files

What ships with it

11 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. 19d ago First seen · 47 lines · 71 tokens per session scan A 65cb9471a1e7

Subscribe to this mod's changes

api-contract-review is a skill published in the GitHub repository KimYx0207/Kim_Service (198 stars, last pushed 12d ago), licensed MIT. It adds 71 tokens to every session and 586 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-11-11.

Related

api-contract-review compared with skills from other repositories

api-contract-review next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
api-contract-reviewKimYx0207/Kim_ServiceSkill19812d agoMITA71Claude Code, Codex
mem0-oss-to-platformmem0ai/mem0Skill70k2d agoApache-2.0A217Claude Code, Codex
tao-run-inference-serviceNVIDIA/skillsSkill4.2k2d agoApache-2.0A92Claude Code
azure-mgmt-botservice-dotnetmicrosoft/skillsSkill3.3k3d agoMITA78Claude Code
dev-runtimelangwatch/langwatchSkill5.1ktodayApache-2.0A172Claude Code
api-designericrisco/rsc-harnessSkill6824d agoMITA105Claude Code, Codex
migrate-segw-to-raparc-mcp/arc-1Skill275todayMITA106Claude Code