api-design

api-design is a skill for Claude Code from yonatangross/orchestkit. It costs 47 tokens per session (2,674 once invoked), scanned A, original, MIT.

A guide to designing the contracts that web and service APIs expose, including REST, GraphQL, and gRPC endpoints. It covers resource shapes, versioning, OpenAPI documentation, standard error responses, streaming, and integrations.

In plain words
What is it for?
Use it when specifying REST or GraphQL resources, writing OpenAPI specs, planning API versions, defining error responses, or designing streaming and gRPC services.
Why use it?
It helps keep APIs predictable as they evolve and makes errors, versions, and data formats clearer for the clients that use them. This reduces breaking changes and inconsistent endpoint behavior.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions Claude Code.

Part of the ork plugin — 83 skills, 39 commands, 36 agents, 32 hooks shipped together

Good fit Use it when specifying REST or GraphQL resources, writing OpenAPI specs, planning API versions, defining error responses, or designing streaming and gRPC services.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yonatangross/orchestkit/api-design
Install

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.

Any agent
npx skills add yonatangross/orchestkit --skill api-design
Clone the repo
git clone --depth 1 https://github.com/yonatangross/orchestkit

Made for: Claude Code.

Or install ork, the plugin that ships this one along with the rest of its 83 skills, 39 commands, 36 agents, 32 hooks.

Wrote 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.

agentmods badge for api-design

README.md
[![agentmods](https://agentmods.dev/badge/skills/yonatangross/orchestkit/api-design/github.svg)](https://agentmods.dev/skills/yonatangross/orchestkit/api-design)
Your own site
<a href="https://agentmods.dev/skills/yonatangross/orchestkit/api-design"><img src="https://agentmods.dev/badge/skills/yonatangross/orchestkit/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.

agentmods 80×15 button for api-design

Your own site · 80×15
<a href="https://agentmods.dev/skills/yonatangross/orchestkit/api-design"><img src="https://agentmods.dev/badge/skills/yonatangross/orchestkit/api-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,674 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00047 $0.02674
Opus 5.5 $0.00019 $0.01070
Sonnet 5.5 $0.00009 $0.00535
Haiku 4.5 $0.00005 $0.00267

Measured 9d ago against content hash 4beb5699ef92, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/fastapi-versioned-router.py, scripts/problem-detail-exceptions.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugins/ork/skills/api-design/SKILL.md · 253 lines

How it starts

The opening of the file, as written. The whole thing — 253 lines — stays where its author put it; the contents beside it link to each section on GitHub.

API Design

Comprehensive API design patterns covering REST/GraphQL framework design, versioning strategies, and RFC 9457 error handling. Each category has individual rule files in rules/ loaded on-demand.

Quick Reference

Category Rules Impact When to Use
API Framework 3 HIGH REST conventions, resource modeling, OpenAPI specifications
Versioning 2 HIGH URL path versioning, header versioning; deprecation windows are house policy in references/ork-delta.md
Error Handling 1 HIGH Agent-facing RFC 9457 extensions; base spec and FastAPI wiring are upstream
GraphQL 2 HIGH Strawberry code-first, DataLoader, permissions, subscriptions
gRPC 2 HIGH Protobuf services, streaming, interceptors, retry
Streaming 2 HIGH SSE endpoints, WebSocket bidirectional, async generators
Integrations 2 HIGH Messaging platforms (WhatsApp, Telegram), Payload CMS patterns

Total: 14 rules across 7 categories. House decisions rescued from thinned files live in references/ork-delta.md; vendor and spec material is linked, not restated (see Upstream coverage).

API Framework

REST and GraphQL API design conventions for consistent, developer-friendly APIs.

Rule File Key Pattern
REST Conventions rules/framework-rest-conventions.md Plural nouns, HTTP methods, status codes, pagination
Resource Modeling rules/framework-resource-modeling.md Hierarchical URLs, filtering, sorting, field selection
OpenAPI rules/framework-openapi.md OpenAPI 3.1 specs, documentation, schema definitions

Versioning

Strategies for API evolution without breaking clients.

Rule File Key Pattern
URL Path rules/versioning-url-path.md /api/v1/ prefix routing, version-specific schemas
Header rules/versioning-header.md X-API-Version header, content negotiation

Read the full file on GitHub · 253 lines

Changes

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.

  1. 9d ago Changed 4beb5699ef92
  2. 11d ago Changed ea8df971fcdf
  3. 1mo ago Changed · -29 tokens per session 43062ae108f4
  4. 1mo ago Changed · -1 lines c04a170d59cf
  5. 2mo ago Changed · -5 lines 763a7fde430e
  6. 2mo ago Changed · -1 lines 4db040349f9e
  7. 2mo ago Changed efacf71cc0ee
  8. 3mo ago First seen · 260 lines · 76 tokens per session scan A 46f9a8c35b3f

Subscribe to this mod's changes

api-design is a skill published in the GitHub repository yonatangross/orchestkit (313 stars, last pushed today), licensed MIT. It adds 47 tokens to every session and 2,674 once invoked, about $0.0002 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-09-03.

Related

api-design compared with skills from other repositories

api-design next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
api-designyonatangross/orchestkitSkill313todayMITA47Claude Code
microprofile-serverAdamBien/airailsSkill762d agoMITA87Claude Code, Codex
django-6-upgrade-guidebtfranklin/skillsSkill6yesterdayMITA49Codex
pn-python-scaffoldingperniemann/pnCoreSkill03d agoMITA51Cursor
pn-rust-scaffoldingperniemann/pnCoreSkill03d agoMITA54Cursor
pn-supabaseperniemann/pnCoreSkill03d agoMITA36Cursor
pn-n8n-patternsperniemann/pnCoreSkill03d agoMITA71Cursor