Skip to content

API design principles and decision guidance covering REST, GraphQL, and tRPC selection, response formats, and versioning.

CCM score
55 of 100
skills.sh installs
486
GitHub stars
34.3K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers API style selection (REST, GraphQL, tRPC), resource naming, response envelopes, error formats, and pagination
  • Includes reference files for versioning (URI, header, query), auth (JWT, OAuth, passkeys, API keys), rate limiting, and OpenAPI documentation
  • Provides a pre-design checklist and anti-patterns such as verbs in REST endpoints and unhandled internal error exposure
  • Designed for developers planning or reviewing APIs, with scripts/api_validator.py for endpoint validation

Install

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

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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

Details

Repository
github.com/davila7/claude-code-templates
Categories
Backend & APIs, Technical Documentation
First seen
Jun 3, 2026

More from davila7/claude-code-templates

All 398

Similar to Api Patterns

More Backend & APIs