api-design-principles

Standardize REST and GraphQL API design with versioning, pagination, and error handling.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Standardize REST and GraphQL API design to reduce confusion across services.

Core Features & Use Cases

  • RESTful and GraphQL design guidelines
  • Versioning, pagination, error handling, and consistent payloads
  • Use case: Designing or reviewing APIs for large teams and multi-service ecosystems.

Quick Start

Apply these guidelines to design and review your next REST or GraphQL API to ensure consistency, scalability, and developer-friendly specifications.

Frequently Asked Questions about api-design-principles

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

FAQPage Schema
How do I standardize REST and GraphQL API design across multiple services?

Standardize REST and GraphQL API design by applying consistent guidelines for versioning, pagination, error handling, and payloads. This reduces confusion across services and establishes team-wide design standards for large multi-service ecosystems.

What are the best practices for REST API versioning and pagination?

Best practices for REST API versioning and pagination involve applying standardized design guidelines to ensure consistent payloads and scalable structures. Using concrete examples, these patterns reduce integration friction and improve developer experience across services.

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

Handle errors consistently in REST and GraphQL APIs by implementing standardized error handling guidelines. Establishing team-wide design standards ensures predictable error payloads, reducing confusion when reviewing specifications or debugging multi-service ecosystems.

When should I use GraphQL instead of REST for my API architecture?

Use GraphQL instead of REST when your API architecture requires standardized patterns for complex data retrieval. Applying specific design guidelines to both REST and GraphQL ensures you choose the right approach for scalability and developer-friendly specifications.

How do I review an API specification for design consistency?

Review an API specification for design consistency by checking it against established REST and GraphQL guidelines. Validate versioning, pagination, error handling, and payload structures using concrete examples to ensure robust and scalable multi-service integration.

What is a data-loader pattern in GraphQL API design?

A data-loader pattern in GraphQL API design is a best-practice mechanism for batching and caching data requests. Applying this guideline ensures consistent payloads and scalable performance across large multi-service ecosystems.