
Solid coverage of both REST and GraphQL design patterns with practical examples you can actually use. The skill walks through resource-oriented URL design, proper HTTP method semantics, pagination strategies, and error handling patterns. For GraphQL, it covers schema-first development, resolver patterns, and Relay-style connections. What I like is the concrete code examples showing FastAPI implementations and real schema definitions rather than just theoretical advice. You'll want this when establishing API standards for a team or when you're designing a new API and need to make sure you're following proven patterns rather than reinventing the wheel.
$ npx -y skills add wshobson/agents --skill api-design-principles --agent claude-codeInstalls into .claude/skills of the current project.
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers and stand the test of time.
Resource-Oriented Architecture
HTTP Methods Semantics:
GET: Retrieve resources (idempotent, safe)POST: Create new resourcesPUT: Replace entire resource (idempotent)PATCH: Partial resource updatesDELETE: Remove resources (idempotent)Schema-First Development
Query Structure:
URL Versioning:
/api/v1/users
/api/v2/users
Header Versioning:
Accept: application/vnd.api+json; version=1
Query Parameter Versioning:
/api/users?version=1
Detailed pattern documentation lives in references/details.md. Read that file when the navigation tier above is insufficient.
/users, not /user)@deprecated directive for gradual migrationSponsors