# api-gateway-patterns

A skill for building API gateways on Kong: routing, rate limiting, auth, load balancing. Useful when your microservices exist but lack a single entry point.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 481 installs · ★ 62
- Author: manutej
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/manutej/luxor-claude-marketplace/tree/HEAD/plugins/luxor-devops-suite/skills/api-gateway-patterns/SKILL.md
- Updated: 2026-06-13
- HTML: https://affpapa.org/en/nevibecode/skills/api-gateway-patterns

## What it does

The skill walks through assembling a production gateway on Kong. It covers the core entities: services, routes, upstream load balancers, plugins, consumers and certificates. Then it lays out routing schemes — by path, header, HTTP method, host, and weighted targets for canary rollouts.

Configs are written in YAML. Path-based routing shows `strip_path` and `preserve_host`; header-based routing splits mobile and web traffic on `User-Agent`. There are also CQRS setups that separate reads from writes by method, and multi-tenant routing via `hosts` and subdomains.

Kong keeps its config in PostgreSQL or Cassandra, though a DB-less mode exists. Worth knowing before you start: if you don't want a database under your gateway, plan the declarative config up front. Plugins are Lua, so custom logic means touching Lua.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add manutej/luxor-claude-marketplace --skill api-gateway-patterns -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/api-gateway-patterns/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/api-gateway-patterns/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add manutej/luxor-claude-marketplace --skill api-gateway-patterns -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/api-gateway-patterns/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add manutej/luxor-claude-marketplace --skill api-gateway-patterns -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/api-gateway-patterns/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install manutej/luxor-claude-marketplace api-gateway-patterns
```

2. **Manually: put the files in place**
- File: `.github/skills/api-gateway-patterns/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add manutej/luxor-claude-marketplace --skill api-gateway-patterns -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/manutej/luxor-claude-marketplace --path plugins/luxor-devops-suite/skills/api-gateway-patterns
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/api-gateway-patterns/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add manutej/luxor-claude-marketplace --skill api-gateway-patterns -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/manutej/luxor-claude-marketplace/tree/HEAD/plugins/luxor-devops-suite/skills/api-gateway-patterns/SKILL.md

## When to use it
- pick a routing scheme for microservices with distinct URL prefixes
- set up a canary rollout using upstream weights
- split mobile and web traffic on the User-Agent header
- separate reads from writes by HTTP method in a CQRS setup
- describe multi-tenancy through subdomains and wildcard hosts

## Example prompts
- Help me configure Kong: services users and orders, routes on /users and /orders
- Set up a canary rollout of api-v2 at 10% of traffic using upstream weights
- Split mobile and web traffic by User-Agent into two separate services

## Similar
- [api-gateway-configuration](https://affpapa.org/en/nevibecode/skills/secondsky-api-gateway-configuration.md) — skill · 408 installs
- [connecting-lambda-to-api-gateway](https://affpapa.org/en/nevibecode/skills/connecting-lambda-to-api-gateway.md) — skill · 6600 installs
- [api-gateway-mcp-server](https://affpapa.org/en/nevibecode/skills/api-gateway-mcp-server.md) — skill · 499 installs
- [api-gateway-backend-security-and-rate-limiting](https://affpapa.org/en/nevibecode/skills/api-gateway-backend-security-and-rate-limiting.md) — skill · 360 installs
- [analyzing-api-gateway-access-logs](https://affpapa.org/en/nevibecode/skills/analyzing-api-gateway-access-logs.md) — skill · 761 installs
- [fastapi-microservices-serverless](https://affpapa.org/en/nevibecode/skills/fastapi-microservices-serverless.md) — skill · 724 installs

From the same set: [manutej/luxor-claude-marketplace](https://affpapa.org/en/nevibecode/by/manutej/luxor-claude-marketplace.md) — 38 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
