This is a decision-making framework for API design, not a collection of boilerplate code. It covers REST versus GraphQL versus tRPC selection, response formats, versioning strategies, authentication patterns, and rate limiting approaches. The skill pushes you to choose based on context rather than defaulting to REST for everything. It includes a content map that tells Claude exactly which file to read for specific questions, from resource naming to OpenAPI documentation. The checklist format is practical: it makes you ask about API consumers and client requirements before jumping into implementation. If you're building APIs and want structured thinking about tradeoffs rather than copy-paste solutions, this handles the architectural decisions upfront.

skills.sh installs
486
GitHub stars
33.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add davila7/claude-code-templates --skill api-patterns --agent claude-code

Installs into .claude/skills of the current project.

Files

API Patterns

API design principles and decision-making for 2025. Learn to THINK, not copy fixed patterns.

🎯 Selective Reading Rule

Read ONLY files relevant to the request! Check the content map, find what you need.


πŸ“‘ Content Map

FileDescriptionWhen to Read
api-style.mdREST vs GraphQL vs tRPC decision treeChoosing API type
rest.mdResource naming, HTTP methods, status codesDesigning REST API
response.mdEnvelope pattern, error format, paginationResponse structure
graphql.mdSchema design, when to use, securityConsidering GraphQL
trpc.mdTypeScript monorepo, type safetyTS fullstack projects
versioning.mdURI/Header/Query versioningAPI evolution planning
auth.mdJWT, OAuth, Passkey, API KeysAuth pattern selection
rate-limiting.mdToken bucket, sliding windowAPI protection
documentation.mdOpenAPI/Swagger best practicesDocumentation
security-testing.mdOWASP API Top 10, auth/authz testingSecurity audits

πŸ”— Related Skills

Sponsors

Details

Repository
github.com/davila7/claude-code-templates
Categories
Backend & APIs, Productivity & Planning, Design & UI/UX
First seen
Jun 3, 2026

More from davila7/claude-code-templates

All 618
1secondsky avatarapi-design-principlessecondsky/claude-skillsMaster REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use when designing new APIs, reviewin479skills.sh installs
2intellectronica avatarupstash-redis-kvintellectronica/agent-skillsRead and write to Upstash Redis-compatible key-value store via REST API. Use when there is a need to save or retrieve key-value data, use Redis features (cachin473skills.sh installs
3secondsky avatarapi-reference-documentationsecondsky/claude-skillsCreates professional API documentation using OpenAPI specifications with endpoints, authentication, and interactive examples. Use when documenting REST APIs, cr465skills.sh installs
4aj-geddes avataraws-rds-databaseaj-geddes/useful-ai-promptsDeploy and manage relational databases using RDS with Multi-AZ, read replicas, backups, and encryption. Use for PostgreSQL, MySQL, MariaDB, and Oracle.453skills.sh installs
5davila7 avatarbackend-patternsdavila7/claude-code-templatesBackend architecture patterns, API design, database optimization, and server-side best practices for Node.js, Express, and Next.js API routes.452skills.sh installs
6secondsky avatardatabase-schema-designsecondsky/claude-skillsDatabase schema design for PostgreSQL/MySQL with normalization, relationships, constraints. Use for new databases, schema reviews, migrations, or encountering m437skills.sh installs