Skip to content
Development
Command

/api-contract-review

API platform contract review. Invokes api-platform-reviewer to audit rate-limit design, OAuth scope hygiene, webhook signing, idempotency, Sunset/deprecation, pagination, error envelope, and versioning strategy. Critical before v1 GA.

From plugin
great-cto
9344 skills70 agents44 commands
Install
> /plugin marketplace add avelikiy/great_cto
> /plugin install great_cto@great-cto

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/api-contract-review

Context preview

What this command does when you run it.

API platform contract review. Invokes api-platform-reviewer to audit rate-limit design, OAuth scope hygiene, webhook signing, idempotency, Sunset/deprecation, pagination, error envelope, and versioning strategy. Critical before v1 GA.

Command definition

api-contract-review.md
description: "API platform contract review. Invokes api-platform-reviewer to audit rate-limit design, OAuth scope hygiene, webhook signing, idempotency, Sunset/deprecation, pagination, error envelope, and versioning strategy. Critical before v1 GA."
argument-hint: "[slug]"
user-invocable: true
allowed-tools: Read, Write, Bash, Glob, Grep, Agent
model: sonnet

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`).

Ships withgreat-cto

You already have the agent. This is everything around it. great_cto runs Claude Code as a pipeline of 70 specialist agents — an independent model checks each stage before the next builds on it, spending caps refuse rather than warn, and three decisions stay yours: what gets built, how, and whether it ships.

Get the whole plugin

Other commands on great-cto.