pjt222/agent-almanac/configure-api-gateway
- community
Checking that the SKILL.md file is still in the repository.
Deploy and configure an API gateway (Kong or Traefik) to handle API traffic management, authentication, rate limiting, request/response transformation, and routing. Covers plugin configuration, upstream services, consumer management, and integration with existing infrastructure. Use when multiple backend services need a unified API endpoint, when centralized authentication or rate limiting is required, when implementing API versioning, or when needing detailed analytics and load balancing for microservices.
Install
npx vskill@latest install pjt222/agent-almanac/configure-api-gatewaySKILL.md
Configure API Gateway
Deploy and configure an API gateway for centralized API traffic management and policy enforcement.
When to Use
- Multiple backend services need unified API endpoint with consistent policies
- Require centralized authentication/authorization for API access
- Need rate limiting and quota management across APIs
- Want to transform requests/responses without modifying backend services
- Implementing API versioning and deprecation strategies
- Need detailed API analytics and monitoring
- Require service discovery and load balancing for microservices
Inputs
- Required: Kubernetes cluster or Docker environment
- Required: Choice of API gateway (Kong or Traefik)
- Required: Backend service endpoints to proxy
- Optional: Authentication provider (OAuth2, OIDC, API keys)
- Optional: Rate limiting requirements (requests per minute/hour)
- Optional: Custom middleware or plugin configurations
- Optional: TLS certificates for HTTPS endpoints — the gateway terminates TLS for every route behind it, so provision via cert-manager and verify auto-renewal is actually running; an expiry takes down all routes at once, not one
Procedure
See Extended Examples for complete configuration files and templates.Roll out incrementally in step order — do not enable all plugins/middleware in one sync; verify each step's Expected block before layering the next (routing → authentication → rate limiting → transformations → advanced features).
Step 1: Install API Gateway
Deploy the API gateway with database (Kong) or file-based config (Traefik).
For Kong with PostgreSQL:
For Traefik:
See EXAMPLES.md for the complete deployment manifests
Deploy:
Expected: Gateway pods running with 2 replicas. Load balancer service has external IP assigned. Admin API accessible (Kong: port 8001, Traefik: dashboard port 8080). Health checks passing. CPU/memory requests and limits set on the gateway pods — a gateway that hits its CPU limit under load is throttled, and that surfaces as rising latency, not as errors or restarts.
On failure:
- Check pod logs:
kubectl logs -n kong -l app=kong - Verify database connection (Kong):
kubectl logs -n kong kong-migrations-<hash> - Check service account permissions (Traefik):
kubectl get clusterrolebinding traefik -o yaml - Ensure ports not already bound:
kubectl get svc --all-namespaces | grep 8000
Step 2: Configure Backend Services and Routes
Define upstream services and create routes to expose APIs.
For Kong (using decK for declarative config):
For Traefik (using IngressRoute CRD):
Apply routes:
See EXAMPLES.md for complete routing configurations
Expected: Routes correctly proxy traffic to backend services. Weighted routing distributes traffic according to configuration. Health checks monitor backend service health.
On failure:
- Verify backend services running:
kubectl get svc -n default - Check DNS resolution:
kubectl run test --rm -it --image=busybox -- nslookup user-service.default.svc.cluster.local - Review gateway logs:
kubectl logs -n kong -l app=kong --tail=50 - Validate configuration:
deck validate -s kong.yaml
Step 3: Implement Authentication and Authorization
Configure authentication plugins/middleware for API security.
For Kong (API Key and JWT authentication):
For Traefik (BasicAuth and ForwardAuth middleware):
See EXAMPLES.md for complete authentication configurations
Expected: Unauthenticated requests return 401. Valid credentials allow access. Rate limiting returns 429 after threshold. JWT tokens validate correctly. ACL enforces group permissions.
On failure:
- Verify consumer creation:
curl http://localhost:8001/consumers - Check plugin enabled:
curl http://localhost:8001/plugins | jq . - Test with verbose:
curl -vto see response headers - Validate JWT: use jwt.io to decode token
Step 4: Configure Request/Response Transformation
Add middleware to transform requests and responses.
For Kong:
For Traefik:
See EXAMPLES.md for complete transformation configurations
Expected: Request headers added/removed as configured. Response headers include gateway metadata. Large requests rejected with 413. Circuit breaker trips on repeated failures. Retries occur for transient errors.
On failure:
- Verify middleware order in chain
- Check for header conflicts with backend services
- Test transformations individually before chaining
- Review logs for transformation errors
Step 5: Enable Monitoring and Analytics
Configure metrics, logging, and dashboards for API visibility.
Kong monitoring setup:
Traefik monitoring (built-in):
See EXAMPLES.md for complete monitoring configurations
Expected: Prometheus scraping gateway metrics successfully. Dashboards show request rates, latency percentiles, error rates. Logs forwarding to aggregation system. Metrics segmented by service, route, and consumer.
On failure:
- Verify ServiceMonitor:
kubectl get servicemonitor -A - Check Prometheus targets in UI
- Ensure metrics port accessible:
kubectl port-forward -n kong svc/kong-metrics 8100:8100 - Validate log endpoint reachability
Step 6: Implement API Versioning and Deprecation
Configure version management and graceful API deprecation.
Kong versioning strategy:
Traefik versioning:
Test versioning:
See EXAMPLES.md for complete versioning configurations
Expected: Different versions route to appropriate backend services. Deprecation headers present on v1 responses. Rate limits stricter for deprecated versions. Default path routes to latest version. Metrics segmented by API version.
On failure:
- Verify path precedence/priority configuration (higher priority = evaluated first; more specific paths need higher priority)
- Check for overlapping path patterns (overlaps do not error — they silently cause unpredictable routing; verify the actual route hit with
curl -v) - Test each version route independently
- Review routing logs for path matching
- Ensure backend services for each version are running
Validation
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/configure-api-gateway/SKILL.md
Popularity
- Repository stars
- 31
- Repository forks
- 3
- Repository npm downloads, 30 days
- 259
- 7-day trend score
- 28
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 28 Aug 2026, 2 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/pjt222/agent-almanac/configure-api-gateway)