0122-api-design-principles

Guide REST and GraphQL API design with resource-oriented endpoints and error handling.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

API teams often ship interfaces that are inconsistent, hard to use, painful to version, and inefficient for clients, causing ongoing refactors and developer frustration.

Core Features & Use Cases

  • REST API design foundations: resource-oriented endpoints, correct HTTP method semantics, and pragmatic patterns for collections, pagination, and filtering.
  • GraphQL API design fundamentals: schema-first modeling, query/mutation structure, and relationship performance patterns to avoid N+1 problems.
  • Operational readiness guidance: consistent error handling, versioning strategies, and a shared checklist for security, documentation, testing, and monitoring.
  • Use cases: applying these principles when designing a new API, reviewing an existing OpenAPI/GraphQL spec, or standardizing team-wide API conventions.

Quick Start

Ask the AI to review your planned REST and GraphQL endpoints against the checklist and return concrete fixes for resource naming, HTTP semantics, pagination, error format, and versioning.

Frequently Asked Questions about 0122-api-design-principles

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

FAQPage Schema
How do I design REST API endpoints to prevent inconsistent structure and unclear contracts?▼

Design REST API endpoints using resource-oriented semantics, correct HTTP methods, and pragmatic patterns for collections, filtering, and pagination to ensure consistent structure and clear client contracts.

What is the best way to avoid N+1 query problems in GraphQL API design?▼

Avoid N+1 query problems in GraphQL API design by applying schema-first modeling and relationship performance patterns to optimize query and mutation structures for efficient data fetching.

How do I implement standardized error handling and versioning for production APIs?▼

Implement standardized error handling and versioning for production APIs by applying consistent error response formats, standardized status codes, and strategic versioning patterns to ensure operational readiness.

Can I use this to review an existing OpenAPI or GraphQL specification?▼

Yes, you can review existing OpenAPI or GraphQL specifications by checking them against operational readiness checklists for security, documentation, testing, and monitoring to return concrete fixes.

Does API design guidance cover both REST and GraphQL pagination strategies?▼

API design guidance covers both REST and GraphQL pagination strategies, providing pragmatic patterns for REST collections and relationship performance patterns for GraphQL to ensure efficient client interactions.

When should I standardize team-wide API conventions for developer experience?▼

Standardize team-wide API conventions for developer experience when designing new APIs, reviewing specifications, or selecting operational strategies to prevent painful refactors and developer frustration.