SkillVaultskills Browse all 500 skills

Architecture · Version 1.6.0 · Reviewed 2026-08-02

API Design Reviewer

Make a defensible decision about OpenAPI review and versioning strategy with evidence, explicit trade-offs, and a verification plan.

4 method steps 6 documented failure modes 5 diagnostic checks 7 quality gates

Reviews REST, event, and RPC contracts for semantics, evolution, idempotency, pagination, and operational safety.

₹99 one-time

Get this skill archive

What this skill helps you do

  • OpenAPI review
  • Versioning strategy
  • Idempotency design

How API Design Reviewer works

You provide

The contract, consumer list, and planned change

It inspects

Idempotency, pagination stability, and error semantics

It decides

Compatible versus breaking, with a migration path

You verify

Contract diff plus a replayed-request idempotency test

What it checks first

API Design Reviewer reviews REST, event, and RPC contracts for semantics, evolution, idempotency, pagination, and operational safety. Use it when the work involves OpenAPI review, Versioning strategy, Idempotency design.

  1. Whether every non-idempotent operation accepts a caller-supplied idempotency key and defines the replay response.
  2. Pagination strategy: offset-based pagination is unstable under concurrent writes and will skip or duplicate records.
  3. Error model consistency — whether a client can distinguish retryable from terminal failures without parsing prose.
  4. Whether new fields are additive and optional, which determines if the change is safe for existing consumers.
  5. The relationship between HTTP status and business outcome, especially the common mistake of returning 200 with an error body.

Failure modes it recognizes

  • A duplicate payment created because the client retried a POST that succeeded but whose response was lost.
  • Offset pagination skipping records when items are inserted between page requests.
  • An enum extended server-side, causing strict client deserializers to fail on the new value.
  • A required field added to a request body, breaking every client that has not deployed yet.
  • Timestamps returned without timezone or precision guarantees, causing off-by-one-day bugs across regions.
  • Unbounded list endpoints that work in test and time out on the largest real account.

Answers it will reject

  • Versioning the entire API for an additive change, which forces clients to migrate for no benefit.
  • Using 200 for failures so that "the client can read the error", which breaks every generic HTTP retry layer.
  • Exposing database identifiers and internal enum names directly, permanently coupling the schema to the contract.
  • Treating an OpenAPI document as the contract while the implementation diverges, with no conformance test.

Decision rules it applies

  • Additive and optional changes are compatible; removals, renames, type changes, and new required fields are not.
  • Use cursor pagination for any collection that can be written concurrently.
  • Return 409 for a genuine state conflict and 422 for a semantically invalid body; do not overload 400 for both.
  • If a client must retry, the server must define exactly what a duplicate request returns.

Evidence it asks for

  • Run a contract diff between the previous and proposed OpenAPI documents to classify each change.
  • Test idempotency by replaying an identical request with the same key and asserting a stable response.
  • Validate pagination stability by inserting rows between page fetches in a test.

The method inside

  1. Map the artifact, actors, boundaries, and invariants relevant to OpenAPI review.
  2. Trace concrete failure or abuse paths for versioning strategy; do not report checklist items without a mechanism.
  3. Prioritize idempotency design findings by impact, likelihood, confidence, and cost of correction.
  4. Recommend the smallest defensible change, then define how an independent reviewer can verify it.

Deliverables

  • OpenAPI review assessment
  • Versioning strategy decision and action plan
  • Idempotency design verification checklist

Evidence requirements

  • Functional and quality requirements
  • Scale, latency, consistency, cost, and compliance constraints
  • Current topology and alternatives considered

Quality gates

  • Every material claim traces to supplied evidence or is labeled as a hypothesis.
  • The response follows the declared deliverable contract.
  • No execution, access, measurement, or verification is invented.
  • Secrets and personal data are redacted rather than repeated.
  • The user receives a concrete independent verification step.
  • The relevant failure modes in this domain were considered rather than only the reported symptom.
  • No listed anti-pattern was recommended as a solution.

Example task

Input

Review this payment-creation endpoint for retries, duplicate submission, and backward-compatible evolution.

Expected output

The POST contract needs a caller-provided idempotency key and a stable replay response. Return the original resource for repeated successful submissions...

Boundaries and compatibility

Ideal for

  • OpenAPI review: produce a decision or artifact grounded in supplied evidence.
  • Versioning strategy: produce a decision or artifact grounded in supplied evidence.
  • Idempotency design: produce a decision or artifact grounded in supplied evidence.

Out of scope

  • Producing a generic reference architecture without requirements
  • Hiding material trade-offs behind best-practice language

Agent compatibility

  • GitHub Copilot custom agents
  • Claude Agent Skills / SKILL.md
  • Any instruction-following chat model

Tool policy: Advisory by default. No tools are assumed. If the host provides tools, use read-only evidence gathering unless the user explicitly approves a scoped write or execution action.