huawei-cloud-cci-list
БесплатноЗапускает вложенные скриптыНе проверен1. List Huawei Cloud Cloud Container Instance (CCI) resources in a tenant region through KooCLI (hcloud CCI List* — read-only Kubernetes-style GET…
от wlc-dev200 установок в других каталогахОб этом скилле
Huawei Cloud CCI (Cloud Container Instance) Resource List
Overview
Query the read-only resource lists of Huawei Cloud Cloud Container Instance
(CCI) in a tenant region through KooCLI, selecting the resource family with
--resource:
--resource |
KooCLI operation | REST path | Scope |
|---|---|---|---|
namespace |
CCI ListCoreV1Namespace |
GET /api/v1/namespaces |
cluster-wide |
pod |
CCI ListCoreV1PodForAllNamespaces |
GET /api/v1/pods |
cluster-wide |
pod (with --namespace) |
CCI ListCoreV1NamespacedPod |
GET /api/v1/namespaces/{namespace}/pods |
namespace |
deployment |
CCI ListAppsV1DeploymentForAllNamespaces |
GET /apis/apps/v1/deployments |
cluster-wide |
deployment (with --namespace) |
CCI ListAppsV1NamespacedDeployment |
GET /apis/apps/v1/namespaces/{namespace}/deployments |
namespace |
The skill is aimed at CCI inventory inspection, daily operations patrol, and as a pre-query step for other CCI skills that need a namespace, pod or deployment name.
Architecture:
agent → python3 scripts/list_cci.py --resource <ns|pod|deployment>
→ hcloud CCI List* --cli-region=<region> [--namespace=<ns>]
→ Huawei Cloud CCI OpenAPI (Kubernetes-style REST) → parsed JSON → table / --json / --names-only
Key properties:
- Read-only by design — only the five
List*(GET) operations are ever constructed. A write-intent guard scans user arguments and validates the operation name; mutating intents (create / delete / patch / replace / apply / scale / restart / pod exec ...) are rejected with an explicit message before any command runs. - KooCLI only — CCI exposes a Kubernetes-style OpenAPI and ships no public
Python SDK package (
huaweicloudsdkcciis not published on PyPI), so there is no SDK fallback path; KooCLI is the single execution backend. Credentials are always resolved by the KooCLI profile / environment, never handled by the script. - Key-field table default — the default table renders the union of the flattened Kubernetes key fields (name / namespace / status / replicas / pod IP / node / creation timestamp / labels).
- Server-side filters & automatic paging —
--label-selector/--field-selectorare real Kubernetes list query parameters; paging follows the responsemetadata.continuetoken automatically. - Offline-testable — every code path (routing, filters, paging, error classification, guard) is covered by unit tests that mock the hcloud subprocess.
Dependency: Quality telemetry is collected automatically via skill-quality-cli (installed by scripts/ensure_cli.sh if absent).
Out of scope: every mutating CCI action (create / delete a namespace, create / delete / update a pod or deployment, pod exec, scaling). Those require a dedicated write-capable skill and explicit user confirmation.
Prerequisites
- KooCLI (
hcloud) installed — see references/cli-installation-guide.md. CCI has no public Python SDK, so KooCLI is the only supported backend. - 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
cci:namespace:listandcci:pod:list; least-privilege policy in references/iam-policies.md. - Python 3.8+ (standard library only — argparse / json / subprocess).
- Outbound HTTPS access to the region CCI endpoint
(
cci.<region>.myhuaweicloud.com).
- skill-quality-cli — ensured by bash scripts/ensure_cli.sh (idempotent, skips if present)
- Upgrade: run skill-quality-cli upgrade manually (no auto-upgrade)
- Disable telemetry report: set SKILL_QUALITY_REPORT=0
Workflow
- Confirm the target region (default
cn-north-4); the CCI resource list is region-scoped. - Confirm KooCLI readiness (optional, read-only) by listing the active credential profile.
- Run the list script with the desired
--resource, 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 Error Handling 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-cci-list -- ** — bare hcloud calls are strictly forbidden.
# Key-field table (default): namespaces
python3 scripts/list_cci.py --region cn-north-4
# Pods / instances across all namespaces
python3 scripts/list_cci.py --resource pod --region cn-north-4
# Pods in one
Установить huawei-cloud-cci-list в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл huawei-cloud-cci-list?
1. List Huawei Cloud Cloud Container Instance (CCI) resources in a tenant region through KooCLI (hcloud CCI List* — read-only Kubernetes-style GET operations): namespaces (ListCoreV1Namespace, GET /api/v1/namespaces), pods / instances (ListCoreV1PodForAllNamespaces, GET /api/v1/pods; ListCoreV1NamespacedPod, GET /api/v1/namespaces/{namespace}/pods) and workloads (ListAppsV1DeploymentForAllNamespaces, GET /apis/apps/v1/deployments; ListAppsV1NamespacedDeployment, GET /apis/apps/v1/namespaces/{namespace}/deployments). 2. Three output modes: key-field table (default, 名称/命名空间/状态/副本/创建时间 等关键字段), --json (raw Kubernetes objects) and --names-only (compact namespace/name inventory). 3. Supports --resource namespace|pod|deployment, --namespace scoping, --name (client-side substring), --label-selector / --field-selector (real Kubernetes server-side query parameters), a region override and automatic continue-token paging. 4. Explicit error hints for empty resource lists (「当前区域无 CCI 资源」), 403 / insufficient IAM permission (「无权限访问云容器实例(CCI)」), missing or invalid AK/SK credentials, and hcloud not installed. 5. Built-in write-intent guard: any mutating intent (create / delete / patch / replace / apply / scale / restart / pod exec / ...) or any operation other than the five read-only List operations is rejected before execution — this skill is strictly read-only. 6. Triggers include: "list CCI namespaces", "CCI 命名空间列表", "CCI Pod 列表", "CCI 实例列表", "query CCI resources", "CCI 日常巡检", "CCI 盘点", "list cci pods", "cloud container instance inventory", "华为云CCI列表". 7. Offline unit tests (mocked hcloud subprocess) cover routing, output modes, filters, paging, error scenarios and the write-intent guard.
Как установить скилл huawei-cloud-cci-list?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл huawei-cloud-cci-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