api-design-principles

Guide RESTful and GraphQL API design with versioning and error handling.

6|1|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/boshi-xixixi/agenticflow-skills --skill api-design-principles-boshi-xixixi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-design-principles
Source: https://github.com/boshi-xixixi/agenticflow-skills/tree/main/skills/02_Architect_APIDesign
Command: npx skills add https://github.com/boshi-xixixi/agenticflow-skills --skill api-design-principles-boshi-xixixi

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps developers design, review, and standardize intuitive, scalable, and maintainable REST and GraphQL APIs, ensuring a better developer experience.

Core Features & Use Cases

  • RESTful Design: Adheres to resource-oriented architecture, HTTP methods, and consistent naming.
  • GraphQL Design: Employs schema-first development, efficient query structures, and type safety.
  • Use Case: When starting a new microservice, use this Skill to ensure the new API adheres to established best practices for resource naming, error handling, and versioning, making it easy for other services and developers to integrate with.

Quick Start

Use the api-design-principles skill to generate a RESTful API design for a user management system.

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 RESTful API design and resource naming?

RESTful API design best practices enforce resource-oriented architecture, consistent naming conventions, and proper HTTP methods. Adhering to these principles ensures your endpoints remain intuitive, scalable, and maintainable for long-term integration.

How do I design a GraphQL schema for better developer experience?

Designing a GraphQL schema for developer experience requires a schema-first development approach. Defining efficient query structures and ensuring strict type safety allows clients to fetch exactly the data they need without over-fetching.

What is the best way to handle API versioning and errors in microservices?

The best way to handle API versioning and errors in microservices is to establish standardized strategies early. Implementing consistent error handling and clear versioning paths prevents breaking changes and improves overall system scalability.

When should I choose GraphQL over REST for my new API?

Choose GraphQL over REST when clients require flexible, precise data retrieval via complex query structures. REST remains preferable for standardized, resource-oriented architecture where consistent HTTP methods dictate simple cacheable interactions.

Can I use these API design principles to refactor an existing API?

You can use these API design principles to refactor existing APIs by applying resource-oriented design patterns and standardizing error handling. Refactoring with these guidelines improves maintainability and ensures better developer experience.