Skip to content

Guide · Agent skill

How to use the API Design Patterns agent skill (api-design)

Updated · written with AI from the project's own documentation and checked against our catalogue data

The api-design skill is a set of instructions that an AI agent loads when you ask it to design or review a REST API, the kind of web interface apps use to talk to a server. It is for backend developers, API reviewers and teams building public or partner-facing APIs. After this guide you will know what the skill covers, how to install it, how to trigger it with plain requests, and what it does and does not do.

API Design Patternsaffaan-m/ECC · MIT

Quick start

  1. 1Download the ZIP. Download the api-design skill ZIP from this page.
  2. 2Unzip the skill folder. Unzip it into ~/.claude/skills/ for all projects, or into .claude/skills/ inside one project.
  3. 3Or upload it in the Claude apps. In the Claude apps, open Settings, go to Capabilities, then Skills, and upload the skill.
  4. 4Make a natural request. Describe your endpoints and ask for a design or review, for example about resource names, status codes or pagination.
  5. 5Check the suggestions. Compare the agent's proposed changes against your own requirements and any existing API standard before applying them.

What the api-design skill makes the agent do

An agent skill is a folder with a SKILL.md file that describes how to handle a certain kind of task. When the skill is active, the agent follows the conventions in that file instead of its general defaults. This skill covers REST API design: resource naming, HTTP status codes, response formats, pagination, filtering, sorting, search, authentication patterns, versioning and rate limiting.

In practice, the agent uses these rules to design new endpoints or to check an existing API contract and suggest fixes. The skill's own guidance says to use plural, lowercase, kebab-case resource names, for example /api/v1/team-members, and to avoid verbs and snake_case in URLs.

  • Resource names: plural nouns in kebab-case, with nested paths for ownership such as /api/v1/users/:id/orders
  • Status codes: 201 with a Location header for created resources, 400 or 422 with field-level details for validation failures, 429 for rate limits
  • Responses: a data envelope, collection responses with meta and links, and a structured error object with code, message and details
  • Pagination: offset-based for admin screens and search, cursor-based for feeds and large or public datasets
  • Filtering and sorting: bracket operators such as price[gte], comma-separated values and a leading minus for descending sort

How do you install the api-design skill?

There are two ways to install it. Download the ZIP from this page and unzip it into one of these folders: ~/.claude/skills/ to make it available in all your projects, or the .claude/skills/ folder inside a single project to limit it to that project.

If you use the Claude apps instead, open Settings, go to Capabilities, then Skills, and upload the skill there. Either way, the folder should contain the files listed for this skill: SKILL.md and agents/openai.yaml.

  • Option A (all projects): unzip into ~/.claude/skills/
  • Option B (one project): unzip into the .claude/skills/ folder of that project
  • Option C (Claude apps): Settings, then Capabilities, then Skills, then upload

How do you trigger the skill with natural requests?

You do not need a special command. The skill describes when it applies: designing or reviewing REST endpoints, resource names, status codes, pagination or versioning. Ask in those terms and the agent should load it. Naming the skill directly in your request can also help.

Give the agent your endpoints, resource list or existing contract, and say what you want: a design proposal, a review, or a list of problems.

  • Design new endpoints for an orders feature with cancel and refund actions
  • Review this list of routes for naming and status code mistakes
  • Should this search endpoint use offset or cursor pagination?
  • Plan how to version our public API before the first partner release
  • Use the api-design skill to check these error responses

What does a typical result look like?

Suppose you paste in routes such as /api/v1/getUsers and /api/v1/team_members. Based on the skill's naming rules, the agent should flag the verb in the URL and the snake_case, and suggest /api/v1/users and /api/v1/team-members. It can also suggest that a cancel action such as POST /api/v1/orders/:id/cancel is an acceptable use of a verb, since the skill allows verbs for actions that do not map to CRUD.

For error handling, the skill's common mistakes section says to avoid returning 200 with an error body. The agent should instead suggest the matching HTTP status and a structured error like the example in the skill, with a code, a message and field-level details for validation failures.

HTTP/1.1 404 Not Found\n{ "error": { "code": "not_found", "message": "User not found" } }

What does the skill need, and what should you watch for?

The skill lists no requirements. It does not run scripts and does not use the network, so it only supplies written guidance to the agent. Your agent still reads your code or contracts as you share them, so only share what you are comfortable sharing.

The skill is REST-specific. It does not address GraphQL or gRPC. If your team already has an internal API standard, the skill's defaults may conflict with it, so tell the agent which standard to follow or leave the skill off for that work.

  • Requirements: none listed
  • Runs scripts: no
  • Uses network: no
  • Not for GraphQL or gRPC
  • Can conflict with an established internal API standard

Tips for getting better results

Give the agent real context. Paste the full route list, example request and response bodies, and the clients that consume the API. The skill's advice on pagination and versioning depends on how the data grows and who depends on it.

Ask for a review in stages: naming first, then status codes, then responses. This makes the changes easier to check. The rate-limiting guidance in the skill describes the X-RateLimit headers and a 429 response with Retry-After, so ask about those specifically if you need them.

  • Paste real routes and bodies, not summaries
  • Name your existing conventions if you have any
  • Review in stages: naming, then status codes, then responses
  • Check the agent's suggested status codes against your framework's behaviour

What people use it for

  • Designing a new set of REST endpoints for an orders or user-management feature
  • Reviewing an API contract before a public or partner release
  • Choosing between offset and cursor pagination for a search or feed endpoint
  • Checking error responses so that validation failures return 400 or 422 with field details

Frequently asked questions

How do I install the api-design agent skill?

Download the ZIP from this page and unzip it into ~/.claude/skills/ for all projects, or into .claude/skills/ inside a single project. In the Claude apps, you can instead upload it under Settings, then Capabilities, then Skills.

Is the api-design skill free to use?

The skill is released under the MIT licence, as stated on this page. It lists no requirements, and it does not run scripts or use the network.

What does the api-design skill require?

The skill lists no requirements. It is a set of written instructions that the agent follows when you ask about REST API design.

Does the api-design skill work with GraphQL or gRPC?

No. The skill's guidance is REST-specific and does not address GraphQL or gRPC. Use it only for REST endpoints, resource names, status codes, pagination or versioning.

Why isn't my agent using the api-design skill?

Ask in terms the skill describes, such as designing or reviewing REST endpoints, status codes, pagination or versioning. Check that the folder is in ~/.claude/skills/ or the project's .claude/skills/, or that it was uploaded under Settings, then Capabilities, then Skills.

Should I use this skill if my company already has API standards?

Only with care. The skill's conventions may conflict with an established internal standard, and the agent could push the wrong defaults. Tell the agent which standard to follow, or leave the skill off for that work.

New agent skills, repos and AI tools — every week

The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.

Our verdict

Use this skill if you design or review REST endpoints and want consistent naming, status codes, response shapes, pagination and versioning from your agent. Pick something else if you build GraphQL or gRPC services, or if your team already has an internal API standard that the skill's defaults would contradict.

Download the skill