编程

huawei-cloud-find-skills

试用

按关键词或类目检索华为云技能目录,并安装匹配的技能。

它能做什么

通过 Python 脚本从 GitCode API v5 拉取技能索引(index.json 与 cn-en-map.json,base64 自动解码),按匹配项打分:名称 +10、触发词 +8、描述 +5、服务 +3。中英文关键词通过映射表双向扩展,输入「弹性云服务器」也能命中 ECS。选定技能后,可使用 `npx skills add`(GitCode,默认)、`npx clawhub install`,或在默认源不可用时回退到 GitHub 源安装。本技能为只读,不创建或修改任何云上资源。

什么时候用它

  • 查找管理 ECS、OBS、RDS、VPC 等资源的华为云技能
  • 浏览华为云技能的可用类目
  • 安装前先查看某个华为云技能的完整 SKILL.md
  • 通过 npx 命令安装已选中的华为云技能

技能文档

[!IMPORTANT] For any Huawei Cloud query or management task:

  1. Search — use this skill (huawei-cloud-find-skills) to find the relevant Skill.
  2. Install — install the matched Skill (see Step 3).
  3. Execute — follow the installed Skill's instructions to fulfill the request.

Huawei Cloud Agent Skills Search and Discovery

This skill enables users to efficiently search, discover, and install Huawei Cloud skills.

Scenario Description

This skill enables users to:

  • Search Skills: Find skills by keyword, category, or both (matched against name, description, and triggers)
  • Browse Categories: Explore available skill categories
  • View Skill Details: Fetch full SKILL.md content from GitHub for specific skills
  • Install Skills: Guide users through skill installation via npx skills add (GitCode default), npx clawhub install, or fallback GitHub method

Architecture: GitCode API v5 (index.json + cn-en-map.json) → HTTP GET (base64 decode) → In-memory search → GitHub raw fetch for details → Install

Use Cases

  • "Find a skill for managing ECS instances"
  • "What Huawei Cloud skills are available for OBS?"
  • "华为云有哪些 VPC 相关的 skill?"
  • "Browse all available Huawei Cloud skills"
  • "Install a skill for RDS management"
  • "帮我找一个华为云网络相关的skill"

Prerequisites

  • Python 3.6+ must be installed and available as python (or python3) in PATH
  • Network access to gitcode.com (API v5 for index) and github.com / raw.githubusercontent.com (for skill details)

Step 0: Check Python Environment

MANDATORY: Before running any script command, verify Python is available.

# Check Python availability
python --version   # or: python3 --version

If the command fails or returns Python 2.x:

  1. Install Python 3: Download from python.org or use a package manager:
    # macOS
    brew install python3
    # Ubuntu/Debian
    sudo apt-get install python3
    # Windows — download installer from python.org, check "Add Python to PATH"
    
  2. Verify after install: Run python --version again to confirm Python 3.6+ is available
  3. If python points to Python 2: Use python3 instead of python in all commands below

Repository Info

INDEX_REPO=2501_91318609/skills-for-index
INDEX_BRANCH=main
SKILLS_REPO=huaweicloud/huaweicloud-skills
SKILLS_BRANCH=master
RAW_BASE=https://raw.githubusercontent.com/$SKILLS_REPO/$SKILLS_BRANCH

Index Source

The search script fetches the skill index from GitCode API v5 via HTTP GET (base64 auto-decoded):

SKILLS_INDEX_URL=https://gitcode.com/api/v5/repos/2501_91318609/skills-for-index/contents/skills-index/index.json?ref=main
SKILLS_CN_EN_MAP_URL=https://gitcode.com/api/v5/repos/2501_91318609/skills-for-index/contents/skills-index/cn-en-map.json?ref=main

Core Workflow

Step 1: Search Skills

MANDATORY: The agent MUST execute the search script to search the skill index. Do NOT read the JSON file directly — always use the script.

Given keyword (from AI-understood user intent) and optional category, run the search script:

