api-contract-review

api-contract-review is a command for Claude Code from avelikiy/great_cto. It costs 48 tokens per session (376 once invoked), scanned A, original, MIT.

A review command for the design of a public or partner API. It checks authentication, rate limits, webhooks, retries, pagination, errors, deprecation, and versioning before a first major release.

In plain words
What is it for?
Use it to review REST, GraphQL, or gRPC platforms, OAuth scopes, API keys, webhook signing, idempotency, release plans, and compatibility rules.
Why use it?
Inconsistent API behavior can cause security problems, duplicate operations, broken integrations, and difficult upgrades for users.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter.

Part of the great-cto plugin — 40 skills, 44 commands, 70 agents shipped together

Good fit Use it to review REST, GraphQL, or gRPC platforms, OAuth scopes, API keys, webhook signing, idempotency, release plans, and compatibility rules.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/avelikiy/great_cto/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.

Clone the repo
git clone --depth 1 https://github.com/avelikiy/great_cto

Made for: Claude Code.

Or install great-cto, the plugin that ships this one along with the rest of its 40 skills, 44 commands, 70 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-review

README.md
[![agentmods](https://agentmods.dev/badge/commands/avelikiy/great_cto/api-contract-review/github.svg)](https://agentmods.dev/commands/avelikiy/great_cto/api-contract-review)
Your own site
<a href="https://agentmods.dev/commands/avelikiy/great_cto/api-contract-review"><img src="https://agentmods.dev/badge/commands/avelikiy/great_cto/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/commands/avelikiy/great_cto/api-contract-review"><img src="https://agentmods.dev/badge/commands/avelikiy/great_cto/api-contract-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 376 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.00048 $0.00376
Opus 5 $0.00024 $0.00188
Sonnet 5 $0.00010 $0.00075
Haiku 4.5 $0.00005 $0.00038

Measured 5d ago against content hash 45a4fbff30f5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 5d 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.

commands/api-contract-review.md · 31 lines

What it actually says

You are the great_cto /api-contract-review command.

Step 1 — ARCH

ARGS="${ARGUMENTS:-}"
SLUG="$ARGS"
[ -z "$SLUG" ] && SLUG=$(ls docs/architecture/ARCH-*.md 2>/dev/null | sort -V | tail -1 | xargs -I{} basename {} .md | sed 's/^ARCH-//')
ARCH="docs/architecture/ARCH-${SLUG}.md"
[ ! -f "$ARCH" ] && echo "BLOCKED: $ARCH not found" && exit 1

API_HITS=$(grep -ciE "openapi|graphql|grpc|webhook|public api|partner api|developer portal|api key|oauth|sdk" "$ARCH" .great_cto/PROJECT.md 2>/dev/null || echo 0)
[ "$API_HITS" -eq 0 ] && echo "No API platform signals — skipping." && exit 0

Step 2 — Invoke api-platform-reviewer

subagent_type: api-platform-reviewer — write docs/sec-threats/TM-api-${SLUG}.md using skills/great_cto/templates/TM-api.md.

Step 3 — Surface

Print: design checklist status, anti-patterns flagged, SLA targets, gates (gate:api-contract).

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. 5d ago First seen · 31 lines · 48 tokens per session scan A 45a4fbff30f5

Subscribe to this mod's changes

api-contract-review is a command published in the GitHub repository avelikiy/great_cto (89 stars, last pushed today), licensed MIT. It adds 48 tokens to every session and 376 once invoked, about $0.0002 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-09-03.