Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Designs REST and GraphQL APIs: resource modeling, versioning, pagination, RFC 9457 errors, idempotency, and OpenAPI or SDL contracts.
83% 92%+8 ptsof test cases passed
Passed 22 of 24 test cases with the skill, and 20 of 24 without it.
3 of 3 safety checks passed
Not used yet
This skill helps you design HTTP/REST and GraphQL APIs that are predictable, evolvable, and pleasant to consume. It covers resource modeling, URI design, HTTP semantics, versioning, pagination, filtering/sorting, error contracts, idempotency, concurrency control, auth, rate limiting, and writing machine-readable contracts.
Keywords: REST, GraphQL, OpenAPI, Swagger, API design, endpoint, resource, versioning, pagination, cursor, idempotency, ETag, RFC 9457, Problem Details, rate limit, contract, HATEOAS, webhook.
Apply this skill whenever the user is creating, extending, or reviewing an API surface — not when they are merely calling an existing third-party API.
Pick the style before designing details.
When unsure, default to REST and expose a small GraphQL layer later if client flexibility becomes a real pain point. See references/rest-checklist.md and references/graphql-checklist.md.
Follow these steps in order. Do not jump to URLs or schemas before modeling resources.
references/http-semantics.md. Avoid verbs in REST paths; model actions as sub-resources or status transitions.references/error-design.md.templates/openapi-3.1-template.yaml or templates/graphql-schema-template.graphql.scripts/lint_openapi.py on the OpenAPI file to catch common design smells before review./invoices, /users/{userId}/orders./invoices/{invoiceId}./getInvoice, /createUser. Good: GET /invoices/{id}, POST /users.POST /orders/{id}/cancel, POST /messages/{id}/send. Prefer modeling state: PATCH /orders/{id} with { "status": "cancelled" } when it's a true state field./comments?postId=42 over /users/1/posts/2/comments/3./billing-accounts), and be consistent with field casing (camelCase or snake_case) — pick one and never mix.Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.