A solid reference for REST API conventions that covers the essentials: resource naming with plural nouns, proper HTTP method usage, status code selection, and response formatting. Shows good versus bad URL patterns, includes a clean table of when to use 200 versus 201 versus 204, and demonstrates pagination and filtering with query parameters. The JSON-API inspired response format with data, meta, and links is opinionated but clean. Use this when you're designing a new API from scratch or trying to get your team aligned on consistent conventions. It won't make architectural decisions for you, but it will keep you from reinventing basic patterns or mixing POST and GET semantics.

skills.sh installs
600
GitHub stars
248
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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

Sponsors

Details

Repository
github.com/secondsky/claude-skills
Categories
Backend & APIs, Code Review & Quality, Design & UI/UX
First seen
Jun 3, 2026

More from secondsky/claude-skills

All 146
1manutej avatarrest-api-design-patternsmanutej/luxor-claude-marketplaceComprehensive guide for designing RESTful APIs including resource modeling, versioning strategies, HATEOAS, pagination, filtering, and HTTP best practices527skills.sh installs
2kubesphere avatarkubesphere-gateway-apikubesphere/kubesphereKubeSphere Gateway API extension management Skill (Traefik based, uses Kubernetes Gateway API + GatewayProxy CRD gatewayapi.kubesphere.io/v1alpha1). This is the0skills.sh installs
3manutej avatarPostgreSQL Database Administrationmanutej/luxor-claude-marketplaceComprehensive PostgreSQL database administration skill for customer support tech enablement, covering database design, optimization, performance tuning, backup/0skills.sh installs
4prisma avatarprisma-cliprisma/skillsPrisma ORM CLI commands reference covering init, generate, migrate, db, dev, complete, studio, validate, format, debug, and mcp. Use for ORM/database CLI workfl416.7Kskills.sh installs
5prisma avatarprisma-postgres-setupprisma/skillsSet up a new Prisma Postgres database and connect it to a local project using the Management API. Use when asked to "set up a database", "create a Prisma Postgr404.5Kskills.sh installs
6prisma avatarprisma-driver-adapter-implementationprisma/skillsRequired reference for Prisma ORM 7 SQL driver adapter work. Use when implementing or modifying adapters, adding database drivers, or touching SqlDriverAdapter,404.4Kskills.sh installs