Skip to content
Skill

API design

Guides an agent through consistent REST API design: naming, status codes, pagination

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
71
Last commit
License
Apache-2.0
Listing updated

Similar skills

About API design

This skill gives the agent a set of conventions for designing REST APIs meant for production use. It covers how to name resources and nest sub-resources, which HTTP methods and status codes fit each operation, and what shape success and error responses should take. It also walks through offset and cursor pagination, filtering, sorting, sparse fieldsets, and token or API key authentication.

The guidance extends to versioning and rate limiting. It explains when a change is breaking and needs a new version, how to phase out an old version with a Sunset header, and which rate limit headers and 429 responses to return. A checklist is included to review an endpoint before it ships.

Examples are given in TypeScript with Next.js, Python with Django REST Framework, and Go using net/http. The skill contains no scripts, so it works by shaping the agent's code and review suggestions rather than running tools.

When your agent uses it

REST API design patterns including resource naming, status codes, pagination, filtering, error responses, versioning, and rate limiting for production APIs.

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 2 files (13 KB) on GitHub on 3 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

This skill ships in the egc plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add Fmarzochi/EGC
/plugin install egc@egc

Or copy only this skill to ~/.claude/skills/api-design:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Fmarzochi/EGC.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/api-design &&
cp -R "$tmp/.agents/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.

Claude Code docs on skills

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/Fmarzochi/EGC.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/api-design &&
cp -R "$tmp/.agents/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.

Codex docs on skills

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/Fmarzochi/EGC.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/api-design &&
cp -R "$tmp/.agents/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.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/Fmarzochi/EGC.git --path .agents/skills/api-design

Or copy the folder to ~/.gemini/skills/api-design yourself.

Gemini CLI docs on skills

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/Fmarzochi/EGC.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/api-design &&
cp -R "$tmp/.agents/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.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/Fmarzochi/EGC.git

Then copy EGC/.agents/skills/api-design into your agent's skills folder as api-design. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Resource URL conventions
Rules for plural, kebab-case resource names, nested relationships and action endpoints.
Status code guidance
Reference for which HTTP status codes to return for success, client and server errors.
Pagination and filtering
Offset and cursor pagination, plus filter, sort and sparse fieldset query patterns.
Error response format
A consistent error envelope with codes, messages and field-level validation details.
Versioning and deprecation
When to add a version, what counts as a breaking change, and how to sunset old versions.
Rate limiting patterns
Rate limit headers, 429 handling and example tiers for anonymous and paying users.
Endpoint review checklist
A pre-ship checklist covering validation, auth, pagination and response hygiene.

Good for

  • Design the endpoints for a new user management API
  • Review an existing REST API for naming and status code mistakes
  • Add cursor pagination and filtering to a list endpoint
  • Plan a versioning and deprecation strategy for a public API
  • Set up rate limiting headers and 429 responses

API design FAQ

Does API design run any scripts or tools?

No. The skill has no scripts and does not set allowed tools. It provides conventions and code examples the agent uses when designing or reviewing APIs.

Which languages and frameworks are covered by the examples?

The examples use TypeScript with Next.js, Python with Django REST Framework, and Go with net/http.

When does the skill apply?

It applies when designing new endpoints, reviewing API contracts, adding pagination or filtering, handling errors, planning versions, or building public or partner-facing APIs.

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. Or install the egc plugin, which includes it: /plugin marketplace add Fmarzochi/EGC, then /plugin install egc@egc.

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, Go API design, Backend patterns and API design edho ferdian.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from Fmarzochi/EGC

  1. Gives agents a structured workflow to capture, diagnose and recover from their own

    • Open source
    • 71 GitHub stars
    • Developer tools
  2. Builds a repo-specific EGC install plan that sorts components into daily and library sets

    • Open source
    • 71 GitHub stars
    • Developer tools
  3. Drafts long-form articles, guides and newsletters in a consistent, specific voice

    • Open source
    • 71 GitHub stars
    • Writing style
  4. Guides an agent through Node.js and Express backend design, data access and error handling

    • Open source
    • 71 GitHub stars
    • Developer tools
  5. Builds a reusable writing style profile from your own samples for consistent copy

    • Open source
    • 71 GitHub stars
    • Writing style
  6. Guides your agent through using Bun for installs, scripts, bundling, tests and Vercel

    • Open source
    • 71 GitHub stars
    • Developer tools