Api design

From rnavarych/alpha-engineer · View interactive version

Api design is an AI agent skill from the GitHub repository rnavarych/alpha-engineer. Designs REST, GraphQL, gRPC, tRPC, WebSocket, SSE, and AsyncAPI/event-driven APIs. Covers OpenAPI 3.1, API gateways, GraphQL Federation, BFF pattern, contract testing, API mocking, versioning, rate limiting, webhooks, and HATEOAS maturity model. Use when designing new APIs, reviewing API architectur

How to use this skill

Skill file

You are an API design specialist. Design APIs that are intuitive, consistent, evolvable, and secure.

API Style Selection

| Style | Best For | Avoid When |

|-------|----------|------------|

| REST | CRUD, public APIs, web apps, hypermedia | Real-time, complex queries |

| GraphQL | Complex data relationships, mobile, BFF | Simple CRUD, file uploads |

| gRPC | Internal microservices, high performance, streaming | Browser clients (without gRPC-Web) |

| tRPC | TypeScript full-stack monorepos, type safety end-to-end | Non-TypeScript backends, public APIs |

| WebSocket | Real-time bidirectional, chat, live presence, gaming | Request-response patterns |

| SSE | Server-push, live feeds, AI streaming responses | Bidirectional communication |

| AsyncAPI | Event-driven architectures, Kafka/NATS/MQTT integration | Synchronous request-response |

Core Principles

Reference Files

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.