Command Palette

Search for a command to run...

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

huawei-cloud-rms-list

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

1. Query the Huawei Cloud RMS unified resource inventory of a tenant through KooCLI (`hcloud RMS ListAllResources --cli-region=<region>`; official read-only…

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

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

Huawei Cloud RMS Resource Inventory

Overview

Query the Huawei Cloud RMS (Resource Management Service) unified resource view of a tenant through KooCLI hcloud RMS ListAllResources --cli-region=<region> (official read-only GET /v1/resource-manager/domains/{domain_id}/all-resources, verified in the huaweicloudsdkrms v1 client _list_all_resources_http_info metadata). The skill is aimed at account-wide resource inventory / 资源盘点, asset archival, compliance pre-checks, and as a pre-query step for other skills that need a resource_id.

Architecture:

agent → python3 scripts/list_rms_resources.py → skill-quality-cli ─▶ hcloud RMS <Operation> --cli-region=<region> [filters] [--marker]
      → Huawei Cloud RMS OpenAPI (resource-manager) → parsed JSON → table / json / markdown / csv

(hcloud binary missing) → fallback: huaweicloudsdkrms v1 RmsClient (ListAllResources / ListResources / ListProviders / ListRegions)
(missing SDK)           → run scripts/ensure_env.py  (auto pip install)

Key properties:

  • Read-only by design — the only operations ever constructed are ListAllResources, ListResources, ListProviders and ListRegions (all GET). A write-intent guard scans the user arguments and validates the operation name; mutating intents (create / delete / update / enable / disable / run-query ...) are rejected with an explicit message before any command runs.
  • CLI first, SDK fallback — KooCLI is the primary execution path (wrapped with skill-quality-cli for telemetry); when the hcloud binary is absent, the script falls back to the official huaweicloudsdkrms v1 SDK. Credentials are always read by the CLI profile / SDK environment — never handled by the script.
  • Paging-aware — resource views follow page_info.next_marker until the last page; ListProviders advances offset until total_count is reached.
  • Offline-testable — the guard, command construction, paging, error classification (including the RMS.00010006 permission envelope returned on stdout with rc=0), SDK fallback, renderers and atomic export are covered by offline unit tests that mock the hcloud subprocess.

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

Capability boundary: this skill lists/queries the RMS resource inventory and the provider/region catalogs only. It does not create, delete or modify resources, does not manage RMS config aggregators / trackers / policy assignments, and never writes anything back to the cloud. Those require a separate skill and explicit user confirmation (确认).

Prerequisites

  1. KooCLI (hcloud) installed — the primary execution path; see references/cli-installation-guide.md. When absent, the SDK fallback is used.
  2. Python 3.8+ with the Huawei Cloud SDK — run python3 scripts/ensure_env.py to install huaweicloudsdkcore and huaweicloudsdkrms automatically. Rendering itself needs only the standard library.
  3. Credentials configured out-of-band — the CLI reads the active hcloud profile; the SDK fallback reads AK/SK from the whitelisted environment variables (HUAWEICLOUD_SDK_AK / HUAWEICLOUD_SDK_SK, HUAWEI_ACCESS_KEY / HUAWEI_SECRET_KEY, HW_*, ...). Never paste AK/SK into chat; the script never reads, echoes or stores secrets itself.
  4. IAM permission — read-only rms:resources:list (plus rms::listTags / rms::listResourcesByTag when listing tag-based views); least-privilege policy in references/iam-policies.md.
  5. Region — cn-north-4 by default (the RMS SDK catalog advertises the global endpoint https://rms.myhuaweicloud.com).
  6. Outbound HTTPS access to the RMS OpenAPI endpoint.
  • 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. (Optional) prepare the environment — python3 scripts/ensure_env.py installs any missing SDK dependency.
  2. Choose the view — default account-wide inventory (ListAllResources); --list-providers / --list-regions for the catalogs; --provider P --type T for a provider+type-scoped list (ListResources).
  3. Pick filters — --region-id, --ep-id, --id, --name, --tags, --domain-id (real server-side RMS query parameters).
  4. Run the script with the desired --format and --output.
  5. Read the result — the table prints to stdout; file formats print the written path. An empty result is reported explicitly and still writes a valid header-only file.
  6. Handle the empty / error cases per the Error Handling table below.

Core Commands

**⚠️ Mandatory quality wrapping: scripts/list_rms_resources.py builds every hcloud CLI call

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

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

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

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

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

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

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

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

FAQ

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

1. Query the Huawei Cloud RMS unified resource inventory of a tenant through KooCLI (`hcloud RMS ListAllResources --cli-region=<region>`; official read-only GET /v1/resource-manager/domains/{domain_id}/all-resources), with an automatic fallback to the huaweicloudsdkrms v1 SDK when KooCLI is absent. 2. Four read-only views: account-wide resource list (default, ListAllResources), provider+type-scoped resource list (ListResources), the RMS provider / resource-type catalog (ListProviders) and the RMS region catalog (ListRegions). 3. Four output modes: aligned full-field table (default), `--json`, `--markdown` (GitHub-flavored table) and `--csv`; `--output` writes a file via a temp file + atomic rename. 4. Filters: `--provider` / `--type` / `--region-id` / `--ep-id` / `--id` / `--name` / `--tags` / `--domain-id` (all real RMS query parameters) plus automatic `marker` paging (and `offset` paging for ListProviders). 5. Explicit error hints for empty inventories, 403 / missing `rms:resources:list` permission (RMS.00010006), missing AK/SK credentials, a missing KooCLI backend, and bad export paths. 6. Built-in write-intent guard: any mutating intent (create / delete / update / enable / disable / run-query ...) or any operation outside the four read-only ones is rejected before execution — this skill is strictly read-only. 7. Triggers include: "RMS 资源清单", "查询资源管理服务资源", "统一资源视图", "rms list resources", "list all resources", "资源清单导出", "资源盘点", "RMS resources list", "华为云资源清单".

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

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

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

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

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

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