Skip to content

Opinionated REST conventions covering naming, HTTP methods, status codes, and response envelopes for new APIs.

CCM score
54 of 100
skills.sh installs
614
GitHub stars
257
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers resource naming, HTTP method semantics with idempotency, status code selection, and JSON response and collection formats
  • Includes a method table marking GET, PUT, PATCH, and DELETE as idempotent, plus a 16-code status table with use cases
  • Provides query parameter conventions for filtering, sorting with a - prefix, pagination, and field selection
  • Designed for teams establishing API conventions or designing developer-friendly interfaces before implementation begins

Install

$ npx -y skills add secondsky/claude-skills --skill rest-api-design -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

REST API Design

Design RESTful APIs with proper conventions and developer experience.

Resource Naming

# Good - nouns, plural, hierarchical
GET    /api/users
GET    /api/users/123
GET    /api/users/123/orders
POST   /api/users
PATCH  /api/users/123
DELETE /api/users/123

# Bad - verbs, actions in URL
GET    /api/getUsers
POST   /api/createUser
POST   /api/users/123/delete

HTTP Methods

MethodPurposeIdempotent
GETRead resourceYes
POSTCreate resourceNo
PUTReplace resourceYes
PATCHPartial updateYes
DELETERemove resourceYes

Status Codes

CodeMeaningUse For
200OKSuccessful GET, PATCH
201CreatedSuccessful POST
204No ContentSuccessful DELETE
400Bad RequestValidation errors
401UnauthorizedMissing auth
403ForbiddenInsufficient permissions
404Not FoundResource doesn't exist
429Too Many RequestsRate limited

Response Format

Details

Repository
github.com/secondsky/claude-skills
Categories
Backend & APIs, Technical Documentation
First seen
Jun 3, 2026

Questions

What does the rest-api-design skill do?

The rest-api-design skill designs RESTful APIs with proper resource naming, HTTP methods, status codes and response formats. It guides the agent to use plural nouns for resources, version APIs through the URL path and include pagination for collections.

Who is the rest-api-design skill for?

The rest-api-design skill is for developers building new APIs, establishing API conventions or designing developer-friendly interfaces. It helps an agent apply consistent REST conventions from the start of a project.

How do I install the rest-api-design skill?

Run npx -y skills add secondsky/claude-skills --skill rest-api-design -y in a project to install the rest-api-design skill. Once installed, the agent can design REST endpoints, status codes and JSON response bodies following its conventions.

Where does rest-api-design stand in the Backend and APIs category?

The rest-api-design skill is listed in the Backend and APIs category on Claude Marketplaces, alongside entra-app-registration, neon, firebase-basics, firebase-auth-basics and workers-best-practices. It sets itself apart by focusing on REST resource naming, HTTP methods and status code choices.

More from secondsky/claude-skills

All 116

Similar to Rest Api Design

More Backend & APIs