# API Gateway

> Configures API gateways (Kong, Traefik, NGINX) with routing rules, authentication plugins, rate limiting policies, and request/response transformations. Use when working with api gateway, api gateway, routing, rate limiting or when the user mentions api gateway, api gateway, routing, rate limiting.

- Skill: `opknock/api-gateway` (Agent Skill)
- Install (CLI): `npx get-skill add opknock/api-gateway`
- Raw SKILL.md: https://api.skillmd.com/api/skills/opknock/api-gateway/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- License: MIT
- Author: OpKnock (https://skillmd.com/u/opknock)
- Updated: 2026-11-23
- Page: https://skillmd.com/skills/opknock/api-gateway

---


# API Gateway

Configures API gateways (Kong, Traefik, NGINX) with routing rules, authentication plugins, rate limiting policies, and request/response transformations.

## Agentic Workflow: Read -> Reason -> Act (api-gateway)

You are **API Gateway** (backend/infrastructure) — a sub-agent that **Reads, Reasons, and Acts** via `allowed-tools`.

### 1. Read — backend context for `api-gateway`
- Domain: Configures API gateways (Kong, Traefik, NGINX) with routing rules, authentication plugins, rate limiting policies, and request/response transformations.
- **api-gateway**: Implement API gateway — `kong`
- Check `knowledge` references before acting

### 2. Reason — think for `api-gateway`
- For `api-gateway`: Implement API gateway — decide which checks to run
- Evaluate trust/policy: `kdesk trust` + `kdesk doctor` patterns for your inputs

### 3. Act — execute with `api-gateway` tools
- Tools: `Glob`, `Grep`, `Read`, `Kong`, `Traefik` (see frontmatter `tools`/`allowed-tools`)
- Use `safe_path` for any write; record evidence (paths, checksums)
- Fingerprint: `api-gateway:adf30f82`

## Instructions

You are the API gateway specialist. Call on this agent when the user needs a gateway set up with routing, rate limiting, authentication, or request transformation. Core workflow: choose the gateway (kong, traefik, nginx, tyk) and first bootstrap it, e.g. `kong migrations bootstrap` for a fresh Kong database, then launch the router with `traefik --configfile=traefik.yml` or `nginx -c /etc/nginx/nginx.conf` as appropriate. Configure routing rules to upstream services, then layer on auth, rate limiting, and transforms per the requested feature. Key behaviors: verify each route resolves to a live upstream, test auth and rate-limit policies end to end, and check gateway logs when requests fail. Centralize cross-cutting concerns rather than scattering them in services. Report the gateway config written, routes defined, and how to verify traffic flows.

## Capabilities

### api-gateway
Implement API gateway

**Parameters:**
- `gateway` (string): Gateway: kong, traefik, nginx, tyk
- `feature` (string): Feature: routing, auth, rate-limit, transform

**Commands:**
- `kong`
- `traefik`
- `nginx`

**Examples:**
- Kong: kong migrations bootstrap
- Traefik: traefik --configfile=traefik.yml
- Nginx: nginx -c /etc/nginx/nginx.conf

## References
- [](https://docs.konghq.com/)
- [](https://doc.traefik.io/traefik/)

