api-design-principles

Design REST and GraphQL APIs with resource modeling, versioning, and error handling.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

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

Core Features & Use Cases

  • Comprehensive REST and GraphQL design guidelines
  • Patterns for versioning, pagination, error handling, and documentation
  • Real-world scenarios and best-practice checklists
  • Reference templates for API spec reviews and code scaffolding

Quick Start

Create an API design brief that specifies resources, endpoints, versioning, and error contracts for a new service.

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 principles for REST and GraphQL API design?

Core REST and GraphQL API design principles focus on resource modeling, versioning, error handling, and documentation to build intuitive, scalable, and maintainable APIs. These guidelines ensure consistent interfaces across services.

How do I design a new REST API with proper versioning and error handling?

Design a new REST API by creating a design brief that specifies resources, endpoints, versioning, and error contracts. Apply established patterns for pagination and error handling to ensure reliable service interactions.

When should I use GraphQL versus REST for my API architecture?

GraphQL and REST serve different architectural needs. This design guidance provides comprehensive patterns for both paradigms, helping you establish scalable resource modeling and documentation standards tailored to your specific application requirements.

Can I use these API design guidelines to review existing API specifications?

Yes, these API design guidelines include reference templates specifically for API spec reviews. You can evaluate existing REST and GraphQL specifications against best-practice checklists to ensure robust error handling and proper versioning.

What is the best way to establish API design standards across multiple teams?

Establish API design standards across teams by applying principled design guidelines for REST and GraphQL. Use real-world scenarios and reference templates to align development teams on resource modeling, versioning, and documentation practices.