用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/eron1703/claude-config-loader --skill worker-api-gateway命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Load CI/CD pipeline configuration and deployment information when working with automation or deployments
Load database relationships, shared resources, and schema information when working with data models or database configuration
Load development environment information including folder structure, OrbStack setup, and system configuration
基于 SOC 职业分类
正在显示 SKILL.md
| name | worker-api-gateway |
| description | API Gateway routing, Nginx configuration, and request flow patterns |
| disable-model-invocation | true |
Browser → Nginx (port 80) → API Gateway (port 9000) → Backend Service
Location: /etc/nginx/sites-enabled/flowmaster on the dev server
/ → frontend-nextjs ClusterIP (look up live)/api/ → api-gateway ClusterIP (look up live) — preserves /api/ prefix/ws/ → websocket-gateway ClusterIP (look up live)Nginx preserves the /api/ prefix when proxying to the API Gateway:
GET /api/v1/processesGET /api/v1/processes (prefix intact)Tech Stack: Python/FastAPI (NOT Node.js)
Port: 9000
Health Endpoint: /health
Gateway routes are stored in ConfigMap: gateway-config (routes.yaml)
Routing Pattern:
/v1/{service}/* → rewrites to /api/v1/{path} on target service
Example Routes:
- path: /v1/process-design/*
target: process-design:9003
rewrite: /api/v1/processes/$1
- path: /v1/execution/*
target: execution-engine:9005
rewrite: /api/v1/execution/$1
- path: /v1/scheduling/*
target: scheduling:9008
rewrite: /api/v1/schedules/$1
GET /api/v1/processesapi-gateway:9000/api/v1/processes/api/v1/processes, matches route /v1/process-design/*/api/v1/processes and proxies to process-design:9003process-design handles /api/v1/processesssh dev-01-root "kubectl get cm gateway-config -n flowmaster -o yaml"
ssh dev-01-root "kubectl get cm gateway-config -n flowmaster -o jsonpath='{.data.routes\.yaml}'"
ssh dev-01-root "kubectl edit cm gateway-config -n flowmaster"
ssh dev-01-root "kubectl rollout restart -n flowmaster deploy/api-gateway"
WARNING: ClusterIPs are dynamic and will change if services are recreated. Always look them up live:
ssh dev-01-root "kubectl -n flowmaster get svc"
kubectl -n flowmaster get svc/etc/nginx/sites-enabled/flowmastersystemctl reload nginxConfigMap Data Keys:
routes.yaml - Service routing rulesmiddleware.yaml - Request/response middleware (if present)auth.yaml - Authentication/authorization rules (if present)ssh dev-01-root "kubectl exec -n flowmaster deploy/api-gateway -- wget -qO- http://localhost:9000/health"
ssh dev-01-root "kubectl logs -n flowmaster deploy/api-gateway --tail=50"
ssh dev-01-root "cat /etc/nginx/sites-enabled/flowmaster"kubectl logs -n flowmaster deploy/api-gatewaykubectl get cm gateway-config -n flowmaster -o yamlkubectl -n flowmaster get pods | grep <service-name>kubectl port-forward -n flowmaster svc/<service-name> 9003:9003/api/ prefix in the proxying stepFor live ClusterIPs and service endpoints, use commander-mcp: get_context_services, get_context_ports