api-design

Design API contracts for REST, GraphQL, and gRPC services.

207|31|Updated Mar 14, 2026
One-click install
npx skills add https://github.com/AbsolutelySkilled/AbsolutelySkilled --skill api-design-absolutelyskilled
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-design
Source: https://github.com/AbsolutelySkilled/AbsolutelySkilled/tree/main/skills/api-design
Command: npx skills add https://github.com/AbsolutelySkilled/AbsolutelySkilled --skill api-design-absolutelyskilled

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

API design is the practice of defining the contract between a service and its consumers in a way that is consistent, predictable, and resilient to change. A well-designed API reduces integration friction, makes versioning safe, and communicates intent through naming and structure.

Core Features & Use Cases

  • Design REST, GraphQL, and gRPC APIs with consistent naming, versioning, and error formats.
  • Generate and review OpenAPI 3.1 specifications with reusable components and schemas.
  • Establish pagination strategies (cursor-based, offset, and keyset) and authentication patterns for secure, scalable APIs.
  • Use-case: when starting a new public or partner API, this skill guides the architecture, document structure, and testing plan.

Quick Start

Design a complete API contract for a new service using REST, GraphQL, or gRPC, including an OpenAPI specification, pagination strategy, and 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 design a REST API with consistent versioning and error formats?

Design a REST API by defining consistent naming conventions, safe versioning strategies, and standardized error formats like RFC 7807. This approach reduces integration friction and ensures predictable service contracts that communicate intent through structure.

What is the best way to implement cursor-based pagination in an API?

Cursor-based pagination is an API strategy that uses a data pointer rather than offsets to fetch subsequent result sets. It provides stable, scalable pagination by avoiding performance issues common with offset queries when underlying data changes frequently.

How do I generate an OpenAPI 3.1 specification with reusable schemas?

Generate an OpenAPI 3.1 specification by authoring a document structure that defines reusable components and schemas. This creates a clear, reviewable contract for your service, establishing a reliable foundation for public or partner API integration.

When should I choose GraphQL versus REST or gRPC for my API architecture?

Choose GraphQL versus REST or gRPC based on your service's data fetching needs and consumer types. REST offers standardized caching, GraphQL provides flexible client-driven queries, and gRPC enables high-performance internal microservices communication.

How do I structure RFC 7807 error responses for a web API?

Structure RFC 7807 error responses by using a standardized JSON format containing fields for problem type, title, status, detail, and instance. This establishes consistent API error contracts that clients can reliably parse and handle.

Does API design guidance apply to token-based authentication patterns?

API design guidance applies to token-based authentication by defining secure, scalable patterns for service access. Establishing these authentication patterns ensures your API contract remains protected while maintaining predictable consumer interactions.