This skill should be used when the user asks about "api gateway pattern", "gateway pattern", "single entry point", "aggregate services", "backend for frontend", or mentions needing a unified interface to multiple microservices.
How this skill is triggered — by the user, by Claude, or both
Slash command
/design-pattern-skills:api-gatewayThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
API Gateway is a single entry point for all client requests to backend services. It routes requests, aggregates responses, handles cross-cutting concerns (auth, rate limiting, caching), and can be tailored for different clients (BFF).
API Gateway is a single entry point for all client requests to backend services. It routes requests, aggregates responses, handles cross-cutting concerns (auth, rate limiting, caching), and can be tailored for different clients (BFF).
class ApiGateway {
async handleRequest(req: Request): Promise<Response> {
// 1. Authentication
const user = await this.authenticate(req);
// 2. Rate limiting
await this.checkRateLimit(user);
// 3. Route to service
const response = await this.route(req);
// 4. Transform response
return this.transform(response);
}
}
examples/api-gateway.ts - Basic routing gatewayexamples/api-gateway-advanced.ts - Full-featured gatewaynpx claudepluginhub keohanoi/design-pattern-skills --plugin design-pattern-skillsDesign API gateways that route, authenticate, rate-limit, and aggregate backend services. Use when building client-facing APIs or managing service boundaries.
Builds API gateways with routing, load balancing, rate limiting, authentication, circuit breakers, and health checks for multiple backend microservices.
Reference catalog of proven architecture patterns. Know when to apply each pattern, tradeoffs, and examples. Use as reference when designing systems.