huawei-cloud-cce-list
БесплатноЗапускает вложенные скриптыНе проверен1. List Huawei Cloud Cloud Container Engine (CCE) clusters in a tenant region through KooCLI (hcloud CCE ListClusters — read-only GET…
от wlc-dev321 установка в других каталогахОб этом скилле
Huawei Cloud CCE (Cloud Container Engine) Cluster List
Overview
Query the Cloud Container Engine (CCE) cluster list of a tenant through KooCLI
hcloud CCE ListClusters (official read-only GET
/api/v3/projects/{project_id}/clusters, verified in the huaweicloudsdkcce v3
client _list_clusters_http_info metadata). The skill is aimed at CCE inventory
inspection, daily operations patrol, and as a pre-query step for other CCE skills
that need a cluster id (metadata.uid).
Architecture:
agent → python3 scripts/list_cce.py → hcloud CCE ListClusters --cli-region=<region>
→ Huawei Cloud CCE OpenAPI (project-scoped endpoint) → parsed JSON → table / --json / --names-only
(hcloud binary missing) → fallback: huaweicloudsdkcce v3 CceClient.list_clusters
Key properties:
- Read-only by design — the only API ever invoked is
ListClusters(GET). A write-intent guard scans user arguments and validates the operation name; mutating intents (create / delete / update / upgrade / resize / hibernate / wakeup / add-node / remove-node ...) 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, the script falls back to the official
huaweicloudsdkccev3 SDK (list_clusters). Credentials are always read by the CLI profile / SDK environment — never handled by the script. - Full-field table output — the default table renders the union of the flattened cluster fields (name / uid / alias / phase / type / flavor / version / category / billing mode / description / creation time / labels).
- Offline-testable — every code path (filters, error classification, guard, SDK fallback) is covered by unit tests that mock the hcloud subprocess.
Out of scope: every mutating CCE action (create / update / delete a cluster, node-pool resize, cluster upgrade, hibernation/wakeup, add-on management). Those require a dedicated write-capable skill and explicit user confirmation.
Prerequisites
- KooCLI (
hcloud) installed — see references/cli-installation-guide.md. Alternative:pip install huaweicloudsdkcceto 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
cce:cluster:list; least-privilege policy in references/iam-policies.md. - Python 3.8+ (standard library only — argparse / json / subprocess).
- Outbound HTTPS access to the region CCE endpoint
(
cce.<region>.myhuaweicloud.com).
Workflow
- Confirm the target region (default
cn-north-4); the CCE cluster list is project-scoped and region-scoped. - Confirm KooCLI readiness (optional, read-only) by listing the active credential profile.
- Run the list script with the desired output mode and filters.
- Read the result — table for humans,
--jsonfor downstream tooling,--names-onlyfor a compact inventory. - Handle the empty / error cases per the Edge Cases table below (the script prints an explicit hint for empty region, 403, and missing AK/SK).
Core Commands
⚠️ Mandatory: every hcloud command in this skill MUST be wrapped with
skill-quality-cli run --skill-name huawei-cloud-cce-list --— bare hcloud calls are strictly forbidden.
# Full-field table (default)
python3 scripts/list_cce.py --region cn-north-4
# Raw JSON of every returned field
python3 scripts/list_cce.py --json
# Compact cluster-name list only
python3 scripts/list_cce.py --names-only
# Filter by cluster name / id (client-side)
python3 scripts/list_cce.py --name demo
python3 scripts/list_cce.py --id uid-0001
# Combine filters
python3 scripts/list_cce.py --region cn-north-4 --name demo --names-only
# Equivalent direct KooCLI command (the script wraps exactly this call)
skill-quality-cli run --skill-name huawei-cloud-cce-list -- hcloud CCE ListClusters --cli-region=cn-north-4
Parameter Confirmation
| Parameter | Required | Description | Example |
|---|---|---|---|
--region / -r |
No | Huawei Cloud region (default cn-north-4) |
cn-south-1 |
--json |
No | Output the raw cluster array as JSON | — |
--names-only |
No | Output cluster names only | — |
--name |
No | Filter by cluster name (client-side, case-insensitive substring; the v3 API has no name query parameter) | cce-demo-01 |
--id |
No | Filter by exact cluster UID (client-side, case-insensitive exact; metadata.uid) |
uid-0001 |
--project-id |
No | Project id, only needed for the SDK fallback when AK/SK ca |
Установить huawei-cloud-cce-list в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл huawei-cloud-cce-list?
1. List Huawei Cloud Cloud Container Engine (CCE) clusters in a tenant region through KooCLI (hcloud CCE ListClusters — read-only GET /api/v3/projects/{project_id}/clusters), with an automatic fallback to the official huaweicloudsdkcce v3 SDK when hcloud is not installed. 2. Three output modes: full-field table (default, every returned field including 名称/UID/别名/状态/类型/规格/版本/类别/计费模式), --json (raw response array), and --names-only (compact cluster-name list). 3. Supports --name / --id filtering (applied client-side, because the v3 ListClusters API exposes no name/id query parameters), and a region override. 4. Explicit error hints for empty cluster lists (「当前区域无云容器引擎(CCE)集群」), 403 / insufficient IAM permission (「无权限访问云容器引擎(CCE)」), missing or invalid AK/SK credentials, and hcloud not installed. 5. Built-in write-intent guard: any mutating intent (create / delete / update / upgrade / resize / hibernate / wakeup / add-node / remove-node / ...) or any operation other than ListClusters is rejected before execution — this skill is strictly read-only. 6. Triggers include: "list CCE clusters", "cce cluster list", "云容器引擎集群列表", "查询CCE集群", "CCE 集群清单", "list clusters", "cloud container engine inventory", "华为云CCE". 7. Offline unit tests (mocked hcloud subprocess) cover output modes, filters, error scenarios, SDK fallback, and the write-intent guard.
Как установить скилл huawei-cloud-cce-list?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл huawei-cloud-cce-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