API Design Best Practices

•
2
•

Implements and enforces industry-standard REST and GraphQL design patterns for robust, scalable web services.

The api-design skill provides specialized guidance for architecting production-grade APIs, ensuring consistent resource modeling, error handling, and pagination across both REST and GraphQL protocols. It acts as an embedded consultant within Claude Code to help developers avoid common pitfalls like improper HTTP status codes, inefficient offset-based pagination, or brittle GraphQL schema designs, ultimately fostering more maintainable, predictable, and scalable backend architectures.

Key Features

012 GitHub stars
02Uniform error envelopes with machine-readable codes and request IDs
03GraphQL schema best practices including Relay-style pagination and type-based errors
04Scalable cursor-based pagination and idempotency implementation
05Resource-based REST modeling with standardized HTTP status codes
06API versioning strategies and observability integration

Use Cases

01Designing a new RESTful resource from scratch with proper naming and status codes
02Migrating existing APIs to cursor-based pagination for improved performance and concurrency
03Reviewing GraphQL schemas to ensure correct nullability, mutation structure, and error types