# API design

> API design is an open-source agent skill for developer tools. Guides an agent through REST API design: resource naming, status codes, pagination. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/smartworldarafath/REA_Skill/tree/main/.agents/skills/api-design
- **Repository:** https://github.com/smartworldarafath/rea_skill
- **GitHub stars:** 66
- **License:** MIT
- **Skill name:** api-design
- **Collection:** https://github.com/smartworldarafath/REA_Skill
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/smartworldarafath/REA_Skill/tree/HEAD/.agents/skills/api-design)
- [License: MIT](https://github.com/smartworldarafath/REA_Skill/tree/HEAD/.agents/skills/api-design)

## Features

- **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

## Install

### Claude Code

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

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

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

```sh
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.

### Codex

Copy the skill folder to `~/.agents/skills/api-design` to use it in every repository:

```sh
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.

### Cursor

Copy the skill folder to `~/.cursor/skills/api-design` to use it in every project:

```sh
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.

### Gemini CLI

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

```sh
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.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/api-design`:

```sh
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.

### Other agents

Get the folder:

```sh
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.

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

## Alternatives

- [Backend patterns](https://ai-powered.com/skills/backend-patterns): Backend patterns is an open-source agent skill for developer tools.
- [API designer](https://ai-powered.com/skills/api-designer): API designer is an open-source agent skill for developer tools.
- [API versioning helper](https://ai-powered.com/skills/api-versioning-helper): API versioning helper is an open-source agent skill for developer tools.
- [API SDK generator](https://ai-powered.com/skills/api-sdk-generator): API SDK generator is an open-source agent skill for developer tools.
- [API documentation](https://ai-powered.com/skills/api-documentation): API documentation is an open-source agent skill for developer tools.
- [API](https://ai-powered.com/skills/api): API is an open-source agent skill for developer tools.
- [Error handling](https://ai-powered.com/skills/error-handling): Error handling is an open-source agent skill for developer tools.
- [API rate limiting helper](https://ai-powered.com/skills/api-rate-limiting-helper): API rate limiting helper is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/api-design
