# API design

> API design is an open-source agent skill for developer tools. Guides the agent to design consistent REST APIs with sound URLs, status codes. 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/AbdullayevTemurmalik/ECC/tree/master/.kiro/skills/api-design
- **Repository:** https://github.com/abdullayevtemurmalik/ecc
- **GitHub stars:** 7
- **License:** MIT
- **Skill name:** api-design
- **Collection:** https://github.com/AbdullayevTemurmalik/ECC
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill gives the agent a reference of conventions for designing REST APIs meant for production and public or partner use. It covers how to name resources and nest sub-resources, which HTTP methods and status codes fit each situation, and how to shape success, collection and error responses. It also sets out offset and cursor pagination, filtering and sorting query patterns, and sparse fieldsets.

Beyond conventions, the skill covers token and API key authentication, ownership and role checks, rate limit headers and tiers, and a versioning strategy with deprecation and Sunset headers. It includes a pre-ship checklist for new endpoints. Code examples are given in TypeScript with Next.js, Python with Django REST Framework, and Go with net/http.

The skill is a single markdown file with no scripts. It runs no tools itself and expects the agent to apply the patterns to the codebase at hand, using whatever language and framework the project already uses.

## 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/AbdullayevTemurmalik/ECC/tree/HEAD/.kiro/skills/api-design)
- [License: MIT](https://github.com/AbdullayevTemurmalik/ECC/tree/HEAD/.kiro/skills/api-design)

## Features

- **Resource URL conventions:** Rules for plural, kebab-case resource names, sub-resources and action endpoints.
- **Status code guidance:** Which HTTP status codes to return for success, client errors and server errors.
- **Pagination patterns:** Offset and cursor-based pagination with guidance on when to use each.
- **Filtering and sorting:** Query parameter conventions for equality, comparison, multi-value, sort and search.
- **Error response format:** A consistent error envelope with codes, messages and field-level details.
- **Versioning and deprecation:** URL and header versioning options plus a deprecation timeline with Sunset headers.
- **Rate limiting headers:** Standard rate limit headers, 429 responses and suggested limit tiers.

## Good for

- Design a new set of REST endpoints for a user or order resource
- Add cursor or offset pagination to an existing list endpoint
- Standardize error responses across an API
- Plan how to version a public API and deprecate old endpoints
- Review an API contract for naming and status code mistakes
- Add rate limiting headers and 429 handling to an API

## Install

### Claude Code

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

```sh
/plugin marketplace add AbdullayevTemurmalik/ECC
/plugin install ecc@ecc
```

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/AbdullayevTemurmalik/ECC.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/api-design &&
cp -R "$tmp/.kiro/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/AbdullayevTemurmalik/ECC.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/api-design &&
cp -R "$tmp/.kiro/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/AbdullayevTemurmalik/ECC.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/api-design &&
cp -R "$tmp/.kiro/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/AbdullayevTemurmalik/ECC.git --path .kiro/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/AbdullayevTemurmalik/ECC.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/api-design &&
cp -R "$tmp/.kiro/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/AbdullayevTemurmalik/ECC.git
```

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

## FAQ

### What does the skill need to run?

It is a markdown guide with no scripts. The examples use TypeScript with Next.js, Python with Django REST Framework and Go, and the agent applies the patterns to whatever stack the project uses.

### When does the skill activate?

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

### Does API design change any files?

The skill only supplies guidance and examples. It does not itself modify code or files.

### 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 ecc plugin, which includes it: /plugin marketplace add AbdullayevTemurmalik/ECC, then /plugin install ecc@ecc.

### 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 design, API design and Go API design.

## Where this comes from

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

## Alternatives

- [API design](https://ai-powered.com/skills/api-design-fmarzochi): API design is an open-source agent skill for developer tools.
- [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.
- [API design](https://ai-powered.com/skills/api-design-majiayu000): 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.
- [API and interface design](https://ai-powered.com/skills/api-and-interface-design): API and interface design is an open-source agent skill for design and media.
- [API and interface design](https://ai-powered.com/skills/api-and-interface-design-ajyadav013): API and interface design is an open-source agent skill for design and media.
- [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-abdullayevtemurmalik