# PowerShell
python scripts/search-skills.py -k ""
python scripts/search-skills.py -k "" -c ""
python scripts/search-skills.py -c ""
# Bash
python scripts/search-skills.py -k ""
python scripts/search-skills.py -k "" -c ""
python scripts/search-skills.py -c ""

scripts/search-skills.py (Python — cross-platform)

What the script does:

  1. Fetches index.json and cn-en-map.json via HTTP GET from GitCode API v5 (auto-decodes base64 content)
  2. Expands keywords via cn-en-map.json (bidirectional CN↔EN, e.g., "ECS" → "ECS, 弹性云服务器, 云服务器")
  3. Scores each skill: name match +10, trigger match +8, description match +5, service match +3
  4. Sorts by score descending, outputs formatted results with matched keywords

Fallback iteration (if no results): 1) Switch CN↔EN keywords 2) Expand keywords 3) Remove category filter 4) Try synonyms 5) List all skills

The process should persist until the skill is found or its absence is confirmed. In the event of total failure, notify the user of the specific steps that were attempted.

Step 2: View Skill Details (optional)

Fetch the full SKILL.md content from GitHub for intent validation. Skip this step if the search results from Step 1 are sufficiently informative.

# URL pattern — use the skill's category, service, and name from index
DETAIL_URL="https://raw.githubusercontent.com/huaweicloud/huaweicloud-skills/master/skills/${category}/${service}/${name}/SKILL.md"

The agent can fetch this URL using curl or its web-fetch tool, then present the skill's full documentation to the user.

Step 3: Install Skill

MANDATORY: Use one of the commands below. Option A is the default; Option C is a fallback when Option A is unavailable.

# Option A: npx skills add from GitCode (default)
npx skills add https://gitcode.com/huaweicloud/huaweicloud-skills.git#master --skill  -y

# Option B: npx clawhub install (OpenClaw ecosystem)
npx clawhub install  -y

# Option C (fallback): npx skills add from GitHub
npx skills add huaweicloud/huaweicloud-skills --skill  -y

If all installation attempts fail, report the error message to the user. Do NOT attempt any method outside the commands above.

Parameters

ParameterRequired/OptionalDescriptionDefault
KeywordOptionalSearch keyword (matched against name, description, triggers, service)None
CategoryOptionalCategory code for filtering (e.g., "computing", "storage", "network")None
skill-nameRequired (Step 3)Exact skill name for installingNone

Reference Documentation

DocumentDescription
GitCode API v5 index.jsonSkill index fetched via HTTP GET (base64 decoded)
GitCode API v5 cn-en-map.jsonChinese-English keyword mapping fetched via HTTP GET (base64 decoded)
scripts/search-skills.pySearch script (Python) — fetches from GitCode API v5, expands keywords, scores, sorts

Search Heuristics

Optional reference for keyword-to-category hints. The agent can infer categories from index.json without these.

  • Cloud infrastructure keywords (ecs, bms, vpc, obs, rds, ...) → likely computing, network, storage, etc.
  • Tool keywords (cli, terraform, koo) → likely devtools
  • Management keywords (monitoring, alarm, log) → likely monitoring

Troubleshooting

Issue: python is not recognized as a command

Cause: Python 3 is not installed or not in PATH Solution: Install Python 3.6+ and ensure it is added to PATH. On Windows, re-run the installer and check "Add Python to PATH". Alternatively, use python3 if available.

Issue: Script fails with SyntaxError: invalid syntax

Cause: System python points to Python 2.x (the script requires Python 3.6+) Solution: Run with python3 explicitly: python3 scripts/search-skills.py -k ""

Issue: Script fails with "Failed to fetch index.json"

Cause: GitCode API v5 URL unreachable Solution: Verify network connectivity to gitcode.com

Issue: GitCode API v5 returns 404

Cause: File path incorrect or default branch is not main Solution: Verify the skill's category, service, and name from search results

