api-gateway

Configure API gateway routing, authentication, rate limiting, and observability for Kong, AWS API Gateway, or Nginx.

1|Updated Mar 21, 2026
One-click install
npx skills add https://github.com/kalilurrahman/kr-claudiator-skills-original-prompts --skill api-gateway-kalilurrahman
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-gateway
Source: https://github.com/kalilurrahman/kr-claudiator-skills-original-prompts/tree/main/06-system-design/api-gateway
Command: npx skills add https://github.com/kalilurrahman/kr-claudiator-skills-original-prompts --skill api-gateway-kalilurrahman

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Designing a secure, observable entry point for microservices requires coordinating authentication, rate limiting, routing, and logging across many moving parts, and misconfiguration at this layer exposes every upstream service. ## Core Features & Use Cases - Multi-Platform Configuration: Generates declarative gateway configs for Kong (deck YAML), AWS API Gateway (CDK TypeScript), and Nginx reverse proxy. - Centralized Security Policies: Implements JWT, API key, and OAuth authentication, WAF rules, CORS, request size limits, and schema validation at the gateway layer. - Traffic Management & Observability: Configures per-consumer rate limiting with Redis, health-checked load balancing, structured JSON access logs, and Prometheus metrics. - Use Case: You are exposing order, user, and public API services to mobile apps and partners. Use this Skill to produce a Kong configuration with JWT auth for internal routes, API key auth for public endpoints, Redis-backed rate limits, and Prometheus metrics. ## Quick Start Ask the AI to design an API gateway configuration for your services, specifying the gateway technology, authentication method, rate limits, and upstream services.

Frequently Asked Questions about api-gateway

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

FAQPage Schema
How do I configure rate limiting in Kong API gateway?

Add the rate-limiting plugin to a Kong service with minute and hour thresholds and set policy to redis for distributed enforcement across gateway nodes. Enable fault_tolerant so traffic is not blocked if Redis becomes unavailable.

How to set up JWT authentication on AWS API Gateway?

Create a CognitoUserPoolsAuthorizer attached to your Cognito user pool and set authorizationType to COGNITO on each method. The gateway validates the JWT from the Authorization header before invoking the Lambda backend.

Kong vs AWS API Gateway vs Nginx for microservices?

Kong suits Kubernetes environments needing declarative config and rich plugins, AWS API Gateway fits serverless Lambda backends with managed WAF and usage plans, and Nginx works for simpler reverse proxy needs with auth_request JWT validation.

Should the API gateway forward the Authorization header to upstream services?

No. The gateway should validate credentials and then strip the Authorization header, injecting user context via trusted headers like X-User-ID instead. This prevents raw tokens from propagating to internal services.

When should I not use an API gateway?

Skip a gateway for a single service with simple needs, where an Nginx reverse proxy suffices. For internal service-to-service communication, a service mesh is a better fit than routing traffic through a gateway.

Why should request bodies not be logged at the gateway?

Request bodies often contain PII and credentials, so logging them creates compliance and security risks. Log structured metadata like method, path, status, and duration instead, enabling body logging only for targeted debugging.