Command Palette

Search for a command to run...

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

huawei-cloud-er-list

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

1. Read-only inventory of Huawei Cloud Enterprise Router (ER) resources through KooCLI: enterprise routers (hcloud ER ListEnterpriseRouters — GET…

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

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

Huawei Cloud Enterprise Router (ER) List

Overview

Query Huawei Cloud Enterprise Router (ER) resources of a tenant through four read-only KooCLI operations:

  • Enterprise routers — hcloud ER ListEnterpriseRouters --cli-region=<region> (official read-only GET /v3/{project_id}/enterprise-router/instances, verified in the huaweicloudsdker v3 client resource_path metadata).
  • VPC attachments — hcloud ER ListVpcAttachments --cli-region=<region> --er_id=<id> (GET /v3/{project_id}/enterprise-router/{er_id}/vpc-attachments).
  • Route tables — hcloud ER ListRouteTables --cli-region=<region> --er_id=<id> (GET /v3/{project_id}/enterprise-router/{er_id}/route-tables).
  • ER detail — hcloud ER ShowEnterpriseRouter --cli-region=<region> --er_id=<id> (GET /v3/{project_id}/enterprise-router/instances/{er_id}).

The skill is aimed at ER inventory inspection, daily operations patrol, network topology checks, and as a pre-query step for other skills that need an ER id, its state, its VPC attachments or route tables.

Architecture:

agent → python3 scripts/list_er.py --resource er|attachment|route-table|detail
      → hcloud ER ListEnterpriseRouters / ListVpcAttachments /
        ListRouteTables / ShowEnterpriseRouter --cli-region=<region>
      → Huawei Cloud ER OpenAPI (er.<region>.myhuaweicloud.com) → parsed JSON
      → compact list / --table / --json

(hcloud binary missing) → fallback: huaweicloudsdker v3 ErClient
      list_enterprise_routers / list_vpc_attachments /
      list_route_tables / show_enterprise_router

Key properties:

  • Read-only by design — the only APIs ever invoked are the four GET operations above. A write-intent guard scans user arguments and validates the operation name per --resource; mutating intents 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 huaweicloudsdker v3 SDK. Credentials are always read by the CLI profile / SDK environment — never handled by the script.
  • Abnormal resources are separated — non-available enterprise routers and VPC attachments are collected into a dedicated section, prefixed with [!] in table mode and [异常] in compact mode, so a failed / pending resource is never silently mixed with healthy rows.
  • Offline-testable — every code path (paging, filters, error classification, SDK fallback, rendering, guard) is covered by unit tests that mock the hcloud subprocess and the SDK.

Out of scope: every mutating ER action (create / update / delete an ER, VPC attachment, route table or static route; associate / disassociate a route table; accept / reject an attachment; enable / disable a flow log or propagation; tag changes). 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 huaweicloudsdker to enable the SDK fallback path.
  2. Active credential profile — configure credentials out-of-band (run the KooCLI configure command in your terminal, or set 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. project_id (SDK fallback only) — the ER REST paths are /v3/{project_id}/enterprise-router/...; when falling back to the SDK, supply the project id via --project-id or the HUAWEICLOUD_SDK_PROJECT_ID / HUAWEI_PROJECT_ID environment variables. The KooCLI path resolves it from the profile automatically.
  4. IAM permission — read-only er:instances:list, er:instances:get, er:instances:listVpcAttachments and er:routeTables:list; least-privilege policy in references/iam-policies.md.
  5. Python 3.8+ (standard library only — argparse / json / subprocess).
  6. Outbound HTTPS access to er.cn-north-4.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).
  2. Confirm the resource type — --resource er (default) / attachment / route-table / detail.
  3. For attachment / route-table / detail, confirm the ER id (--er-id). Get it from the --resource er inventory when unknown.
  4. Run the list script with the desired output mode and filters.
  5. Read the result — compact list for humans, --table f
Полный SKILL.md на ClawHub

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

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

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

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

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

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

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

FAQ

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

1. Read-only inventory of Huawei Cloud Enterprise Router (ER) resources through KooCLI: enterprise routers (hcloud ER ListEnterpriseRouters — GET /v3/{project_id}/enterprise-router/instances), VPC attachments (hcloud ER ListVpcAttachments — GET /v3/{project_id}/enterprise-router/{er_id}/vpc-attachments), route tables (hcloud ER ListRouteTables — GET /v3/{project_id}/enterprise-router/{er_id}/route-tables) and single-ER detail (hcloud ER ShowEnterpriseRouter — GET /v3/{project_id}/enterprise-router/instances/{er_id}), with an automatic fallback to the official huaweicloudsdker v3 SDK when hcloud is missing. 2. `--resource {er,attachment,route-table,detail}` selects the view (default `er`); attachment / route-table / detail require `--er-id`. 3. Output modes: compact list (default), fixed-column table (`--table`: ER 8 columns / VPC attachment 6 columns / route table 6 columns) and `--json` (raw response fields). 4. Non-`available` enterprise routers / attachments are rendered in a separate, explicitly flagged `[!]` / `[异常]` section instead of being mixed with healthy resources. 5. Filters: local `--name` (exact) and `--fuzzy` (case-insensitive), plus server-side `--er-id` / `--state` / `--owned-by-self` / `--enterprise-project-id` / `--vpc-id` / `--sort-key` / `--sort-dir`; region defaults to `cn-north-4`; `--page-size`/`--limit` is 1–2000 with automatic `page_info.next_marker` paging. 6. Built-in write-intent guard: Create / Delete / Update / Associate / Disassociate / Enable / Disable / Accept / Reject and any non-whitelisted operation are rejected before execution (exit 1) — this skill is strictly read-only. 7. Explicit hints for empty lists, 403 / insufficient IAM permission, missing or invalid AK/SK, missing project_id on the SDK fallback, invalid `--er-id` (not found), network failures and hcloud not installed. 8. Triggers include: "list enterprise routers", "er list", "企业路由器列表", "查询企业路由器", "ER 实例列表", "VPC 连接列表", "ER VPC 连接", "ER 路由表", "企业路由器详情", "er inventory",

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

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

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

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

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

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