Install
openclaw skills install @huaweiclouddev/huawei-cloud-business-support-queryQueries Huawei Cloud billing and pricing. Covers balances, bills, coupons, cash coupons, stored-value cards, orders, refunds, costs, free resources, resource usage, enterprise accounts, and on-demand/period/ELB/NAT/DCS pricing. No write operations. Use this skill when the user needs to check fees, view bills, estimate prices, review coupon balances, query orders, or get consumption stats. Triggers: 华为云计费, 账单, 余额, 优惠券, 代金券, 储值卡, 订单, 退款, 成本, 资源用量, 询价, 定价, 费用查看, 账单明细, 价格估算, 消费统计, billing, pricing, cost.
openclaw skills install @huaweiclouddev/huawei-cloud-business-support-query⚠️ Execution Method (Must Read): This skill executes queries via local Python scripts. Do NOT use hcloud, openstack or other CLI tools, or call APIs directly.
- Query scripts are located under the skill directory
scripts/<service_category>/(e.g.,scripts/as/list_scaling_groups.py)- All scripts and environment check scripts are inside the skill package, must be executed using
skill action=exec, do not run directly in shell- For specific script paths and parameters, see
references/<service>/guide.md- Do NOT attempt hcloud, openstack, curl IAM or other CLI/API methods; this skill does not depend on those tools
- All paths are relative to the skill directory, which is the directory where this SKILL.md is located
This skill is a standalone read-only query skill that uses local Python scripts to call the Huawei Cloud Python SDK for querying Huawei Cloud resources, available specifications, and existing resource information.
This skill is applicable to the following scenarios:
This skill does NOT handle the following:
This skill provides query capabilities through categorized scripts in the scripts directory, and usage instructions through categorized guides in the references directory. Capabilities provided by this skill include:
Important: Script paths executed within this skill are all relative to the skill directory, which is the directory where this SKILL.md is located
Before use, you must run the environment check script to complete environment validation and dependency installation in one step:
skill action=exec: bash skill://scripts/check_env.shskill action=exec: powershell -ExecutionPolicy Bypass -File skill://scripts/check_env.ps1Windows note: Do not use
&&to chain commands (PowerShell 5.x does not support it); use semicolons if you need to change directory first
The script will check in order: Python >= 3.6 → install dependencies → validate SDK → validate credentials → validate service availability. If the environment check fails, fix the issue before continuing with other scripts.
Environment Variables:
| Variable | Required | Description |
|---|---|---|
| HW_ACCESS_KEY | Yes | Huawei Cloud AK |
| HW_SECRET_KEY | Yes | Huawei Cloud SK |
| HW_REGION_NAME | No | Default cn-north-4 |
| HW_PROJECT_ID | No | Project ID (auto-fetched via IAM API if not set) |
| HW_SECURITY_TOKEN | No | Required for temporary AK/SK |
Do NOT output the values of the above environment variables. For additional parameters (availability zone, enterprise project, etc.) needed by other resource scripts, see the corresponding guide.md.
When this skill is invoked, the following steps must be executed without waiting for user prompts:
Run the environment check script to ensure dependencies are installed and credentials are configured:
skill action=exec: bash skill://scripts/check_env.shskill action=exec: powershell -ExecutionPolicy Bypass -File skill://scripts/check_env.ps1If the environment check fails, fix according to the prompt and re-execute until it passes.
references/<service>/guide.md to determine the script path and parameters to execute-h to view script usage:
skill action=exec: skill://.venv/bin/python3 skill://scripts/<service>/<script>.py -hskill action=exec: skill://.venv/Scripts/python3.exe skill://scripts/<service>/<script>.py -hskill action=exec: skill://.venv/bin/python3 skill://scripts/<service>/<script>.py <parameters>skill action=exec: skill://.venv/Scripts/python3.exe skill://scripts/<service>/<script>.py <parameters>Important:
skill action=exec, do not run directly in shell.venv/bin/python3 on Linux/macOS and .venv/Scripts/python3.exe on Windowspython3--project_id parameter is optional; if not provided, it is auto-fetched based on region via IAM APIDirectory conventions are as follows (all paths are relative to the skill directory):
Before executing query scripts, confirm the following parameters:
| Parameter | Required | Description |
|---|---|---|
| region | Yes | Huawei Cloud region, e.g., cn-north-4 |
| --project_id | No | Project ID, auto-fetched if not provided |
| --availability_zone | No | Availability zone, required for some resource queries |
For script-specific parameters, see references/<service>/guide.md.
Query results are output in JSON format with the following common fields:
total: Total number of matched resourcesitems: Resource list, each resource contains key fields such as id, name, status, etc.-h parameter to view script usage and confirm parameters are correcttotal count is reasonable--help to view the full list of parameters supported by the scriptreferences/<service>/guide.mdskill action=exec; do not run directly in shell