AIPM
Theme

AIPM package

Huawei Cloud Computing Query

@huaweicloud/huawei-cloud-computing-query@1.0.0

|

Scanned · no issues · Dec 4, 2026

GitHub stars: ★ 59

LinkedInPost

Install Skill

Pins this version in aipm.package.json and aipm-lock.json.

aipm add @huaweicloud/huawei-cloud-computing-query@1.0.0

Without project tracking

Writes the skill files only. Add --no-init to skip aipm.package.json and the lockfile.

aipm add @huaweicloud/huawei-cloud-computing-query@1.0.0 --no-init

How to use

Install the skill above, then run this in your AI tool:

/huawei-cloud-computing-query <your description>

About

> **Execution method: this skill runs local Python scripts against the Huawei Cloud SDK. `hcloud`, > `openstack`, `curl` and hand-written API calls are not execution paths for this skill.** > > Run every query from the skill directory with the venv Python created by the environment check: > `.venv/bin/python3 scripts/huawei_<service>.py <subcommand> [options]` > (Windows: `.venv\Scripts\python.exe`). When the host provides a `skill action=exec` tool, prefix the > same command with `skill action=exec:` and use `skill://` paths. > > The entry scripts are executable (`chmod +x`, shebang `#!/usr/bin/env python3`), so > `scripts/huawei_<service>.py <subcommand>` also runs directly; `-h` works on a bare host with neither > SDK nor credentials, and both entry forms resolve the same options.

Source

What gets added to your project

Preview every file this package writes on install before you run the command above.

Summary

|

Skill instructions

Huawei Cloud Resource Query

Execution method: this skill runs local Python scripts against the Huawei Cloud SDK. hcloud, openstack, curl and hand-written API calls are not execution paths for this skill.

Run every query from the skill directory with the venv Python created by the environment check: .venv/bin/python3 scripts/huawei_<service>.py <subcommand> [options] (Windows: .venv\Scripts\python.exe). When the host provides a skill action=exec tool, prefix the same command with skill action=exec: and use skill:// paths.

