api-contract-reviewer

api-contract-reviewer is an agent for Claude Code from morodomi/dev-crew. It costs 35 tokens per session (585 once invoked), scanned A, original, MIT.

An automated reviewer for API contracts, the agreed rules for how software services communicate. It checks for breaking changes, naming consistency, error-response structure, versioning, and pagination, using guidance from major API design standards.

In plain words
What is it for?
It helps teams review API changes, identify removed or newly required fields, changed response types or paths, inconsistent resource names, unsuitable HTTP errors, versioning issues, and pagination problems.
Why use it?
It helps catch changes that could break existing clients or make an API inconsistent before they reach a release pipeline. Findings are reported with severity, location, explanation, and a suggested fix.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the dev-crew plugin — 28 skills, 41 agents, 3 hooks shipped together

Good fit It helps teams review API changes, identify removed or newly required fields, changed response types or paths, inconsistent resource names, unsuitable HTTP errors, versioning issues, and pagination problems.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/morodomi/dev-crew/api-contract-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/morodomi/dev-crew

Made for: Claude Code.

Or install dev-crew, the plugin that ships this one along with the rest of its 28 skills, 41 agents, 3 hooks.

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/morodomi/dev-crew/api-contract-reviewer/github.svg)](https://agentmods.dev/agents/morodomi/dev-crew/api-contract-reviewer)
Your own site
<a href="https://agentmods.dev/agents/morodomi/dev-crew/api-contract-reviewer"><img src="https://agentmods.dev/badge/agents/morodomi/dev-crew/api-contract-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-contract-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/morodomi/dev-crew/api-contract-reviewer"><img src="https://agentmods.dev/badge/agents/morodomi/dev-crew/api-contract-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 585 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.00035 $0.00585
Opus 5.5 $0.00014 $0.00234
Sonnet 5.5 $0.00007 $0.00117
Haiku 4.5 $0.00003 $0.00059

Measured 1mo ago against content hash 6c46abe4f3cc, 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-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 1mo 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.

agents/api-contract-reviewer.md · 39 lines

What it actually says

Focus

観点 チェック内容 参照元
Breaking Changes required field 後追い追加、enum 値削除、レスポンス型変更、URL パス変更 Azure Breaking Changes Guidelines
Resource Naming リソース名の一貫性、複数形/単数形、ネスト深度 Google API Design Guide
Error Structure エラーレスポンス構造の一貫性、HTTP ステータスコード適切性 Microsoft REST API Guidelines
Versioning バージョニング戦略の一貫性 Google API Design Guide
Pagination ページネーション実装の一貫性 Microsoft REST API Guidelines

Output

{"issues": [{"severity": "optional", "category": "naming", "message": "...", "file": "path/to/file", "line": 0, "suggestion": "..."}]}

severity は critical|important|optional のいずれか。category は breaking-change|naming|error-structure|versioning|pagination のいずれか。

Severity 基準

  • critical = このまま進めば実害(バグ混入・セキュリティ・契約破壊)
  • important = 品質・保守性への実影響。対応推奨(defer 可)
  • optional = 改善提案

verdict への反映は triage(accept-apply/accept-defer に残った findings)通過後に skills/review/severity-verdict.sh が集計する(reject は除外)。0-100 の自己採点は廃止。

Memory

起動時に注入される agent memory(.claude/agent-memory/dev-crew-api-contract-reviewer/MEMORY.md)を過去知見として参照のみ行う(Write/Edit は disallowedTools で不可。更新は人間が手動で行う)。 Record 対象(人間が手動記録): プロジェクト固有の API 命名規約、バージョニング戦略、既知の破壊的変更履歴。 Skip: 一般的な REST 設計知識、フレームワーク固有の API ルーティング構文。

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. 1mo ago Changed · +5 lines 6c46abe4f3cc
  2. 1mo ago First seen · 34 lines · 35 tokens per session scan A e6cc902afa6b

Subscribe to this mod's changes

api-contract-reviewer is an agent published in the GitHub repository morodomi/dev-crew (1 stars, last pushed yesterday), licensed MIT. It adds 35 tokens to every session and 585 once invoked, about $0.0001 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-31.

Related

Other agents, from other repositories

oban-specialist

Oban worker specialist - reviews idempotency, error handling, and production safety. Use proactively when implementing or reviewing background jobs.

oliver-kriska/claude-elixir-phoenix · 30 tokens

information-architect

Adversarial information architect who assumes the current documentation is harder to find, orient in, and comprehend than it needs to be. Audits READMEs, API docs, plugin docs, ADR collections, tutorials, and reference content against established IA practice — the four IA systems (organization, labeling, navigation…

testdouble/han · 193 tokens

api-platform-reviewer

API platform / dev-API pre-implementation reviewer. Outputs threat model TM-{slug}.md.

avelikiy/great_cto · 25 tokens

enterprise-saas-reviewer

B2B / enterprise-SaaS pre-implementation reviewer. Outputs threat model TM-{slug}.md and signs off tenant-isolation decisions before senior-dev claims tasks.

avelikiy/great_cto · 40 tokens

integrations-engineer

Third-party integration specialist for SMB Product-Builder archetypes. Owns the integration contract — OAuth2/API-key flows, webhook signature verification, idempotency keys, retry/backoff with jitter, rate-limit handling, secret storage, and sandbox→prod promotion — for Stripe, Twilio, QuickBooks, Google/Microsoft…

avelikiy/great_cto · 106 tokens

migration-import-engineer

Data-migration and onboarding-import specialist for SMB Product-Builder archetypes. Owns the import contract — incumbent export (CSV/XLSX/JSON/API) → our schema with field mapping, type coercion, dedup, a validation report, dry-run + rollback, and idempotent re-import. Source playbooks for ServiceTitan, Toast…

avelikiy/great_cto · 109 tokens