API Design Patterns & Architecture

0•

Guides the architectural design and implementation of modern APIs using decision frameworks for REST, GraphQL, and tRPC.

This skill equips Claude with specialized knowledge of modern API design principles to help developers navigate complex architectural decisions. It provides structured guidance on selecting the right protocol—whether REST, GraphQL, or tRPC—based on specific project requirements like type safety or client flexibility. Beyond basic implementation, it enforces best practices for response formatting, versioning, authentication, and rate limiting, ensuring that backend services are secure, scalable, and follow 2025 industry standards. It is particularly useful for planning API evolution and conducting security audits against common vulnerabilities.

Key Features

01Automated API validation scripts and OpenAPI documentation best practices
020 GitHub stars
03Multi-strategy versioning guidance (URI, Header, and Query patterns)
04Security-first approach covering JWT, OAuth, and OWASP API Top 10
05Comprehensive decision trees for REST vs GraphQL vs tRPC selection
06Standardized patterns for error handling, pagination, and response envelopes

Use Cases

01Auditing existing API endpoints for security vulnerabilities and performance bottlenecks
02Designing a type-safe API layer for a TypeScript monorepo using tRPC
03Architecting a scalable RESTful service with consistent resource naming and status codes