Install
openclaw skills install @erickeyhu-hug/huawei-cloud-services-countQuery the total number of Huawei Cloud services available through KooCLI offline metadata. Returns the count of all supported cloud services from the cached service catalog. Triggers include: "how many Huawei Cloud services", "count Huawei Cloud services", "华为云服务总数", "华为云有多少个服务", "查询华为云服务数量".
openclaw skills install @erickeyhu-hug/huawei-cloud-services-countThis Skill queries how many Huawei Cloud services are available through the KooCLI offline metadata cache. It reads the local services_en.json file downloaded by hcloud meta download, parses the service entries, and returns the total count. No network API calls are needed after the initial metadata download.
Use case: Quickly determine how many cloud services Huawei Cloud offers at a glance, useful for reporting, documentation, or capacity awareness.
hcloud meta download)1. Refresh metadata → hcloud meta download
2. Parse local JSON → Read ~/.hcloud/metaRepo/services_en.json
3. Count entries → Count the items in the services array
4. Output → Print the total number of services
Run the following command to refresh the offline metadata and output the total service count:
echo "y" | hcloud meta download && python3 -c "
import json
import os
meta_path = os.path.expanduser('~/.hcloud/metaRepo/services_en.json')
with open(meta_path) as f:
data = json.load(f)
items = data.get('items', [])
seen = set()
unique_count = 0
for item in items:
text = item['Service']['Text']
if text not in seen:
seen.add(text)
unique_count += 1
print(f'Huawei Cloud Services Count: {len(items)} total entries, {unique_count} unique services')
"
If metadata was already downloaded recently, you can skip the download step:
python3 -c "
import json, os
meta_path = os.path.expanduser('~/.hcloud/metaRepo/services_en.json')
with open(meta_path) as f:
data = json.load(f)
items = data.get('items', [])
print(f'Huawei Cloud Services Count: {len(items)}')
"
| Parameter | Required | Description | Default |
|---|---|---|---|
{region} | No | Huawei Cloud region (not required for meta commands) | cn-north-4 |
{skip_download} | No | Skip metadata refresh if cache is recent | false |
hcloud meta download
meta is a KooCLI system command, not a service-specific commanddownload — lower case (system operation)echo "y" | to auto-confirm the overwrite prompt