Command Palette

Search for a command to run...

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

huawei-cloud-dds-list

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

1. List Huawei Cloud DDS (Document Database Service, 文档数据库服务) instances in a tenant region through KooCLI — `hcloud DDS ListInstances` (read-only GET…

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

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

Huawei Cloud DDS Instance List

Overview

Query the DDS (Document Database Service, 文档数据库服务) instance list of a tenant region through KooCLI:

KooCLI command REST path
hcloud DDS ListInstances GET /v3/{project_id}/instances

The path, method (Method: GET) and the full parameter list were verified against the KooCLI DDS ListInstances help output on KooCLI 7.2.12, and the response shape ({"instances": [...], "total_count": N}) against a live read-only call. Each instance follows the official QueryInstanceResponse model: creation/update time are created / updated, the instance type is mode, and the flavor lives at groups[].nodes[].spec_code (see references/verification-method.md §3.1). The IAM action dds:instance:listAll was verified against the official IAM authorization schema. The skill is aimed at database inventory inspection, daily operations patrol, and as a pre-query step for other DDS skills that need an instance_id.

Architecture:

agent → python3 scripts/list_dds.py → hcloud DDS ListInstances --cli-region=<region>
      → Huawei Cloud DDS OpenAPI (dds.<region>.myhuaweicloud.com) → parsed JSON
      → names list / table / --json

(hcloud binary missing) → fallback 2: huaweicloudsdkdds v3 DdsClient.list_instances
(SDK also missing)      → fallback 3: REST GET /v3/{project_id}/instances (local AK/SK signing)

Key properties:

  • Read-only by design — every request is GET /v3/{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 → SDK → REST — 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 huaweicloudsdkdds SDK, and when the SDK is missing as well it issues the same read-only GET /v3/{project_id}/instances directly with local AK/SK signature V4. Credentials are always read from the CLI profile or a whitelisted set of AK/SK / security-token environment variable names — never handled by the script.
  • Name list by default — the default output mode is the compact instance-name list (「DDS 实例名称列表」); --table renders the fixed eight-column table and --json the raw response array.
  • Fixed table columns — 实例ID/名称/状态/引擎版本/规格/节点数/创建时间/模式; missing values render -. 规格 comes from groups[].nodes[].spec_code (distinct codes de-duplicated) and 节点数 is the number of groups[].nodes[] entries — there is no top-level flavor field.
  • Server-side filters & automatic paging — --name / --fuzzy / --instance-id / --mode / --datastore-type / --vpc-id / --subnet-id / --tags are real server-side query parameters; paging uses --limit (1~100) + --offset and is fetched automatically until total_count is reached. --status is a client-side filter (no such server parameter).
  • Offline-testable — every code path (filters, paging, error classification, guard, SDK fallback, REST fallback + signing, rendering) is covered by unit tests that mock the hcloud subprocess, the SDK clients and the REST HTTP fetcher.

Out of scope: every mutating DDS action (create / delete / restart / resize / backup / restore / upgrade / add-sharding-node / add-readonly-node / backup management) and tag-based instance listing (ListInstancesByTags). 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: python3 scripts/ensure_env.py (or pip install huaweicloudsdkcore huaweicloudsdkdds) to enable the SDK fallback path. If both are missing, the REST fallback needs no extra package (standard library only).
  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 (add HUAWEICLOUD_SDK_SECURITY_TOKEN for temporary credentials). 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 and REST fallbacks require it (--project-id or HUAWEICLOUD_SDK_PROJECT_ID / HUAWEI_PROJECT_ID), because the REST path is /v3/{project_id}/instances.
  4. IAM permission — read-only dds:instance:list (alias dds:instance:listAll); least-privilege policy in [references/iam-policies.md](refere
Полный SKILL.md на ClawHub

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

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

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

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

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

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

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

FAQ

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

1. List Huawei Cloud DDS (Document Database Service, 文档数据库服务) instances in a tenant region through KooCLI — `hcloud DDS ListInstances` (read-only GET /v3/{project_id}/instances) — with automatic fallbacks to the official huaweicloudsdkdds v3 SDK (`DdsClient.list_instances`) when hcloud is not installed, and then to a locally signed REST call when the SDK is missing too. 2. Default output is the compact instance-name list (名称列表, also available via --names-only); --table renders the fixed eight-column table (实例ID/名称/状态/引擎版本/规格/节点数/创建时间/模式, missing values shown as "-", 模式 shown as 集群/副本集/单节点; 规格取自 groups[].nodes[].spec_code, 节点数取自 groups[].nodes), and --json outputs the raw instance array. 3. Supports region (default cn-north-4) / project override, --limit (1~100) / --offset paging with automatic page fetching until `total_count`, and the real server-side filters --name (--fuzzy switches to *-prefix fuzzy matching) / --instance-id / --mode Sharding|ReplicaSet|Single / --datastore-type / --vpc-id / --subnet-id; --status is a client-side filter (the ListInstances API has no server-side status parameter — verified). 4. Explicit error hints for empty instance lists (「当前区域(x)无 DDS 实例」), 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 / restart / resize / backup / restore / upgrade / node add-remove ...) or any operation other than the read-only ListInstances is rejected before execution — this skill is strictly read-only, every request is a GET. 6. Triggers include: "list DDS instances", "DDS instance list", "查询 DDS 实例列表", "DDS 实例列表", "DDS实例", "文档数据库实例列表", "查询DDS实例列表", "MongoDB 实例列表", "DDS inventory", "华为云 DDS 列表", "文档数据库". 7. Offline unit tests (mocked hcloud subprocess + fake SDK clients) cover the output modes, filters, paging, error scenarios, SDK fallback and the

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

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

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

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

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

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