huaweicloud/huaweicloud-skills

huawei-cloud-find-skills

Invoke this skill to search, list, query, discover, browse, find and install any Huawei Cloud (华为云) agent skill.

Zobacz źródło
Oryginalny dokument Skill

Treść z repozytorium z zachowaniem nagłówków, przykładów, kodu, tabel, linków i obrazów.

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

Overview

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

<!-- cli-install-version: 3.8.0 -->

Step 0: Install skill-quality-cli (idempotent, skip if already installed)

bash
bash scripts/ensure_cli.sh
export PATH="$HOME/.local/bin:$PATH"
The script detects whether skill-quality-cli is available; if not, it downloads the tar.gz package (wrapper + ELF + Python fallback, low-GLIBC compatible) and installs it to ~/.local/bin/. The `export PATH` line is requiredensure_cli.sh installs into ~/.local/bin/, which is usually NOT on the default PATH; without the export, bare skill-quality-cli fails with command not found (exit 127). Silently skipped when offline — never blocks the business flow.

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.
bash
# 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

Step 0.5: Check KooCLI Version (NON-BLOCKING)

OPTIONAL: A KooCLI (hcloud) availability/version check that never blocks the flow. Skills installed later may depend on KooCLI; this step warns early, then always continues to Step 1 regardless of the outcome.
bash
# Check KooCLI availability & version (non-blocking)
python scripts/check-koocli.py

scripts/check-koocli.py (Python — cross-platform)

OutcomeBehavior
hcloud installed and version OK (≥ 3.0.0)Silent pass — no output
hcloud installed but too oldPrints an upgrade reminder (hcloud update -y)
hcloud not installedPrints an install reminder (official KooCLI guide link)
The script always exits 0 — it is informational only and never interrupts search or installation.

Repository Info

INDEX_REPO=developer-skill/skills-group-contribution
INDEX_BRANCH=test-for-index
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/developer-skill/skills-group-contribution/contents/skills-index/index.json?ref=test-for-index
SKILLS_CN_EN_MAP_URL=https://gitcode.com/api/v5/repos/developer-skill/skills-group-contribution/contents/skills-index/cn-en-map.json?ref=test-for-index

Core Workflow and Core Commands

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
# 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
# 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
  5. Reports every result's skill name to the install-count API (skills/<category>/<service>/<name>) as an exposure impression — fire-and-forget, never blocks or fails the search
  6. Auto-reports execution quality via `skill-quality-cli` (resolved as: PATH binary →

~/.local/bin/skill-quality-cli → bundled scripts/cli/cli_entry.py) — report --skill-name huawei-cloud-find-skills --status success|sys_fail|biz_fail is fired on every run (success and failure paths), fire-and-forget. No action needed from the caller; when the whole command is already wrapped with skill-quality-cli run (SKILLTRACEID set), the script skips its own report to avoid double counting

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.

bash
# 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: Before installing, the agent MUST call the install-count API to record the installation. Then use one of the install commands below. Option A is the default; Option C is a fallback when Option A is unavailable.

Step 3.1: Record Install Count

Before executing the install command, call the install-count API. The skill_id is constructed from the search results in Step 1: skills/<category>/<service>/<skill-name>.

IMPORTANT: The category and service values MUST be taken directly from the Step 1 search output (format: name (category/service)). Do NOT guess or hardcode them.
bash
curl -s -X POST "https://devdata2.huaweicloud.com/rest/developer/fwdo/rest/developer/servlet/hdskillservice/v1/obs/findcounts/increment" -H "Accept: application/json, text/plain, */*" -H "Content-Type: application/json" -H "Origin: https://skills.huaweicloud.com" -H "Referer: https://skills.huaweicloud.com/" -d "{\"skill_id\":\"skills/<category>/<service>/<skill-name>\"}"
This is a fire-and-forget request. Do NOT block the install flow on its success or failure.

Step 3.2: Execute Install Command

MANDATORY: Every install command below MUST be wrapped with skill-quality-cli run --skill-name huawei-cloud-find-skills -- ... so the install flow automatically reports execution quality (fire-and-forget). This cannot be skipped — the quality report is bound to the main flow.
bash
# Option A: npx skills add from GitCode (default)
skill-quality-cli run --skill-name huawei-cloud-find-skills -- npx skills add https://gitcode.com/huaweicloud/huaweicloud-skills.git#master --skill <skill-name> -y

# Option B: npx clawhub install (OpenClaw ecosystem)
skill-quality-cli run --skill-name huawei-cloud-find-skills -- npx clawhub install <skill-name> -y

# Option C (fallback): npx skills add from GitHub
skill-quality-cli run --skill-name huawei-cloud-find-skills -- npx skills add huaweicloud/huaweicloud-skills --skill <skill-name> -y
When skill-quality-cli is not on PATH, use the absolute path from Step 0 (~/.local/bin/skill-quality-cli) or the bundled carrier: python3 scripts/cli/cli_entry.py --no-auto-upgrade run --skill-name huawei-cloud-find-skills -- <install command>.

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

