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 →…
от 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:
- Resolves the real topology from actual cloud resources
- Expands to the full VPC network surface (VPCs, subnets, route tables, security groups, EIPs, ELBs, NAT gateways, ECS, RDS, CCE, DCS)
- Evaluates risks against an extensible rule directory (
rules/network-audit-rules.yaml) - 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
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.shandscripts/query-dcs-instances.py):HUAWEICLOUD_SDK_AK/HUAWEICLOUD_SDK_SKHUAWEI_ACCESS_KEY/HUAWEI_SECRET_KEYHW_ACCESS_KEY/HW_SECRET_KEYHWC_AK/HWC_SKHWC_ACCESS_KEY/HWC_SECRET_KEY
Never commit real keys to the repository or paste them into examples.
Python 3.8+ — Required for scripts in
scripts/PyYAML — Required by
scripts/validate-rules.py:pip install pyyamlhuaweicloudsdk packages — For path B resources (DCS):
pip install huaweicloudsdkdcs(alsopip install huaweicloudsdkvpcif you use the SDK fallback inscripts/precheck.sh)Network access — To GitCode for find-skills index queries
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:
- Extract resource types and approximate names (e.g., "ELB web-elb" → type=elb_listener, name="web-elb")
- For each resource type, look up the appropriate query skill in
references/resource-skill-mapping.md - Use the skill discovery index (search script) to confirm the query skill exists in the current index
- 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 |
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
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 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…