api-design-principles

Apply REST and GraphQL design principles to API projects.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Design teams struggle to build REST and GraphQL APIs that are intuitive, scalable, and easy to maintain. This skill provides a structured approach to apply consistent design patterns, ensure proper versioning, and align across specifications and documentation. It helps reduce rework by codifying best practices for resource modeling, schema design, error handling, pagination, and developer experience.

Core Features & Use Cases

  • REST Design Principles: Resource-oriented architecture, HTTP methods semantics, stable URL structures.

  • GraphQL Design Principles: Schema-first development, typed schemas, queries, mutations, subscriptions.

  • Versioning Strategies, Pagination, Error Handling, Documentation.

  • Use Cases: Designing new APIs, reviewing API specifications, establishing API design standards.

Quick Start

Apply these principles when drafting a new API spec or reviewing an existing API design to ensure consistency.

Frequently Asked Questions about api-design-principles

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

FAQPage Schema
What are the core REST and GraphQL API design principles for building scalable APIs?

Core REST and GraphQL API design principles enforce resource-oriented architecture, HTTP method semantics, schema-first development, and typed schemas to create consistent and scalable APIs. These patterns ensure stable URL structures and intuitive developer experiences.

How do I design consistent API versioning, pagination, and error handling?

To design consistent API versioning, pagination, and error handling, apply structured patterns across REST resources and GraphQL schemas during the design phase. This codification enforces stable versioning strategies and standardized error responses across API programs.

How do I review an existing API specification for design consistency?

Review an existing API specification by applying REST and GraphQL design principles to validate resource modeling, schema typing, versioning strategies, and documentation. This review process identifies inconsistencies and ensures alignment with established API standards.

When should I choose GraphQL schema-first development over REST resource modeling?

Choose GraphQL schema-first development when you need typed schemas for queries, mutations, and subscriptions, whereas REST resource modeling suits stable URL structures with HTTP method semantics. Both approaches enforce specific API design patterns for scalability.

Can I use these API design principles to establish team-wide API standards?

Yes, you can apply these API design principles across design, review, and standards tasks within API programs and teams. Codifying best practices for resource modeling, error handling, and pagination reduces rework and aligns project specifications.

Why does my API design struggle with maintainability and developer experience?

Your API design struggles with maintainability when it lacks codified patterns for versioning, error handling, and pagination. Applying structured REST and GraphQL design principles ensures proper documentation, consistent resource modeling, and an intuitive developer experience.