api-design-principles

Provide best-practice guidance for designing REST and GraphQL APIs.

1|Updated Feb 7, 2026
One-click install
npx skills add https://github.com/meet1075/hackathon --skill api-design-principles-meet1075
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-design-principles
Source: https://github.com/meet1075/hackathon/tree/main/chatbot/.agents/skills/api-design-principles
Command: npx skills add https://github.com/meet1075/hackathon --skill api-design-principles-meet1075

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Inconsistent REST and GraphQL API design, ambiguous guidelines, and fragmented patterns hinder developer productivity and API quality.

Core Features & Use Cases

  • Centralized design principles for REST and GraphQL, including resource modeling, versioning, pagination, error handling, and documentation.
  • Applicable to designing new APIs, auditing existing specifications, establishing team standards, and guiding migrations between REST and GraphQL.
  • Real-world benefits include consistent APIs, improved developer experience, and clearer governance.

Quick Start

Provide a complete API design brief and a sample endpoint specification following the principles.

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 at scale?

Best practices for REST and GraphQL API design involve adhering to schema-first principles, utilizing DataLoader patterns, and standardizing error payloads to ensure consistency and scalability.

How do I design a consistent error handling and pagination strategy for APIs?

Design consistent error handling and pagination by implementing standardized error payloads across REST and GraphQL, ensuring scalable resource modeling and clearer API governance.

What is the schema-first approach for GraphQL and REST API versioning?

The schema-first approach for API versioning requires defining the contract before implementation, establishing centralized design principles for resource modeling and documentation across REST and GraphQL.

How do I audit existing API specifications for consistency and standards?

Audit existing API specifications by evaluating them against centralized design principles, checking for standardized error payloads, proper versioning, and consistent pagination strategies.

REST vs GraphQL: which API design approach should I use for my project?

Choosing between REST and GraphQL depends on your specific use case, but this guidance treats both equally, providing centralized design principles for resource modeling, versioning, and documentation across either paradigm.

How do I migrate an existing API to follow standardized REST or GraphQL principles?

Migrate existing APIs by applying schema-first principles, adopting the DataLoader pattern for GraphQL, and standardizing error payloads to establish consistent team standards and improve developer experience.