Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

huawei-cloud-ces-eps-query

FreeRuns bundled scriptsNot checked

1. Read-only Huawei Cloud **management-plane** queries for CES (Cloud Eye) and EPS (Enterprise Project Service), triggerable from natural language. 2. CES (7…

wlc-devby wlc-dev351 installs in other catalogs

About this skill

Huawei Cloud CES / EPS Management-Plane Query

Overview

Query the management-plane metadata of Huawei Cloud CES (Cloud Eye) and EPS (Enterprise Project Service) for a Huawei Cloud account. The skill covers 12 read-only query categories and can be driven either by an explicit --category or by a natural-language --query string that is routed to one of the categories.

Architecture:

agent → python3 scripts/ces_eps_query.py --query "<intent>" --category <c>
      → natural-language router (query → category)
      → write-intent guard (read-only enforcement)
      → execution:  skill-quality-cli run ─▶ hcloud CES|EPS <Operation>   (CLI, primary)
                  → huaweicloudsdkces v2 / huaweicloudsdkeps v1 (SDK fallback)
                  → REST GET with X-Auth-Token            (token fallback)
      → normalized rows → table / JSON stdout

Key properties:

  • Read-only by design — every category maps to a single read operation (verified against the SDK _http_info resource_path). A write-intent guard rejects create / update / delete / enable / disable / migrate / batch-* vocabulary before anything runs. The only POST paths used (notification-masks/batch-query, resources/filter) are read batch query operations, never mutations.
  • CLI first, SDK fallback, REST last — KooCLI is attempted first; when the operation is not available or hcloud is absent, the skill falls back to the official SDK, then to a token-based REST GET.
  • Natural-language triggerable — --query "查询企业项目绑定资源" routes to eps-resources; unknown intents are rejected with the list of categories.
  • Capability boundary (out of scope, always refused) — raw metric data points (ShowMetricData / ListMetrics / BatchListMetricData), service-level metric values (RDS / DCS / DMS / EVS / ELB ...), and every write operation.

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

Query Categories

CES — 7 categories (huaweicloudsdkces v2)

Category Description SDK method REST path (read)
alarm-rules 告警规则列表 list_alarm_rules GET /v2/{project_id}/alarms
alarm-histories 告警历史列表 list_alarm_histories GET /v2/{project_id}/alarm-histories
alarm-templates 告警模板列表 list_alarm_templates GET /v2/{project_id}/alarm-templates
dashboards 仪表盘列表 list_dashboard_infos GET /v2/{project_id}/dashboards
notification-masks 通知掩码列表 list_notification_masks POST /v2/{project_id}/notification-masks/batch-query (read)
resource-groups 资源分组列表 list_resource_groups GET /v2/{project_id}/resource-groups
one-click-alarms 一键告警列表 list_one_click_alarms GET /v2/{project_id}/one-click-alarms

EPS — 5 categories (huaweicloudsdkeps v1)

Category Description SDK method REST path (read)
eps-projects 企业项目列表 list_enterprise_project GET /v1.0/enterprise-projects
eps-project-detail 企业项目详情 (needs --id) show_enterprise_project GET /v1.0/enterprise-projects/{enterprise_project_id}
eps-quotas 企业项目配额 show_enterprise_project_quota GET /v1.0/enterprise-projects/quotas
eps-resources 企业项目绑定资源 (needs --id) show_resource_bind_enterprise_project POST /v1.0/enterprise-projects/{enterprise_project_id}/resources/filter (read)
eps-migration-records 企业项目迁移记录 list_migration_record GET /v1.0/enterprise-projects/migrate-record/list

Prerequisites

  1. Python 3.8+ with the Huawei Cloud SDK — run python3 scripts/ensure_env.py to install huaweicloudsdkcore, huaweicloudsdkces and huaweicloudsdkeps automatically. See references/cli-installation-guide.md.
  2. KooCLI (hcloud) — optional primary execution path; see references/cli-installation-guide.md. When absent, the SDK fallback is used.
  3. Credentials configured out-of-band — the CLI reads the active hcloud profile; the SDK fallback reads AK/SK from the whitelisted environment variables (HUAWEI_ACCESS_KEY / HUAWEI_SECRET_KEY, HUAWEICLOUD_SDK_AK / HUAWEICLOUD_SDK_SK, HW_*, ...). Never paste AK/SK into chat; the script never reads, echoes or stores secrets itself.
  4. IAM permission — read-only CES / EPS actions (least-privilege policy in references/iam-policies.md).
  5. Outbound HTTPS access to ces.<region>.myhuaweicloud.com and eps.<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

1

Full SKILL.md on ClawHub

Install huawei-cloud-ces-eps-query in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

FAQ

What does the huawei-cloud-ces-eps-query skill do?

1. Read-only Huawei Cloud **management-plane** queries for CES (Cloud Eye) and EPS (Enterprise Project Service), triggerable from natural language. 2. CES (7 query categories): alarm rules (告警规则), alarm histories (告警历史), alarm templates (告警模板), dashboards (仪表盘), notification masks (通知掩码), resource groups (资源分组), one-click alarms (一键告警). 3. EPS (5 query categories): enterprise project list (企业项目列表), enterprise project detail (企业项目详情), enterprise project quotas (企业项目配额), resources bound to an enterprise project (绑定资源), migration records (迁移记录). 4. Execution order: KooCLI (`hcloud CES|EPS <Operation>`) first, then the official `huaweicloudsdkces` v2 / `huaweicloudsdkeps` v1 SDK, then a token-based REST GET fallback. A write-intent guard rejects every mutating intent before any command runs. 5. Explicitly OUT OF SCOPE: raw metric data points (`ShowMetricData` / `ListMetrics` / `BatchListMetricData`), service-level metric values (RDS / DCS / DMS / EVS / ELB ...), and every write operation (create / update / delete / enable / disable / migrate / batch-*). 6. Triggers include: "查询告警规则", "告警历史", "告警模板", "仪表盘", "通知掩码", "资源分组", "一键告警", "企业项目列表", "企业项目详情", "企业项目配额", "企业项目绑定资源", "迁移记录", "CES query", "EPS query", "cloud eye", "enterprise project", "alarm rule list". 7. Offline unit tests (mocked hcloud / SDK) cover intent routing, the write-intent guard, output normalization, backend fallback and all CLI output modes.

How do I install the huawei-cloud-ces-eps-query skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the huawei-cloud-ces-eps-query skill run scripts?

Yes, this skill bundles executable scripts. Review the source before installing.

Related skills

Compare huawei-cloud-ces-eps-query with