
Api Design Principles
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.
- install copies · 90 days. Times the install command was copied on this site in the last 90 days, bots filtered.
- 8
- skills.sh installs
- 31.3K
- GitHub stars
- 42.4K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add wshobson/agents --skill api-design-principles --agent claude-codeInstalls into .claude/skills of the current project.
Files
API Design Principles
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers and stand the test of time.
When to Use This Skill
- Designing new REST or GraphQL APIs
- Refactoring existing APIs for better usability
- Establishing API design standards for your team
- Reviewing API specifications before implementation
- Migrating between API paradigms (REST to GraphQL, etc.)
- Creating developer-friendly API documentation
- Optimizing APIs for specific use cases (mobile, third-party integrations)
Core Concepts
1. RESTful Design Principles
Resource-Oriented Architecture
- Resources are nouns (users, orders, products), not verbs
- Use HTTP methods for actions (GET, POST, PUT, PATCH, DELETE)
- URLs represent resource hierarchies
- Consistent naming conventions
HTTP Methods Semantics:
GET: Retrieve resources (idempotent, safe)POST: Create new resourcesPUT: Replace entire resource (idempotent)PATCH: Partial resource updatesDELETE: Remove resources (idempotent)
2. GraphQL Design Principles
Schema-First Development
Sponsors
Details
- Repository
- github.com/wshobson/agents
- Categories
- Backend & APIs, DevOps & CI/CD, Design & UI/UX
More from wshobson/agents
All 174- Code Review Excellence30.9K
- Postgresql Table Design28.7K
- Fastapi Templates26.5K
- Security Requirement Extraction26.4K
- Mobile Android Design26K
- Architecture Patterns25.1K
- E2e Testing Patterns25.1K
- Mobile Ios Design24.5K
- Architecture Decision Records24.5K
- Prompt Engineering Patterns24.3K
- Python Design Patterns23.7K
- Error Handling Patterns23.6K
- Modern Javascript Patterns23.3K
- Stride Analysis Patterns22.2K
- Responsive Design22K
- Rust Async Patterns21.9K
- Threat Mitigation Mapping21.2K
- Javascript Testing Patterns21.1K
- Auth Implementation Patterns20.9K
- Sql Optimization Patterns20.4K
- Git Advanced Workflows19.9K
- Dotnet Backend Patterns19.6K
- Async Python Patterns18.8K
- Attack Tree Construction18.8K