The entry scripts are executable (chmod +x, shebang #!/usr/bin/env python3), so scripts/huawei_<service>.py <subcommand> also runs directly; -h works on a bare host with neither SDK nor credentials, and both entry forms resolve the same options.

Overview

Read-only query skill for Huawei Cloud computing resources, available specifications and existing resource inventory. Scope covers ECS, BMS, IMS, AS, CCE and DeH (dedicated hosts). In scope: resource lists and details, selection data (flavors, images, AZs, quotas), resource IDs and dependencies. Out of scope: creating, modifying, deleting, resizing, reinstalling or restarting any resource; guessing data that was not queried.

Services and entries

CategoryServiceEntryGuide
ECSElastic Cloud Serverscripts/huawei_ecs.pyreferences/ecs/guide.md
BMSBare Metal Serverscripts/huawei_bms.pyreferences/bms/guide.md
IMSImage Management Servicescripts/huawei_ims.pyreferences/ims/guide.md
ASAuto Scalingscripts/huawei_as.pyreferences/as/guide.md
CCECloud Container Enginescripts/huawei_cce.pyreferences/cce/guide.md
DeHDedicated Hostscripts/huawei_deh.pyreferences/deh/guide.md

Each entry exposes one subcommand per operation. The subcommand name equals the old script file name without the .py suffix; for example scripts/huawei_ecs.py list_servers_details.

Usage principles

  1. This skill only queries; it never creates, modifies or deletes resources.
  2. Prefer the region, project, AZ, resource name and resource ID supplied by the user.
  3. Query exactly one region per call. Do not silently loop over regions; for a multi-region view, confirm the region list first and label each result block.
  4. Base every answer on actual API responses; never speculate from experience.
  5. Preserve key fields in the answer so they can be reused (IDs, names, specifications, images).
  6. Narrow large result sets with --name, --id, --status, --tag or --limit.
  7. If a resource type has no subcommand in the matching guide, say so instead of returning unreliable data.
  8. Run -h on a subcommand before using it; the help page lists every accepted parameter.
  9. Do not fabricate subcommand names; use only the names listed in the guide.

Prerequisites

Run the lightweight environment check once per session. It is safe on a bare host with neither credentials nor the SDK: it checks Python, compiles the entry scripts and probes the SDK imports, prints SKIP: credentials not configured when AK/SK are absent, and exits 0 in under 10 seconds. Results are cached in .env_check_cache; a pass is reused for 30 minutes and a skip/failure for 5 minutes, so repeated calls stay cheap.

bash
bash scripts/check_env.sh
powershell
powershell -ExecutionPolicy Bypass -File scripts/check_env.ps1

Run the strict check only when you are about to execute live queries; it creates the virtual environment, installs the SDK packages and validates the credentials through IAM.

bash
bash scripts/check_env.sh --full
powershell
powershell -ExecutionPolicy Bypass -File scripts/check_env.ps1 --full

The strict check fails fast with exit code 2 when credentials are missing; a host with credentials but unreachable package mirrors or network fails with exit code 3 and a readable hint. The first strict run may take tens of seconds; the whole run is bounded by a total timeout (HW_ENV_CHECK_TIMEOUT, default 120 seconds) so it never waits silently. Force a re-check with --force or HW_ENV_CHECK_FORCE=1; change the pass-cache TTL with --ttl <seconds> or HW_ENV_CHECK_TTL.

Quick self-check without installing dependencies: run -h on any entry script, for example .venv/bin/python3 scripts/huawei_ecs.py list_servers_details -h. Help handling happens before the credential and SDK checks, so it exits 0 and prints the accepted parameters even on a bare host. Use it to confirm the skill is executable before spending time on the full environment check.

Environment variables (values are secrets; never echo them):

  • AK/SK — required; the resolver tries these in order: HW_ACCESS_KEY / HW_SECRET_KEY, then HUAWEI_ACCESS_KEY / HUAWEI_SECRET_KEY, then AKSK (a single slash-joined AK/SK value). HUAWEICLOUD_SDK_AK / HUAWEICLOUD_SDK_SK are accepted as a low-priority alias
  • HW_REGION_NAME — optional, default cn-north-4; fallback for every --region (HUAWEI_REGION_NAME / HUAWEICLOUD_REGION are also accepted)
  • HW_PROJECT_ID — optional project ID; otherwise resolved once through IAM and reused (HUAWEI_PROJECT_ID / HUAWEICLOUD_PROJECT_ID are also accepted)
  • HW_SECURITY_TOKEN — optional, required only for temporary AK/SK (HUAWEI_SECURITY_TOKEN is also accepted)

Workflow

  1. Run the environment check once at the start of the session.
  2. Read the matching guide under references/<service>/ and choose a subcommand.
  3. Run the subcommand's -h page to confirm parameters.
  4. Execute the query with the skill venv Python.
  5. Summarize the result using the presentation rules below.
bash
.venv/bin/python3 scripts/huawei_ecs.py list_servers_details --region cn-north-4 --limit 20
bash
.venv/bin/python3 scripts/huawei_cce.py list_nodes --region cn-north-4 --cluster_id "<cluster_id>" --all

Core Commands

bash
.venv/bin/python3 scripts/huawei_ecs.py list_servers_details -h
bash
.venv/bin/python3 scripts/huawei_ecs.py list_flavors --region cn-north-4 --limit 20
bash
.venv/bin/python3 scripts/huawei_ims.py list_images --region cn-north-4 --os_type Linux --limit 20

Parameter Confirmation

ParameterRequiredDescription
subcommandyesOperation name from the matching guide, e.g. list_servers_details
--regionnoRegion; falls back to HW_REGION_NAME (default cn-north-4)
--project_idnoProject ID; resolved once through IAM when omitted
--limitnoRows displayed by list subcommands, default 20
--allnoWalk every page and display all rows
--fieldsnoComma-separated display fields, e.g. id,name,status
--jsonnoRaw JSON output
resource ID flagsdependsRequired by show subcommands, e.g. --server_id, --cluster_id

Output and cost controls

  • List subcommands print id, name, status by default, at most 20 rows, plus 共 N 条,当前返回 M 条.
  • --limit <n> changes displayed rows; --all walks every page; --fields selects columns.
  • --json prints raw rows; --project_id is resolved once per process and reused.
  • Show subcommands print field: value lines; use --fields to keep the answer compact.
  • Empty results include the region and a short diagnostic hint instead of an empty table.
  • Full pagination and trimming contract: references/verification-method.md.

Exit codes

CodeMeaning
0success, or -h / --help
2missing credentials or a missing required parameter
3SDK missing, network failure, or an API error

-h is handled before credential validation, so it always works on a bare host.

Related skills

User intentEntry point
Query ECS / BMS / IMS / AS / CCE / DeH (read-only)this skill
ECS lifecycle change (create/start/stop/reboot/delete/resize)ECS management skill (write path)
ECS reinstall OSECS console, or KooCLI outside this skill
Cloud disks, snapshots, EVS quotas; OBS buckets / objectsStorage query skill
CCE workloads, namespaces, events, pod logscontainer/cce/ kubectl-based skills
CCE metrics; CCE add-ons and node pool resize (write)CCE metrics and cluster management skills
RDS instances / databasesRDS query skill
SWR instances / repositories; VOD resourcesSWR / VOD query skills
DeH dedicated host lifecycle (buy / update / release)Huawei Cloud console (write path; not this skill)

When a request crosses the read-only boundary, name the owning skill and stop; do not attempt a write with this skill. See references/cli-installation-guide.md for the KooCLI boundary.

Verification

  1. Run the environment check to confirm dependencies and credentials.
  2. Run -h on the chosen subcommand to confirm parameters.
  3. Query a known resource and compare id / name / status with the console.
  4. Check that the returned total is reasonable.
  5. Complete offline and live checklist: references/verification-method.md.

Reference Documents

  • references/ecs/guide.md — ECS subcommands, parameters and examples
  • references/bms/guide.md — BMS subcommands, parameters and examples
  • references/ims/guide.md — IMS subcommands, parameters and examples
  • references/as/guide.md — AS subcommands, parameters and examples
  • references/cce/guide.md — CCE subcommands, parameters and examples
  • references/deh/guide.md — DeH subcommands, parameters and examples
  • references/iam-policies.md — required IAM read-only permissions
  • references/verification-method.md — static, credential and live verification checklist
  • references/acceptance-criteria.md — skill test acceptance checklist
  • references/cli-installation-guide.md — out-of-scope operations and KooCLI boundary

Loading package files…

Share this package

Add an Install with AIPM badge

Add this badge to a GitHub README so readers can open the package page and install the same version.

Install with AIPM
[![Install with AIPM](https://www.aipm-registry.com/install-with-aipm.svg)](https://www.aipm-registry.com/skills/huaweicloud/huawei-cloud-computing-query/1.0.0?utm_source=github&utm_medium=readme&utm_campaign=package_badge)

Publisher

HUAWEI CLOUD

This imported publisher has not claimed its AIPM account. A connected account confirms account control, but it does not guarantee that a package is safe.

AI assistant context

What this skill is for

@huaweicloud/huawei-cloud-computing-query@1.0.0 is an AIPM skill package for All tools. Use it when a project needs the reusable AI behavior described as: |

Install
aipm add @huaweicloud/huawei-cloud-computing-query@1.0.0
Use after install
/huawei-cloud-computing-query <your description>

Tool targets

Install command by target

Add --no-init to any of these when you want the skill files without aipm.package.json or aipm-lock.json.

cursor

Run this variant when you want to install the package into cursor.

aipm add @huaweicloud/huawei-cloud-computing-query@1.0.0 --target cursor --ci

claude

Run this variant when you want to install the package into claude.

aipm add @huaweicloud/huawei-cloud-computing-query@1.0.0 --target claude --ci

Discussion

Comments (0)

Loading comments…

Keep exploring

HUAWEI CLOUD/huawei-cloud-terraform-generator

Generate Huawei Cloud Terraform configurations and execute deployment with user-guided approval. Use this skill when users want to create Huawei Cloud infrastructure as Terraform, whether they ask explicitly for Terraform or describe goa...

Published by HUAWEI CLOUD

skillScanned · flagged★ 67Imported · UnverifiedAll toolsDec 5, 2026, 1:04 AM588.5 KBMIT

HUAWEI CLOUD/huawei-cloud-network-query

Queries Huawei Cloud network resources (VPC/EIP/ELB/NAT/VPN/DNS). Covers VPCs, subnets, security groups, firewalls, route tables, flow logs, EIPs, bandwidths, load balancers, listeners, pools, health monitors, NAT gateways, SNAT/DNAT rul...

Published by HUAWEI CLOUD

skillScanned · no issues★ 67Imported · UnverifiedAll toolsDec 5, 2026, 1:04 AM117.4 KBMIT

HUAWEI CLOUD/huawei-cloud-obs-stats

|

Published by HUAWEI CLOUD

skillScanned · flagged★ 67Imported · UnverifiedAll toolsDec 5, 2026, 1:04 AM25.5 KBMIT

Package FAQ

Install and compatibility

How to install
Run aipm add @huaweicloud/huawei-cloud-computing-query@1.0.0 in a project that has AIPM initialized.
Supported tools
@huaweicloud/huawei-cloud-computing-query@1.0.0 supports All tools.

Before installing

AIPM skills can add files to your project. Review the package name, target, description, license, and publisher before installing. Use a clean branch when trying a new skill.