/dennisdoomen-skills:http-api-guidelinesfrom Dennis Doomen's Skills
This skill encodes the organizational guidelines for designing, developing, and versioning HTTP APIs. Use it when reviewing, designing, or building HTTP APIs to ensure compliance with the agreed-upon standards.
Ships in Dennis Doomen's Skills. 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.
None: SKILL.md is the whole skill.
Use this skill when:
APIs are classified into three levels. All APIs must be considered private unless explicitly stated otherwise.
obsolete markers, and version headers.Canceled not Cancelled).collective-schemes not collectiveSchemes).Content-Type and Accept headers for content negotiation.Accept-Charset header. Always use UTF-8.| Percentile | Maximum Response Time |
|---|---|
| p50 | 50–100 ms |
| p90 | 200–300 ms |
| p95 | 300–500 ms |
| p99 | < 1 second |
/api-docs (for all levels)./api-docs/[feature]/v[version]/open-api-private.json/api-docs/[feature]/v[version]/open-api-internal.json/api-docs/[feature]/v[version]/open-api.jsonUse HTTP methods according to their defined semantics:
| Method | Semantics |
|---|---|
GET | Retrieve a representation of the resource. |
POST | Create a new resource (or trigger an operation that doesn't create a resource, e.g., when query parameters would make the query string too long). |
PUT | Create or fully replace the resource. The client sends the complete resource. |
PATCH | Partially update a resource. Only the fields to change are sent. |
DELETE | Remove the resource. |
| Resource | POST | GET | PUT / PATCH | DELETE |
|---|---|---|---|---|
/clients | Create a new client | Retrieve all clients | Bulk update all clients | Remove all clients |
/clients/123 | — | Retrieve client 123 | Update client 123 | Remove client 123 |
/clients/123/contracts | Create a contract for client 123 | Retrieve all contracts for client 123 | Bulk update contracts for client 123 | Remove all contracts for client 123 |
https://[domain]:[port]/resource-name[/resource-id][/sub-resource-name][/sub-resource-id]
https://[domain]:[port]/[resource-name][/resource-id][/fields-group-name]
/api/connections/1 not /api/connection/1).clients/1/contracts/2/eans/…). Exceptions are allowed for reporting APIs (e.g., OData), but watch performance./people and /people/ identically — both must return the same result./people/my/inbox → /people/7011042402/inbox).GET, PUT, and DELETE requests must be idempotent.POST and PATCH requests idempotent for critical data (e.g., payment APIs). Techniques include unique entity fields to detect duplicate POSTs, or a client-supplied idempotency key stored server-side.| Code | When to Use |
|---|---|
400 Bad Request | The request is technically unprocessable (e.g., plain text sent when JSON expected). |
401 Unauthorized | The user/application must authenticate. |
403 Forbidden | Authenticated but insufficient permissions. |
409 Conflict | Technically valid request that cannot be processed due to system state (e.g., unique key violation, last-admin deletion, workflow violation). |
422 Unprocessable Entity | The request payload is invalid (e.g., missing required field, field too long). Do not use for state conflicts — use 409 instead. |
429 Too Many Requests | Rate limit exceeded. |
| Code | When to Use |
|---|---|
200 OK | The request returned results. |
404 Not Found | Resource not found. Consider a debug log entry to distinguish "route not registered" from "resource does not exist". |
| Code | When to Use |
|---|---|
201 Created | Resource created synchronously. Include a Location header pointing to the GET endpoint for the new resource. |
202 Accepted | Resource accepted for asynchronous creation. Include a Location header pointing to the future GET endpoint or a status-polling endpoint. |
| Code | When to Use |
|---|---|
200 OK | Update processed; response body contains the result. |
204 No Content | Update processed; no response body. Prefer this for PUT (full replace) to save bandwidth. |
202 Accepted | Update accepted for asynchronous processing. |
| Code | When to Use |
|---|---|
200 OK | Deletion processed; response body contains content. |
204 No Content | Deletion processed; no response body. Prefer 200 OK in general. |
404 Not Found | Resource doesn't exist. If the resource was possibly deleted, return 200 OK instead. |
| Code | When to Use |
|---|---|
502 Bad Gateway | Invalid response received from an upstream server. |
504 Gateway Timeout | No timely response received from an upstream server. |
When a POST, PUT, PATCH, or DELETE would cause unacceptable latency as a blocking call, make it asynchronous.
202 Accepted.Location header of the 202 response.POST /api/resource
→ 202 Accepted
Location: /api/resource/status/12345
GET /api/resource/status/12345 (poll until complete)
→ 200 OK
{ "status": "InProgress" | "Completed" }
(when the operation creates a new resource, the final poll returns:)
→ 201 Created
Location: /api/resource/12345
api-version as the parameter/header name.api-supported-versions response header (comma-separated).api-deprecated-versions response header (comma-separated).<MAJOR>-<PRE-RELEASE-TAG>:
alpha or beta) for unstable versions.| Level | Versioning Required? | Max Concurrent Versions | Notes |
|---|---|---|---|
| Private | Generally no | 1 (avoid multiple) | Exception: BFF called from a frontend in a mono-repo may need 2 versions. Consider versioning when the client is not deployed simultaneously (e.g., desktop apps). |
| Internal | Yes | 2–3 | Document and communicate deprecated versions. |
| Public | Always | ≥ 3 | Avoid supporting too many versions to keep maintenance costs down. |
A breaking change must result in a MAJOR version bump, unless all dependent parties can be updated simultaneously. Examples of breaking changes:
$ prefix for global query-string parameters (e.g., $skip, $take) to avoid conflicts with local parameters.$skip and $take to select the page and limit the number of records.
https://api.contoso.com/contracts?$skip=1000&$take=500$take must have a hard maximum value — never allow unbounded requests.Cache-Control: max-age=… or the Expires header. Even without caching, use Cache-Control: no-cache.public or private. Use Cache-Control: private to prevent intermediate proxies from caching sensitive content.no-store to prevent browsers from storing data at all (no-cache still allows local storage; it only forces revalidation).Last-Modified headers to enable conditional requests and extend effective cache duration.2022-10-31 or 2022-10-31T09:00:00-05:00 with time-zone offset).2022-10-31T09:00:00Z).clientId, contractType).contracts, connections).null.null to indicate a property has no value. If a property is not applicable, omit it from the JSON body entirely.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub dennisdoomen/skills --plugin dennisdoomen-skills9 skills in this plugin
/address-review-commentsAddress review comments on your own PR (GitHub or Azure DevOps): fix the code, fold the fix into the commit it belongs to, push to the fork, reply on each thread and resolve it. Use this skill whenever the user asks to address, fix, process or follow up on reviewer comments, or to rebase a PR and handle a reviewer's comment. For verifying someone else's rework, use check-rework instead.
/check-reworkVerify that the author of a pull request properly addressed every code review comment, on GitHub or Azure DevOps. Use when asked to check rework, verify review feedback, or see whether a PR is ready for another look. Reports problems with links to the threads and changes nothing itself./