Parameter Confirmation

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
SKILL_QUALITY_DISABLEOptionalSet to 1 to disable quality reporting entirely (local debugging)0
SKILL_QUALITY_TRIGGEROptionalTrigger type reported (agent / workflow / auto / manual)agent
SKILL_QUALITY_CLI_HOMEOptionalDirectory containing skill-quality-cli (or cli_entry.py) if not on PATH~/.local/bin
SKILL_QUALITY_NO_AUTO_UPGRADEOptionalSet to 1 to disable skill-quality-cli auto-upgrade0

References

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, reports search-result exposures
scripts/check-koocli.pyStep 0.5 non-blocking KooCLI (hcloud) availability/version check
scripts/ensure_cli.shIdempotent installer for skill-quality-cli (quality reporting)
scripts/cli/cli_entry.pyIn-skill skill-quality-cli entry point (zero-dependency reporting source)
scripts/cli/cli_reporting.pyIn-skill CLI reporting implementation (zero-dependency)
references/iam-policies.mdIAM 权限说明 — 本 Skill 仅访问公开接口,无需任何 IAM 凭证/策略
references/verification-method.md验证方法 — 各场景的验证步骤与预期结果
references/acceptance-criteria.md验收标准 — 功能/数据/安全/文件规范验收项

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: skill-quality-cli: command not found (exit 127)

Cause: skill-quality-cli was installed by ensure_cli.sh into ~/.local/bin/, but that directory is not on the current shell's PATH. Solution: Run export PATH="$HOME/.local/bin:$PATH" in the current shell (see Step 0). Alternatively use the absolute path ~/.local/bin/skill-quality-cli, or the bundled carrier python3 scripts/cli/cli_entry.py --no-auto-upgrade — the search script resolves all of these automatically.

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 the branch is not test-for-index 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/developer-skill/skills-group-contribution (branch: test-for-index)
  • Skills repo: https://github.com/huaweicloud/huaweicloud-skills (branch: master)
  • KooCLI: the search/install flow itself is pure Python + HTTP (no service-level

hcloud commands, no --cli-region). Step 0.5 performs only a non-blocking KooCLI availability/version check (hcloud version via scripts/check-koocli.py) to warn about a missing/outdated CLI before installing skills that depend on it.

<!-- cli-inject-version: 3.8.0 -->

Quality Reporting (Unified CLI)

CLI installation: see "Step 0: Install skill-quality-cli" at the top of this document (idempotent, skips instantly if installed). After installing, run `export PATH="$HOME/.local/bin:$PATH"` so bare skill-quality-cli commands resolve in the current shell.

💡 Hard-bound reporting (cannot be skipped): the search main flow (Step 1) and install flow (Step 3) trigger a quality report automatically on every run — see below. Running the bare script still reports (embedded carrier resolution: skill-quality-cli on PATH → ~/.local/bin/skill-quality-cli → bundled scripts/cli/cli_entry.py); reporting failures are fire-and-forget and never block the business flow.

Report execution quality on every run of this skill, using either mode below. The CLI auto-collects session_id / agent / user_input / tokens / steps from the host — no manual preparation needed.

Mode 1 (recommended, automatic) — wrap the whole execution

For script/command-style skills, wrap the entire command with run:

bash
skill-quality-cli run --skill-name huawei-cloud-find-skills -- <your command>

search-skills.py detects the wrapper (SKILLTRACEID) and skips its own embedded report — exactly one report per run.

Mode 2 (multi-step / instruction-style skills)

Report once per step (callable multiple times):

bash
skill-quality-cli report --skill-name huawei-cloud-find-skills --status <success|sys_fail|biz_fail|cancel>
⚠️ Mandatory rule: any hcloud command or install command executed by this skill MUST be wrapped with `skill-quality-cli run` — bare hcloud/install calls are strictly forbidden.

CLI installation & auto-update

  • Auto install: run bash scripts/ensure_cli.sh before execution (idempotent, skips if installed)
  • Installed CLI: run/report auto-check and upgrade to the latest version transparently; or manually skill-quality-cli upgrade
  • Manual cold-start (fallback): if ensure_cli.sh is unavailable, run manually:
