api-design

Design REST, GraphQL, and gRPC API contracts with versioning and error handling.

1|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/LuminairPrime/openwrt-docs4ai-pipeline --skill api-design-luminairprime
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: api-design
Source: https://github.com/LuminairPrime/openwrt-docs4ai-pipeline/tree/main/.kilocode/skills/api-design
Command: npx skills add https://github.com/LuminairPrime/openwrt-docs4ai-pipeline --skill api-design-luminairprime

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

APIs are contracts between services and their consumers; this skill helps teams craft consistent, versioned, and scalable API patterns that reduce integration friction and accelerate development.

Core Features & Use Cases

  • Provides guidance on REST, GraphQL, and gRPC design, including OpenAPI specs, pagination strategies, error formats, and authentication patterns.
  • Supports versioning from day one and consumer-focused response shaping for public, partner, and internal APIs.
  • Useful for building scalable, maintainable APIs with strong governance and clear contracts.

Quick Start

Create a concise OpenAPI 3.1 spec outline for a sample resource including endpoints, schemas, and basic security.

Frequently Asked Questions about api-design

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

FAQPage Schema
How do I design REST APIs with consistent naming and secure defaults?▼

Designing REST APIs with consistent naming and secure defaults requires establishing clear service contracts. This skill provides guidance on consistent naming conventions, versioning from day one, and robust error handling to ensure consumer-driven design and reduce integration friction.

What is the best way to handle API versioning and pagination strategies?▼

The best way to handle API versioning and pagination strategies is to apply versioning from day one and utilize consumer-focused response shaping. This approach supports scalable, maintainable APIs with strong governance across public, partner, and internal API contexts.

Can I use this to generate an OpenAPI 3.1 spec for GraphQL and gRPC?▼

Yes, you can use this to generate an OpenAPI 3.1 spec outline. It supports designing APIs across REST, GraphQL, and gRPC by providing guidance on OpenAPI specifications, endpoints, schemas, and basic security to satisfy compatibility requirements.

How do I structure API error formats and authentication patterns for public APIs?▼

To structure API error formats and authentication patterns for public APIs, implement robust error handling and secure defaults. This ensures consistent contracts and reduces integration friction for consumers interacting with your services.

Does this approach support consumer-driven design for internal and partner APIs?▼

Yes, this approach supports consumer-driven design for internal and partner APIs. It applies consumer-focused response shaping and consistent versioning strategies across public, partner, and internal APIs to accelerate development and maintain clear service contracts.