API Design Patterns

0•

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

This skill provides comprehensive architectural guidance for designing robust, scalable, and secure APIs in 2025. It moves beyond simple pattern copying by offering decision trees for selecting between REST, GraphQL, and tRPC based on specific project contexts. Users can leverage detailed implementation patterns for resource naming, response structuring, versioning, and security hardening. Whether you are architecting a TypeScript monorepo using tRPC or a public-facing RESTful service, this skill ensures consistency through standardized checklists and automated validation scripts.

Key Features

01Standardized response formatting and error handling patterns
02Automated API endpoint validation scripts for project paths
03Integrated security best practices covering OWASP API Top 10
040 GitHub stars
05Comparative decision trees for REST, GraphQL, and tRPC selection
06Strategic versioning guides for URI, Header, and Query parameters

Use Cases

01Refactoring existing API endpoints to follow industry-standard naming and status codes
02Implementing robust authentication and rate-limiting strategies for public APIs
03Architecting a new backend service and choosing the right communication protocol