Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/chandrudp29/skillhub/api-designnpx skills add chandrudp29/skillhub --skill api-designgit clone --depth 1 https://github.com/chandrudp29/skillhubWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00038 | $0.01395 |
| Opus 5 | $0.00019 | $0.00698 |
| Sonnet 5 | $0.00008 | $0.00279 |
| Haiku 4.5 | $0.00004 | $0.00139 |
Grade A, and why
api-design scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 204 lines — stays where its author put it; the contents beside it link to each section on GitHub.
API Design
Opinionated REST API design patterns. Consistent, predictable, easy to use.
When to Use
- Designing a new REST API
- Reviewing an API for consistency issues
- Writing OpenAPI/Swagger documentation
- Deciding on URL structure, verbs, or error formats
URL Design
Resources are nouns, actions are HTTP verbs:
# Good
GET /users — list users
POST /users — create user
GET /users/{id} — get user
PUT /users/{id} — replace user (full update)
PATCH /users/{id} — update user (partial)
DELETE /users/{id} — delete user
GET /users/{id}/orders — list this user's orders
POST /users/{id}/orders — create order for this user
# Bad — verbs in URLs
POST /createUser
GET /getUser?id=123
POST /users/delete
Naming:
- Plural for collections:
/users,/orders,/products - kebab-case for multi-word:
/user-profiles, not/userProfilesor/user_profiles - Lowercase always
- No trailing slashes:
/usersnot/users/
Nested resources — max 2 levels deep:
/orders/{id}/items ← fine
/users/{id}/orders/{id}/items/tags ← too deep, use /items/{id}/tags
HTTP Status Codes
Use exactly the right code — not just 200 and 500:
200 OK — GET/PUT/PATCH succeeded
201 Created — POST created a resource (include Location header)
204 No Content — DELETE succeeded, nothing to return
400 Bad Request — invalid request body/params (include what's wrong)
401 Unauthorized — not authenticated (missing/invalid token)
403 Forbidden — authenticated but not authorized
404 Not Found — resource doesn't exist
409 Conflict — would violate a constraint (duplicate email, etc.)
422 Unprocessable — valid JSON but failed business validation
429 Too Many Requests — rate limited (include Retry-After header)
500 Internal Error — your bug (never leak internals)
Consistent Error Format
Pick one format. Stick to it everywhere.
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3d ago First seen · 204 lines · 38 tokens per session scan A 6054cb8a784e
api-design is a skill published in the GitHub repository chandrudp29/skillhub (13 stars, last pushed 2mo ago), licensed MIT. It adds 38 tokens to every session and 1,395 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
api-design
Use when settling the contract of an API you expose, before implementation: resources/URLs, REST vs GraphQL, versioning, one RFC 9457 error envelope, pagination, idempotency — emitted as OpenAPI 3.1. NOT implementing the endpoints (that is fastapi/nestjs/go/nodejs), NOT auth hardening (that is secure-coding), NOT…
api-designer
Designs production-grade APIs — REST, GraphQL, gRPC, and AsyncAPI patterns including pagination, versioning, error handling, rate limiting, and API governance. Use when the user asks to design APIs, create endpoints, build an API layer, write OpenAPI specs, or needs help with REST/GraphQL/gRPC service design.
api-design-principles
Master REST API design principles to build intuitive, scalable, and maintainable APIs. Use when designing new APIs, reviewing API specifications, or establishing API design standards.
api-design
Design and implement RESTful APIs with proper routing, validation, error handling, and documentation. Use when building new API endpoints, designing API architecture, or improving existing APIs.
api-design
REST API design patterns. URL naming, HTTP status codes, pagination, RFC 7807 error responses, versioning, and OpenAPI.
api-versioning-strategy
Choosing and operating an HTTP API versioning strategy that doesn't break clients — Stripe's date-based pinned versions, the Deprecation/Sunset header pair (RFC 9745 + RFC 8594), URI vs header vs media-type approaches, and the version-transformer pattern. Grounded in Stripe's published architecture and IETF RFCs.