Issue: Search returns no results

Cause: Keywords don't match any skill Solution:

  1. Try broader keywords
  2. Switch between Chinese and English keywords (e.g., "对象存储" → "obs")
  3. List all skills: python scripts/search-skills.py -c "computing"

Notes

  • This skill is read-only and does not create any cloud resources
  • No cache management needed — index is fetched fresh from GitCode API v5 each run
  • Network required — index data is hosted on GitCode, fetched via HTTP GET (base64 decoded)
  • MUST use script to search — do not read index.json directly
  • Index repo: https://gitcode.com/2501_91318609/skills-for-index (branch: main)
  • Skills repo: https://github.com/huaweicloud/huaweicloud-skills (branch: master)

相关技能

Search, discover, browse and install AI Gallery Agent skills via natural language. Triggers include: "AI Gallery", "AI Gallery有什么skill", "有什么skill", "AI Gallery相关skill", "AI Gallery agent skill 市场", "AI Gallery skill类目", "skill 市场", "搜索AI Gallery skill", "安装skill", "订阅skill", "有没有XX skill", "有没有XX的能力", "帮我找 XX skill", "帮我找一个能XX的工具", "我想扩展功能", "介绍 XX Skill 内容", "XX Skill 具体做什么", "explore AI Gallery skills", "show AI Gallery skill categories", "does an AI Gallery skill exist for...", "which AI Gallery skills exist", "search skill", "find skill".

1 次安装

通过本地 Python 脚本只读查询华为云 ECS、BMS、IMS、AS 资源。

作者 huaweicloud-skills-team2 次安装

通过 AgentExplorer HTTP 接口检索阿里云官方 Agent Skills 目录,按意图、关键词或类目定位并按需安装匹配技能。

45 次安装

Queries Huawei Cloud storage resources (EVS/OBS/SFS/CBR). Covers cloud disks (volumes/snapshots/types/quotas/recycle bin), OBS buckets (ACL/metadata/notifica...

作者 huaweicloud-skills-team1 次安装

Invoke this skill to capture poor experiences and distill them into high-value requirements (Voice of Developer). Use when user encounters any Huawei Cloud related issues, like user expresses dissatisfaction, encounters errors, or wants to report issues/suggestions.Triggers include: "体验差","反馈问题","反馈建议","这个有bug","拒绝了请求","报告问题","反馈体验","report a problem","report a suggestion","bug report","poor experience","voice of developer"

作者 huaweicloud-skills-team

Queries Huawei Cloud ECS (Elastic Cloud Server) resources in read-only mode. Covers ECS instances, flavors, keypairs, quotas, server groups, block devices, NICs, VNC console, launch templates, recycle bin, scheduled events, and tags. No write operations. Use this skill when the user needs to query ECS instance details, list flavors, check server status, view block devices, or inspect ECS resource attributes. Triggers include: 查询ECS, ECS实例查询, 云服务器查询, 弹性云服务器, ECS规格, ECS配额, 云服务器列表, ECS详情, query ECS, list ECS servers, show server details, ECS flavors, ECS quotas, ECS keypairs, server groups, block devices, ECS inventory, cloud server list, ecs list, ecs query, ecs show.

huaweicloud-skills-team 的更多技能

浏览全部技能

用自然语言控制华为昇腾 NPU,本地或 SSH 远程执行 npu-smi 命令。

作者 huaweicloud-skills-team7 次安装

在华为云昇腾 910B DevServer 上按单机或双机(16 卡)拓扑部署并测试 LLM、VL、Embedding、Rerank 模型。

作者 huaweicloud-skills-team7 次安装

面向华为云资源的只读查询能力,用于资源清点、核对与参数发现。

作者 huaweicloud-skills-team6 次安装

通过本地 Python SDK 只读查询华为云 IAM 资源(用户、用户组、策略、委托、AK/SK、MFA、安全设置)。

作者 huaweicloud-skills-team6 次安装