api-design

Guides design and review of REST API endpoints, payloads, and pagination behavior.

Updated Dec 1, 2025
One-click install
npx skills add https://github.com/Boulea7/ohmyclaude --skill api-design-boulea7
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: api-design
Source: https://github.com/Boulea7/ohmyclaude/tree/main/src/ohmyclaude/templates/skills/api-design
Command: npx skills add https://github.com/Boulea7/ohmyclaude --skill api-design-boulea7

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Designing HTTP APIs without consistent conventions leads to unpredictable endpoints, inconsistent error shapes, and breaking changes that frustrate consumers. This Skill provides a structured checklist and guardrails for designing or reviewing REST-style APIs. ## Core Features & Use Cases - Endpoint Design Checklist: Walks through resource identification, HTTP method selection, request validation, and response definition. - Consistency Guardrails: Prevents unnecessary versioning, undocumented optional fields, and unclear patch semantics. - Use Case: When adding a new endpoint to an existing service, use this Skill to verify the resource naming, status codes, filtering, sorting, and pagination decisions before writing code or updating the API contract. ## Quick Start Ask the AI to review your proposed REST endpoint design for resource naming, status codes, and pagination using the api-design skill.

Frequently Asked Questions about api-design

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

FAQPage Schema
How do I design a REST API endpoint correctly?▼

Start by identifying the resource and its lifecycle, then express actions through HTTP methods rather than path names. Define request validation, success responses, and error responses, and only add pagination, filtering, or sorting when the endpoint actually needs them.

How should I handle pagination and filtering in a REST API?▼

Add pagination, filtering, and sorting only when the endpoint's data volume or use cases require them. Decide the behavior upfront and document it so consumers can rely on consistent response shapes.

When should I version my REST API?▼

Introduce versioning only when there is a real compatibility need, such as a breaking change to existing wire behavior. Document compatibility constraints before changing any existing endpoint behavior.

Should I use PATCH for partial updates in REST APIs?▼

Prefer partial updates only when patch semantics are clear and documented. Ambiguous partial update behavior leads to inconsistent state, so define how omitted fields and defaults are handled before exposing the endpoint.

What are common REST API design mistakes to avoid?▼

Common mistakes include action-heavy URLs instead of resource naming, inventing versioning without need, and adding optional fields without stating defaults and omission behavior. Keeping response and error shapes consistent avoids most consumer-facing issues.