This gives you solid guidance for designing RESTful APIs, from resource naming to status codes to versioning strategies. It's useful when you're sketching out a new API or refactoring endpoints that have gotten messy. The quick start shows good versus bad patterns at a glance, which is honestly half the battle, and the reference guides cover the practical stuff like pagination, filtering, and OpenAPI documentation. The best practices section is opinionated in a helpful way, like reminding you not to nest resources more than two levels deep. It won't make architectural decisions for you, but it will keep you from common mistakes and give you a checklist when you're not sure if you're doing things the standard way.

skills.sh installs
2.1K
GitHub stars
379
last updated
Aug 21, 2026

Install

$ npx -y skills add aj-geddes/useful-ai-prompts --skill rest-api-design --agent claude-code

Installs into .claude/skills of the current project.

Files

REST API Design

Table of Contents

Overview

Design REST APIs that are intuitive, consistent, and follow industry best practices for resource-oriented architecture.

When to Use

  • Designing new RESTful APIs
  • Creating endpoint structures
  • Defining request/response formats
  • Implementing API versioning
  • Documenting API specifications
  • Refactoring existing APIs

Quick Start

Minimal working example:

✅ Good Resource Names (Nouns, Plural)
GET    /api/users
GET    /api/users/123
GET    /api/users/123/orders
POST   /api/products
DELETE /api/products/456

❌ Bad Resource Names (Verbs, Inconsistent)
GET    /api/getUsers
POST   /api/createProduct
GET    /api/user/123  (inconsistent singular/plural)

Reference Guides

Detailed implementations in the references/ directory:

Sponsors

Details

Repository
github.com/aj-geddes/useful-ai-prompts
Categories
Backend & APIs, Documentation, Code Review & Quality, AI & Agent Building, Design & UI/UX
First seen
Apr 16, 2026

More from aj-geddes/useful-ai-prompts

All 258
1manutej avatarpostgresql-database-engineeringmanutej/luxor-claude-marketplaceComprehensive PostgreSQL database engineering skill covering indexing strategies, query optimization, performance tuning, partitioning, replication, backup and 1.8Kskills.sh installs
2ruvnet avataragent-dev-backend-apiruvnet/rufloAgent skill for dev-backend-api - invoke with $agent-dev-backend-api1.1Kskills.sh installs
3secondsky avatarrest-api-designsecondsky/claude-skillsDesigns RESTful APIs with proper resource naming, HTTP methods, status codes, and response formats. Use when building new APIs, establishing API conventions, or600skills.sh installs
4manutej 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
5kubesphere 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
6manutej 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