Diagnose Alibaba Cloud Cloud Firewall VPC firewall provisioning failures, route policy configuration failures, and closure pre-check risks using read-only CloudFirewall, CBN, VPC, STS, and ActionTrail APIs. Use this skill when troubleshooting VPC firewall creation failures, route policy/drainage configuration failures, firewall status stuck in configuring, or assessing route and ACL impact before closing VPC firewall drainage.
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Um comando direto ignora o prompt de revisão. Verifique a origem antes de executá-lo.
Instruções da origem · Visualização somente leitura
name
alibabacloud-cloudfw-vpc-firewall-diagnosis
description
Diagnose Alibaba Cloud Cloud Firewall VPC firewall provisioning failures, route policy configuration failures, and closure pre-check risks using read-only CloudFirewall, CBN, VPC, STS, and ActionTrail APIs. Use this skill when troubleshooting VPC firewall creation failures, route policy/drainage configuration failures, firewall status stuck in configuring, or assessing route and ACL impact before closing VPC firewall drainage.
license
Apache-2.0
compatibility
Requires Alibaba Cloud CLI (aliyun-cli >= 3.3.0) and Python 3.6+. All CLI commands use --profile and never pass AccessKey ID or AccessKey Secret explicitly. All Alibaba Cloud service calls must set User-Agent to AlibabaCloud-Agent-Skills/alibabacloud-cloudfw-vpc-firewall-diagnosis.
After the diagnostic workflow ends, disable AI-Mode:
aliyun configure ai-mode disable
Rules:
AI-Mode is enabled only for the diagnostic workflow and must be disabled after completion.
set-user-agent must use the full skill identifier: AlibabaCloud-Agent-Skills/alibabacloud-cloudfw-vpc-firewall-diagnosis.
plugin update is a local/system CLI command and must be run before service API calls to ensure lowercase-hyphenated plugin actions are current; do not add --user-agent to this system command.
Local-only environment commands such as aliyun version, aliyun configure list, and python3 --version do not call Alibaba Cloud service APIs and do not require the User-Agent flag.
Environment Validation
Run these read-only checks before diagnosis:
aliyun version
aliyun configure list
aliyun sts get-caller-identity --profile <profile> --user-agent AlibabaCloud-Agent-Skills/alibabacloud-cloudfw-vpc-firewall-diagnosis
python3 --version
Follow the scenario flow exactly; do not skip mandatory steps.
Core Principle: Read-Only Diagnosis
This skill is a read-only diagnostic assistant.
Absolutely Forbidden
Never execute create, modify, delete, attach, detach, enable, disable, or any configuration-changing operation.
Never provide complete executable write commands with concrete parameter values.
Never modify Alibaba Cloud resources.
Never hardcode credentials or profile names.
Correct Remediation Style
Provide text-only configuration guidance.
List required configuration fields and console navigation paths.
Explain risks, dependencies, and verification points.
Let the user perform all configuration changes manually in the console or their own approved workflow.
Standard Report Declaration
Every diagnostic report must start with:
Notice: This tool is a read-only diagnostic assistant. It only provides analysis and configuration guidance and will not perform any configuration changes.
Please apply all configuration changes manually in the Alibaba Cloud Console or through your own approved process.
Allowed Command Categories
AI-Mode setup commands: aliyun configure ai-mode enable, aliyun configure ai-mode set-user-agent, aliyun plugin update, and final aliyun configure ai-mode disable.
aliyun cloudfw describe-* read-only queries.
aliyun cbn list-* and aliyun cbn describe-* read-only queries.
aliyun actiontrail lookup-events read-only operation history queries.
All Alibaba Cloud service CLI commands must include --user-agent AlibabaCloud-Agent-Skills/alibabacloud-cloudfw-vpc-firewall-diagnosis.
Local/system commands such as aliyun version, aliyun configure list, aliyun configure ai-mode enable/disable, and aliyun plugin update must not add the User-Agent flag.
AI-Mode must be enabled before diagnosis, configured with the skill User-Agent, and disabled after the workflow.
CLI profile option is lowercase: --profile.
Output Format
For failure scenarios, report: root cause, evidence, and recommended remediation.
For closure pre-check scenarios, report: route rollback risk, ACL policy risk, recommended manual actions, and verification points.
Keep evidence concise and avoid exposing full resource inventories or sensitive identifiers unless needed for diagnosis.