huawei-cloud-product-list
БесплатноЗапускает вложенные скриптыНе проверен1. List the Huawei Cloud product (service) catalog — the 云服务类型 directory — through KooCLI (hcloud BSS ListServiceTypes, read-only GET…
от wlc-dev190 установок в других каталогахОб этом скилле
Huawei Cloud Product (Service) Catalog List
Overview
List the Huawei Cloud product (service) catalog — the 云服务类型 directory —
through KooCLI hcloud BSS ListServiceTypes (official read-only GET
/v2/products/service-types, verified in the huaweicloudsdkbss v2 client
_list_service_types_http_info metadata). Each entry exposes the product name
(service_type_name), its service type code (service_type_code) and its
abbreviation (abbreviation). The skill is aimed at browsing the available
Huawei Cloud product line, product/service selection pre-research, and catalog
export.
Architecture:
agent → python3 scripts/list_products.py → hcloud BSS ListServiceTypes --cli-region=<region>
→ Huawei Cloud BSS OpenAPI (global endpoint) → parsed JSON
→ 名称/编码/缩写 table / --json / --names-only
(hcloud binary missing, or CLI metadata lacks BSS: `Unsupported service: BSS.`)
→ fallback: huaweicloudsdkbss v2 BssClient.list_service_types
Key properties:
- Read-only by design — the only API ever invoked is
ListServiceTypes(GET). A write-intent guard scans user arguments and validates the operation name; mutating intents (create / delete / update / transfer / reclaim / adjust / freeze / send / issue / cancel ...) are rejected with an explicit message before any command runs. - CLI first, SDK fallback — KooCLI is the primary execution path; when the
KooCLI binary is absent, or its offline metadata does not include the BSS
service (
[USE_ERROR]Unsupported service: BSS.), the script falls back to the officialhuaweicloudsdkbssv2 SDK (list_service_types). BSS is a global service, so the SDK path usesGlobalCredentials+with_endpoints(https://bss.myhuaweicloud.com). Credentials are always read by the CLI profile / SDK environment — never handled by the script. - Catalog table output — the default table renders 名称 / 编码 / 缩写 for a
stable, easy-to-consume product inventory;
--jsonpreserves every returned field. - Offline-testable — every code path (paging, filters, error classification, guard, SDK fallback, standardization) is covered by unit tests that mock the hcloud subprocess.
Out of scope: every mutating BSS operation (create / update / delete a product, resource or coupon, order placement, account changes). Those require a dedicated write-capable skill and explicit user confirmation.
Prerequisites
- KooCLI (
hcloud) installed — see references/cli-installation-guide.md. Alternative:python3 scripts/ensure_env.py(orpip install huaweicloudsdkcore huaweicloudsdkbss) to enable the SDK fallback path. - 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 / SDK environment.
- IAM permission — read-only BSS access (the catalog is a BSS domain API); least-privilege policy in references/iam-policies.md.
- Python 3.8+ (standard library only — argparse / json / subprocess).
- Outbound HTTPS access to
bss.myhuaweicloud.com. - Region — BSS is a global service; use
cn-north-1(the default here).
Workflow
- Confirm the target region (default
cn-north-1; the catalog is global). - Confirm KooCLI readiness (optional, read-only) by listing the active credential profile.
- Run the catalog script with the desired output mode and filters.
- Read the result — 名称 / 编码 / 缩写 table for humans,
--jsonfor downstream tooling,--names-onlyfor a compact product inventory. - Handle the empty / error cases per the Error Handling table below (the script prints an explicit hint for empty catalog, 403, and missing AK/SK).
Core Commands
# Self-heal the SDK fallback dependencies (idempotent)
python3 scripts/ensure_env.py
# 名称 / 编码 / 缩写 table (default)
python3 scripts/list_products.py --region cn-north-1
# Raw JSON of every returned field
python3 scripts/list_products.py --json
# Compact product (service) name list only
python3 scripts/list_products.py --names-only
# Server-side fuzzy match on the product name
python3 scripts/list_products.py --name 弹性
# Client-side match on the service type code
python3 scripts/list_products.py --code obs
# Combine filters
python3 scripts/list_products.py --region cn-north-1 --name 存储 --names-only
Equivalent direct KooCLI command (the script wraps exactly this call, with offset paging):
hcloud BSS ListServiceTypes --cli-region=cn-north-1 --limit=100 --offset=0
Parameter Confirmation
| Parameter | Required | Description | Example |
|---|---|---|---|
--region / -r |
No | Huawei Cloud region (default cn-north-1; B |
Установить huawei-cloud-product-list в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл huawei-cloud-product-list?
1. List the Huawei Cloud product (service) catalog — the 云服务类型 directory — through KooCLI (hcloud BSS ListServiceTypes, read-only GET /v2/products/service-types), with an automatic fallback to the official huaweicloudsdkbss v2 SDK when hcloud is not installed or the CLI metadata lacks the BSS service. 2. Every catalog item carries the product name (service_type_name / 名称), its service type code (service_type_code / 编码) and its abbreviation (abbreviation / 缩写), so users can browse the对外开放 Huawei Cloud product line in one call. 3. Three output modes: table (default — 名称 / 编码 / 缩写), --json (raw response array with every returned field), and --names-only (compact product name list). Output is written to stdout only (errors go to stderr). 4. Supports --name (server-side fuzzy match on the service type name), --code (client-side match on the service type code), region override, page-size, and automatic offset paging. 5. Explicit error hints for an empty catalog (「未查询到华为云产品(服务)目录数据」), 403 / insufficient IAM permission (「无权限访问华为云产品目录…,请检查 IAM 权限」), missing or invalid AK/SK credentials, and hcloud not installed. 6. Built-in write-intent guard: any mutating intent (create / delete / update / modify / transfer / reclaim / adjust / freeze / send / issue / cancel ...) or any operation other than ListServiceTypes is rejected before execution — this skill is strictly read-only. 7. Triggers include: "华为云产品列表", "产品目录", "服务目录", "云服务类型", "华为云有哪些产品", "list huawei cloud products", "service catalog", "product catalog", "list cloud services", "huawei cloud service types". 8. Offline unit tests (mocked hcloud subprocess) cover output modes, filters, paging, error scenarios, SDK fallback, standardization, and the write-intent guard.
Как установить скилл huawei-cloud-product-list?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл huawei-cloud-product-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