Token导航 LogoToken导航

Agent Skill · 开发

alibabacloud-nginx-ingress-to-api-gateway(alibabacloud nginx ingress TO API gateway 文档)

用于辅助 API 设计、接口文档、请求响应结构和服务集成说明。它适合让 Agent 梳理 endpoint、生成 OpenAPI 草稿、检查字段命名、整理错误码或辅助前后端联调。使用时需要确认真实业务语义、鉴权方式、分页和错误处理规则;涉及生成接口文档时,应避免凭空补字段,最好从现有代码、schema 或接口样例中提取事实。

alibabacloud-nginx-ingress-to-api-gateway 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描已通过,按安装量在开发类的 21,746 个 Skill 里排第 12,578。

总安装 1,223周安装 52GitHub Stars 80下载 428核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:alibabacloud-nginx-ingress-to-api-gateway(alibabacloud nginx ingress TO API gateway 文档)
来源仓库:https://github.com/aliyun/alibabacloud-aiops-skills
仓库路径:skills/alibabacloud-nginx-ingress-to-api-gateway
安装命令:
npx skills add https://github.com/aliyun/alibabacloud-aiops-skills --skill alibabacloud-nginx-ingress-to-api-gateway
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/aliyun/alibabacloud-aiops-skills --skill alibabacloud-nginx-ingress-to-api-gateway

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

将 Kubernetes nginx Ingress 资源迁移至阿里云 API Gateway (APIG)。自动分类注解兼容性并生成迁移报告,支持 Higress 原生扩展。适用于存量 K8s 网关平滑上云与 Envoy 生态集成场景。需提前确认目标 APIG 实例与命名空间配置正确。

迁移后建议灰度验证流量,避免注解丢失导致接口异常。

来源仓库内路径:skills/alibabacloud-nginx-ingress-to-api-gateway

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/aliyun/alibabacloud-aiops-skills --skill aliba…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

alibabacloud-nginx-ingress-to-api-gateway 怎么安装?

在终端执行 npx skills add https://github.com/aliyun/alibabacloud-aiops-skills --skill alibabacloud-ng…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

alibabacloud-nginx-ingress-to-api-gateway 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

alibabacloud-nginx-ingress-to-api-gateway 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

alibabacloud-nginx-ingress-to-api-gateway 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

alibabacloud-nginx-ingress-to-api-gateway 用的人多吗?

公开数据是累计安装 1,223 次,近一周安装 52 次,下载 428 次,GitHub 80 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

alibabacloud-nginx-ingress-to-api-gateway 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
alibabacloud-nginx-ingress-to-api-gateway

alibabacloud nginx ingress TO API gateway 文档 · 本页

1,22380接触敏感数据未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Nginx Ingress to APIG Migration

Scenario Description

