api-gateway-configuration
Configure API gateways for routing, authentication, rate limiting, and request/response transformation. Use when deploying microservices, setting up reverse proxies, or managing API traffic.
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o api-gateway-configuration.zip https://jpskill.com/download/21328.zip && unzip -o api-gateway-configuration.zip && rm api-gateway-configuration.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/21328.zip -OutFile "$d\api-gateway-configuration.zip"; Expand-Archive "$d\api-gateway-configuration.zip" -DestinationPath $d -Force; ri "$d\api-gateway-configuration.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
api-gateway-configuration.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
api-gateway-configurationフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 7
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
[Skill 名] api-gateway-configuration
API Gateway の設定
目次
概要
マイクロサービスアーキテクチャにおけるルーティング、認証、レート制限、リクエスト/レスポンス変換を処理するために、API Gateway を設計および設定します。
使用場面
- マイクロサービスのリバースプロキシを設定する場合
- API 認証を一元化する場合
- リクエスト/レスポンス変換を実装する場合
- バックエンドサービス間のトラフィックを管理する場合
- レート制限とクォータを適用する場合
- API のバージョン管理とルーティングを行う場合
クイックスタート
最小限の動作例:
# 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"
// ... (完全な実装についてはリファレンスガイドを参照してください)
リファレンスガイド
references/ ディレクトリにある詳細な実装:
| ガイド | 内容 |
|---|---|
| Kong Configuration | Kong の設定 |
| Nginx Configuration | Nginx の設定 |
| AWS API Gateway Configuration | AWS API Gateway の設定 |
| Traefik Configuration | Traefik の設定 |
| Node.js Gateway Implementation | Node.js Gateway の実装 |
ベストプラクティス
✅ 実施すべきこと
- ゲートウェイレベルで認証を一元化する
- レート制限をグローバルに実装する
- 包括的なロギングを追加する
- バックエンドにヘルスチェックを使用する
- 適切な場合にレスポンスをキャッシュする
- サーキットブレーカーを実装する
- ゲートウェイのメトリクスを監視する
- 本番環境で HTTPS を使用する
❌ 実施すべきでないこと
- バックエンドサービスの詳細を公開する
- リクエストの検証を省略する
- API の使用状況のログ記録を忘れる
- 弱い認証を使用する
- 動的データを過度にキャッシュする
- バックエンドのタイムアウトを無視する
- セキュリティヘッダーを省略する
- 内部 IP を公開する
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
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
- 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:
| 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
- 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
同梱ファイル
※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。
- 📄 SKILL.md (2,643 bytes)
- 📎 references/aws-api-gateway-configuration.md (1,920 bytes)
- 📎 references/kong-configuration.md (1,644 bytes)
- 📎 references/nginx-configuration.md (2,589 bytes)
- 📎 references/nodejs-gateway-implementation.md (1,489 bytes)
- 📎 references/traefik-configuration.md (1,184 bytes)
- 📎 scripts/validate-api.sh (440 bytes)