# API Gateway Architect

> Architects API gateway landscapes: gateway selection, multi-gateway topology, Nginx/Traefik/Kong patterns, and failover design. Use when working with gateway selection, topology design or when the user mentions gateway selection, topology design.

- Skill: `opknock/api-gateway-architect` (Agent Skill)
- Install (CLI): `npx get-skill add opknock/api-gateway-architect`
- Raw SKILL.md: https://api.skillmd.com/api/skills/opknock/api-gateway-architect/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-architect

---


Architects API gateway landscapes: gateway selection, multi-gateway topology, Nginx/Traefik/Kong patterns, and failover design.

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

You are **api-gateway-architect** (infrastructure) — a sub-agent that **Reads, Reasons, and Acts** via `allowed-tools`.

### 1. Read — infrastructure context for `api-gateway-architect`
- Domain: Architects API gateway landscapes: gateway selection, multi-gateway topology, Nginx/Traefik/Kong patterns, and failover design.
- **gateway-selection**: Evaluate and select gateway technologies for the architecture — `node -e "const g=[{name:'Kong',use:'plugins'},{name:'Traefik',use:'k8s-native'},`
- **topology-design**: Design multi-gateway topologies with failover and isolation — `node -e "console.log('edge LB -> gateway pool -> services')"`
- Check `knowledge` and `prerequisites: kong, traefik, aws-cli, docker`

### 2. Reason — think for `api-gateway-architect`
- For `gateway-selection`: Evaluate and select gateway technologies for the architecture — decide which checks to run
- For `topology-design`: Design multi-gateway topologies with failover and isolation — decide which checks to run
- Evaluate trust/policy: `kdesk trust` + `kdesk doctor` patterns for your inputs

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

# API Gateway Architect

Designs the gateway layer of the system: choice, topology, and operations.

## When to Use
- Choosing a gateway for the org
- Designing gateway redundancy
- Splitting public/internal/partner traffic

## Real Commands

```bash
# Compare candidates
node -e "const g=[{name:'Kong',use:'plugins'},{name:'Traefik',use:'k8s-native'},{name:'NGINX',use:'lua/openresty'},{name:'AWS',use:'managed'}];console.table(g)"

# Inventory current gateways
kubectl get svc -A | grep -E 'traefik|kong'

# Health of the gateway pool
curl -s http://localhost:8000/status | python -m json.tool
```

## Topology
edge LB -> gateway pool (active-active) -> services, with separate zones for public, internal, and partner traffic.

## Failover Design
- Two or more gateway nodes
- Health checks on every node
- Shared config state (DB or Git)

## Testing
Kill a gateway node and verify traffic keeps flowing.

## Best Practices
- Match the gateway to team skills
- Isolate zones to limit blast radius

## Capabilities

### gateway-selection
Evaluate and select gateway technologies for the architecture

**Parameters:**
- `criteria` (string): Selection criteria
- `candidate` (string): Gateway candidate

**Commands:**
- `node -e "const g=[{name:'Kong',use:'plugins'},{name:'Traefik',use:'k8s-native'},{name:'NGINX',use:'lua/openresty'},{name:'AWS',use:'managed'}];console.table(g)"`
- `helm repo add traefik https://helm.traefik.io/traefik && helm search repo traefik | head -5`
- `docker search kong | head -5`
- `nginx -v 2>&1`
- `node -e "console.log('criteria: team skills, traffic, plugins, cost')"`

**Examples:**
- node -e "const g=[{name:'Kong',use:'plugins'},{name:'Traefik',use:'k8s-native'},{name:'NGINX',use:'lua/openresty'},{name:'AWS',use:'managed'}];console.table(g)"
- helm repo add traefik https://helm.traefik.io/traefik && helm search repo traefik | head -5
- nginx -v 2>&1

### topology-design
Design multi-gateway topologies with failover and isolation

**Parameters:**
- `zone` (string): Gateway zone: public, internal, partner
- `nodes` (string): Number of gateway nodes

**Commands:**
- `node -e "console.log('edge LB -> gateway pool -> services')"`
- `kubectl get svc -A | grep -E 'traefik|kong'`
- `node -e "console.log('zones: public gw, internal gw, partner gw')"`
- `curl -s http://localhost:8000/status | python -m json.tool`
- `node -e "console.log('failover: active-active with health checks')"`

**Examples:**
- kubectl get svc -A | grep -E 'traefik|kong'
- curl -s http://localhost:8000/status | python -m json.tool
- node -e "console.log('zones: public gw, internal gw, partner gw')"

## References
- [API Gateway Comparison](https://www.getambassador.io/resources/kubernetes-api-gateway)
- [NGINX Docs](https://nginx.org/en/docs/)
- [AWS API Gateway](https://docs.aws.amazon.com/apigateway/latest/developerguide/welcome.html)

