Api gateway configuration

From aj-geddes/useful-ai-prompts · View interactive version

Api gateway configuration is an AI agent skill from the GitHub repository aj-geddes/useful-ai-prompts. Configure API gateways for routing, authentication, rate limiting, and request/response transformation. Use when deploying microservices, setting up reverse proxies, or managing API traffic.

How to use this skill

Skill file

API Gateway Configuration

Table of Contents

Overview

Design and configure API gateways to handle routing, authentication, rate limiting, and request/response transformation for microservice architectures.

When to Use

Quick Start

Minimal working example:

# kong.yml - Kong Gateway configuration
_format_version: "2.1"
_transform: true

services:
  - name: user-service
    url: http://user-service:3000
    routes:
      - name: user-routes
        paths:
          - /api/users
          - /api/profile
    plugins:
      - name: rate-limiting
        config:
          minute: 100
          policy: local
      - name: jwt
        config:
          secret: your-secret-key
          key_claim_name: "sub"
      - name: cors
        config:
          origins:
            - "http://localhost:3000"
// ... (see reference guides for full implementation)

Reference Guides

Detailed implementations in the references/ directory:

| Guide | Contents |

|---|---|

| Kong Configuration | Kong Configuration |

| Nginx Configuration | Nginx Configuration |

| AWS API Gateway Configuration | AWS API Gateway Configuration |

| Traefik Configuration | Traefik Configuration |

| Node.js Gateway Implementation | Node.js Gateway Implementation |

Best Practices

✅ DO

❌ DON'T

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.