소스 정보
- 저장소
- ffsshhttiikk/opencode-agents-skills
- 최근 소스 활동
- 2026년 2월 28일 22:46
- 감지된 SKILL.md 언어
- 영어
- 스타
- 2
- 포크
- 2
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/ffsshhttiikk/opencode-agents-skills --skill api-gateway명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | api-gateway |
| description | API Gateway design and implementation patterns |
| license | MIT |
| compatibility | opencode |
| metadata | {"audience":"developers","category":"architecture"} |
When designing API gateway architecture or configuring gateway rules.
┌─────────────────┐
│ Client │
└────────┬────────┘
│
▼
┌─────────────────┐
│ API Gateway │
│ │
│ ┌───────────┐ │
│ │ Routing │ │
│ └───────────┘ │
│ ┌───────────┐ │
│ │ Auth/N │ │
│ └───────────┘ │
│ ┌───────────┐ │
│ │ Rate Lim │ │
│ └───────────┘ │
│ ┌───────────┐ │
│ │ Transform │ │
│ └───────────┘ │
└────────┬────────┘
│
┌────────────────────────────────────┼────────────────────────────────────┐
│ │ │
▼ ▼ ▼
┌─────────┐ ┌─────────┐ ┌─────────┐
│ Service │◄────────────────────────│ Service │◄────────────────────────│ Service │
│ A │ │ B │ │ C │
└─────────┘ └─────────┘ └─────────┘
# kong.yml - declarative configuration
_format_version: "3.0"
_transform: true
services:
- name: user-service
url: http://user-service:8000
routes:
- name: user-routes
paths:
- /api/v1/users
strip_path: false
plugins:
- name: rate-limiting
config:
minute: 100
policy: local
- name: jwt
config:
secret_is_base64: false
- name: order-service
url: http://order-service:8000
routes:
- name: order-routes
paths:
- /api/v1/orders
strip_path: false
plugins:
- name: rate-limiting
config:
# OpenAPI spec with extensions for API Gateway
openapi: 3.0.3
info:
title: My API
version: 1.0.0
x-amazon-api-gateway:
authorizers:
CognitoAuthorizer:
type: cognito_user_pools
provider_arns:
- arn:aws:cognito-idp:us-east-1:123456789:userpool/us-east-1_abcdefghi
identity_validation_expression: email
header: Authorization
gateway-responses:
BAD_REQUEST_BODY:
statusCode: 400
responseTemplates:
application/json: |
{"error": "Invalid request body"}
DEFAULT_5XX:
statusCode: 500
responseParameters:
gatewayresponse.header.Access-Control-Allow-Origin: "'*'"
gatewayresponse.header.Access-Control-Allow-Headers: "'*'"
paths:
/users:
get:
security:
- CognitoAuthorizer: []
x-amazon-apigateway-integration:
httpMethod: GET
type: http_proxy
uri:
[]
[]
-- request-transformer.lua plugin configuration
-- Add headers
config.add.headers:
- "X-Request-ID: $request_id"
- "X-Forwarded-Proto: $scheme"
-- Transform headers
config.rename.headers:
- "X-Custom-Auth: X-Forwarded-Auth"
-- Transform query parameters
config.add.queryparams:
- "client_id: kong"
-- Transform body (JSON)
config.add.body:
- "request_timestamp: $global_request_id"
-- Remove sensitive data from logs
config.remove.headers:
- "Authorization"
- "X-API-Key"
# Response transformer plugin
plugins:
- name: response-transformer
config:
json:
replace:
meta:
api_version: "v1"
remove:
- internal_field
- debug_data
header:
replace:
- "X-Custom-Header: new-value"
remove:
- "X-Internal-Header"
# Kong JWT plugin
plugins:
- name: jwt
config:
key_claim_name: iss
claims_to_verify:
- exp
- nbf
run_on_preflight: true
from fastapi import Security, HTTPException
from fastapi.security import OAuth2PasswordBearer
from auth0.jwt_decoder import JWTVerifier
oauth2_scheme = OAuth2PasswordBearer(tokenUrl="token")
async def get_current_user(
token: str = Security(oauth2_scheme)
) -> User:
try:
payload = jwt.decode_token(token)
return User(**payload)
except ExpiredSignatureError:
raise HTTPException(status_code=401, detail="Token expired")
except InvalidTokenError:
raise HTTPException(status_code=401, detail="Invalid token")
# Kong rate limiting
plugins:
- name: rate-limiting
config:
minute: 100
hour: 1000
day: 10000
policy: redis
redis_host: redis-host
redis_port: 6379
fault_tolerant: true
# More granular rate limiting by consumer
plugins:
- name: rate-limiting
config:
minute: 1000
policy: cluster
hide_client_headers: false
# Kong canary release using weighted routes
services:
- name: api-service
url: http://api-service-v1:8000
routes:
- name: api-routes
paths:
- /api/v1
plugins:
- name: canary
config:
percentage: 90
hash: header
header_name: X-Canary
# Kong logging
plugins:
- name: http-log
config:
http_endpoint: https://logs.example.com/ingest
method: POST
timeout: 1000
keepalive: 30
retry_count: 3
flush_timeout: 2
queue_size: 100
# Prometheus metrics
- name: prometheus
config:
per_consumer: true