# API and interface design

> API and interface design is an open-source agent skill for design and media. Guides an agent to design stable REST, GraphQL and module interfaces with clear contracts. 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/ajyadav013/claude-kit/tree/main/providers/codex/claude-kit/skills/api-and-interface-design
- **Repository:** https://github.com/ajyadav013/claude-kit
- **GitHub stars:** 13
- **License:** MIT
- **Skill name:** api-and-interface-design
- **Collection:** https://github.com/ajyadav013/claude-kit
- **Categories:** [design and media](https://ai-powered.com/categories/design-and-media), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill gives the agent a set of design principles for interfaces that are hard to misuse, covering REST and GraphQL endpoints, module boundaries, component props and type contracts between frontend and backend. It pushes the agent to define the contract before implementation, keep error responses in one consistent shape, and extend interfaces additively rather than changing existing fields.

The guidance includes concrete patterns for resource naming, pagination, partial PATCH updates, idempotency keys, long-running operations returning 202 with a pollable operation resource, and HTTP caching with ETag, Cache-Control and Retry-After. It also shows TypeScript patterns such as discriminated unions, input and output type separation and branded ID types, and it includes a checklist and red flags to review a design against.

The skill is written as prose and code examples in a single SKILL.md, with two reference files of source digests. It has no scripts, and the examples are in TypeScript, so the agent works in any stack but the snippets assume a TypeScript-style codebase.

## When your agent uses it

> Stable API and interface design patterns. Use when designing REST/GraphQL endpoints, module boundaries, type contracts between modules or frontend/backend, or changing public interfaces.

## What it can access

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

- [Instructions only, no scripts](https://github.com/ajyadav013/claude-kit/tree/HEAD/providers/codex/claude-kit/skills/api-and-interface-design)
- [License: MIT](https://github.com/ajyadav013/claude-kit/tree/HEAD/providers/codex/claude-kit/skills/api-and-interface-design)

## Features

- **Contract-first interface design:** Defines the interface and its typed inputs and outputs before any implementation is written.
- **Consistent error semantics:** Sets one structured error shape and a status code mapping used across all endpoints.
- **Boundary validation rules:** Identifies where input should be validated, such as route handlers and third-party responses, and where it should not.
- **Backward-compatible evolution:** Covers adding optional fields and avoiding type changes or removals that break existing consumers.
- **Caching and concurrency headers:** Explains Cache-Control, ETag, If-Match and Retry-After choices for REST responses.
- **Type-safe TypeScript patterns:** Shows discriminated unions, input and output separation and branded ID types.

## Good for

- Design REST endpoints for a new task management feature
- Plan pagination and filtering for a list API
- Define the type contract between a frontend and backend
- Add idempotency keys to a payment or create endpoint
- Review an existing API for breaking changes before release
- Standardize error responses across several services

## Install

### Claude Code

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

```sh
/plugin marketplace add ajyadav013/claude-kit
/plugin install claude-kit@claude-kit
```

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/api-and-interface-design &&
cp -R "$tmp/providers/codex/claude-kit/skills/api-and-interface-design" ~/.claude/skills/api-and-interface-design &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/api-and-interface-design` inside it instead.

### Codex

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/api-and-interface-design &&
cp -R "$tmp/providers/codex/claude-kit/skills/api-and-interface-design" ~/.agents/skills/api-and-interface-design &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/api-and-interface-design` inside it instead.

### Cursor

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/api-and-interface-design &&
cp -R "$tmp/providers/codex/claude-kit/skills/api-and-interface-design" ~/.cursor/skills/api-and-interface-design &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/api-and-interface-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/ajyadav013/claude-kit.git --path providers/codex/claude-kit/skills/api-and-interface-design
```

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

### VS Code

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/api-and-interface-design &&
cp -R "$tmp/providers/codex/claude-kit/skills/api-and-interface-design" ~/.copilot/skills/api-and-interface-design &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/api-and-interface-design` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git
```

Then copy `claude-kit/providers/codex/claude-kit/skills/api-and-interface-design` into your agent's skills folder as `api-and-interface-design`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does API and interface design trigger?

It applies when designing REST or GraphQL endpoints, module boundaries, type contracts between modules or frontend and backend, or when changing public interfaces.

### Does API and interface design run any scripts or need extra tools?

No. The skill has no scripts and does not set allowed tools. It consists of instructions and examples.

### Which language are the examples in?

The code examples are in TypeScript, though the guidance on REST semantics and caching is described as stack-agnostic.

### How do I install API and interface design in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/api-and-interface-design to use it in all your projects, or to .claude/skills/api-and-interface-design in one project. Or install the claude-kit plugin, which includes it: /plugin marketplace add ajyadav013/claude-kit, then /plugin install claude-kit@claude-kit.

### Does API and interface 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 and interface 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 and interface design?

The closest alternatives to API and interface design are API and interface design, API design, API design, API design and API design.

## Where this comes from

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

## Alternatives

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

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