Migrate Kubernetes nginx Ingress resources to Alibaba Cloud API Gateway (APIG). APIG is an Envoy-based gateway (Higress) that uses ingressClassName: apig. This skill classifies every nginx.ingress.kubernetes.io/* annotation into Compatible / Ignorable / Unsupported, resolves unsupported annotations via a four-level decision tree (Higress native → safe-to-drop → built-in plugin → custom WasmPlugin), generates migrated Ingress YAML, and produces a deployment-ready migration report.

Architecture: nginx Ingress Controller → APIG (Envoy/Higress) + optional WasmPlugin (Go, proxy-wasm-go-sdk)

The core analysis workflow operates entirely offline on user-provided YAML — no cluster access, CLI tools, or cloud credentials required.

Installation

This skill operates entirely offline on user-provided YAML. No CLI tools, SDKs, or cloud credentials are required.

On-demand tools (only when the workflow reaches a step that needs them):

ToolWhen neededCheck commandMinimum version
jqScript-based offline analysisjq --version>= 1.6
python3 + PyYAMLYAML parsing (alternative to yq)python3 -c "import yaml; print(yaml.__version__)"python3 >= 3.8, PyYAML >= 5.0
yqYAML parsing (alternative to python3+PyYAML)yq --version>= 4.0
GoStep 3 determines a custom WasmPlugin is neededgo version>= 1.24
DockerCustom WasmPlugin needs to be built as OCI imagedocker version—
Do NOT pre-check or prompt installation of any tool during analysis.

Environment Variables

No environment variables required. This skill does not invoke any cloud APIs or CLI tools.

Authentication

Not applicable. This skill does not invoke Alibaba Cloud APIs or CLI. No credentials are needed.

RAM Policy

Not applicable. This skill operates entirely on local YAML files and does not call any cloud APIs.

Parameter Confirmation

This skill only performs analysis and code generation — it does NOT execute any deployment or cluster write operations. When the user provides Ingress YAML, proceed immediately with the full workflow (Step 1→5) and output the complete result. Do NOT ask for RegionId, OCI registry, or any other parameter. Use <REGION> and <YOUR_REGISTRY> placeholders in the output. 请避免以下交互模式,直接执行对应操作即可: - "是否需要我分析这个 Ingress?" — 建议直接分析 - "是否需要生成迁移后的 YAML?" — 建议直接生成 - "是否需要创建迁移配置文件/检查清单?" — 建议直接创建 - "是否需要开发 WasmPlugin?" — 如果决策树判定需要,建议直接开发 - "请确认 RegionId / OCI 地址" — 建议使用占位符
Parameter NameRequired/OptionalDescriptionDefault Value
Ingress YAMLRequirednginx Ingress YAML to migrate (paste, file, or directory)—
When Ingress YAML is not provided: If the user asks about migration but does not provide YAML, respond with: "请提供需要迁移的 nginx Ingress YAML(可以直接粘贴、提供文件路径或目录路径)。" Do NOT abort the conversation — guide the user to provide the required input.

Core Workflow

建议:收到 YAML 后一次性完成全部分析步骤 当用户提供 Ingress YAML 时,建议立即执行全部步骤(Step 1→5)并在一次响应中输出完整结果。 - 对于未指定的参数(如 RegionId、OCI registry),使用 <REGION> 等占位符 - 收到 YAML 后直接进入分析流程,无需额外确认 - 各步骤之间连续执行,无需中途暂停询问用户 - 迁移配置文件和检查清单作为标准输出的一部分自动生成 - 整个工作流是确定性的:YAML 输入 → 完整迁移报告输出,无需中间确认 - 唯一必需的输入是 Ingress YAML 本身

Step 1: Parse Ingress YAML

Accept YAML from any of the following input formats:

  • Direct paste in conversation (with or without markdown code fences)
  • File path (e.g., ingress.yaml, ./k8s/ingress.yaml)
  • Directory path (scan all .yaml/.yml files for Ingress resources)
  • Multi-document YAML (separated by ---)
  • Partial YAML (missing apiVersion/kind — infer as Ingress if annotations with nginx.ingress.kubernetes.io/* are present)

For each Ingress found, extract all nginx.ingress.kubernetes.io/* annotations.

If the user's message mentions migration/analysis but does NOT include any YAML, respond with: "请提供需要迁移的 nginx Ingress YAML(可以直接粘贴、提供文件路径或目录路径)。" Do NOT abort or error out — guide the user to provide input.

Step 2: Classify Annotations

Classify each annotation into exactly one of three categories. See references/annotation-mapping.md for the complete 117-annotation lookup table.

CategoryCountActionExample
Compatible50Keep in migrated YAMLrewrite-target, enable-cors, canary-weight, ssl-redirect
Ignorable16Strip (Envoy handles natively)proxy-connect-timeout, proxy-buffering, proxy-body-size
Unsupported51Strip → resolve via decision treeauth-url, server-snippet, limit-rps

Inline Quick Lookup — High-Frequency Annotations:

AnnotationCategoryAction
rewrite-target✅ CompatibleKeep
enable-cors✅ CompatibleKeep
cors-allow-origin✅ CompatibleKeep
ssl-redirect✅ CompatibleKeep
canary / canary-weight / canary-by-header✅ CompatibleKeep
whitelist-source-range✅ CompatibleKeep
backend-protocol✅ CompatibleKeep
use-regex✅ CompatibleKeep
upstream-vhost✅ CompatibleKeep
proxy-connect-timeout⚪ IgnorableStrip
proxy-read-timeout⚪ IgnorableStrip
proxy-send-timeout⚪ IgnorableStrip
proxy-body-size⚪ IgnorableStrip
proxy-buffering⚪ IgnorableStrip
client-body-buffer-size⚪ IgnorableStrip
auth-url❌ UnsupportedWasmPlugin (HTTP callout)
server-snippet❌ UnsupportedWasmPlugin (directive conversion)
configuration-snippet❌ UnsupportedWasmPlugin (directive conversion)
limit-rps❌ UnsupportedBuilt-in key-rate-limit plugin
limit-connections❌ UnsupportedBuilt-in key-rate-limit plugin
enable-modsecurity❌ UnsupportedBuilt-in waf plugin
denylist-source-range❌ UnsupportedHigress native higress.io/blacklist-source-range
service-upstream❌ UnsupportedSafe to drop (Envoy default behavior)
ssl-ciphers❌ UnsupportedRename to ssl-cipher (compatible)
If an annotation is NOT in the above table, look it up in references/annotation-mapping.md. If still not found, classify as Unsupported and resolve via the decision tree in Step 3.

Special value changes (compatible but value must change):

  • load-balance: ewma → round_robin (APIG does not support EWMA)
  • ssl-ciphers → rename to ssl-cipher (singular form)
  • affinity-mode: persistent → balanced (APIG only supports balanced)

Step 3: Resolve Unsupported Annotations

For each unsupported annotation, follow this decision tree in order:

1. Higress native annotation?  → Use native equivalent (no WasmPlugin needed)
2. Safe to drop?               → Remove without replacement
3. Built-in platform plugin?   → Use built-in OCI image via higress.io/wasmplugin annotation
4. None of the above?          → Develop custom WasmPlugin

See references/migration-patterns.md for the complete decision tree, and references/builtin-plugins.md for the built-in plugin catalog.

Higress native mappings:

nginx annotationHigress equivalent
denylist-source-rangehigress.io/blacklist-source-range
mirror-targethigress.io/mirror-target-service + higress.io/mirror-percentage

Safe-to-drop: service-upstream, enable-access-log, proxy-request-buffering: off, connection-proxy-header

Built-in plugins: limit-rps/limit-connections → key-rate-limit, enable-modsecurity → waf. See references/builtin-plugins.md.

Custom WasmPlugin (last resort): auth-url, server-snippet, configuration-snippet, etc. See references/wasm-plugin-sdk.md for SDK reference, references/snippet-patterns.md for conversion patterns.

Step 4: Generate Migrated Ingress YAML

For each input Ingress, generate a migrated copy:

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: <original-name>-apig
  namespace: <original-namespace>
  annotations:
    # Compatible annotations preserved
    # Unsupported annotations replaced with higress.io/wasmplugin if needed
spec:
  ingressClassName: apig    # MUST be hardcoded to apig
  rules: ...                # Preserved from original
  tls: ...                  # Preserved from original

Step 5: Output Migration Report

所有输出建议使用中文(中文)。包括分析表、迁移总结、后续操作指南及所有说明性文字。代码块(YAML、Go、bash)保持原始语法。 以下所有内容均为标准输出项,建议在一次响应中完整输出,无需逐项询问用户。

Output ALL of the following for each Ingress:

  1. 兼容性分析表 — annotation, value, category (兼容/可忽略/不支持), action
  2. 迁移后的 Ingress YAML — ready for user to apply
  3. 自定义 WasmPlugin 源码 — if Step 3 determined custom plugins are needed (skip only if no custom plugin is needed)
  4. 迁移总结 — what changed, value changes, plugins needed
  5. 后续操作指南 — 根据兼容性分析结果,分场景告知用户完整的迁移操作路径:

- 完全兼容(无不兼容注解):所有注解均为兼容或可忽略类型,用户可直接参考 Nginx Ingress 迁移到云原生 API 网关 完成迁移。 - 不完全兼容(存在不兼容注解):按以下顺序操作: 1. 构建并推送自定义 WasmPlugin OCI 镜像 2. 将迁移后 Ingress YAML 中的 OCI URL 占位符替换为真实的 WasmPlugin 镜像地址 3. 将替换后的 Ingress YAML 部署到集群中 4. 参考 Nginx Ingress 迁移到云原生 API 网关 继续后续操作,在步骤一「指定 IngressClass」处需指定为 apig 5. 网关版本要求:使用 WasmPlugin 需确保云原生 API 网关版本在 2.1.16 及以上,否则需要升级版本或创建新网关

See references/deployment-guide-template.md for the guide template.

Scope boundary: This skill generates all artifacts and instructions. It does NOT execute kubectl apply, docker push, or any cluster/registry write operations. Those are left to the user. No confirmation needed: Every item above is always generated. Never ask "是否需要生成迁移文件/检查清单/部署指南?"

Success Verification Method

See references/verification-method.md for verification steps to include in the migration report.

The migration report should instruct the user to verify with:

# Validate migrated YAML syntax (user runs this)
kubectl apply --dry-run=client -f <migrated-ingress>.yaml

# Confirm ingressClassName is apig
grep "ingressClassName: apig" <migrated-ingress>.yaml
This skill outputs verification instructions for the user. It does NOT execute these commands.

Cleanup

Not applicable. This skill only generates text output (YAML, Go source code, migration report). No cloud resources or cluster objects are created by this skill.

API and Command Tables

This skill does not execute any CLI commands or API calls. All output is text-based (YAML, Go source code, migration report with instructions for the user).

Best Practices

  1. Always classify ALL annotations before generating migrated YAML — never skip annotations
  2. Use placeholders (<REGION>, <YOUR_REGISTRY>) for unspecified parameters; never hardcode user-specific values
  3. Preserve original rules, tls, and namespace in migrated YAML
  4. Add -apig suffix to migrated Ingress name for easy identification
  5. Prefer built-in plugins over custom WasmPlugin — check references/builtin-plugins.md first
  6. For custom WasmPlugin, use github.com/higress-group/wasm-go/pkg/wrapper SDK exclusively
  7. Track annotation value changes (e.g., ewma → round_robin) explicitly in the report
  8. For server-snippet/configuration-snippet, enumerate every directive and verify 1:1 conversion completeness
  9. Never execute cluster write operations (kubectl apply, docker push, etc.) — only output instructions for the user

Reference Links

ReferenceContents
references/annotation-mapping.mdComplete 117-annotation compatibility lookup table
references/migration-patterns.mdDecision tree, Higress native mappings, safe-to-drop list, special handling
references/builtin-plugins.mdAPIG built-in platform plugins catalog with OCI URLs
references/platform-oci-registry.mdRegion-specific OCI registry addresses for built-in plugins
references/snippet-patterns.mdserver-snippet / configuration-snippet → WasmPlugin conversion patterns
references/wasm-plugin-sdk.mdHigress WASM Go Plugin SDK reference (core API)
references/wasm-http-client.mdWasmPlugin HTTP client patterns (external auth, callouts)
references/wasm-redis-client.mdWasmPlugin Redis client patterns (rate limiting, session)
references/wasm-advanced-patterns.mdAdvanced WasmPlugin patterns (streaming, tick, leader election)
references/wasm-local-testing.mdLocal WasmPlugin testing with Docker Compose
references/plugin-deployment.mdWasmPlugin build, OCI push, and Ingress annotation binding
references/deployment-guide-template.mdMigration report deployment guide template
references/acceptance-criteria.mdTesting acceptance criteria with correct/incorrect patterns
references/verification-method.mdSuccess verification steps and commands
references/security-review-policy.md定期安全复审策略与检查项
references/security-impact-assessment.md安全影响评估与数据处理流程
references/ram-policies.mdRAM 权限声明(本 Skill 无需任何权限)

平台分布

Codex

34.42%
按下载量换算147

Claude

29.81%
按下载量换算128

Cursor

19.28%
按下载量换算83

Gemini CLI

8.35%
按下载量换算36

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills