Skip to content
Skill

API and interface design

Guides an agent to design stable REST, GraphQL and module interfaces with clear contracts

API and interface design is an open-source agent skill for design and media. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
13
Last commit
License
MIT
Listing updated

Similar skills

About API and interface design

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.

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 7 files (59 KB) on GitHub on 4 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 claude-kit plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

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

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

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

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

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

API and interface design 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.

More from ajyadav013/claude-kit

  1. Guides an agent through pytest, async fixtures and security-regression tests for FastAPI

    • Open source
    • 13 GitHub stars
    • Developer tools
  2. Lets your agent inspect and debug live browser pages via Chrome DevTools MCP

    • Open source
    • 13 GitHub stars
    • Browser automation
  3. Runs concurrent load and stress tests against API endpoints to find latency and throughput

    • Open source
    • 13 GitHub stars
    • Developer tools
  4. Lets an agent click through a feature in a real browser and check how it behaves

    • Open source
    • 13 GitHub stars
    • Developer tools
  5. Runs quick health checks on backend, frontend and login to catch obvious breakage

    • Open source
    • 13 GitHub stars
    • Developer tools
  6. Guides an agent through red-green-refactor, bug reproduction tests and test pyramid

    • Open source
    • 13 GitHub stars
    • Developer tools