api-design-principles

Define REST and GraphQL API design plans with consumers, resources, errors, versioning, pagination, and authentication.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers and stand the test of time.

Core Features & Use Cases

  • Guidelines for designing new REST or GraphQL APIs, reviewing API specifications, and establishing API design standards for your team.
  • Patterns for errors, versioning, pagination, auth strategies, and API documentation with practical templates and checklists.
  • Examples and templates referenced in the implementation playbook to ensure consistent, production-ready designs.

Quick Start

Implement a complete API design plan by defining consumers, use cases, constraints, selecting API style, modeling resources, specifying errors, versioning, pagination, and authentication, and validating with examples and templates from the implementation playbook.

Frequently Asked Questions about api-design-principles

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

FAQPage Schema
What's the best way to structure REST and GraphQL APIs for long-term maintainability?

To structure REST and GraphQL APIs for maintainability, define your consumers and constraints first, then apply consistent patterns for resource modeling, errors, versioning, pagination, and authentication. This ensures intuitive and scalable designs.

How do I design an API plan from scratch using this principled approach?

Design an API plan by defining consumers, use cases, and constraints, selecting an API style, modeling resources, and specifying errors, versioning, pagination, and authentication. Validate your design using examples and templates from the implementation playbook.

When should I choose REST versus GraphQL for my API design?

Choose between REST and GraphQL by evaluating your defined consumers, use cases, and constraints. The API design principles guide you through selecting the appropriate API style based on your specific resource modeling and data fetching requirements.

What patterns should I use for API pagination, errors, and versioning?

For API pagination, errors, and versioning, apply the provided design patterns and checklists. These templates offer production-ready guidance to ensure consistent handling of these critical API components across your team.

Can I use these API design principles to establish standards for my development team?

Yes, you can use these API design principles to establish team standards. The Skill provides guidelines for reviewing API specifications and includes practical checklists to ensure consistent, production-ready REST and GraphQL designs across your organization.