
API design
Guides an agent through REST, GraphQL and gRPC API design and versioning
API design is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 303
- Last commit
- License
- MIT
- Listing updated
Similar skills
About API design
This skill gives the agent a design playbook for HTTP and RPC interfaces. It covers contract-first work with OpenAPI 3.2, resource naming, method and status code choices, RFC 7807 problem responses, cursor pagination, URL versioning with sunset signalling, and idempotency keys for POST requests.
For GraphQL it adds schema principles such as domain-driven types, Relay-style connections, typed error unions, Federation entity keys and DataLoader batching to avoid N+1 queries. For gRPC it shows proto service layouts covering unary and streaming methods, streamed error embedding, deadlines and retry policies, plus rate limit headers and a closing checklist for design, features, documentation and operations.
The guidance is written as reference patterns and code snippets; the skill ships supporting reference documents and starter templates for OpenAPI, GraphQL and proto files. It runs no scripts and needs no particular language runtime beyond what the examples show.
When your agent uses it
REST/GraphQL/gRPC API design best practices. Use when designing APIs, defining contracts, handling versioning. Covers OpenAPI 3.2, GraphQL Federation, gRPC streaming.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 8 files (52 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
Copy the skill folder to ~/.claude/skills/api-design to use it in all your projects:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/majiayu000/spellbook.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/api-design &&
cp -R "$tmp/skills/api-design" ~/.claude/skills/api-design &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/api-design inside it instead.
Copy the skill folder to ~/.agents/skills/api-design to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/majiayu000/spellbook.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/api-design &&
cp -R "$tmp/skills/api-design" ~/.agents/skills/api-design &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/api-design inside it instead.
Copy the skill folder to ~/.cursor/skills/api-design to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/majiayu000/spellbook.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/api-design &&
cp -R "$tmp/skills/api-design" ~/.cursor/skills/api-design &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/api-design inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/majiayu000/spellbook.git --path skills/api-designOr copy the folder to ~/.gemini/skills/api-design yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/api-design:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/majiayu000/spellbook.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/api-design &&
cp -R "$tmp/skills/api-design" ~/.copilot/skills/api-design &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/api-design inside it instead.
Get the folder:
git clone --depth 1 https://github.com/majiayu000/spellbook.gitThen copy spellbook/skills/api-design into your agent's skills folder as api-design. Agents that support SKILL.md read one folder per skill.
What it does
- Contract-first REST design
- Covers resource naming, HTTP methods, status codes and OpenAPI 3.2 documentation.
- Error and pagination conventions
- Explains RFC 7807 problem responses and cursor-based pagination patterns.
- Versioning and idempotency
- Describes URL versioning with sunset headers and idempotency keys for POST.
- GraphQL schema patterns
- Covers Federation keys, Relay connections, typed errors and DataLoader batching.
- gRPC service patterns
- Shows streaming RPC layouts, deadlines, retry policies and error embedding.
- Rate limiting and checklist
- Provides rate limit headers and a pre-release checklist for API operations.
Good for
- Design a REST API for a new orders service
- Plan versioning for an existing public endpoint
- Model a GraphQL schema with federated entities
- Define a gRPC service with streaming methods
- Add cursor pagination and error responses to an API
- Review an API contract against a design checklist
API design FAQ
What does API design change in the agent's behaviour?
It gives the agent API design conventions for REST, GraphQL and gRPC to follow when designing interfaces, such as status codes, pagination, versioning and error formats.
Does API design need any scripts or extra tools?
The skill runs no scripts and does not set allowed tools. It includes reference documents and starter templates for OpenAPI, GraphQL and proto files.
Which API style should API design recommend?
Its selection table suggests REST for public APIs and MVPs, GraphQL for frontend-driven or mobile clients, and gRPC for internal microservices and streaming.
How do I install API design in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/api-design to use it in all your projects, or to .claude/skills/api-design in one project.
Does API design run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use API design?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to API design?
The closest alternatives to API design are API design, API design, API GraphQL GRPC, API design and API and interface design.
Where this comes from
- Description: from the skill's own SKILL.md.
More from majiayu000/spellbook

Gives your agent cross-domain analogies and yes-and extensions to spark new ideas
- Open source
- 303 GitHub stars
- Productivity

Stress-tests an idea by hunting hidden assumptions, counterexamples and failure points
- Open source
- 303 GitHub stars
- Productivity

Gathers sourced facts, competitors and 2026 data on an idea without judging it
- Open source
- 303 GitHub stars
- Research workflow

Runs a three-role AI group chat that surfaces blind spots in a one-line idea
- Open source
- 303 GitHub stars
- Productivity

Coaches you from a one-line idea to a PRD and clickable HTML prototype
- Open source
- 303 GitHub stars
- Productivity

Guides an agent through mobile app UI design for iOS and Android
- Open source
- 303 GitHub stars
- Design and media





