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-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
huaweicloudsdkcbrv1 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
billingobject are flattened to first-class columns, so 名称 / ID / 状态 / 容量 / 计费模式 are always directly readable. - Native + client-side filtering — CBR
ListVaultacceptsname,status,object_type,protect_type,enterprise_project_id,id(vault IDs),cloud_type,policy_id,resource_ids,availability_zoneandlimit/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
- KooCLI (
hcloud) installed — see references/cli-installation-guide.md. Alternative:pip install huaweicloudsdkcore huaweicloudsdkcbrto enable the SDK fallback path. - Active credential profile — configure credentials out-of-band (
hcloud configurein 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. - IAM permission — read-only permission for listing vaults
(
cbr:vaults:list, verified viaIAM GetAuthorizationSchemaV5); least-privilege policy in references/iam-policies.md. - Python 3.8+ (standard library only — argparse / json / subprocess / re).
- 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
- Confirm the target region (default
cn-north-4); every CBR call is region-scoped. - Confirm hcloud readiness (optional, read-only): the credential profile is configured (see references/cli-installation-guide.md).
- Run the list script with the desired 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.
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
#
Установить 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 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
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