API Design Patterns

0•

Guides the selection and implementation of modern API architectures including REST, GraphQL, and tRPC using industry best practices.

This skill provides a comprehensive framework for designing robust and scalable APIs within the Claude Code environment. It moves beyond simple code generation by offering a strategic decision-making tree to help developers choose the right protocol—whether REST, GraphQL, or tRPC—based on specific project requirements. It enforces consistency across response formats, versioning strategies, authentication methods, and security protocols, ensuring that your backend services are professional, maintainable, and secure.

Key Features

01Multi-strategy versioning and OpenAPI documentation best practices
020 GitHub stars
03Standardized response formatting including envelope patterns and pagination
04Integrated API endpoint validation script for project-wide consistency
05Architectural decision tree for REST, GraphQL, and tRPC selection
06Comprehensive security guidance covering JWT, OAuth, and OWASP API Top 10

Use Cases

01Choosing the optimal API protocol for a new full-stack TypeScript monorepo
02Refactoring existing endpoints to follow consistent naming and error handling conventions
03Designing a secure authentication and rate-limiting strategy for public-facing web services