api-design-principles

Design REST and GraphQL APIs with schema, versioning, and error handling.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill helps teams prevent API design drift by providing practical, standardized patterns for REST and GraphQL APIs, ensuring consistency across services and teams.

Core Features & Use Cases

  • RESTful principles: Resource-oriented design, correct HTTP methods, and consistent URL schemas.
  • GraphQL design: Schema-first approach, strongly typed schemas, and efficient data fetching patterns.
  • Versioning, testing, and documentation: Clear version strategies, error handling conventions, and developer-friendly documentation guidelines.

Quick Start

Draft a RESTful and GraphQL API design spec for a product catalog with versioning, pagination, and robust error handling.

Frequently Asked Questions about api-design-principles

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

FAQPage Schema
What are the best practices for REST and GraphQL API design to prevent schema drift?

REST and GraphQL API design principles prevent schema drift by enforcing resource-oriented design, schema-first approaches, and standardized patterns. This ensures consistent URL schemas and strongly typed schemas across teams.

How do I design a RESTful API with correct HTTP methods and consistent URL schemas?

Designing a RESTful API requires resource-oriented structuring using correct HTTP methods and consistent URL schemas. Applying these design principles ensures your API endpoints remain intuitive and standardized across the service architecture.

When should I use a schema-first approach for GraphQL API data fetching?

A schema-first approach for GraphQL API data fetching is needed when you require strongly typed schemas and efficient data retrieval patterns. This method ensures robust API contracts and prevents design inconsistencies early in development.

How do I implement API versioning strategies and error handling conventions?

Implementing API versioning strategies and error handling conventions involves defining clear version transitions and standardized error responses. This standardization aligns with documentation guidelines to maintain developer-friendly and robust APIs.

Does this API design approach work for both REST and GraphQL ecosystems?

Yes, this API design approach works for both REST and GraphQL ecosystems. It provides standardized patterns covering RESTful principles and GraphQL schema design, ensuring consistent application across different API architectures.

What is the best way to document API pagination and versioning standards?

The best way to document API pagination and versioning standards is to align documentation guidelines with adopted versioning strategies and pagination patterns. This creates developer-friendly references that prevent API design drift.