huawei-cloud-waf-list
БесплатноЗапускает вложенные скриптыНе проверен1. Query the list of Huawei Cloud WAF (Web Application Firewall, Web应用防火墙) protected websites / domain names under the current account through KooCLI (hcloud…
от wlc-dev201 установка в других каталогахОб этом скилле
Huawei Cloud WAF Protected Website List
Overview
Query the WAF-protected website / domain-name list of a tenant region through
KooCLI hcloud waf ListHost (cloud mode) or hcloud waf ListCompositeHosts
(all modes: cloud + dedicated/premium), returning key fields such as the
protected domain name, protection status, access mode (云模式/独享模式), keep-alive
mode (proxy or direct), and exclusive-IP flag. The skill is aimed at WAF
inventory inspection, daily operations patrol, protection-status verification,
and as a pre-query step for other WAF tasks that need a domain or hostid.
| Command | REST path | Scope |
|---|---|---|
WAF ListHost |
GET /v1/{project_id}/waf/instance |
cloud-mode protected domains |
WAF ListCompositeHosts |
GET /v1/{project_id}/composite-waf/host |
domains across all WAF instances (cloud + premium) |
Architecture:
agent → python3 scripts/list_waf_sites.py [--region=<region>] [--all-modes|--mode=<m>]
→ hcloud waf ListHost | ListCompositeHosts --cli-region=<region>
→ Huawei Cloud WAF OpenAPI → parsed JSON → table / --json / --names-only
Key properties:
- Read-only by design — only the two
List*(GET) operations are ever constructed. A write-intent guard scans user arguments and validates the operation name; mutating intents (create / delete / update / migrate / rename / batch ...) are rejected with an explicit message before any command runs. - KooCLI only — WAF is driven through the hcloud CLI. Credentials are always resolved by the KooCLI profile / environment, never handled by the script.
- Two scopes — by default the skill queries cloud-mode domains
(
ListHost, matching what the WAF console "存量防护网站" tab shows). Add--all-modes(or--mode premium) to query the composite list covering dedicated/premium-mode domains too;waf_typein the JSON response marks each domain ascloudorpremium. - Key-field table default — the default table renders 防护域名 | 防护状态 |
接入方式 | 保活方式 | 独享IP | Domain ID;
--jsongives the raw host array for downstream tooling. - Offline-testable — every code path (routing, output modes, filters, error classification, guard) is covered by unit tests that mock the hcloud subprocess.
Out of scope: every mutating WAF action (create / delete / update a domain, migrate the access mode, batch operations, policy / rule management), and detailed per-domain configuration export. Those require a dedicated write-capable skill and explicit user confirmation.
Dependency: Quality telemetry is collected automatically via skill-quality-cli (installed by scripts/ensure_cli.sh if absent).
Prerequisites
- KooCLI (
hcloud) installed — see references/cli-installation-guide.md. - Active credential profile — configure credentials out-of-band (run the KooCLI configure command in your terminal, or set credential environment variables). Never paste AK/SK into chat; the script never reads, echoes, or stores secrets itself — authentication is delegated entirely to the hcloud profile.
- IAM permission — read-only
waf:host:list; the least-privilege policy is in references/iam-policies.md. - Python 3.8+ (standard library only — argparse / json / subprocess).
- Outbound HTTPS access to
*.myhuaweicloud.com.
skill-quality-cli— ensured bybash scripts/ensure_cli.sh(idempotent, skips if present)- Upgrade: run
skill-quality-cli upgrademanually (no auto-upgrade) - Disable telemetry report: set
SKILL_QUALITY_REPORT=0
- Upgrade: run
Workflow
- Confirm the target region (default
cn-north-4); every WAF call is region-scoped. - Pick the scope — cloud mode only (default), all modes (
--all-modes), or dedicated/premium mode (--mode premium). - Run the list script with the desired output mode and filters.
- Read the result — table for humans,
--jsonfor downstream tooling,--names-onlyfor a compact domain inventory. - Handle the empty / error cases per the Edge Cases table below (the script prints an explicit hint for empty region, missing permission, and missing hcloud).
Core Commands
List cloud-mode protected domains (default)
> **⚠️ Mandatory: every `hcloud` command in this skill MUST be wrapped with `skill-quality-cli run --skill-name huawei-cloud-waf-list -- ` — bare `hcloud` calls are strictly forbidden.**
skill-quality-cli run --skill-name huawei-cloud-waf-list -- python3 scripts/list_waf_sites.py --region={region}
| Parameter | Required | Description |
|---|---|---|
--region |
No (auto) | Region, default cn-north-4 |
Under the hood the skill runs:
skill-quality-cli run --skill-name huawei-cloud-waf-list -- hcloud waf ListHost --cli-region={region} --pagesize=-1
| Parameter | Required | Description |
|---|
Установить huawei-cloud-waf-list в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл huawei-cloud-waf-list?
1. Query the list of Huawei Cloud WAF (Web Application Firewall, Web应用防火墙) protected websites / domain names under the current account through KooCLI (hcloud waf ListHost / ListCompositeHosts — read-only GET /v1/{project_id}/waf/instance and /v1/{project_id}/composite-waf/host). 2. Output modes: a compact table (default) with 防护域名 | 防护状态 | 接入方式 | 保活方式 | 独享IP | Domain ID key fields, --json (the raw host array)[, and --names-only (unique sorted domain list). 3. Supports --region to pick the region, --all-modes / --mode cloud|premium to select cloud-mode or dedicated/premium-mode protected domains, --hostname filtering, --protect-status (-1 bypass / 0 suspended / 1 enabled), --enterprise-project-id and --policyname filters, and automatic pagination (--pagesize, -1 = fetch all). Access mode (接入方式 cloud/premium) is surfaced from waf_type, keep-alive mode (保活方式) from proxy. 4. Explicit error hints for an empty protected-site list (「当前区域无 WAF 防护网站」), 403 / insufficient IAM permission (「无权限访问 WAF 防护网站列表」, WAF.00012006), disabled region (APIGW.0802), and hcloud not installed. 5. Built-in write-intent guard: any mutating intent (create / delete / update / migrate / rename / batch ...) is rejected before execution — this skill is strictly read-only. 6. Triggers include: "list WAF sites", "WAF 防护网站列表", "查询WAF防护域名", "WAF 域名列表", "WAF 防护状态查询", "WAF 网站盘点", "WAF 巡检", "list waf hosts", "waf protected domains", "华为云WAF列表". 7. Offline unit tests (mocked hcloud subprocess) cover routing, output modes, filters, error scenarios and the write-intent guard.
Как установить скилл huawei-cloud-waf-list?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл huawei-cloud-waf-list запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic