api-design

Define API contracts with resources, methods, envelopes, and error semantics.

108|27|Updated Mar 26, 2026
One-click install
npx skills add https://github.com/diegosouzapw/omni-skills --skill api-design-diegosouzapw
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-design
Source: https://github.com/diegosouzapw/omni-skills/tree/main/skills/api-design
Command: npx skills add https://github.com/diegosouzapw/omni-skills --skill api-design-diegosouzapw

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Define and align stable API contracts before implementation to avoid miscommunications that derail product timelines.

Core Features & Use Cases

  • Contract-first design focusing on resources, ownership, and boundary decisions.
  • Explicit error modeling, pagination, versioning rules, and compatibility checks to support safe evolution.
  • Workflow-guided approach covering resource modeling, contract drafting, failure design, and migration notes.

Quick Start

Provide a complete API design brief for a new resource, including resources, methods, request/response envelopes, error rules, and a versioning plan.

Frequently Asked Questions about api-design

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

FAQPage Schema
How do I define an API contract before implementation?

API contract design involves defining resources, methods, request/response envelopes, and error semantics upfront. This approach establishes stable HTTP boundaries and ownership decisions, ensuring consistent behavior across client implementations before any backend coding begins.

What is contract-first API design and when do I need it?

Contract-first API design is the process of outlining HTTP resources and error models before building backend services. You need it when aligning multiple teams on API behavior to prevent miscommunications that derail product timelines during development.

How do I model errors and pagination in an HTTP API?

Modeling errors and pagination in an HTTP API requires explicit failure design within the API contract. You define standardized error semantics, pagination rules, and response envelopes to support consistent data retrieval and safe API evolution across versions.

What are the best practices for API versioning and compatibility?

Best practices for API versioning involve establishing explicit compatibility rules and versioning plans within the contract. This ensures safe API evolution by documenting migration notes and maintaining consistent behavior across different client versions.

Does contract-first API design support internal HTTP surfaces?

Contract-first API design applies to both public and internal HTTP surfaces. It enforces consistent behavior across all client implementations by defining explicit idempotency requirements, pagination, and error semantics regardless of the API's exposure level.