Preface¶
When querying resources, modifying configurations, or writing automation scripts on Huawei Cloud, you will mostly end up using the command-line tool KooCLI (hcloud). Console documentation is scattered; figuring out how to configure AK/SK and writing common subcommands for ECS/OBS/RDS can be tricky. If an Agent lacks a fixed context, it is prone to providing incomplete steps or steps inconsistent with official documentation. hwc-cli-guidance-v2 is a community Skill on SkillHub (coordinates @user_15292d5a/yjkj-hwc-cli-guidance-v2) that consolidates installation, authentication, command examples, and O&M practices into SKILL.md and reference/ documentation. This allows coding assistants to answer KooCLI-related questions based on a consistent set of materials. Below is an introduction to what it is, what it can do, and how to install and use it.
What is this¶
Positioning: A documentation-based Guidance Skill aimed at developers and cloud O&M personnel. It does not replace KooCLI itself but provides guidance on installation, configuration, common commands, and best practices for the Huawei Cloud command-line tool within conversations.
Source and Version: Categorized under it-ops-security on SkillHub, sourced from the community, published by user_15292d5a, with the current package version at 1.0.0 (marked as last updated 2026-06-04 within the Skill documentation). skill-card.md specifies the license as MIT-0 and the deployment region as Global. SkillHub metadata tags include requires_api_key=true, indicating scenarios involving the configuration of Huawei Cloud credentials such as AK/SK.
Problems Solved: It unifies the cognitive source for Agents regarding KooCLI (Huawei Cloud KooCLI / hcloud), reducing instances of “only remembering a few commands while missing authentication and multi-Profile configurations.” It also includes links to official Huawei Cloud KooCLI documentation for easy verification.
Core Functions¶
Based on the SKILL.md and reference/ directory within the Skill package, the verified capabilities include:
- Quick Start: System requirements (Windows / macOS / Linux, Python 3.8+ required for pip path), access key acquisition paths, and various installation methods (pip, curl binary, PowerShell, Homebrew, etc., see
reference/installation-guide.md). - Authentication & Configuration: Explanations of AK/SK, Token, and Profile; examples for configuration management such as
hcloud configure init/list/set/delete. - Common Service Commands: Examples for ECS (listing/starting/stopping/restarting instances), OBS (bucket and object upload/download), RDS, FunctionGraph, etc.; also explains how to view the full service list using
hcloud --help. - Scenario-based Examples: Automated O&M scripts, OBS batch uploads, CES/AOM monitoring queries, etc. (shell/Python snippets found in the documentation).
- Best Practices & Troubleshooting: Multi-environment Profiles, storing AK/SK in environment variables, output formats (
--output=json|table,--query), and a comparison table for common HTTP error codes;reference/command-reference.mdprovides a more detailed parameter table for subcommands.
The Skill output type is text, Markdown, commands, and configuration descriptions (see skill-card.md). It will not directly execute cloud APIs on your behalf within the Skill; commands generated or pasted must still be manually reviewed before execution.
Installation and Enablement¶
Install SkillHub CLI (if not already installed)¶
First, check if skillhub is already available:
command -v skillhub && skillhub --version
If not installed, you can follow the official SkillHub instructions to perform a full installation or install only the CLI:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
# CLI only:
# curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only
Install this Skill¶
When installing, you must use --dir to point to the current Agent’s skills directory; otherwise, it defaults to ./skills/, which might not be recognized. The installation prompt provided on the official page is: Refer to https://skillhub.cn/install/skillhub.md and install with the coordinate @user_15292d5a/yjkj-hwc-cli-guidance-v2.
skillhub install @user_15292d5a/yjkj-hwc-cli-guidance-v2 --dir ~/.cursor/skills/
Common skills paths for various clients (excerpted from SkillHub installation documentation): Cursor is ~/.cursor/skills/; Claude Code is ~/.claude/skills/; Codex is ~/.codex/skills/ or .agents/skills/ under the project. After installation, restart or refresh the Agent according to your client’s requirements to enable the Skill.
Current statistics from the SkillHub page (based on crawled data): Rating approximately 100000, 782 downloads; the installation count on the page might be 0, please refer to the real-time display on SkillHub.
Typical Usage¶
Once the Skill is enabled, simply propose specific tasks related to KooCLI in the conversation, and the Agent should organize its response based on the documentation within the Skill. The following steps come from the Skill’s official “Quick Start” and can be reproduced locally to verify the environment (Huawei Cloud AK/SK required).
1. Install KooCLI (pip method, one of the Skill’s recommendations)
pip install huaweicloudsdkcore
pip install huaweicloudsdkkoocli
hcloud --version
2. Initialize Authentication
hcloud configure init
Follow the prompts to fill in the Access Key ID, Secret Access Key, and Region (example: cn-north-4).
3. Execute the first query
hcloud ecs list-servers
hcloud obs list-buckets
If JSON output is needed or you want to switch environments, the syntax from the Skill documentation is as follows:
hcloud --profile=dev ecs list-servers --output=json
For more complete installation variants (Linux curl binary, Windows PowerShell, macOS Homebrew) and uninstallation steps, see reference/installation-guide.md within the package; for subcommand parameters, see reference/command-reference.md.
Applicable Scenarios & Notes¶
Who is it for
- Colleagues using Agents in environments like Cursor, Claude Code, or Codex to write Huawei Cloud O&M scripts, look up command parameters, or compare against official processes.
- Those who need to place common operations (ECS/OBS/RDS) along with authentication, Profiles, and error handling within the same context.
Limitations & Risks (Excerpted from “Known Risks” in skill-card.md)
- Examples extensively use AK/SK: Do not commit keys to repositories or logs; prioritize environment variables or key management services, and follow the principle of least privilege.
- Installation examples may download binaries from addresses like
dl.koo.cloudand write to system paths: Obtain only from official Huawei Cloud channels and verify package integrity before production use. - Commands for starting/stopping instances, deleting objects, and batch operations affect real resources: Verify in a non-production environment first and confirm that identifiers such as
server-idand bucket names are correct.
The Skill is purely guidance and cannot replace your permission approvals in the Huawei Cloud console or IAM; requires_api_key=true only indicates that the content involves key configuration and does not automatically manage keys for you.
Conclusion¶
hwc-cli-guidance-v2 consolidates KooCLI—from installation to common service commands, automation examples, and troubleshooting tables—into a readable skill package for Agents. It serves as a fixed reference layer for questions related to Huawei Cloud CLI. To view metadata or installation instructions, you can open the SkillHub page:
- https://www.skillhub.cn/skills/user_15292d5a/yjkj-hwc-cli-guidance-v2
- https://api.skillhub.cn/user_15292d5a/yjkj-hwc-cli-guidance-v2
KooCLI behavior and APIs are subject to the official Huawei Cloud documentation: https://support.huaweicloud.com/qs-hcli/hcli_02_003.html