huawei-cloud-er-list
БесплатноЗапускает вложенные скриптыНе проверен1. Read-only inventory of Huawei Cloud Enterprise Router (ER) resources through KooCLI: enterprise routers (hcloud ER ListEnterpriseRouters — GET…
от 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-onlyGET /v3/{project_id}/enterprise-router/instances, verified in thehuaweicloudsdkerv3 clientresource_pathmetadata). - 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
huaweicloudsdkerv3 SDK. Credentials are always read by the CLI profile / SDK environment — never handled by the script. - Abnormal resources are separated — non-
availableenterprise 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
- KooCLI (
hcloud) installed — see references/cli-installation-guide.md. Alternative:pip install huaweicloudsdkerto enable the SDK fallback path. - 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.
- 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-idor theHUAWEICLOUD_SDK_PROJECT_ID/HUAWEI_PROJECT_IDenvironment variables. The KooCLI path resolves it from the profile automatically. - IAM permission — read-only
er:instances:list,er:instances:get,er:instances:listVpcAttachmentsander:routeTables:list; least-privilege policy in references/iam-policies.md. - Python 3.8+ (standard library only — argparse / json / subprocess).
- 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
- Confirm the target region (default
cn-north-4). - Confirm the resource type —
--resource er(default) /attachment/route-table/detail. - For attachment / route-table / detail, confirm the ER id (
--er-id). Get it from the--resource erinventory when unknown. - Run the list script with the desired output mode and filters.
- Read the result — compact list for humans,
--tablef
Установить 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 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
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