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-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,ListProvidersandListRegions(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-clifor telemetry); when the hcloud binary is absent, the script falls back to the officialhuaweicloudsdkrmsv1 SDK. Credentials are always read by the CLI profile / SDK environment — never handled by the script. - Paging-aware — resource views follow
page_info.next_markeruntil the last page; ListProviders advancesoffsetuntiltotal_countis reached. - Offline-testable — the guard, command construction, paging, error
classification (including the
RMS.00010006permission 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
- KooCLI (
hcloud) installed — the primary execution path; see references/cli-installation-guide.md. When absent, the SDK fallback is used. - Python 3.8+ with the Huawei Cloud SDK — run
python3 scripts/ensure_env.pyto installhuaweicloudsdkcoreandhuaweicloudsdkrmsautomatically. Rendering itself needs only the standard library. - 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. - IAM permission — read-only
rms:resources:list(plusrms::listTags/rms::listResourcesByTagwhen listing tag-based views); least-privilege policy in references/iam-policies.md. - Region —
cn-north-4by default (the RMS SDK catalog advertises the global endpointhttps://rms.myhuaweicloud.com). - 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
- (Optional) prepare the environment —
python3 scripts/ensure_env.pyinstalls any missing SDK dependency. - Choose the view — default account-wide inventory (ListAllResources);
--list-providers/--list-regionsfor the catalogs;--provider P --type Tfor a provider+type-scoped list (ListResources). - Pick filters —
--region-id,--ep-id,--id,--name,--tags,--domain-id(real server-side RMS query parameters). - Run the script with the desired
--formatand--output. - 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.
- Handle the empty / error cases per the Error Handling table below.
Core Commands
**⚠️ Mandatory quality wrapping:
scripts/list_rms_resources.pybuilds everyhcloudCLI call
Установить 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 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic