aj-geddes/useful-ai-prompts8 files

API Gateway Configuration

>

Specification
Skill ID
aj-geddes/useful-ai-prompts/api-gateway-configuration
Publisher
aj-geddes
Repository
useful-ai-prompts
Installs
0
Files
8
Synced
Sep 23, 2026
How to use it

Open any RiverX project, open the Skills panel in the chat, and search for this identifier. The files are fetched from the source repository at install time.

aj-geddes/useful-ai-prompts/api-gateway-configurationInstalls these files
  • SKILL.md
  • references/aws-api-gateway-configuration.md
  • references/kong-configuration.md
  • references/nginx-configuration.md
  • references/nodejs-gateway-implementation.md
  • references/traefik-configuration.md
  • scripts/validate-api.sh
  • templates/api-scaffold.yaml

What this skill tells the agent

API Gateway Configuration

Table of Contents

  • Overview
  • When to Use
  • Quick Start
  • Reference Guides
  • Best Practices

Overview

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

When to Use

  • Setting up reverse proxies for microservices
  • Centralizing API authentication
  • Implementing request/response transformation
  • Managing traffic across backend services
  • Rate limiting and quota enforcement
  • API versioning and routing

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:

GuideContents
Kong ConfigurationKong Configuration
Nginx ConfigurationNginx Configuration
AWS API Gateway ConfigurationAWS API Gateway Configuration
Traefik ConfigurationTraefik Configuration
Node.js Gateway ImplementationNode.js Gateway Implementation

Best Practices

✅ DO

  • Centralize authentication at gateway level
  • Implement rate limiting globally
  • Add comprehensive logging
  • Use health checks for backends
  • Cache responses when appropriate
  • Implement circuit breakers
  • Monitor gateway metrics
  • Use HTTPS in production

❌ DON'T

  • Expose backend service details
  • Skip request validation
  • Forget to log API usage
  • Use weak authentication
  • Over-cache dynamic data
  • Ignore backend timeouts
  • Skip security headers
  • Expose internal IPs

Use this skill in a project

Open any RiverX project, search the Skills panel for aj-geddes/useful-ai-prompts/api-gateway-configuration, and install it in one click.

Use this skill