api-design-principles

Guide REST and GraphQL API design across teams with codified principles and patterns.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/dereknex/skills --skill api-design-principles-dereknex
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-design-principles
Source: https://github.com/dereknex/skills/tree/main/api-design-principles
Command: npx skills add https://github.com/dereknex/skills --skill api-design-principles-dereknex

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers and stand the test of time. Use when designing new APIs, reviewing API specifications, or establishing API design standards.

Core Features & Use Cases

  • RESTful Design Principles: resource-oriented architecture, HTTP methods semantics, versioning strategies, and consistent naming.
  • GraphQL Design Principles: schema-first development, strongly typed schemas, and real-time update considerations.
  • Best Practices & Patterns: pagination, error handling, deprecation, and monitoring.
  • Use Case: When evaluating API architecture or establishing internal API design standards, apply these guidelines to create developer-friendly, future-proof APIs.

Quick Start

Audit your current API design and apply REST or GraphQL principles to achieve consistency and clarity across all endpoints.

Frequently Asked Questions about api-design-principles

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I design consistent REST and GraphQL APIs across multiple teams?

To design consistent REST and GraphQL APIs, codify proven principles and patterns for resource modeling, versioning, pagination, and error handling. This establishes internal design standards that ensure future-proof, developer-friendly interfaces.

What are the best practices for RESTful resource modeling and HTTP methods?

RESTful design best practices involve resource-oriented architecture, proper HTTP method semantics, consistent naming conventions, and clear versioning strategies. Applying these principles ensures your endpoints remain intuitive, scalable, and maintainable over time.

When should I use GraphQL schema-first development over REST?

GraphQL schema-first development is ideal when you need strongly typed schemas and real-time update capabilities. It differs from REST by providing a structured query layer, allowing clients to request exact data fields while maintaining robust API design consistency.

How do I handle errors and pagination in REST and GraphQL APIs?

Handle errors and pagination in REST and GraphQL APIs by applying standardized design patterns for consistent error responses, cursor or offset pagination, and endpoint deprecation. This improves performance and maintains interface reliability across your architecture.

Can I use these API design principles to audit an existing API specification?

Yes, you can audit existing API specifications using these design principles. Review your current endpoints against validation rules for REST and GraphQL patterns to identify inconsistencies and apply best practices for clarity and scalability.

Do I need specific tooling to establish internal API design standards?

Establishing internal API design standards benefits from recommended tooling that validates schemas against REST and GraphQL patterns. While no specific dependencies are required, applying structured validation rules ensures your API architecture remains consistent and robust.