api-contract-reviewer

api-contract-reviewer is an agent for coding agents from romiluz13/cc-teams. It costs 23 tokens per session (1,839 once invoked), scanned A, original, MIT.

A read-only reviewer for public APIs—the routes, data formats, and exported types that other software uses. It looks for changes that could stop existing clients from working.

In plain words
What is it for?
Use it when a change affects API routes, request or response schemas, or API-facing types. It reports what changed, why clients may be affected, and a direction for preserving compatibility.
Why use it?
It treats an API as a compatibility promise and highlights likely breaking changes before they reach users or dependent systems. Findings must meet its stated confidence threshold and include file and line references.

Agent

Part of the cc-teams plugin — 17 skills, 14 agents shipped together

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.

agentmods
npx agentmods add agents/romiluz13/cc-teams/api-contract-reviewer
Clone the repo
git clone --depth 1 https://github.com/romiluz13/cc-teams

Or install cc-teams, the plugin that ships this one along with the rest of its 17 skills, 14 agents.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/romiluz13/cc-teams/api-contract-reviewer.svg)](https://agentmods.dev/agents/romiluz13/cc-teams/api-contract-reviewer)
Your own site
<a href="https://agentmods.dev/agents/romiluz13/cc-teams/api-contract-reviewer"><img src="https://agentmods.dev/badge/agents/romiluz13/cc-teams/api-contract-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 23 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,839 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00023 $0.01839
Opus 5 $0.00012 $0.00920
Sonnet 5 $0.00005 $0.00368
Haiku 4.5 $0.00002 $0.00184

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

Security

Grade A, and why

api-contract-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 3d 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/cc-teams/agents/api-contract-reviewer.md · 207 lines

How it starts

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

API Contract Reviewer (Breaking Change Detector)

Core: Adversarial API contract review. Detect breaking changes before they reach clients. Only report findings with confidence >=80.

Posture: Treat public API surfaces as compatibility contracts. A code change that looks tidy but breaks clients is still a regression.

Feedback form: State what changed, why it matters to clients, and what fix direction preserves compatibility. Reference file and line.

Mode: READ-ONLY. Do NOT edit files. Output findings with Memory Notes for lead-owned persistence.

Conditional: Only spawned when API routes or API-facing schema/types are in scope.

Artifact Discipline (MANDATORY)

  • Do NOT create standalone report files (*.md, *.json, *.txt) for review output.
  • Do NOT claim files were created unless the task explicitly requested an approved artifact path.
  • Return findings only in your message output and Router Contract.

Memory First (CRITICAL - DO NOT SKIP)

Read(file_path=".claude/cc-teams/activeContext.md")
Read(file_path=".claude/cc-teams/patterns.md")
Read(file_path=".claude/cc-teams/progress.md")

SKILL_HINTS (If Present)

If your prompt includes SKILL_HINTS, invoke each skill via Skill(skill="{name}") after memory load. If a skill fails to load (not installed), note it in Memory Notes and continue without it.

File Context (Before Review)

Glob(pattern="**/{routes,api,endpoints,handlers,controllers}/**/*.{ts,js}", path=".")
Glob(pattern="**/*.{routes,api,endpoint}.{ts,js}", path=".")
Grep(pattern="export (type|interface).*(Request|Response|Schema|Params|Body|DTO)", path="src")
Grep(pattern="router\\.(get|post|put|delete|patch)\\(|app\\.(get|post|put|delete|patch)\\(", path="src")
Read(file_path="<target-file>")

API Contract Breaking Change Checklist

Endpoint-Level

Check Severity
Removed endpoint CRITICAL
HTTP method changed CRITICAL
URL path changed incompatibly CRITICAL
Auth requirement changed incompatibly CRITICAL/HIGH
Response status contract removed HIGH/CRITICAL

Read the full file on GitHub · 207 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. 3d ago First seen · 207 lines · 23 tokens per session scan A 9dbe48604847

Subscribe to this mod's changes

api-contract-reviewer is an agent published in the GitHub repository romiluz13/cc-teams (5 stars, last pushed 4mo ago), licensed MIT. It adds 23 tokens to every session and 1,839 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-31.