api-design

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

API contract design for REST and GraphQL, covering resource shape, URL and header versioning with deprecation windows, RFC 9457 Problem Details error handling, and OpenAPI specs. Use when specifying the wire contract an endpoint exposes, choosing a versioning scheme, or standardizing error response bodies across…

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/yonatangross/orchestkit/api-design
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, Codex.

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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,716 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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 $0.00076 $0.02716
Opus 5 $0.00038 $0.01358
Sonnet 5 $0.00015 $0.00543
Haiku 4.5 $0.00008 $0.00272

Measured today against content hash 46f9a8c35b3f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 today.

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 · 260 lines

How it starts

The opening of the file, as written. The whole thing — 260 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 · 260 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. today 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 (225 stars, last pushed today), licensed MIT. It adds 76 tokens to every session and 2,716 once invoked, about $0.0004 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-09-03.

Related

Other skills, from other repositories

api-design

Use when settling the contract of an API you expose, before implementation: resources/URLs, REST vs GraphQL, versioning, one RFC 9457 error envelope, pagination, idempotency — emitted as OpenAPI 3.1. NOT implementing the endpoints (that is fastapi/nestjs/go/nodejs), NOT auth hardening (that is secure-coding), NOT…

ericrisco/rsc-harness · 105 tokens

api-designer

Designs production-grade APIs — REST, GraphQL, gRPC, and AsyncAPI patterns including pagination, versioning, error handling, rate limiting, and API governance. Use when the user asks to design APIs, create endpoints, build an API layer, write OpenAPI specs, or needs help with REST/GraphQL/gRPC service design.

buiphucminhtam/forgewright · 73 tokens

api-design

RESTful, GraphQL, gRPC, and API best practices.

miles990/claude-software-skills · 16 tokens

api-design

Use when designing REST or GraphQL APIs, defining endpoints, implementing pagination/filtering, handling API versioning, or establishing API documentation with OpenAPI/Swagger.

MadAppGang/claude-code · 35 tokens

api-design-patterns

Comprehensive REST and GraphQL API design patterns with versioning, pagination, error handling, and HATEOAS principles. Use when designing APIs, defining endpoints, or architecting service contracts requiring production-grade patterns.

NickCrew/Claude-Cortex · 48 tokens

create-tutorial

Scaffold a new Membrane API Gateway tutorial in the api-gateway repo — the numbered self-teaching YAML under distribution/tutorials/ /, its support files and README links, and the matching auto-discovered integration test. Use whenever the user asks to create, add, write, or scaffold a tutorial (or a tutorial step)…

membrane/api-gateway · 97 tokens