Skip to content
Skill

API design

Guides an agent through REST API design: resource 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
66
Last commit
License
MIT
Listing updated

Similar skills

About API design

This skill gives the agent a consistent set of REST conventions to apply when shaping endpoints. It covers how to name resources and nest sub-resources, which HTTP methods and status codes fit each operation, and how to structure success and error bodies. It also includes reference patterns for offset and cursor pagination, filtering and sorting query syntax, sparse fieldsets, token and API key auth, and rate limit headers with tiered limits.

The guide also covers versioning and deprecation. It explains when a change is breaking and needs a new version, how to use Sunset headers, and when to return 410 Gone. A checklist at the end can be used to review a new endpoint before it ships.

The examples are written in TypeScript with Next.js, Python with Django REST Framework, and Go with net/http. The skill itself contains no scripts, so it works by shaping the agent's reasoning and code output 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. Use when designing or reviewing REST endpoints, resource names, status codes, pagination, or versioning.

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 1 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 rea-skills plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add smartworldarafath/REA_Skill
/plugin install rea-skills@smartworldarafath

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

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.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/smartworldarafath/REA_Skill.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/smartworldarafath/REA_Skill.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/smartworldarafath/REA_Skill.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/smartworldarafath/REA_Skill.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/smartworldarafath/REA_Skill.git

Then copy REA_Skill/.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 Naming Rules
Covers plural, kebab-case resource URLs and when verbs or sub-resources are acceptable.
Status Code Guidance
Maps HTTP methods and outcomes to success, client error and server error status codes.
Pagination Patterns
Compares offset and cursor pagination with example queries and response metadata.
Filtering and Sorting
Describes query parameter syntax for equality, comparison, multi-value, nested and sorted fields.
Versioning and Deprecation
Explains URL and header versioning, breaking versus non-breaking changes, and sunset timelines.
Pre-Ship Checklist
Provides a review list covering validation, auth, rate limits and response hygiene for new endpoints.

Good for

  • Design the URL structure for a new set of customer and order endpoints
  • Review an existing REST API for naming and status code consistency
  • Add cursor-based pagination to a list endpoint
  • Plan how to version an API and deprecate old routes
  • Standardize error response bodies across a service

API design FAQ

What languages do the examples cover?

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

Does the skill run any scripts?

No. The skill folder contains only the SKILL.md instructions and one supporting file, with no scripts.

When should a change get a new API version?

The guide treats removing or renaming fields, changing field types, changing URL structure and changing the authentication method as breaking changes. Adding fields, optional parameters or endpoints is treated as non-breaking.

What license does API design use?

The skill is released under the MIT license.

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 rea-skills plugin, which includes it: /plugin marketplace add smartworldarafath/REA_Skill, then /plugin install rea-skills@smartworldarafath.

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 Backend patterns, API designer, API versioning helper, API SDK generator and API documentation.

Where this comes from

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

More from smartworldarafath/REA_Skill

  1. Guides building and auditing UI to WCAG 2.2 AA across web, iOS and Android

    • Open source
    • 66 GitHub stars
    • Developer tools
  2. Diagnoses agent and LLM stacks for hidden failures and ranks the fixes by severity

    • Open source
    • 66 GitHub stars
    • Developer tools
  3. Compare coding agents head-to-head on your own tasks by pass rate, cost and time

    • Open source
    • 66 GitHub stars
    • Developer tools
  4. Guides an agent to design tool sets, observations and error recovery for better completion

    • Open source
    • 66 GitHub stars
    • Developer tools
  5. Lets an AI agent make x402 payments within per-task budgets and spending policies

    • Open source
    • 66 GitHub stars
    • Finance and payments