Huawei cloud find skills

From huaweicloud/huaweicloud-devkit · View interactive version

Huawei cloud find skills is an AI agent skill from the GitHub repository huaweicloud/huaweicloud-devkit. Invoke this skill to search, discover, browse, find and install any Huawei Cloud (华为云) agent skill.Triggers include: "华为云","华为云有什么skill","华为云相关skill","华为云agent skill 市场","华为云skill类目","explore Huawei Cloud skills","show Huawei Cloud skill categories","does a Huawei Cloud skill exist for...","which Hu

How to use this skill

Skill file

[!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:

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

Prerequisites

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:

```bash

# macOS

brew install python3

# Ubuntu/Debian

sudo apt-get install python3

# Windows — download installer from python.org, check "Add Python to PATH"

```

  1. Verify after install: Run python --version again to confirm Python 3.6+ is available
  2. 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 "<keyword>"
python scripts/search-skills.py -k "<keyword>" -c "<category>"
python scripts/search-skills.py -c "<category>"
# Bash
python scripts/search-skills.py -k "<keyword>"
python scripts/search-skills.py -k "<keyword>" -c "<category>"
python scripts/search-skills.py -c "<category>"

→ 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 B is a fallback; Option C is deprecated (实测失效 per 2026-10 activity reports) — if attempted and it fails, use its git clone bypass. Option A requires NO git — it downloads the repo ZIP over HTTP and copies the skill folder.

# Option A: HTTP download (default, no git required)
# Download the skills repo ZIP, extract, locate the skill folder, copy it into
# this agent's skills dir. Replace <skills-dir> and <category>/<service> as needed.
mkdir -p <skills-dir>
SKILL_SRC=$(find /tmp/hw-skills-net -type d -name "<skill-name>" 2>/dev/null | head -1)
( curl -fsSL https://gitcode.com/huaweicloud/huaweicloud-skills/-/archive/master/huaweicloud-skills-master.zip -o /tmp/hw-skills.zip \
  && unzip -oq /tmp/hw-skills.zip -d /tmp/hw-skills-net ) \
  || ( curl -fsSL https://github.com/huaweicloud/huaweicloud-skills/archive/refs/heads/master.zip -o /tmp/hw-skills.zip \
  && unzip -oq /tmp/hw-skills.zip -d /tmp/hw-skills-net )
SKILL_SRC=$(find /tmp/hw-skills-net -type d -name "<skill-name>" 2>/dev/null | head -1)
[ -n "$SKILL_SRC" ] && cp -r "$SKILL_SRC" "<skills-dir>/<skill-name>" || echo "SKILL_SRC_NOT_FOUND"

# Option B: npx clawhub install (OpenClaw ecosystem)
npx clawhub install <skill-name> -y

# Option C (DEPRECATED — 实测失效, do NOT rely on it): npx skills add via GitCode.
# Every 2026-10 activity-experience report hit the same failure:
#   "Downloaded URL is not a valid SKILL.md file or supported archive"
# (the skills CLI cannot consume GitCode repos). Only kept here as a last resort;
# when it fails, do NOT retry — fall back to the git clone bypass below.
# npx skills add https://gitcode.com/huaweicloud/huaweicloud-skills.git#master --skill <skill-name> -y

# Option C bypass (实测可用): git clone + local-path install
git clone --depth 1 https://gitcode.com/huaweicloud/huaweicloud-skills.git /tmp/hw-skills-git \
  || git clone --depth 1 https://github.com/huaweicloud/huaweicloud-skills.git /tmp/hw-skills-git
cp -r "/tmp/hw-skills-git/skills/<category>/<service>/<skill-name>" "<skills-dir>/<skill-name>"

If all installation attempts fail (SKILL_SRC_NOT_FOUND, download unreachable, npx errors), do NOT install git as a workaround. Download https://github.com/huaweicloud/huaweicloud-skills/archive/refs/heads/master.zip manually, extract it, copy the skill's folder into the agent skills directory, and tell the user how the skill was installed. <skills-dir> resolves per agent: Claude Code ~/.claude/skills, OpenCode ~/.config/opencode/skills, Cursor ~/.cursor/skills.

Parameters

| Parameter | Required/Optional | Description | Default |

| ------------ | ----------------- | --------------------------------------------------------------------- | ------- |

| Keyword | Optional | Search keyword (matched against name, description, triggers, service) | None |

| Category | Optional | Category code for filtering (e.g., "computing", "storage", "network") | None |

| skill-name | Required (Step 3) | Exact skill name for installing | None |

Reference Documentation

| Document | Description |

| ---------------------------------------------------- | ------------------------------------------------------------------------------------- |

| GitCode API v5 index.json | Skill index fetched via HTTP GET (base64 decoded) |

| GitCode API v5 cn-en-map.json | Chinese-English keyword mapping fetched via HTTP GET (base64 decoded) |

| scripts/search-skills.py | Search 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.

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 "<keyword>"

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

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.