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 shennawardana23/skillme --skill api-designgit clone --depth 1 https://github.com/shennawardana23/skillmeWrote 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/shennawardana23/skillme/api-design)<a href="https://agentmods.dev/skills/shennawardana23/skillme/api-design"><img src="https://agentmods.dev/badge/skills/shennawardana23/skillme/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/shennawardana23/skillme/api-design"><img src="https://agentmods.dev/badge/skills/shennawardana23/skillme/api-design.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.00056 | $0.00871 |
| Opus 5 | $0.00028 | $0.00436 |
| Sonnet 5 | $0.00011 | $0.00174 |
| Haiku 4.5 | $0.00006 | $0.00087 |
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 9d 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 — 83 lines — stays where its author put it; the contents beside it link to each section on GitHub.
API and Interface Design
Design interfaces that are hard to misuse: consistent error shape, additive changes only once a contract ships, and validation only at the boundary where untrusted input enters.
Hyrum's Law
With enough users of an API, every observable behavior becomes a de facto contract — regardless of what the documentation promises.
Undocumented quirks, error text, timing, and field ordering all become things someone depends on once observed. Design implication: don't expose what you're not willing to keep stable, and plan for deprecation at design time, not as an afterthought.
Core rules
- Contract first. Define the request/response types before implementing the handler.
- One error shape, everywhere.
Never mix throwing, returning{ "error": { "code": "VALIDATION_ERROR", "message": "email is required", "details": {} } }null, and returning{error}across different endpoints in the same API — the caller can't predict behavior. - Validate at the boundary only. HTTP handlers, form submissions, and third-party API responses are untrusted; internal function calls that already received validated types are not — re-validating there is wasted code that obscures where the real boundary is.
- Additive changes only, once shipped. New optional fields are safe. Changing a field's type, removing a field, or changing status-code semantics for an existing endpoint is a breaking change — ship it as a new version or a new endpoint, never as a silent modification.
- Pagination on every list endpoint, from the first version — adding it later is itself a breaking change to response shape.
Gotchas
- A
PATCHthat silently ignores unknown fields is easy to build and easy to misuse — a client sending a typo'd field name gets no error and no effect, and won't notice until data looks wrong days later. Reject unknown fields at the boundary instead of ignoring them. - REST resource URLs with verbs (
/api/createTask) are a naming smell that correlates with inconsistent HTTP-method semantics elsewhere in the same API — grep for this pattern as a quick signal to review further. - A third-party API response is untrusted data even when the third party is a well-known vendor: validate its shape before using it in any decision or rendering path.
What ships with it
2 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.
- 9d ago First seen · 83 lines · 56 tokens per session scan A f503ede1512e
api-design is a skill published in the GitHub repository shennawardana23/skillme (2 stars, last pushed 12d ago), licensed Apache-2.0. It adds 56 tokens to every session and 871 once invoked, about $0.0003 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-31.
Other skills, from other repositories
temporal-developer
Develop, debug, and manage Temporal applications across Python, TypeScript, Go, Java, .NET, Ruby, and Rust. Use when the user is building workflows, activities, or workers with a Temporal SDK, debugging issues like non-determinism errors, stuck workflows, or activity retries, using Temporal CLI, Temporal Server, or…
fastify-best-practices
A reference guide for building Fastify, a Node.js framework for web servers and REST APIs, with JavaScript or TypeScript. It covers routes, plugins, validation, errors, testing, logging, security, databases, and deployment.
insforge-cli
Use this skill whenever someone needs a backend, or when managing InsForge backend and cloud infrastructure with the InsForge CLI. For application code that calls InsForge from a frontend, backend, or edge function, use the insforge app-integration skill instead.
php-pro
A set of practices for building PHP applications with modern PHP, Laravel, or Symfony. PHP is a programming language commonly used for server-side web applications.
better-auth-best-practices
A guide for configuring Better Auth, a TypeScript authentication library, on the server and client. It covers database adapters, sessions, plugins, environment variables, migrations, and a basic health check.
insforge-debug
A troubleshooting guide for InsForge projects, covering their backend, database, command-line tool, local development, and deployments. InsForge is a backend and database service for applications.