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/martinolivero/saas-builder/api-designnpx skills add MartinOlivero/saas-builder --skill api-designgit clone --depth 1 https://github.com/MartinOlivero/saas-builderWrote 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/martinolivero/saas-builder/api-design)<a href="https://agentmods.dev/skills/martinolivero/saas-builder/api-design"><img src="https://agentmods.dev/badge/skills/martinolivero/saas-builder/api-design.svg" alt="Measured on agentmods" 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.00118 | $0.01074 |
| Opus 5 | $0.00059 | $0.00537 |
| Sonnet 5 | $0.00024 | $0.00215 |
| Haiku 4.5 | $0.00012 | $0.00107 |
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 5d 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 — 62 lines — stays where its author put it; the contents beside it link to each section on GitHub.
API Design
This skill turns "I need an endpoint" into an API that is consistent, predictable, and safe to evolve. It encodes the conventions that the best public APIs (Stripe, Microsoft, GitHub) share.
Analogy: an API is the menu of a restaurant. A good menu is consistent — every dish described the same way, prices where you expect, no surprises. A messy menu makes every order a negotiation.
Discovery (max 3 questions, only if unknown)
- Who consumes this — your own React SPA only, or also mobile / partners / the public?
- Is it mostly simple CRUD, or deeply nested reads across many relations?
- Is it public-facing (needs versioning + stability) or internal?
Step 1 — REST vs GraphQL (decide first)
Default to REST. Reach for GraphQL only when: clients need flexible, deeply nested reads across many relations; you have multiple divergent clients (web + mobile + partners); or you're composing several backend services. For a single React SPA on one Postgres DB, REST (or tRPC for end-to-end TS types) is simpler and cacheable.
If you do choose GraphQL:
- Solve N+1 from day one with DataLoader (batch + cache per request).
- Design the schema around the domain graph, not DB tables.
- Paginate every list field (Relay-style
edges/node/pageInfo); enforce depth/complexity limits. - Mutations return the mutated object so clients update cache without a refetch.
Step 2 — REST conventions (the defaults)
- Resources are plural nouns:
/invoices,/invoices/{id}/lines. Verbs are HTTP methods, not paths. Non-CRUD actions:/invoices/{id}:send. - Version from day one: URI versioning
/v1/..., even with only a v1. - Cursor-based pagination by default (opaque
cursor+has_more), not offset — stays consistent on insert, avoids slowOFFSETscans. Default page 25, max 100. - One consistent error envelope with the correct HTTP status:
Never return{ "error": { "type": "validation_error", "code": "invalid_email", "message": "…", "param": "email" } }200on failure. - Status codes:
201 + Locationon create,204on delete,409conflict,422validation,429 + Retry-Afterrate limit. - Idempotency: require an
Idempotency-Keyheader on unsafe POSTs (payments, signups). Store key→response for 24h; replay returns the original — no double-charge on retry. GET/PUT/DELETE are idempotent by spec. - Consistency: ISO-8601 UTC timestamps, one field-casing convention (snake_case or camelCase) across the whole API.
- Filtering over endpoint sprawl:
?status=open&fields=id,totalinstead of a new endpoint per view.
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.
- 5d ago First seen · 62 lines · 118 tokens per session scan A f6d3fef6e970
api-design is a skill published in the GitHub repository MartinOlivero/saas-builder (2 stars, last pushed 18d ago), licensed MIT. It adds 118 tokens to every session and 1,074 once invoked, about $0.0006 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
architecture-paradigm-microkernel
Applies microkernel architecture with minimal core and plugin extensibility. Use when building platforms where third parties extend core functionality.
plan
Use when a task needs structured planning before implementation. Supports --delegate and round=N[,M].
preplan
Use when a problem needs clarification and agreement before planning begins. Supports --deep and --delegate.
ralph
Use when implementing a plan or executing a prompt that requires verified completion.
pathfind
Use when you have problems but don't know what to build.
analyze
Use when deep investigation is needed — project structure, requirement gaps, or root cause diagnosis. Supports --delegate.