API Design Patterns

•
4
•

Architects robust, modern APIs by guiding the strategic selection and implementation of REST, GraphQL, and tRPC patterns.

The API Patterns skill provides a comprehensive framework for designing high-quality APIs within the Claude Code environment, emphasizing architectural decision-making over boilerplate copying. It offers a structured approach to choosing between REST, GraphQL, and tRPC, while providing deep-dive guidance on critical backend concerns like response formatting, versioning strategies, authentication patterns, and rate limiting. Whether you are bootstrapping a new microservice or refactoring a legacy system, this skill ensures your API is secure, scalable, and follows industry best practices for 2025 and beyond.

Key Features

01Comprehensive security patterns covering JWT, OAuth, Passkey, and OWASP API Top 10
02Strategic decision trees for selecting REST, GraphQL, or tRPC based on project context
03Built-in API validator script for automated endpoint consistency checks
044 GitHub stars
05Standardized response structures including envelope patterns, error formats, and pagination
06Multi-method versioning guidance for URI, Header, and Query-based evolution

Use Cases

01Standardizing error handling and response consistency across a suite of backend services
02Determining the most efficient API protocol for a new TypeScript monorepo or cross-platform application
03Planning and implementing API rate limiting and protection strategies to prevent service abuse