Command Palette

Search for a command to run...

Назад к скиллам
скилл № 40145

huawei-cloud-network-topology-audit

Orchestrator skill that audits Huawei Cloud network topology for security and configuration risks. Given a user-described access path (e.g., "ELB web-elb →…

БесплатноЗапускает вложенные скрипты
huaweicloudskillот huaweicloudskill409 установок в других каталогах

Установить huawei-cloud-network-topology-audit в Claude Code и Claude Desktop

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

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

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

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

Huawei Cloud Network Topology Audit

Read-only orchestrator skill. This skill audits existing cloud resources — it never creates, modifies, or deletes any resource. All data collection is delegated to existing query skills (path A) or self-written scripts based on official documentation (path B).

Overview

This skill audits Huawei Cloud network topology for security and configuration risks. Given a user-described access path (e.g., "ELB web-elb → CCE prod-cce → RDS prod-db"), it:

  1. Resolves the real topology from actual cloud resources
  2. Expands to the full VPC network surface (VPCs, subnets, route tables, security groups, EIPs, ELBs, NAT gateways, ECS, RDS, CCE, DCS)
  3. Evaluates risks against an extensible rule directory (rules/network-audit-rules.yaml)
  4. Produces a Markdown audit report with a Mermaid topology diagram

Architecture

User describes access path (natural language)
         │
         ▼
 [Step 1]  Connectivity precheck  ── fail ──→  Prompt user to configure credentials
         │ pass
         ▼
 [Step 2]  Path parsing + find-skills lookup
         │
         ▼
 [Step 3]  Real topology discovery (Path A: query skills, Path B: self-written scripts)
         │
         ▼
 [Step 4]  Diff: described path vs real topology (real = source of truth)
         │
         ▼
 [Step 5]  User confirmation of the real topology
         │
         ▼
 [Step 6]  Risk audit against network-audit-rules.yaml
         │
         ▼
 [Step 7]  Markdown report generation (Mermaid diagram, ASCII fallback)

Applicable Scenarios

  • User describes an access path with approximate resource names
  • Current environment has configured Huawei Cloud credentials (CLI/SDK)
  • Need structured audit of network topology risks

Not Applicable

  • User cannot describe any resource names
  • No Huawei Cloud credentials configured
  • Need to modify resources (this skill is read-only)
  • Cross-account audit (v1 limited to single account)

Prerequisites

  1. Huawei Cloud credentials — one complete AK/SK pair in the environment, or an hcloud CLI profile (hcloud configure set --cli-region=). Supported pairs, checked in this order (identical in scripts/precheck.sh and scripts/query-dcs-instances.py):

    • HUAWEICLOUD_SDK_AK / HUAWEICLOUD_SDK_SK
    • HUAWEI_ACCESS_KEY / HUAWEI_SECRET_KEY
    • HW_ACCESS_KEY / HW_SECRET_KEY
    • HWC_AK / HWC_SK
    • HWC_ACCESS_KEY / HWC_SECRET_KEY

    Never commit real keys to the repository or paste them into examples.

  2. Python 3.8+ — Required for scripts in scripts/

  3. PyYAML — Required by scripts/validate-rules.py: pip install pyyaml

  4. huaweicloudsdk packages — For path B resources (DCS): pip install huaweicloudsdkdcs (also pip install huaweicloudsdkvpc if you use the SDK fallback in scripts/precheck.sh)

  5. Network access — To GitCode for find-skills index queries

  6. hcloud CLI (optional) — For CCE cluster queries via CCE management skill

Environment Variables

Variable Required Description
SKILL_QUALITY_ENABLE No Set 1 to opt in to quality reporting; disabled by default
SKILL_QUALITY_ENDPOINT No Report endpoint (https only), default https://skillsapi.developer.myhuaweicloud.com/api/quality/report
SKILL_QUALITY_NAME No Skill name (auto-detected)
SKILL_QUALITY_DISABLE No Set 1 to force-disable reporting (overrides SKILL_QUALITY_ENABLE)
SKILL_QUALITY_TIMEOUT No Report timeout in seconds (default 3)

Workflow

Step 1: Connectivity Precheck

Run the precheck script to verify credentials are available and the API is reachable:

bash scripts/precheck.sh
  • Exit 0: Credentials OK, VPC API reachable → proceed to Step 2
  • Exit non-zero: Print error, tell user to configure credentials, stop

Step 2: Path Parsing & Find-Skills Lookup

Parse the user's natural-language access path:

  1. Extract resource types and approximate names (e.g., "ELB web-elb" → type=elb_listener, name="web-elb")
  2. For each resource type, look up the appropriate query skill in references/resource-skill-mapping.md
  3. Use the skill discovery index (search script) to confirm the query skill exists in the current index
  4. Build a structured collection plan:
    • Path A resources → dispatch to query skill
    • Path B resources → use self-written script

Output: Structured path draft + collection path mapping

Step 3: Real Topology Discovery

Execute the collection plan:

Path A (existing query skills)

Resource Query Skill Category Key Queries
VPC network inventory query skill ListVpcs, ShowVpc
Subnet network inventory query skill ListSubnets
Security Group network inventory query skill ListSecurityGroups, ShowSecurityGroup
Route Table network inventory query skill ListRouteTabl
Полный SKILL.md на ClawHub

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

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

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

FAQ

Что делает скилл huawei-cloud-network-topology-audit?

Orchestrator skill that audits Huawei Cloud network topology for security and configuration risks. Given a user-described access path (e.g., "ELB web-elb → CCE prod-cce → RDS prod-db"), it resolves the real topology, expands to the full VPC network surface, evaluates risks against an extensible rule directory, and produces a Markdown audit report with a Mermaid topology diagram. Triggers include: "组网审计", "网络拓扑审计", "安全组审计", "网络合理性检查", "网络风险审计", "network audit", "topology audit", "security group audit", "network risk check", "组网评估".

Как установить скилл huawei-cloud-network-topology-audit?

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

Скилл huawei-cloud-network-topology-audit запускает скрипты?

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

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

Сравнить huawei-cloud-network-topology-audit с