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
Category
Service
Entry
Guide
ECS
Elastic Cloud Server
scripts/huawei_ecs.py
references/ecs/guide.md
BMS
Bare Metal Server
scripts/huawei_bms.py
references/bms/guide.md
IMS
Image Management Service
scripts/huawei_ims.py
references/ims/guide.md
AS
Auto Scaling
scripts/huawei_as.py
references/as/guide.md
CCE
Cloud Container Engine
scripts/huawei_cce.py
references/cce/guide.md
DeH
Dedicated Host
scripts/huawei_deh.py
references/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
This skill only queries; it never creates, modifies or deletes resources.
Prefer the region, project, AZ, resource name and resource ID supplied by the user.
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.
Base every answer on actual API responses; never speculate from experience.
Preserve key fields in the answer so they can be reused (IDs, names, specifications, images).
Narrow large result sets with --name, --id, --status, --tag or --limit.
If a resource type has no subcommand in the matching guide, say so instead of returning unreliable data.
Run -h on a subcommand before using it; the help page lists every accepted parameter.
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.
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.
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
Run the environment check once at the start of the session.
Read the matching guide under references/<service>/ and choose a subcommand.
Run the subcommand's -h page to confirm parameters.
Execute the query with the skill venv Python.
Summarize the result using the presentation rules below.
CCE metrics; CCE add-ons and node pool resize (write)
CCE metrics and cluster management skills
RDS instances / databases
RDS query skill
SWR instances / repositories; VOD resources
SWR / 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
Run the environment check to confirm dependencies and credentials.
Run -h on the chosen subcommand to confirm parameters.
Query a known resource and compare id / name / status with the console.
Check that the returned total is reasonable.
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
Add this badge to a GitHub README so readers can open the package page and install the same version.
[](https://www.aipm-registry.com/skills/huaweicloud/huawei-cloud-computing-query/1.0.0?utm_source=github&utm_medium=readme&utm_campaign=package_badge)
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: |
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...
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.