# API design

> API design is an open-source agent skill for developer tools. Guides an agent through consistent REST API design: 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/Fmarzochi/EGC/tree/main/.agents/skills/api-design
- **Repository:** https://github.com/fmarzochi/egc
- **GitHub stars:** 71
- **License:** Apache-2.0
- **Skill name:** api-design
- **Collection:** https://github.com/Fmarzochi/EGC
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

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.

## What it can access

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

- [Instructions only, no scripts](https://github.com/Fmarzochi/EGC/tree/HEAD/.agents/skills/api-design)
- [License: Apache-2.0](https://github.com/Fmarzochi/EGC/tree/HEAD/.agents/skills/api-design)

## Features

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

## Install

### Claude Code

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

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

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

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

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

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

### Gemini CLI

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

```sh
gemini skills install https://github.com/Fmarzochi/EGC.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/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.

### Other agents

Get the folder:

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

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

## Alternatives

- [API design](https://ai-powered.com/skills/api-design): API design is an open-source agent skill for developer tools.
- [API design](https://ai-powered.com/skills/api-design-nabwinsaud): API design is an open-source agent skill for developer tools.
- [Go API design](https://ai-powered.com/skills/go-api-design): Go API design is an open-source agent skill for developer tools.
- [Backend patterns](https://ai-powered.com/skills/backend-patterns): Backend patterns is an open-source agent skill for developer tools.
- [API design edho ferdian](https://ai-powered.com/skills/api-design-edho-ferdian): API design edho ferdian 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.
- [HTTP semantics](https://ai-powered.com/skills/http-semantics): HTTP semantics is an open-source agent skill for developer tools.
- [Backend patterns](https://ai-powered.com/skills/backend-patterns-fmarzochi): Backend patterns is an open-source agent skill for developer tools.

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