api-design

Designs production-grade APIs with versioning, security, and documentation.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you design APIs that are consistent, versioned, and safe to evolve, preventing technical debt and ensuring a positive developer experience.

Core Features & Use Cases

  • API Style Selection: Choose between REST, GraphQL, gRPC, WebSocket/SSE based on your needs.
  • Standard Adherence: Follow best practices for URL design, HTTP methods, status codes, and error/success response formats.
  • Versioning & Rate Limiting: Implement robust strategies for API evolution and protection.
  • Use Case: Before building a new microservice, use this Skill to define its RESTful API contract, including endpoints, request/response schemas, and error handling, ensuring consistency with existing services.

Quick Start

Use the api-design skill to generate a RESTful API design for a user management service.

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 RESTful API with consistent error handling and pagination?

To design a production-grade API, you must standardize URL structures, HTTP methods, and status codes. This process ensures your RESTful endpoints feature robust pagination, consistent error response formats, and safe evolution without accumulating technical debt.

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

Choosing between GraphQL, REST, and gRPC depends on your specific data fetching and communication needs. API style selection evaluates whether you need flexible client-driven queries (GraphQL), standardized resource manipulation (REST), or high-performance binary streaming (gRPC).

What are the best practices for API versioning and rate limiting?

Best practices for API versioning and rate limiting involve implementing robust strategies within your API design to protect services and manage evolution. Proper versioning prevents breaking changes, while rate limiting controls traffic flow and ensures fair resource usage among consumers.

How can I generate OpenAPI documentation for my microservice endpoints?

Generating OpenAPI documentation requires defining a clear API contract that details your endpoints, request/response schemas, and security protocols. Using a dedicated API design approach ensures your microservice documentation is standardized, consistent, and safe to evolve.

Does API design support idempotency and WebSocket connections?

API design supports both idempotency and WebSocket connections. It covers idempotency to prevent duplicate processing of repeated requests and includes WebSocket/SSE style selection to handle real-time, bidirectional data streaming within your service architecture.