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 sawrus/agent-guides --skill api-designgit clone --depth 1 https://github.com/sawrus/agent-guidesWrote 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/sawrus/agent-guides/api-design)<a href="https://agentmods.dev/skills/sawrus/agent-guides/api-design"><img src="https://agentmods.dev/badge/skills/sawrus/agent-guides/api-design/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/sawrus/agent-guides/api-design"><img src="https://agentmods.dev/badge/skills/sawrus/agent-guides/api-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00068 | $0.00779 |
| Opus 5.5 | $0.00027 | $0.00312 |
| Sonnet 5.5 | $0.00014 | $0.00156 |
| Haiku 4.5 | $0.00007 | $0.00078 |
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 1mo 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 — 63 lines — stays where its author put it; the contents beside it link to each section on GitHub.
API contract: add or change
1. Find the contract
- Look for the spec:
openapi.yaml,api/*.yaml,docs/api/,*.protounderproto/orapi/. - If the code generates the spec (FastAPI, springdoc, swaggo), find the command that exports it and use the exported file in step 4.
- If no spec exists, write down the current request and response of the endpoint from the code and its tests.
- Find the consumers: other services, frontends, published SDKs. Ask the user if they are not known.
2. Edit the contract first
- Change the spec before the code. Keep the change to the endpoint or message the task names.
- HTTP: one resource per path, plural nouns (
/orders/{orderId}), standard methods and status codes, one error schema for all endpoints (for example RFC 9457application/problem+json). - List endpoints take
limitand a cursor (page_token/next_page_token) and return a bounded page. - A create endpoint that clients may retry accepts an
Idempotency-Keyheader. - gRPC: add fields with new field numbers. Never reuse or renumber a field;
reservedremoved numbers and names.
3. Classify the change
Additive (safe):
- new endpoint, new optional request field, new response field, new enum value that clients ignore.
Breaking:
- removed or renamed field or endpoint, new required request field, changed type or format, changed status code, stricter validation, changed field number or name in proto.
4. Check breaking changes with a tool
git show origin/main:openapi.yaml > /tmp/base.yaml
oasdiff breaking /tmp/base.yaml openapi.yaml --fail-on ERR
buf breaking --against '.git#branch=main'
If the tool reports a breaking change, do one of these:
- Make it additive: keep the old field, add the new one, and map both in the code.
- Add a new version (
/v2/...path or a new proto packagev2) and keep the old version running. - If the user accepts the break, mark it as breaking in the changelog and the merge request, and name the consumers that must change.
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.
- 1mo ago Changed · -108 lines · +47 tokens per session 2aeab9e23d75
- 3mo ago First seen · 171 lines · 21 tokens per session scan A d15e0b9db737
api-design is a skill published in the GitHub repository sawrus/agent-guides (21 stars, last pushed 2d ago), licensed MIT. It adds 68 tokens to every session and 779 once invoked, about $0.0003 per session on Opus 5.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.
api-design compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| api-designsawrus/agent-guides | Skill | 21 | 2d ago | MIT | A | 68 | Claude Code, Codex |
| api-onboardingsickn33/agentic-awesome-skills | Skill | 51k | today | MIT | A | 46 | Claude Code |
| apify-generate-output-schemasickn33/agentic-awesome-skills | Skill | 51k | today | MIT | A | 45 | Claude Code |
| api-rate-limit-handlersickn33/agentic-awesome-skills | Skill | 51k | today | MIT | A | 32 | Claude Code |
| api-security-best-practicessickn33/agentic-awesome-skills | Skill | 51k | today | MIT | A | 29 | Claude Code |
| aws-serverless-edasickn33/agentic-awesome-skills | Skill | 51k | today | MIT | A | 42 | Claude Code |
| mcp-buildersickn33/agentic-awesome-skills | Skill | 51k | today | MIT | A | 49 | Claude Code |