agent-instructions
Use when writing project instructions for a coding agent (CLAUDE.md, AGENTS.md, or equivalent). Covers what belongs in them, what…
Use when designing or reviewing an HTTP API. Covers resource modeling, status codes, pagination, idempotency, versioning, error formats, and the contract details that break clients when you get them wrong. Trigger on "design the endpoints for this", "what status code should this
Claude Code
$ npx -y skills add nimadorostkar/Claude-Skills-collection --skill api-design --agent claude-code
Codex
$ npx skills add nimadorostkar/Claude-Skills-collection --skill api-design -a codex -y
Cursor
$ npx skills add nimadorostkar/Claude-Skills-collection --skill api-design -a cursor -y
Gemini CLI
$ npx skills add nimadorostkar/Claude-Skills-collection --skill api-design -a gemini-cli -y
GitHub Copilot
$ npx skills add nimadorostkar/Claude-Skills-collection --skill api-design -a github-copilot -y
OpenCode
$ npx skills add nimadorostkar/Claude-Skills-collection --skill api-design -a opencode -y
Windsurf
$ npx skills add nimadorostkar/Claude-Skills-collection --skill api-design -a windsurf -y
name: api-design description: Use when designing or reviewing an HTTP API. Covers resource modeling, status codes, pagination, idempotency, versioning, error formats, and the contract details that break clients when you get them wrong. Trigger on "design the endpoints for this", "what status code should this return", "how should we paginate this api", "review our openapi spec". Do not use for GraphQL schemas — see the graphql skill. metadata: category: backend version: 1.0.0 tags: [api, rest, http, openapi, versioning]
Design HTTP APIs that clients can use correctly without reading your source code, and that you can evolve without breaking them.
1. **Model resources, not procedures** — `POST /orders/{id}/refunds` rather than `POST /refundOrder`. When an operation genuinely is not a resource, it is fine to say so, but check first. 2. **Fix the status codes** — 200 for a body, 201 with a `Location` for creation, 202 for accepted-but-not-done, 400 for malformed, 401 versus 403 correctly, 409 for conflict, 422 for semantically invalid, 429 with `Retry-After`. 3. **Standardize errors** — One shape, every endpoint. RFC 9457 problem details, with a machine-readable `type` and field-level detail. 4. **Choose pagination deliberately** — Cursor-based for anything that mutates or is large. Offset only for small, static datasets. 5. **Make unsafe methods idempotent** — Accept an `Idempotency-Key` header on POST; return the original response on replay. 6. **Version from day one** — Even if the first version is the only one. Retrofitting a version is far worse than carrying one.
**Cursor pagination and problem-details errors:**
GET /v1/orders?limit=50&cursor=eyJpZCI6IjAxSFgifQ HTTP/1.1
200 OK
{
"data": [ { "id": "ord_01HX...", "total_cents": 4200, "currency": "USD" } ],
"next_cursor": "eyJpZCI6IjAxSFkifQ",
"has_more": true
}POST /v1/orders HTTP/1.1
Idempotency-Key: 4f3a2b1c-...
422 Unprocessable Content
Content-Type: application/problem+json
{
"type": "https://api.example.com/errors/validation",
"title": "Order validation failed",
"status": 422,
"detail": "One or more line items are invalid.",
"errors": [
{ "field": "items[0].quantity", "code": "min", "message": "must be at least 1" }
]
}A curated library of 137 production-grade skills for Claude and other AI coding agents. Every skill follows one structure, speaks with one voice, and earns its place by changing what the agent does.
Use when writing project instructions for a coding agent (CLAUDE.md, AGENTS.md, or equivalent). Covers what belongs in them, what…
Use when an agent needs state that survives a session or a context compaction. Covers what to persist, file-based memory,…
Use when automating agent behavior with lifecycle hooks. Covers hook events, deterministic enforcement of rules the model should…
Use when packaging skills, commands, hooks, and MCP servers into a distributable plugin. Covers manifest structure, bundling,…
Use when writing a new skill for an AI agent. Covers scoping, description writing for reliable triggering, progressive…
Use when reviewing or improving an existing agent skill. Covers triggering accuracy, content quality, redundancy with the base…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.