/api-rest-design:api-rest-designfrom api-rest-design
Designs and reviews REST/HTTP API contracts for external consumers, and writes versioning and deprecation policy. Use when designing a new API surface, reviewing an OpenAPI spec or endpoints, standardizing error responses (RFC 9457), adding pagination or rate-limit headers, planning a /v2 or sunset, or changing a contract others depend on.
Ships in api-rest-design. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Design or review an HTTP API as a contract that consumers depend on. The goal is one consistent surface: the same casing, pagination, error shape, and status meaning on every endpoint, so it reads as if one team built it. Repo conventions beat the defaults below. If the repo already uses /v1 paths, a data envelope, or snake_case, keep them and apply this skill to what is inconsistent or missing.
Not for GraphQL (api-graphql), gRPC (api-grpc), idempotency keys and retries (api-idempotency), or webhooks (api-webhooks), each if installed. The browser side of an API contract is out of scope.
api-graphql and a gRPC surface to api-grpc, if installed.created_at on one endpoint and createdAt on a sibling is a Must-change whichever casing is right.429 with Retry-After when throttling. See references/rate-limits.md.api-idempotency for the design, if installed.api-oauth-provider, if installed.Follow references/contract-first.md: one authoritative OpenAPI, AsyncAPI, or proto artifact, generated consumer types, and a seven-step change protocol that edits the contract before the code. Its two-way drift audit finds consumers that still depend on a field the provider removed, and the reverse.
Prefer addition over modification. Adding an optional field is safe. Removing or renaming a field, changing a type, or adding a required parameter is breaking and needs a new version under the policy in references/versioning.md.
Read references/versioning.md. It covers the written breaking-change definition, the scheme choice, notice windows by audience, Deprecation (RFC 9745) and Sunset (RFC 8594) headers, 410 Gone versus fall-forward at the sunset date, and governance. Draft the document from references/versioning-policy-template.md, one confirmed section at a time.
Ship the reference from the spec so docs cannot drift from the contract. The gates (lint, contract tests, snippet parity) are in references/reference-gates.md. Read it when auditing or setting up CI for docs.
429 response.Sources checked: RFC 9457 (rfc-editor.org/rfc/rfc9457), RFC 9110 for method and status semantics, RFC 9745 and RFC 8594 for deprecation headers, the IETF RateLimit headers draft (datatracker.ietf.org/doc/draft-ietf-httpapi-ratelimit-headers/, revision 11 rechecked 2026-10-17).
references/contract-first.md (opens in a new tab)references/errors.md (opens in a new tab)references/rate-limits.md (opens in a new tab)references/reference-gates.md (opens in a new tab)references/review-checklist.md (opens in a new tab)references/versioning-policy-template.md (opens in a new tab)references/versioning.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub adminhead/claude-plugins --plugin api-rest-design