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 skills add The-AI-Directory-Company/agents-and-skills --skill api-design-guidegit clone --depth 1 https://github.com/The-AI-Directory-Company/agents-and-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/the-ai-directory-company/agents-and-skills/api-design-guide)<a href="https://agentmods.dev/skills/the-ai-directory-company/agents-and-skills/api-design-guide"><img src="https://agentmods.dev/badge/skills/the-ai-directory-company/agents-and-skills/api-design-guide/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/the-ai-directory-company/agents-and-skills/api-design-guide"><img src="https://agentmods.dev/badge/skills/the-ai-directory-company/agents-and-skills/api-design-guide.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What 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.1 | $0.00040 | $0.01397 |
| Opus 5 | $0.00020 | $0.00698 |
| Sonnet 5 | $0.00008 | $0.00279 |
| Haiku 4.5 | $0.00004 | $0.00140 |
Grade A, and why
api-design-guide 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 8d 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 — 130 lines — stays where its author put it; the contents beside it link to each section on GitHub.
API Design Guide
Before you start
Gather the following from the user:
- What resources does the API expose? (Users, orders, products, etc.)
- Who are the consumers? (Internal services, third-party developers, mobile apps, SPAs)
- REST, GraphQL, or both? Default to REST for CRUD-heavy services, GraphQL for query-heavy frontends.
- Auth requirements? (API keys, OAuth 2.0, JWT, session-based)
- Expected traffic volume? (Drives rate limiting and pagination decisions)
- Versioning constraints? (Breaking changes expected? Public vs. internal?)
If the user says "design an API for X" without specifics, push back: "What operations do consumers need to perform? What data do they send and receive?"
API design template
1. Resource Naming
Use plural nouns for collections. Resources are things, not actions.
Good: /users, /orders, /order-items
Bad: /getUsers, /createOrder, /user_list, /OrderItem
- Lowercase with hyphens for multi-word resources (
/order-items, not/orderItems) - Nouns only — never verbs in the URL path
- Nest to express ownership:
/users/{id}/orders— limit nesting to two levels
2. HTTP Methods
| Method | Purpose | Idempotent | Success Code |
|---|---|---|---|
| GET | Read resource(s) | Yes | 200 |
| POST | Create resource | No | 201 |
| PUT | Full replace | Yes | 200 |
| PATCH | Partial update | No | 200 |
| DELETE | Remove resource | Yes | 204 |
Use POST for actions that don't map to CRUD: POST /orders/{id}/cancel.
3. Request/Response Formats
Always use JSON. Wrap collection responses — never return a bare array:
{
"data": [{ "id": "usr_01", "name": "Alice" }],
"meta": { "total": 142, "page": 1, "per_page": 20 }
}
4. Error Handling
Return a consistent error envelope on every failure:
{
"error": {
"code": "VALIDATION_ERROR",
"message": "Email address is invalid.",
"details": [{ "field": "email", "reason": "Must be a valid email address." }],
"request_id": "req_abc123"
}
}
What ships with it
7 files 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.
- 8d ago First seen · 130 lines · 40 tokens per session scan A 486c56212cce
api-design-guide is a skill published in the GitHub repository The-AI-Directory-Company/agents-and-skills (2 stars, last pushed 5mo ago), licensed MIT. It adds 40 tokens to every session and 1,397 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-09-03.
Other skills, from other repositories
email-systems
Transactional email (Resend, SendGrid, SES), templates (React Email, MJML), deliverability (SPF/DKIM/DMARC), and inboxing best practices. Use when building email infrastructure, designing templates, or troubleshooting deliverability.
event-driven-architecture
Kafka, RabbitMQ, SQS/SNS, event sourcing, CQRS, saga patterns, dead letter queues, and idempotency. Use when designing asynchronous systems, implementing message-driven workflows, or building event streaming pipelines.
graphql-expert
GraphQL API design and implementation. Use when building GraphQL APIs, designing schemas, implementing resolvers, or optimizing GraphQL performance.
devex-sdk-design
Developer experience (DX) engineering, SDK design patterns, API ergonomics, CLI tooling design, documentation-driven development, and developer onboarding. Use when designing SDKs, improving API ergonomics, building developer tools, or creating developer documentation.
edge-computing
Edge computing with Cloudflare Workers, Deno Deploy, Bun, Vercel Edge Functions, AWS Lambda@Edge, and edge databases (Turso, D1, DynamoDB Global Tables). Use when building low-latency edge applications, edge-side rendering, or globally distributed compute.
hunt-auth-bypass
Hunting skill for auth bypass vulnerabilities. Built from 4 public bug bounty reports. Use when hunting auth bypass on any target.