api-design-principles
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers.
Skill by Mr-Wolv
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/mr-wolv-api-design-principles
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design, backend
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
api-design-principles- Description
- Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use when designing new APIs, reviewing API specifications, or establishing API design standards.
- License
- MIT
- Instructions
- 107 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (6)
- SKILL.md
- api-design-checklist.md · assets/
- rest-api-template.py · assets/
- details.md · references/
- graphql-schema-design.md · references/
- rest-best-practices.md · references/
SKILL.md (first lines)
# 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 resources - `PUT`: Replace entire resource (idempotent) - `PATCH`: Partial resource updates - `DELETE`: Remove resources (idempotent) ### 2. GraphQL Design Principles **Schema-First Development** - Types define your domain model - Queries for reading data - Mutations for modifying data - Subscriptions for real-time updates **Query Structure:** - Clients request exactly what they need - Single endpoint, multiple operations - Strongly typed schema - Introspection built-in ### 3. API Versioning Strategies **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 patterns and worked examples Detailed pattern documentation lives in `references/details.md`. Read that file when the navigation tier above is insufficient. ## Best Practices ### REST APIs 1. **Consistent Naming**: Use plural nouns for collections (`/users`, not `/user`) 2. **Stateless**: Each request contains all necessary information 3. **Use HTTP Status Codes Correctly**: 2xx success, 4xx client errors, 5xx server errors 4. **Version Your API**: Plan for breaking changes from day one 5. **Pagination**: Always paginate large collections 6. **Rate Limiting**: Protect your API with rate limits 7. **Documentation**: Use OpenAPI/Swagger for interactive docs ### GraphQL APIs 1. **Schema First**: Design schema before writing resolvers 2. **Avoid N+1**: Use DataLoaders for efficient data fetching 3. **Input Validation**: Validate at schema and resolver levels 4. **Error Handling**: Return structured errors in mutation payloads 5. **Pagination**: Use cursor-based pagination (Relay spec) 6. **Deprecation**: Use `@deprecated` directive for gradual migration 7. **Monitoring**: Track query complexity and execution time ## Common Pitfalls - **Over-fetching/Under-fetching (REST)**: Fixed in GraphQL but requires DataLoaders - **Breaking Changes**: Version APIs or use deprecation strategies - **Inconsistent Error Formats**: Standardize error responses - **Missing Rate Limits**: APIs without limits are vulnerable to abuse - **Poor Documentation**: Undocumented APIs frustrate developers - **Ignoring HTTP Semantics**: POST for idempotent operations breaks expectations - **Tight Coupling**: API structure shouldn't mirror database schema
From Mr-Wolv/Skill_Playground_Bakr101_2026, MIT.
More from Mr-Wolv/Skill_Playground_Bakr101_2026
- 0.479score
architecture-patterns
Mr-Wolv
Implement proven backend architecture patterns including Clean Architecture, Hexagonal Architecture, and Domain-Driven Design.
SkillCFreshness: CClaude Code +9 - 0.476score
api-contract-testing
Mr-Wolv
Verify API contracts between services to ensure compatibility and prevent breaking changes.
SkillCFreshness: CClaude Code +9 - 0.474score
assumption-and-bias-check
Mr-Wolv
Surface hidden assumptions, cognitive biases, blind spots, and overconfidence before a decision or output stands.
SkillCFreshness: CClaude Code +9 - 0.474score
architecture-decision-records
Mr-Wolv
Write and maintain formal Architecture Decision Records (ADRs) for significant technical decisions.
SkillCFreshness: CClaude Code +9 - 0.474score
architecture-review
Mr-Wolv
Review an existing or proposed architecture against requirements, boundaries, risks, operability, and tradeoffs.
SkillCFreshness: CClaude Code +9 - 0.472score
skill-playground
Mr-Wolv
Curated collection of 241 skills — testing, architecture, DevOps, documentation, code quality, and engineering mindset — mirrored with global skill store
SkillCFreshness: CClaude Code +9 - 0.471score
adjacent-disciplines
Mr-Wolv
Systems engineering, HCI, cognitive psychology, game theory, control theory, organizational behavior, technical leadership
SkillCFreshness: CClaude Code +9 - 0.469score
api-tester
Mr-Wolv
Quick API endpoint testing using curl with structured output
SkillCFreshness: CClaude Code +9 - 0.469score
analytical-thinking-patterns
Mr-Wolv
First-principles reasoning, systems thinking, tradeoff analysis, decision frameworks
SkillCFreshness: CClaude Code +9 - 0.469score
api-documenter
Mr-Wolv
Generate API documentation from code, specifications, and endpoint definitions
SkillCFreshness: CClaude Code +9 - 0.469score
autonomous-learner
Mr-Wolv
Self-directed knowledge acquisition guided by analytical frameworks and learning objectives
SkillCFreshness: CClaude Code +9 - 0.463score
aws-cloud-architecture
Mr-Wolv
Comprehensive guide to AWS cloud architecture covering compute, storage, databases, networking, security, serverless, and cost optimization with…
SkillCFreshness: CClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Jul 7, 2026 (3 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.544score
api-design-principles
LeoYeAI
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers.
SkillCFreshness: C★ 2.2KClaude Code +9 - 0.344score
api-design-principles
Narendarcodes
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers.
SkillBFreshness: B★ 4Claude Code +9 - 0.333score
api-design-principles
gaelrenzo
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers.
SkillAFreshness: AClaude Code +9 - 0.300score
api-design-principles
ovachiever
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers.
SkillDFreshness: D★ 55Claude Code +9 - 0.296score
api-design-principles
alexander-kastil
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers.
SkillDFreshness: D★ 19Claude Code +9 - 0.293score
api-design-principles
roadsidedev
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers.
SkillDFreshness: D★ 20Claude Code +9 - 0.288score
api-design-principles
jiho00seo-dev
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers.
SkillDFreshness: D★ 10Claude Code +9 - 0.286score
api-design-principles
scaleto
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers.
SkillDFreshness: D★ 8Claude Code +9 - 0.280score
api-design-principles
chendongqi
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers.
SkillDFreshness: D★ 130Claude Code +9 - 0.279score
api-design-principles
haresh-sai06
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers.
SkillCFreshness: CClaude Code +9 - 0.279score
api-design-principles
relvorlabs
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers.
SkillCFreshness: CClaude Code +9 - 0.274score
api-design-principles
boshi-xixixi
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers.
SkillDFreshness: D★ 7Claude Code +9
More from Mr-Wolv
- 0.479score
architecture-patterns
Mr-Wolv
Implement proven backend architecture patterns including Clean Architecture, Hexagonal Architecture, and Domain-Driven Design.
SkillCFreshness: CClaude Code +9 - 0.476score
api-contract-testing
Mr-Wolv
Verify API contracts between services to ensure compatibility and prevent breaking changes.
SkillCFreshness: CClaude Code +9 - 0.474score
assumption-and-bias-check
Mr-Wolv
Surface hidden assumptions, cognitive biases, blind spots, and overconfidence before a decision or output stands.
SkillCFreshness: CClaude Code +9 - 0.474score
architecture-decision-records
Mr-Wolv
Write and maintain formal Architecture Decision Records (ADRs) for significant technical decisions.
SkillCFreshness: CClaude Code +9 - 0.474score
architecture-review
Mr-Wolv
Review an existing or proposed architecture against requirements, boundaries, risks, operability, and tradeoffs.
SkillCFreshness: CClaude Code +9 - 0.472score
skill-playground
Mr-Wolv
Curated collection of 241 skills — testing, architecture, DevOps, documentation, code quality, and engineering mindset — mirrored with global skill store
SkillCFreshness: CClaude Code +9
Cite this page
api-design-principles skill. Agent Mart. https://agentmart.dev/skills/mr-wolv-api-design-principles (last updated 2026-10-24)