api-design-principles

Design REST and GraphQL APIs with resource-oriented conventions and schema patterns.

2|Updated Apr 23, 2026
One-click install
npx skills add https://github.com/gajjalaashok75-UI/GakrCLI --skill api-design-principles-gajjalaashok75-ui
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-design-principles
Source: https://github.com/gajjalaashok75-UI/GakrCLI/tree/main/assets/skills/API-Atlas/api-design-principles
Command: npx skills add https://github.com/gajjalaashok75-UI/GakrCLI --skill api-design-principles-gajjalaashok75-ui

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps you design APIs that are clear, consistent, and resilient, reducing developer confusion, integration bugs, and long-term maintenance costs.

Core Features & Use Cases

  • REST API Design: Shape resource-oriented endpoints, HTTP methods, status codes, pagination, filtering, and versioning for clean public interfaces.
  • GraphQL Schema Design: Define types, queries, mutations, subscriptions, and pagination patterns that avoid common pitfalls like N+1 queries.
  • Practical Review and Implementation: Use the checklist, playbook, and templates to evaluate an API spec, standardize team conventions, or build a production-ready FastAPI service.
  • Use Case: A team preparing a new customer-facing API can apply this Skill to choose endpoint structure, define error formats, document auth, and validate the design before implementation.

Quick Start

Ask for a review of your API design or have it generate a REST or GraphQL contract for your use case.

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 design REST API endpoints for scalability and maintainability?

Designing REST API endpoints for scalability requires shaping resource-oriented conventions, applying correct HTTP methods, standardizing status codes, and implementing robust pagination and filtering for clean public interfaces.

How do I avoid N+1 query problems when designing GraphQL schemas?

Avoiding N+1 query problems during GraphQL schema design involves defining efficient types, queries, mutations, and subscriptions, while applying proper pagination patterns to prevent nested data fetching inefficiencies.

What should be included in an API specification review checklist for production readiness?

An API specification review checklist for production readiness should validate endpoint structure, error formats, authentication documentation, versioning conventions, and implementation checks against team standards before deployment.

How do I standardize error handling and versioning across a new customer-facing API?

Standardizing error handling and versioning across a customer-facing API involves defining consistent error formats, documenting authentication methods, and applying resource-oriented conventions to validate the design before implementation.

Can I generate a production-ready FastAPI service from an OpenAPI schema design?

Generating a production-ready FastAPI service from an OpenAPI schema design is supported by applying the Skill's templates, playbooks, and implementation checks to standardize team conventions and evaluate the API specification.

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

Choosing REST over GraphQL for API architecture depends on whether resource-oriented endpoints, standard HTTP methods, and simple filtering suffice, versus needing complex GraphQL queries, mutations, and subscription patterns.