AGENT
Use when designing a new HTTP/GraphQL API or changing an existing one — modeling resources, defining endpoint contracts, choosing status codes, pagination,…
APIs are forever once published: a consumer you've never met may depend on any field you expose. Design so you can **add without breaking**, and version explicitly when you must break.
$ npx -y skills add vanara-agents/skills --agent claude-codeHow it fires
How this agent gets triggered: by you, by Claude, or both.
Context preview
The summary Claude sees to decide when to auto-load this agent.
APIs are forever once published: a consumer you've never met may depend on any field you expose. Design so you can **add without breaking**, and version explicitly when you must break.
APIs are forever once published: a consumer you've never met may depend on any field you expose. Design so you can **add without breaking**, and version explicitly when you must break.
| Strategy | Example | Pros | Cons | |---|---|---|---| | **URI path** | `/v1/orders` | Operationally clearest; trivial to route, cache, log | Version in every URL; "ugly" to purists | | **Header** | `Accept: application/vnd.api.v2+json` | Clean URLs; content-negotiation native | Invisible in logs/caches; easy to get wrong | | **Query param** | `/orders?version=2` | Simple | Pollutes caching; easy to omit |
**Default recommendation: URI path versioning** (`/v1/...`). It is the most operationally legible — you can see the version in every request log, route it at the gateway, and cache it cleanly. Reserve header-based versioning for APIs where URL stability is a hard requirement.
Version the **major** number only. Minor, backward-compatible changes ship within the same version.
**Safe — ship within the current version:**
**Breaking — requires a new major version:**
Tell consumers, in the docs, that they **must ignore unknown fields** and tolerate new enum values. This single rule turns a whole class of otherwise-breaking changes (adding fields, adding enum members) into safe additive ones. State it explicitly — you cannot rely on behavior you never published.
When a breaking change is unavoidable:
1. **Ship the new version** (`/v2`) alongside the old. Never break `/v1` in place. 2. **Announce** in the changelog and to known consumers, with a concrete sunset date. 3. **Signal at runtime.** Return a `Deprecation: true` header and a `Sunset: <date>` header on the old endpoints; optionally add a `Warning` header. 4. **Monitor usage** of the old version so you know who still depends on it. 5. **Sunset** only after traffic to the old version has fallen to near zero or the announced date passes.
on it; that's the whole point of a published contract.
API surface, not individual routes.
once a successor is stable.
🐒 Free agents, skills & packs for Claude Code One subscription. An army of Claude Code agents. 30 production-grade agents, skills, and packs for Claude Code — free, Apache-2.0, install with one command.
Repo: vanara-agents/skills
Use when designing a new HTTP/GraphQL API or changing an existing one — modeling resources, defining endpoint contracts, choosing status codes, pagination,…
This shows how the api-designer agent reviews a flawed draft. Findings are severity-ranked so the implementer fixes the contract-breakers first. Severity…
The contract is the deliverable. Express it as an **OpenAPI 3.1** document so it is human-readable *and* machine-checkable. This reference covers how to…
Run through this before declaring an API contract done. It is ordered the way you should *design*: resources first, cross-cutting rules last. Every box is a…
Copy-paste templates for leaving review comments. Keep each comment to one finding: an anchor, the problem, and the fix.
A complete review of a hypothetical PR, in the standard format. Use this as the model for tone, structure, and the anchor → problem → fix pattern.