api-design-principles

Design REST and GraphQL APIs with schema-first patterns and versioning strategies.

1|1|Updated Apr 16, 2026
One-click install
npx skills add https://github.com/iCesofT/awesome-ai --skill api-design-principles-icesoft
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-design-principles
Source: https://github.com/iCesofT/awesome-ai/tree/main/agents/skills/api-design-principles
Command: npx skills add https://github.com/iCesofT/awesome-ai --skill api-design-principles-icesoft

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

APIs often suffer from inconsistent design, unclear guidelines, and hard-to-use documentation, slowing teams and frustrating developers.

Core Features & Use Cases

  • Schema-first REST and GraphQL design patterns to ensure consistent contracts across services.
  • Comprehensive versioning strategies (URL, header, and query) with deprecation workflows.
  • Robust pagination, error handling, and observability practices to improve reliability.
  • Documentation governance and discovery patterns to accelerate onboarding and integration.

Quick Start

Design a new REST or GraphQL API by applying a schema-first approach and the versioning, pagination, and error-handling patterns described above.

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?

REST and GraphQL API design best practices involve applying schema-first patterns, robust versioning, clear pagination, and structured error handling to ensure consistent contracts, scalability, and developer usability across services.

How do I choose an API versioning strategy for my endpoints?

API versioning strategies include URL, header, and query parameter methods. Choosing one depends on your routing needs, but you must also implement structured deprecation workflows to transition users smoothly without breaking existing integrations.

How should I structure error handling and pagination in my API?

API error handling and pagination should follow standardized patterns to improve reliability. Implement consistent error response schemas and robust pagination links or cursors to manage large datasets and enhance observability.

Does a schema-first approach work for both REST and GraphQL APIs?

A schema-first approach works for both REST and GraphQL APIs by defining a clear contract before implementation. This ensures consistent resource modeling, accelerates onboarding, and establishes shared internal API design standards across teams.

What is the best way to govern API documentation and discovery?

API documentation governance requires applying discovery patterns and clear guidelines to your specs. This accelerates developer onboarding and integration by ensuring documentation remains consistent, usable, and tightly coupled to your API contracts.

When should I establish internal API design standards?

You should establish internal API design standards when your APIs suffer from inconsistent design or unclear guidelines. Applying principled patterns for resource modeling and versioning resolves usability issues and slows team velocity.