hwc-cli-guidance: Operating Huawei Cloud KooCLI in Agent according to documentation

Introduction

When querying resources, modifying configurations, or writing automation scripts on Huawei Cloud, official documentation and CLI parameters are complete. However, during conversational development, Agents often lack knowledge on which hcloud subcommands to use, how to configure authentication, or what to watch out for in batch scripts. Manually looking up the KooCLI User Guide and pasting it back into the conversation is costly and prone to missing steps.

hwc-cli-guidance is a type of SKILL.md guidance-based Skill on SkillHub: it organizes KooCLI installation, authentication, common service commands, and operational practices into instructions and examples readable by Agents. This allows clients like Cursor and Claude Code to have a consistent source of truth when answering questions about the Huawei Cloud CLI. The following introduces what it is, what it does, and how to install and use it.

What is this

One-sentence positioning: A Chinese installation and usage guidance Skill for the Huawei Cloud command-line tool KooCLI (hcloud).

  • Coordinate: @user_15292d5a/yjkj-hwc-cli-guidance
  • Version: 1.0.0 (The _meta.json inside the package matches the SkillHub page)
  • Source: SkillHub Community (community), Publisher ID: user_15292d5a
  • Category: dev-programming
  • Tags: requires_api_key=true (Using KooCLI typically requires configuring credentials such as Huawei Cloud AK/SK)

The skill-card.md inside the package indicates that this Skill provides guidance on KooCLI installation, authentication configuration, common cloud management commands, and automation practices; the license is MIT-0. It does not replace the official Huawei Cloud CLI but injects quotable operational instructions and command examples into the Agent side.

Core Features

The following content is derived from the downloadable v1.0.0 package on SkillHub (SKILL.md and reference/). These are the guidance capabilities provided by the Skill to the Agent, rather than standalone executable programs.

  1. Quick Start: Environment requirements (Windows / macOS / Linux, documentation states Python 3.8+ support), creating access keys in the console, multiple installation methods (pip, curl binary, Windows PowerShell), configuring Region and more via hcloud configure init.
  2. Authentication & Configuration: AK/SK, Token, Multi-Profile; explanations for configuration management commands like hcloud configure list / set / delete.
  3. Common Service Command Examples: ECS (e.g., hcloud ecs list-servers), OBS (bucket and object upload/download), RDS, FunctionGraph, etc.; reminders to use hcloud --help to view the full service list.
  4. Scenario-based Usage: Examples for automated O&M scripts, OBS batch uploads, CES/AOM metric queries, etc. (including bash / Python snippets).
  5. Best Practices & Troubleshooting: Error handling in subprocess calls, multi-environment Profiles, output formats like --output=json|table; common HTTP error codes (401/403/404/429/500) and handling suggestions.
  6. Extended Reading: reference/installation-guide.md, command-reference.md, best-practices.md inside the package, as well as links to official Huawei Cloud KooCLI documentation.

Installation & Enablement

The installation method provided on the SkillHub page is: let the Agent install the coordinate @user_15292d5a/yjkj-hwc-cli-guidance according to the SkillHub installation instructions.

If the skillhub CLI is already installed locally, you can follow the official documentation to install the Skill to the current Agent’s skills directory (defaults to ./skills/ if --dir is not specified, which most clients do not load automatically):

command -v skillhub && skillhub --version

skillhub install @user_15292d5a/yjkj-hwc-cli-guidance --dir ~/.cursor/skills/

Common client skills paths (excerpted from SkillHub installation documentation, select one based on your actual client):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

If the skillhub CLI is not installed, you can first run the officially recommended one-click installation (fully including the CLI and default Skills):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

After installation, restart or reload the Agent so the new Skill is recognized. The statistics displayed on the SkillHub page are a rating of 100000, 768 downloads, and 0 installations (subject to the time of page scraping).

Typical Usage

Once the Skill is enabled, simply ask specific tasks related to KooCLI in the conversation, and the Agent will answer based on the steps and commands in SKILL.md. The following workflow matches the “Quick Start” in the skill package for your verification.

1. Install CLI (pip method, one of the skill package recommendations)

pip install huaweicloudsdkcore
pip install huaweicloudsdkkoocli

2. Initialize Authentication

Execute after creating AK/SK in the Huawei Cloud console “My Credentials”:

hcloud configure init

Fill in the Access Key ID, Secret Access Key, and Region (e.g., cn-north-4) as prompted.

3. Verify Common Read Operations

hcloud ecs list-servers
hcloud obs list-buckets

If JSON output is needed, the skill documentation example is:

hcloud ecs list-servers --output=json

For multi-environment setups, the skill package suggests using hcloud configure init --profile=dev first, then switching via hcloud --profile=dev ecs list-servers.

Applicable Scenarios & Notes

Who is it for

  • Developers already using or planning to use KooCLI for O&M, scripting, and CI/CD on Huawei Cloud.
  • Teams wanting the Agent to align with official installation paths and authentication methods when generating/explaining hcloud commands, rather than fabricating subcommands.

Limitations & Cautions

  • Credential Security: The tag requires_api_key=true and the skill card emphasize sensitive information like AK/SK and credentials.csv; use least-privilege IAM, do not commit to repositories or logs, and rotate immediately if leaked. The risk statement in the skill card also suggests verifying destructive commands in a non-production Profile first.
  • Operational Risks: Examples include starting/stopping ECS, deleting OBS objects, and batch operations; verify resource IDs, Regions, and accounts before execution.
  • Installation Source: Binary installation examples use https://dl.koo.cloud/cli/...; obtain and verify packages from official Huawei Cloud channels according to organizational security policies.
  • Skill Nature: This is a guidance documentation Skill; it will not execute cloud APIs for you; actual changes are still determined by the local hcloud and your permissions.

Conclusion

hwc-cli-guidance consolidates Huawei Cloud KooCLI installation, authentication, common commands, and practices into a standard SKILL.md. It is suitable for mounting in the skills directory of Agents like Cursor to reduce time spent searching documentation and dictating parameters. For installation and details, see SkillHub:

  • Page: https://www.skillhub.cn/skills/user_15292d5a/yjkj-hwc-cli-guidance
  • Coordinate: @user_15292d5a/yjkj-hwc-cli-guidance (v1.0.0)
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye