Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add huaweicloud/huaweicloud-skills --skill huawei-cloud-ecs-querygit clone --depth 1 https://github.com/huaweicloud/huaweicloud-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/huaweicloud/huaweicloud-skills/huawei-cloud-ecs-query)<a href="https://agentmods.dev/skills/huaweicloud/huaweicloud-skills/huawei-cloud-ecs-query"><img src="https://agentmods.dev/badge/skills/huaweicloud/huaweicloud-skills/huawei-cloud-ecs-query/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/huaweicloud/huaweicloud-skills/huawei-cloud-ecs-query"><img src="https://agentmods.dev/badge/skills/huaweicloud/huaweicloud-skills/huawei-cloud-ecs-query.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00183 | $0.01849 |
| Opus 5 | $0.00092 | $0.00924 |
| Sonnet 5 | $0.00037 | $0.00370 |
| Haiku 4.5 | $0.00018 | $0.00185 |
Grade A, and why
huawei-cloud-ecs-query scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 182 lines — stays where its author put it; the contents beside it link to each section on GitHub.
华为云 ECS 查询技能
概述
本技能用于查询华为云弹性云服务器(ECS)的信息,包括:
- 查询实例列表:列出所有ECS实例的基本信息
- 查询实例详情:获取单个ECS实例的详细配置信息
- 查询实例状态:查看ECS实例的运行状态
支持两种认证方式(AK/SK 签名认证 和 Token 认证),两种输出格式(表格 和 JSON),以及多区域查询。
前置条件
1. 安装 Python 依赖
pip install requests pyyaml
2. 获取认证凭证
方式一:AK/SK 认证(推荐)
- 登录华为云控制台 → 右上角用户名 → "我的凭证" → "访问密钥" → 新增访问密钥
- 保存 AK(Access Key ID)和 SK(Secret Access Key)
- 同时需要获取 Project ID(项目ID):在"我的凭证"页面查看
方式二:Token 认证
- 需要华为云账号的用户名、密码
- 需要账号的 Domain ID(租户ID,在"我的凭证"页面查看)
- 需要Project ID
3. 配置文件
创建配置文件 ~/.huawei-ecs/config.yaml(或通过 --config 参数指定路径):
# 认证方式:aksk 或 token
auth_method: aksk
# AK/SK 认证配置
ak: "your-access-key-id"
sk: "your-secret-access-key"
project_id: "your-project-id"
# Token 认证配置(当 auth_method 为 token 时使用)
# username: "your-username"
# password: "your-password"
# domain_id: "your-domain-id"
# 默认区域
region: "cn-north-4"
# 输出格式:table 或 json
output_format: "table"
工作流
当用户请求查询 ECS 信息时,按以下流程执行:
- 识别查询类型:确定用户需要的是实例列表(list)、实例详情(show)还是实例状态(status)
- 确认认证配置:检查
~/.huawei-ecs/config.yaml是否存在;若缺失,提示用户先完成配置(参考"前置条件"章节) - 执行查询:根据查询类型运行对应命令(参考"核心命令"章节)
- 列表 →
list-servers(可加--status/--name过滤) - 详情 →
show-server - 状态 →
server-status
- 列表 →
- 格式化输出:默认表格输出;用户要求 JSON 时用
--output json - 处理错误:API 请求失败时,根据错误信息提示用户检查网络、区域或权限(参考"注意事项"与
references/troubleshooting.md)
核心命令
hcloud CLI 等价命令(推荐)
本技能脚本通过华为云 API 直连实现查询。若环境中已安装 hcloud CLI(KooCLI)并完成 hcloud configure,可使用以下等价命令快速查询:
# 查询实例列表
hcloud ECS ListServersDetails --cli-region=cn-north-4 --limit=25
# 查询单个实例详情
hcloud ECS ShowServer --cli-region=cn-north-4 --server_id=<server_id>
# 查询实例状态(结合 --cli-query 过滤)
hcloud ECS ListServersDetails --cli-region=cn-north-4 --status=ACTIVE
CLI 安装与认证方式参考 references/cli-installation-guide.md。
脚本命令
查询实例列表
python scripts/ecs_query.py list-servers --config config.yaml
可选参数:
--region:指定区域(如 cn-north-4, cn-east-3, ap-southeast-1)--output:输出格式(table 或 json)--limit:返回数量限制(默认25)--offset:页码偏移(默认1)--status:按状态过滤(ACTIVE, SHUTOFF, BUILD, ERROR 等)--name:按名称过滤--flavor:按规格ID过滤
What ships with it
12 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- config.example.yaml 1.5 KB
- evolutions.json 4.2 KB
- references/acceptance-criteria.md 1.3 KB
- references/api-reference.md 3.9 KB
- references/cli-installation-guide.md 1.5 KB
- references/iam-policies.md 1.3 KB
- references/troubleshooting.md 1.7 KB
- references/verification-method.md 1.9 KB
- scripts/__init__.py 62 B runs code
- scripts/auth.py 7.8 KB runs code
- scripts/ecs_query.py 9.3 KB runs code
- scripts/formatter.py 8.5 KB runs code
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 9d ago First seen · 182 lines · 183 tokens per session scan A 4a79d72f34ab
huawei-cloud-ecs-query is a skill published in the GitHub repository huaweicloud/huaweicloud-skills (49 stars, last pushed yesterday), licensed MIT. It adds 183 tokens to every session and 1,849 once invoked, about $0.0009 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other skills, from other repositories
gke-compute-classes
Configures, optimizes, and troubleshoots GKE ComputeClasses. Use when configuring Spot VMs with on-demand fallback, targeting specific accelerators (GPUs/TPUs) or machine families, restricting ComputeClass access, or debugging pending pods related to node pool auto-creation. Do not use for cluster-level Node Auto…
gke-reliability
Improves GKE workload reliability, using PDBs, health probes, and topology spread constraints. Use when configuring GKE workload reliability, setting up PDBs, or configuring GKE health probes (liveness, readiness, startup). Don't use for disaster recovery setup or full cluster backups (use gke-backup-dr instead).
gke-workload-security
Audits, configures, and hardens workload-level security controls for Google Kubernetes Engine (GKE) applications and namespaces. Covers running cluster security audits (auditcluster.sh), configuring Workload Identity Federation (impersonation, KSA/GSA binding, and pod setup), enforcing Network Policies (default-deny…
nemo-automodel-launcher-config
Configure NeMo AutoModel job launches for interactive runs, Slurm clusters, and SkyPilot cloud execution.
azure-mgmt-botservice-dotnet
Azure Resource Manager SDK for Bot Service in .NET. Management plane operations for creating and managing Azure Bot resources, channels (Teams, DirectLine, Slack), and connection settings. Triggers: "Bot Service", "BotResource", "Azure Bot", "DirectLine channel", "Teams channel", "bot management .NET", "create bot".
cloud-architect
Designs cloud architectures, creates migration plans, generates cost optimization recommendations, and produces disaster recovery strategies across AWS, Azure, and GCP. Use when designing cloud architectures, planning migrations, or optimizing multi-cloud deployments. Invoke for Well-Architected Framework, cost…