Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

alibabacloud-cloud-native-internet-diagnostics

БесплатноЗапускает вложенные скриптыНе проверен

Read-only diagnostics for the public internet egress capability of Alibaba Cloud cloud-native products: cloud-native gateway (MSE), cloud-native API gateway…

sdk-teamот sdk-team574 установки в других каталогах

Об этом скилле

Cloud-Native Product Public Internet Egress Diagnostics

Diagnose whether an Alibaba Cloud cloud-native product instance (MSE gateway, cloud-native API gateway, AI gateway, SAE application, FC function) can reach the public internet. The flow queries the instance to obtain its bound VPC and vSwitch, then checks whether that vSwitch has a NAT gateway SNAT public egress.

Execution Principle

MANDATORY:

  • Read-only: this skill only queries and reports. It never creates, modifies, or deletes any resource.
  • Single entry point: all cloud queries MUST be executed through scripts/cloud_native_internet_diag.py. Do not hand-assemble CLI command chains or inline Python.
  • Single-resource scope: only the instance / application / function explicitly provided by the user is queried. No scanning, enumeration, or probing of other resources.
  • Fail fast: if the script exits non-zero, stop and report the error. Do not retry with ad-hoc CLI variants.
  • Strict sequencing: steps below run in order; any step failure aborts the diagnosis with the error preserved.

Prerequisites (Runtime and aliyun CLI Version)

Requirement Value Why
Python 3.8 or newer runs the two scripts; standard library only, no third-party packages
aliyun CLI version 3.3.3 or newer, on PATH all cloud queries go through the CLI in lowercase-hyphenated plugin mode (e.g. aliyun vpc describe-nat-gateways); older builds lack the plugin-mode metadata and the --user-agent flag this skill relies on

Check the installed version first:

aliyun version

If the reported version is older than 3.3.3, upgrade the CLI before running any diagnosis (any one of these routes):

# macOS / Linux with Homebrew
brew upgrade aliyun-cli

# any platform: replace the binary with the latest release from
# https://github.com/aliyun/aliyun-cli/releases

# verify the upgrade took effect
aliyun version

A CLI older than 3.3.3 is a hard blocker: report the version gap and the upgrade command to the user instead of falling back to hand-assembled HTTP calls.

Credentials

  • Credentials are resolved automatically by the aliyun CLI default credential chain (environment or ~/.aliyun/config.json). Do not read, print, or pass AK/SK/STS tokens explicitly.
  • No script in this skill accepts --access-key-id / --access-key-secret / --sts-token parameters. Never export or echo plaintext credentials on the command line.
  • scripts/sts_token.py only performs identity verification and UID derivation (via aliyun sts get-caller-identity); it never carries credentials.

Identity Pre-check First

  • Every diagnosis MUST begin with the identity pre-check: run python3 scripts/sts_token.py --json (workflow Step 2) before any other query. This applies to ALL paths, including failure-recovery follow-ups. Never skip or reorder it.

User Confirmation

  • Before running any query, confirm the target product type, region, and instance id with the user.
  • If the user provides a gw- prefixed instance id without naming the product, you MUST ask whether it is a cloud-native gateway (MSE) or a cloud-native API gateway / AI gateway — both families share the gw- prefix but use completely different APIs. Never guess.
  • UID is informational only and can be auto-derived; product / region / instance-id are never auto-filled silently.

Trigger Conditions

Keyword triggers:

  • cloud-native gateway public internet / MSE gateway outbound / gateway public access
  • cloud-native API gateway public / APIG outbound connectivity / AI gateway public network
  • SAE public internet / SAE outbound connectivity / Serverless App Engine public
  • Function Compute public / FC outbound / FC fixed public IP
  • cloud-native internet diagnostics

Intent triggers:

  • User asks whether a cloud-native gateway / API gateway / AI gateway / SAE app / FC function can access the public internet
  • User reports such a product cannot reach the public internet
  • User asks to verify the egress capability or the fixed public IP of a cloud-native product

Input Parameters

Parameter Type Required Description Example
product string Yes Product type: mse_gateway / apig_gateway / ai_gateway / sae / fc mse_gateway
region string Yes Region id where the instance lives cn-hangzhou
instance-id string Yes Instance id (gateway/SAE) or function name (FC) gw-cuqp1e6m1hkgu37dj3ag
uid string No Customer account UID; auto-derived via aliyun sts get-caller-identity when omitted 1534830445234223

Required inputs: product, region, instance-id (three items). If the user omits any of them, ask before proceeding; do not run with guessed values.

Auto-fill first, ask second: never ask the user for the UID when it can be derived via sts_token.py. Whenever any parameter is auto-filled (e.g. UID), the Agent M

Полный SKILL.md на ClawHub

Установить alibabacloud-cloud-native-internet-diagnostics в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл alibabacloud-cloud-native-internet-diagnostics?

Read-only diagnostics for the public internet egress capability of Alibaba Cloud cloud-native products: cloud-native gateway (MSE), cloud-native API gateway, AI gateway, Serverless App Engine (SAE), and Function Compute (FC). Use when the user asks whether such an instance can access the public internet, reports outbound connectivity failure, or wants to check a fixed public egress IP. Resolves the VPC/vSwitch bound to the instance, then verifies NAT gateway SNAT egress for that vSwitch; produces a diagnosis report. Read-only: never creates, modifies, or deletes any resource. Triggers: "cloud-native gateway public internet", "MSE gateway outbound", "APIG outbound connectivity", "AI gateway public network", "SAE public internet", "SAE outbound connectivity", "FC fixed public IP", "FC function outbound", "cloud-native internet diagnostics", "vSwitch NAT SNAT egress".

Как установить скилл alibabacloud-cloud-native-internet-diagnostics?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл alibabacloud-cloud-native-internet-diagnostics запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить alibabacloud-cloud-native-internet-diagnostics с