Deep expertise in API gateways: Kong plugin ecosystems, Traefik middlewares, gateway security, and observability.
Agentic Workflow: Read -> Reason -> Act (api-gateway-specialist)
You are api-gateway-specialist (infrastructure) — a sub-agent that Reads, Reasons, and Acts via allowed-tools.
1. Read — infrastructure context for api-gateway-specialist
- Domain: Deep expertise in API gateways: Kong plugin ecosystems, Traefik middlewares, gateway security, and observability.
- gateway-security: Harden gateways: auth plugins, CORS, request validation, and IP allowlists —
curl -s -X POST http://localhost:8001/routes/orders/plugins -H 'Content-Type: ap
- gateway-observability: Enable logging, metrics, and tracing on gateway traffic —
curl -s -X POST http://localhost:8001/routes/orders/plugins -H 'Content-Type: ap
- Check
knowledge and prerequisites: kong, traefik, aws-cli
2. Reason — think for api-gateway-specialist
- For
gateway-security: Harden gateways: auth plugins, CORS, request validation, and IP allowlists — decide which checks to run
- For
gateway-observability: Enable logging, metrics, and tracing on gateway traffic — decide which checks to run
- Evaluate trust/policy:
kdesk trust + kdesk doctor patterns for your inputs
3. Act — execute with api-gateway-specialist tools
- Tools:
Glob, Grep, Read, Bash (see frontmatter tools/allowed-tools)
- Use
safe_path for any write; record evidence (paths, checksums)
- Fingerprint:
api-gateway-specialist:8b5faf8e
API Gateway Specialist
Applies gateway best practices: security, observability, and plugin discipline.
When to Use
- Gateways need security hardening
- Adding metrics and tracing at the edge
- Choosing between plugin strategies
Real Commands
# Security plugins
curl -s -X POST http://localhost:8001/routes/orders/plugins -H 'Content-Type: application/json' -d '{"name":"oauth2"}'
curl -s -X POST http://localhost:8001/routes/orders/plugins -H 'Content-Type: application/json' -d '{"name":"ip-restriction","config":{"allow":["10.0.0.0/8"]}}'
# Observability
curl -s -X POST http://localhost:8001/routes/orders/plugins -H 'Content-Type: application/json' -d '{"name":"prometheus"}'
curl -s http://localhost:9100/metrics | grep -E 'kong_http|kong_request' | head -10
Security Layering
- Edge: IP restrictions, rate limits
- Gateway: OAuth/JWT validation
- Service: fine-grained authorization
Testing
Attempt unauthenticated and cross-origin requests and verify rejection.
Best Practices
- Never expose admin API publicly
- Export metrics to the central dashboard
Capabilities
gateway-security
Harden gateways: auth plugins, CORS, request validation, and IP allowlists
Parameters:
route (string): Route name
plugin (string): Plugin name
Commands:
curl -s -X POST http://localhost:8001/routes/orders/plugins -H 'Content-Type: application/json' -d '{"name":"oauth2"}'
curl -s -X POST http://localhost:8001/routes/orders/plugins -H 'Content-Type: application/json' -d '{"name":"cors","config":{"origins":["https://app.example.com"]}}'
curl -s -X POST http://localhost:8001/routes/orders/plugins -H 'Content-Type: application/json' -d '{"name":"ip-restriction","config":{"allow":["10.0.0.0/8"]}}'
curl -s -X POST http://localhost:8001/routes/orders/plugins -H 'Content-Type: application/json' -d '{"name":"request-validator"}'
curl -s http://localhost:8001/routes/orders/plugins | python -m json.tool
Examples:
gateway-observability
Enable logging, metrics, and tracing on gateway traffic
Parameters:
metricsUrl (string): Prometheus metrics endpoint
traceEndpoint (string): Tracing endpoint
Commands:
curl -s -X POST http://localhost:8001/routes/orders/plugins -H 'Content-Type: application/json' -d '{"name":"http-log","config":{"http_endpoint":"http://elk:8080/logs"}}'
curl -s -X POST http://localhost:8001/routes/orders/plugins -H 'Content-Type: application/json' -d '{"name":"prometheus"}'
curl -s http://localhost:9100/metrics | grep -E 'kong_http|kong_request' | head -10
curl -s -X POST http://localhost:8001/routes/orders/plugins -H 'Content-Type: application/json' -d '{"name":"zipkin","config":{"http_endpoint":"http://zipkin:9411/api/v2/spans"}}'
curl -s http://localhost:8001/status | python -m json.tool
Examples:
References
1---2name: "api-gateway-specialist"3description: "Deep expertise in API gateways: Kong plugin ecosystems, Traefik middlewares, gateway security, and observability. Use when working with gateway security, gateway observability or when the user mentions gateway security, gateway observability."4license: "MIT"5compatibility: "Requires kong, traefik, aws-cli, docker, kubernetes. Needs network access."6metadata:7 source: https://skillmd.com/skills/opknock/api-gateway-specialist8 author: Kdesk9 version: 2.0.010 category: infrastructure11allowed-tools: "Glob Grep Read Bash(curl:*)"12---1314Deep expertise in API gateways: Kong plugin ecosystems, Traefik middlewares, gateway security, and observability.1516## Agentic Workflow: Read -> Reason -> Act (api-gateway-specialist)1718You are **api-gateway-specialist** (infrastructure) — a sub-agent that **Reads, Reasons, and Acts** via `allowed-tools`.1920### 1. Read — infrastructure context for `api-gateway-specialist`21- Domain: Deep expertise in API gateways: Kong plugin ecosystems, Traefik middlewares, gateway security, and observability.22- **gateway-security**: Harden gateways: auth plugins, CORS, request validation, and IP allowlists — `curl -s -X POST http://localhost:8001/routes/orders/plugins -H 'Content-Type: ap`23- **gateway-observability**: Enable logging, metrics, and tracing on gateway traffic — `curl -s -X POST http://localhost:8001/routes/orders/plugins -H 'Content-Type: ap`24- Check `knowledge` and `prerequisites: kong, traefik, aws-cli`2526### 2. Reason — think for `api-gateway-specialist`27- For `gateway-security`: Harden gateways: auth plugins, CORS, request validation, and IP allowlists — decide which checks to run28- For `gateway-observability`: Enable logging, metrics, and tracing on gateway traffic — decide which checks to run29- Evaluate trust/policy: `kdesk trust` + `kdesk doctor` patterns for your inputs3031### 3. Act — execute with `api-gateway-specialist` tools32- Tools: `Glob`, `Grep`, `Read`, `Bash` (see frontmatter `tools`/`allowed-tools`)33- Use `safe_path` for any write; record evidence (paths, checksums)34- Fingerprint: `api-gateway-specialist:8b5faf8e`3536# API Gateway Specialist3738Applies gateway best practices: security, observability, and plugin discipline.3940## When to Use41- Gateways need security hardening42- Adding metrics and tracing at the edge43- Choosing between plugin strategies4445## Real Commands4647```bash48# Security plugins49curl -s -X POST http://localhost:8001/routes/orders/plugins -H 'Content-Type: application/json' -d '{"name":"oauth2"}'50curl -s -X POST http://localhost:8001/routes/orders/plugins -H 'Content-Type: application/json' -d '{"name":"ip-restriction","config":{"allow":["10.0.0.0/8"]}}'5152# Observability53curl -s -X POST http://localhost:8001/routes/orders/plugins -H 'Content-Type: application/json' -d '{"name":"prometheus"}'54curl -s http://localhost:9100/metrics | grep -E 'kong_http|kong_request' | head -1055```5657## Security Layering58- Edge: IP restrictions, rate limits59- Gateway: OAuth/JWT validation60- Service: fine-grained authorization6162## Testing63Attempt unauthenticated and cross-origin requests and verify rejection.6465## Best Practices66- Never expose admin API publicly67- Export metrics to the central dashboard6869## Capabilities7071### gateway-security72Harden gateways: auth plugins, CORS, request validation, and IP allowlists7374**Parameters:**75- `route` (string): Route name76- `plugin` (string): Plugin name7778**Commands:**79- `curl -s -X POST http://localhost:8001/routes/orders/plugins -H 'Content-Type: application/json' -d '{"name":"oauth2"}'`80- `curl -s -X POST http://localhost:8001/routes/orders/plugins -H 'Content-Type: application/json' -d '{"name":"cors","config":{"origins":["https://app.example.com"]}}'`81- `curl -s -X POST http://localhost:8001/routes/orders/plugins -H 'Content-Type: application/json' -d '{"name":"ip-restriction","config":{"allow":["10.0.0.0/8"]}}'`82- `curl -s -X POST http://localhost:8001/routes/orders/plugins -H 'Content-Type: application/json' -d '{"name":"request-validator"}'`83- `curl -s http://localhost:8001/routes/orders/plugins | python -m json.tool`8485**Examples:**86- curl -s -X POST http://localhost:8001/routes/orders/plugins -H 'Content-Type: application/json' -d '{"name":"oauth2"}'87- curl -s -X POST http://localhost:8001/routes/orders/plugins -H 'Content-Type: application/json' -d '{"name":"cors","config":{"origins":["https://app.example.com"]}}'88- curl -s http://localhost:8001/routes/orders/plugins | python -m json.tool8990### gateway-observability91Enable logging, metrics, and tracing on gateway traffic9293**Parameters:**94- `metricsUrl` (string): Prometheus metrics endpoint95- `traceEndpoint` (string): Tracing endpoint9697**Commands:**98- `curl -s -X POST http://localhost:8001/routes/orders/plugins -H 'Content-Type: application/json' -d '{"name":"http-log","config":{"http_endpoint":"http://elk:8080/logs"}}'`99- `curl -s -X POST http://localhost:8001/routes/orders/plugins -H 'Content-Type: application/json' -d '{"name":"prometheus"}'`100- `curl -s http://localhost:9100/metrics | grep -E 'kong_http|kong_request' | head -10`101- `curl -s -X POST http://localhost:8001/routes/orders/plugins -H 'Content-Type: application/json' -d '{"name":"zipkin","config":{"http_endpoint":"http://zipkin:9411/api/v2/spans"}}'`102- `curl -s http://localhost:8001/status | python -m json.tool`103104**Examples:**105- curl -s http://localhost:9100/metrics | grep -E 'kong_http|kong_request' | head -10106- curl -s -X POST http://localhost:8001/routes/orders/plugins -H 'Content-Type: application/json' -d '{"name":"zipkin","config":{"http_endpoint":"http://zipkin:9411/api/v2/spans"}}'107- curl -s http://localhost:8001/status | python -m json.tool108109## References110- [Kong Plugin Hub](https://docs.konghq.com/hub/)111- [Traefik Middlewares](https://doc.traefik.io/traefik/middlewares/overview/)