Huawei Cloud Infra

v1.0.0

华为云基础设施管理助手,基于 KooCLI (hcloud)。 支持查询、审计和监控华为云资源:ECS(弹性云服务器)、VPC(虚拟私有云)、RDS(关系型数据库服务)。 触发条件:用户询问华为云资源、ECS 服务器、VPC 网络、RDS 数据库、云资源清单、安全审计、资源状态检查等。 写操作/破坏性操作需要用户...

0· 21·0 current·0 all-time
bychen_xuanwen@5xuanwen
MIT-0
Download zip
LicenseMIT-0 · Free to use, modify, and redistribute. No attribution required.
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description match the provided SKILL.md, reference file, and install script: the skill uses KooCLI (hcloud) to query/audit/manage ECS/VPC/RDS, and the included installer and examples are consistent with that purpose.
Instruction Scope
SKILL.md limits actions to checking/using the hcloud CLI, reading ~/.hcloud/config.json or HWCLOUD_REGION, running read-only queries, and requiring explicit user confirmation for write/destructive operations. It does not instruct the agent to read unrelated files or exfiltrate data.
Install Mechanism
The installer (scripts/install_koocli.py) downloads a compressed hcloud binary from a Huawei OBS URL and extracts it to a system path (default /usr/local/bin on Unix). Download+extract and placing a binary in a system directory is expected for CLI installation, but it writes files to disk and may require elevated permissions — verify the download URL and be prepared to run with appropriate privileges.
Credentials
The skill does not request unrelated environment variables or extra credentials. It relies on standard hcloud configuration (interactive AK/SK input and ~/.hcloud/config.json or HWCLOUD_REGION), which is proportional to cloud management functionality. Note: the skill does not declare a primaryEnv variable, but expecting the CLI to use AK/SK in config is reasonable.
Persistence & Privilege
The skill is not forced-always, is user-invocable, and does not modify other skills or system-wide agent config. It can install a binary into system paths (normal for a CLI) but does not request permanent elevated privileges itself.
Assessment
This skill appears to do what it says: it installs and drives the KooCLI (hcloud) to manage Huawei Cloud resources. Before installing, verify you trust the download URL (the script uses a Huawei OBS domain), and be aware the installer will extract a binary and attempt to place it in a system directory (may require sudo). The hcloud CLI will store your AK/SK in ~/.hcloud/config.json; prefer using a least-privilege API key (read-only) for queries, never paste keys into chat, and confirm any destructive operations when prompted. If you need stronger assurance, inspect the downloaded binary or install KooCLI manually using the official Huawei docs linked in SKILL.md.

Like a lobster shell, security has layers — review code before you run it.

latestvk979b0yw9rb0m0zzd700znh5vx845w5b

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

SKILL.md

华为云基础设施管理

概述

使用本地 KooCLI (hcloud) 管理华为云资源。默认只读查询,写操作需确认。

前置检查

每次触发时执行:

# 检查 KooCLI 是否已安装
hcloud version

如果未安装,先介绍 KooCLI 并询问用户:

华为云命令行工具服务(Koo Command Line Interface,KooCLI,原名HCloud CLI)是为发布在API Explorer上的云服务API提供的命令行管理工具。您可以通过此工具调用API Explorer中各云服务开放的API,管理和使用您的各类云服务资源。KooCLI只提供了一种通过CLI调用云服务API的方法。

安装方式:

询问用户: "KooCLI 未安装。是否需要自动安装?(y/n)"

  • 如果用户同意,执行安装脚本:python3 scripts/install_koocli.py
  • 如果用户拒绝,提示手动安装方式并终止当前任务

安装完成后,初始化配置文件:

hcloud configure init

交互式输入 AK/SK/区域,生成配置文件 ~/.hcloud/config.json

初始化流程(安装/配置后执行)

仅在以下情况执行身份验证:

  • 首次安装 KooCLI 后
  • 配置/更新 AK/SK 后
hcloud IAM KeystoneListProjects

验证 AK/SK 是否正确,获取可用项目/区域列表。


查询流程(日常使用)

  1. 确定区域 → 用户指定 或 HWCLOUD_REGION~/.hcloud/config.json
  2. 执行查询 → 只读命令直接执行
  3. 变更确认 → 写操作需列出命令,请求用户确认

安全规则

  • 默认只读,变更需用户确认
  • 破坏性操作(删除/终止/修改)必须确认
  • 不泄露密钥(AK/SK)

任务指南

  • 资源清单List*/Show* 命令
  • 健康检查:查询资源状态字段
  • 安全检查:查询安全组规则
  • 变更操作:显示命令并确认

区域处理

  • 如果用户指定区域,遵循用户指定
  • 否则使用 HWCLOUD_REGION~/.hcloud/config.json
  • 结果有区域范围时,说明使用的区域

参考

常用命令见 references/hcloud-queries.md

Files

3 total
Select a file
Select a file to preview.

Comments

Loading comments…