From agents
Designs APIs with contract-first, consumer-driven approach including validation at boundaries, consistent error responses, and security focus. Generates types from OpenAPI/Swagger. Use when designing an API, creating endpoints, API architecture, REST design, building an API, defining contracts, new service, or when starting API work.
How this skill is triggered — by the user, by Claude, or both
Slash command
/agents:api-designThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Build interfaces that are hard to misuse. Design from the consumer's perspective.
Build interfaces that are hard to misuse. Design from the consumer's perspective.
This changes everything about the design:
| Question | Internal API | Public API |
|---|---|---|
| Who consumes it? | Your team, known services | Unknown third parties |
| Breaking changes? | Coordinate and deploy together | Version, deprecate, migrate |
| Auth complexity? | Service-to-service tokens | OAuth, API keys, rate limiting |
| Documentation? | Enough for the team | Comprehensive, with examples |
| Backward compat? | Just change it | Required, additive only |
Don't apply public-API rigor to an internal endpoint you own both sides of.
Define the interface before writing implementation:
This forces you to think about the shape of data before getting lost in business logic.
Write the calling code first (or imagine writing it). Ask:
If calling the API is awkward, fix the API. Don't make consumers work around bad design.
Every parameter should have a sensible default where possible:
All input validation happens at the API layer. Not in services, not in repositories.
See ../_shared/security-checklist.md for security-specific validation patterns.
Every error should follow the same format. Never leak internals.
See references/api-patterns.md for error response formats and examples.
Key rules:
See references/api-patterns.md for detailed patterns.
Don't hand-write API types on the client side:
| Stack | Tool |
|---|---|
| TypeScript | openapi-typescript, orval, openapi-generator |
| .NET | NSwag, Kiota |
| Go | oapi-codegen |
The spec is the source of truth. Generated types stay in sync automatically.
npx claudepluginhub saturate/agents --plugin skill-routerProvides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.