Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

huawei-cloud-dms-list

БесплатноЗапускает вложенные скриптыНе проверен

1. List Huawei Cloud DMS (Distributed Message Service) instances in a tenant region through KooCLI — Kafka via `hcloud Kafka ListInstances` and RabbitMQ via…

wlc-devот wlc-dev197 установок в других каталогах

Об этом скилле

Huawei Cloud DMS Instance List

Overview

Query the DMS (Distributed Message Service) instance list of a tenant region through KooCLI. DMS has no DMS KooCLI service name: Kafka and RabbitMQ are two distinct KooCLI services, so one inventory query is two read-only calls:

Engine KooCLI command REST path
Kafka hcloud Kafka ListInstances --engine=kafka GET /v2/{project_id}/instances
RabbitMQ hcloud RabbitMQ ListInstancesDetails --engine=rabbitmq GET /v2/{project_id}/instances

Both paths and parameters were verified against hcloud ... --help on KooCLI 7.3.12 and against the official SDK _http_info metadata (huaweicloudsdkkafka v2 KafkaClient.list_instances, huaweicloudsdkrabbitmq v2 RabbitMQClient.list_instances_details). The skill is aimed at message-service inventory inspection, daily operations patrol, and as a pre-query step for other DMS skills that need an instance_id.

Architecture:

agent → python3 scripts/list_dms.py → hcloud Kafka    ListInstances        --engine=kafka
                                    → hcloud RabbitMQ ListInstancesDetails --engine=rabbitmq
      → Huawei Cloud DMS OpenAPI (dms.<region>.myhuaweicloud.com) → parsed JSON
      → names list / table / --json

(hcloud binary missing) → fallback: huaweicloudsdkkafka v2 KafkaClient.list_instances
                                    huaweicloudsdkrabbitmq v2 RabbitMQClient.list_instances_details

Key properties:

  • Read-only by design — every request is GET /v2/{project_id}/instances. A write-intent guard scans user arguments and validates the operation name; mutating intents are rejected with an explicit message before any command runs.
  • CLI first, SDK fallback — KooCLI is the primary execution path (it also resolves project_id from the profile); when the hcloud binary is absent the script falls back to the official Kafka / RabbitMQ SDKs. Credentials are always read from the CLI profile or a whitelisted set of AK/SK environment variable names — never handled by the script.
  • Name list by default — the default output mode is the compact instance-name list (「DMS 实例名称列表」); --table renders the full-field table and --json the raw response array.
  • Server-side filters & automatic paging — --name / --exact_match_name / --instance_id / --status / --enterprise_project_id are real server-side query parameters; paging uses --limit (1~50) + --offset and is fetched automatically until instance_num is reached.
  • Offline-testable — every code path (filters, paging, error classification, guard, SDK fallback, rendering) is covered by unit tests that mock the hcloud subprocess and the SDK clients.

Out of scope: every mutating DMS action (create / delete / resize / restart / flush / clear data / backup / restore / migrate, topic-queue-vhost-user sub-resources) and cross-region aggregation. Write actions require a dedicated write-capable skill with explicit user confirmation.

Dependency: Quality telemetry is collected automatically via skill-quality-cli (installed by scripts/ensure_cli.sh if absent).

Prerequisites

  1. KooCLI (hcloud) installed — see references/cli-installation-guide.md. Alternative: pip install huaweicloudsdkcore huaweicloudsdkkafka huaweicloudsdkrabbitmq to enable the SDK fallback path.
  2. Active credential profile configured offline/out-of-band — run the KooCLI configure command in your own terminal, or export HUAWEICLOUD_SDK_AK / HUAWEICLOUD_SDK_SK before starting the agent. Never paste AK/SK into chat; the script never reads, echoes or stores secrets itself — authentication is delegated to the hcloud profile / SDK environment.
  3. project_id — the KooCLI path resolves it from the credential profile automatically; pass --project-id to override. The SDK fallback requires it (--project-id or HUAWEICLOUD_SDK_PROJECT_ID / HUAWEI_PROJECT_ID), because the REST path is /v2/{project_id}/instances.
  4. IAM permission — read-only dms:instance:list; least-privilege policy in references/iam-policies.md.
  5. Python 3.8+ (standard library only — argparse / json / subprocess).
  6. Outbound HTTPS access to dms.cn-north-4.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

  1. Confirm the target region (default cn-north-4) and engine (all = Kafka + RabbitMQ, or a single engine).
  2. Confirm KooCLI readiness (optional, read-only) by listing the active credential profile.
  3. Run the list script with the desired output mode and filters.
  4. Read the result — name list (default) for a compact in
Полный SKILL.md на ClawHub

Установить huawei-cloud-dms-list в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл huawei-cloud-dms-list?

1. List Huawei Cloud DMS (Distributed Message Service) instances in a tenant region through KooCLI — Kafka via `hcloud Kafka ListInstances` and RabbitMQ via `hcloud RabbitMQ ListInstancesDetails` (both read-only GET /v2/{project_id}/instances) — with an automatic fallback to the official huaweicloudsdkkafka / huaweicloudsdkrabbitmq v2 SDKs when hcloud is not installed. 2. Default output is the compact instance-name list (名称列表, also available via --names-only); --table renders the full-field table (实例ID/名称/引擎/版本/规格/状态/节点数/存储空间/创建时间/VPC/子网/连接地址, missing values shown as "-"), and --json outputs the raw instance array. 3. Supports --engine kafka|rabbitmq|all (default all, both engines), region / project override, --limit / --offset paging with automatic page fetching, and the real server-side filters --name / --name-equal / --instance-id / --status / --enterprise-project-id. 4. Explicit error hints for empty instance lists (「当前区域(x)无 DMS 实例」), 403 / insufficient IAM permission, missing or invalid AK/SK credentials, missing project_id on the SDK fallback, missing hcloud, and KooCLI [USE_ERROR] usage failures (all non-zero exit). 5. Built-in write-intent guard: any mutating intent (create / delete / resize / restart / flush / clear / restore / backup / freeze / migrate) or any operation other than the two read-only list operations is rejected before execution — this skill is strictly read-only, every request is a GET. 6. Triggers include: "list DMS instances", "DMS instance list", "查询 DMS 实例 列表", "DMS 实例列表", "Kafka 实例列表", "RabbitMQ 实例列表", "消息实例列表", "DMS inventory", "list kafka instances", "华为云 DMS 列表". 7. Offline unit tests (mocked hcloud subprocess + fake SDK clients) cover the output modes, filters, paging, error scenarios, SDK fallback and the write-intent guard.

Как установить скилл huawei-cloud-dms-list?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл huawei-cloud-dms-list запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить huawei-cloud-dms-list с