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-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_idfrom 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-onlyGET /v3/{project_id}/instancesdirectly 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 实例名称列表」);
--tablerenders the fixed eight-column table and--jsonthe raw response array. - Fixed table columns — 实例ID/名称/状态/引擎版本/规格/节点数/创建时间/模式;
missing values render
-. 规格 comes fromgroups[].nodes[].spec_code(distinct codes de-duplicated) and 节点数 is the number ofgroups[].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/--tagsare real server-side query parameters; paging uses--limit(1~100) +--offsetand is fetched automatically untiltotal_countis reached.--statusis 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
- KooCLI (
hcloud) installed — see references/cli-installation-guide.md. Alternative:python3 scripts/ensure_env.py(orpip install huaweicloudsdkcore huaweicloudsdkdds) to enable the SDK fallback path. If both are missing, the REST fallback needs no extra package (standard library only). - Active credential profile configured offline/out-of-band — run the
KooCLI configure command in your own terminal, or export
HUAWEICLOUD_SDK_AK/HUAWEICLOUD_SDK_SKbefore starting the agent (addHUAWEICLOUD_SDK_SECURITY_TOKENfor 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. - project_id — the KooCLI path resolves it from the credential profile
automatically; pass
--project-idto override. The SDK and REST fallbacks require it (--project-idorHUAWEICLOUD_SDK_PROJECT_ID/HUAWEI_PROJECT_ID), because the REST path is/v3/{project_id}/instances. - IAM permission — read-only
dds:instance:list(aliasdds:instance:listAll); least-privilege policy in [references/iam-policies.md](refere
Установить 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 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic