Command Palette

Search for a command to run...

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

huawei-cloud-cbr-vault-list

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

1. List Huawei Cloud CBR (Cloud Backup and Recovery) backup vaults in a tenant region through KooCLI (`hcloud CBR ListVault --cli-region=<region>`…

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

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

Huawei Cloud CBR Backup Vault List

Overview

Query the CBR (Cloud Backup and Recovery) backup vault list of a tenant region through KooCLI hcloud CBR ListVault --cli-region=<region> (read-only), with a fallback to the official huaweicloudsdkcbr v1 SDK (CbrClient.list_vault, GET /v3/{project_id}/vaults). The skill is aimed at vault inventory, daily operations patrol, capacity accounting and charging-mode verification.

Architecture:

agent → python3 scripts/list_cbr_vaults.py → hcloud CBR ListVault --cli-region=<region>
      → Huawei Cloud CBR OpenAPI (regional endpoint) → parsed JSON → table / --json / --names-only

(hcloud binary missing) → fallback: huaweicloudsdkcbr v1 CbrClient.list_vault

Key properties:

  • Read-only by design — the only API ever invoked is ListVault (GET). A write-intent guard scans the user arguments and validates the operation name; mutating intents (create / delete / update / restore / copy / migrate / bind / associate ...) 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 huaweicloudsdkcbr v1 SDK (list_vault). 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 all fields returned by ListVault. The vault capacity, status, object type, protection type and charging mode nested under the response's billing object are flattened to first-class columns, so 名称 / ID / 状态 / 容量 / 计费模式 are always directly readable.
  • Native + client-side filtering — CBR ListVault accepts name, status, object_type, protect_type, enterprise_project_id, id (vault IDs), cloud_type, policy_id, resource_ids, availability_zone and limit / offset; the script passes the supported filters through and re-filters the rendered rows locally so the output always honours the requested filters.
  • Offline-testable — every code path (paging, filtering, error classification, guard, SDK fallback) is covered by unit tests that mock the hcloud subprocess.

Scope: this skill lists backup vaults only. It does not list individual backups, does not report vault quota/usage summaries, and does not run any create/delete/update/migrate/restore/copy operation — those require a separate skill/Issue.

Out of scope: every mutating CBR action (create / delete / update vault, bind policy, migrate, restore / copy backup). Those require a dedicated write-capable skill and 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 huaweicloudsdkcbr to enable the SDK fallback path.
  2. Active credential profile — configure credentials out-of-band (hcloud configure in your terminal, or 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.
  3. IAM permission — read-only permission for listing vaults (cbr:vaults:list, verified via IAM GetAuthorizationSchemaV5); least-privilege policy in references/iam-policies.md.
  4. Python 3.8+ (standard library only — argparse / json / subprocess / re).
  5. Outbound HTTPS access to cbr.<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

  1. Confirm the target region (default cn-north-4); every CBR call is region-scoped.
  2. Confirm hcloud readiness (optional, read-only): the credential profile is configured (see references/cli-installation-guide.md).
  3. Run the list script with the desired output mode and filters.
  4. Read the result — table for humans, --json for downstream tooling, --names-only for a compact inventory.
  5. Handle the empty / error cases per the Error Handling table below.

Core Commands

⚠️ Mandatory: every hcloud command in this skill MUST be wrapped with skill-quality-cli run --skill-name huawei-cloud-cbr-vault-list -- ** — bare hcloud calls are strictly forbidden.

# Full-field table (default)
python3 scripts/list_cbr_vaults.py --region cn-north-4

# Raw JSON array of every returned vault
python3 scripts/list_cbr_vaults.py --json

# Compact vault name + ID inventory
python3 scripts/list_cbr_vaults.py --names-only

#
Полный SKILL.md на ClawHub

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

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

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

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

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

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

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

FAQ

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

1. List Huawei Cloud CBR (Cloud Backup and Recovery) backup vaults in a tenant region through KooCLI (`hcloud CBR ListVault --cli-region=<region>` — read-only), with an automatic fallback to the official huaweicloudsdkcbr v1 SDK (CbrClient.list_vault) when hcloud is not installed. 2. Output modes: full-field aligned table (default, every returned field with 名称/ID/状态/容量/计费模式 surfaced explicitly), --json (raw response array) and --names-only (compact vault name + ID inventory). 3. Supports --region (default cn-north-4), --page-size with automatic limit/offset paging, and the native ListVault filters --name / --status / --object-type / --protect-type / --enterprise-project-id / --vault-id (with a client-side re-filter for the rendered rows). 4. Explicit error hints for empty vault lists (「当前区域无 CBR 存储库」), 403 / insufficient IAM permission (「无权限访问 CBR,请检查 IAM 权限」), missing or invalid AK/SK credentials, hcloud not installed, and KooCLI usage errors. 5. Built-in write-intent guard: any mutating intent (create / delete / update / restore / copy / migrate / bind / associate / ...) or any operation other than the read-only ListVault is rejected before execution — this skill is strictly read-only. 6. Triggers include: "list CBR vaults", "CBR vault list", "CBR 存储库列表", "查询CBR存储库", "查询备份存储库", "备份存储库列表", "云备份存储库", "存储库盘点", "备份容量盘点", "计费模式核对", "CBR inventory", "list vaults", "华为云CBR存储库", "华为云CBR列表". 7. Offline unit tests (mocked hcloud subprocess) cover output modes, filters, paging, error scenarios, SDK fallback and the write-intent guard.

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

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

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

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

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

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