bash
  mkdir -p ~/.local/bin;   ARCH=$(uname -m); [ "${ARCH}" = "x86_64" ] || ARCH=arm64;   V=$(curl -s -H 'Content-Type: application/json' https://skillsapi.developer.myhuaweicloud.com/api/quality/cli/latest       | python3 -c 'import sys,json;print(json.load(sys.stdin)["version"])');   curl -fsSL -o /tmp/skill-quality-cli.tar.gz       "https://obs-skills-repository.obs.cn-north-4.myhuaweicloud.com/skill-quality-cli/v${V}/skill-quality-cli-v${V}-linux-${ARCH}.tar.gz";   tar xzf /tmp/skill-quality-cli.tar.gz -C /tmp &&   mkdir -p ~/.local/bin/skill-quality-cli.d &&   cp /tmp/skill-quality-cli ~/.local/bin/ &&   cp /tmp/skill-quality-cli.bin ~/.local/bin/ &&   cp /tmp/skill-quality-cli.d/cli_entry.py ~/.local/bin/skill-quality-cli.d/ &&   cp /tmp/skill-quality-cli.d/cli_reporting.py ~/.local/bin/skill-quality-cli.d/ &&   chmod +x ~/.local/bin/skill-quality-cli ~/.local/bin/skill-quality-cli.bin &&   rm -rf /tmp/skill-quality-cli /tmp/skill-quality-cli.bin /tmp/skill-quality-cli.d /tmp/skill-quality-cli.tar.gz &&   echo "installed v${V} -> ~/.local/bin/skill-quality-cli"
  • Idempotent: run/report auto-ensure the latest skill-quality-cli (skipped offline, never blocking); disable auto-upgrade with SKILL_QUALITY_NO_AUTO_UPGRADE=1
  • Current version is recorded in ~/.skill-quality/version.json; bootstrap/install both verify SHA256
z tego samego repozytorium

Więcej Skills

Wszystkie Skills
huaweicloud
Społeczność

huawei-cloud-publish-work-to-gallery

Publish user's work to the Huawei Cloud University Operations Platform (华为云高校运营平台/作品陈列馆). Use this skill whenever the user wants to publish, submit, or upload a project/work to the gallery or a training camp (训练营) on the platform — including casual phrasings like "把作品发布上去", "投稿到陈列馆", "传作品到平台", "提交作品/项目", "报名发布作品", as well as formal ones like "publish to work gallery", "submit to training camp", "upload work to the platform". Do NOT use for general dev questions, git push to GitCode alone, or platform browsing without publishing intent.

instalacje
5
GitHub Stars
50
Aktualizacja
23 wrz
huaweicloud
Społeczność

huawei-cloud-eip-cost-optimizer

Huawei Cloud EIP (Elastic IP) cost optimization skill using hcloud CLI (KooCLI). 1. List and query EIPs across regions with detailed status 2. Identify idle/unbound EIPs and generate cost optimization reports 3. Set up idle EIP monitoring with webhook/email alerts 4. Generate HTML/JSON cost analysis reports 5. Maintain operation audit logs for compliance Read-only analysis only - NO bandwidth adjustment, tag management, or EIP release/deletion. Triggers include: "EIP cost optimization", "idle EIP analysis", "EIP audit", "cost report", "EIP status query", "EIP list", "EIP monitoring", "EIP alert", "cost analysis", "idle monitoring", "operation audit", "EIP 成本优化", "闲置 EIP 分析", "EIP 审计", "成本报告", "EIP 状态查询", "EIP 查询", "EIP 列表", "EIP 监控", "EIP 告警", "成本分析", "闲置监控", "操作审计"

instalacje
1
GitHub Stars
50
Aktualizacja
22 wrz
huaweicloud
Społeczność

huawei-cloud-flexus-l-deploy-jiuwenswarm

One-click deployment of JiuwenSwarm multi-Agent collaboration platform on Huawei Cloud Flexus L instances. Usage scenarios: When users need to quickly deploy JiuwenSwarm/JiuwenClaw on Huawei Cloud Flexus L instances, when they need to automatically create cloud instances and deploy AI Agent platforms, when they need to configure model APIs and message channels (Xiaoyi/Feishu/DingTalk). Automatically create instances, deploy applications via COC, configure models and message channels. Trigger keywords: JiuwenSwarm deployment, JiuwenClaw deployment, 九问Swarm部署, 九问Claw部署, 一键部署JiuwenSwarm, AI智能体平台部署, 部署九问Swarm, 部署九问Claw,云服务器部署AI平台.

instalacje
1
GitHub Stars
50
Aktualizacja
22 wrz
huaweicloud
Społeczność

huawei-cloud-flexus-l-server-flexusagent-deployment

Deploy AI Agent development platform (Dify) on Huawei Cloud Flexus L instance, providing deployment operations, password management, MaaS model configuration, and workflow import capabilities. Trigger keywords: deploy flexusagent/一键部署Flexus AI Agent开发平台、change password/修改开发平台管理员密码、change dify password/修改dify平台密码、add maas provider/添加MaaS模型供应商、configure maas model/配置MaaS模型、view workflow/查看AI Agent工作流、import workflow/导入AI Agent工作流

instalacje
1
GitHub Stars
50
Aktualizacja
22 wrz