API Design Patterns

•
3
•

Guides the architectural selection and implementation of modern API patterns including REST, GraphQL, and tRPC.

This skill transforms Claude into a senior API architect, helping you navigate complex design decisions for modern web services. It provides a comprehensive framework for selecting between REST, GraphQL, and tRPC based on specific project constraints, while enforcing rigorous best practices for resource naming, error handling, versioning, and security. Whether you are architecting a TypeScript monorepo or a public-facing REST service, this skill ensures your APIs are consistent, scalable, and secure by focusing on decision-making principles rather than just rote implementation.

Key Features

01Security-first design incorporating OWASP API Top 10 and auth patterns
023 GitHub stars
03Automated API endpoint validation via integrated Python scripts
04Standardized response formatting, envelope patterns, and error handling
05Architectural decision trees for REST, GraphQL, and tRPC selection
06Strategies for API evolution including URI, Header, and Query versioning

Use Cases

01Designing scalable rate-limiting and authentication strategies for public APIs
02Selecting the optimal API protocol for a new full-stack application
03Refactoring legacy endpoints to follow industry-standard naming and status code conventions