huawei-cloud-publish-work-to-gallery

huawei-cloud-publish-work-to-gallery is a skill for Claude Code, Codex from huaweicloud/huaweicloud-skills. It costs 200 tokens per session (7,970 once invoked), scanned C, original, MIT.

A workflow for uploading and publishing a project to Huawei Cloud's University Operations Platform, a site for displaying student and training-camp work. It gathers project details, images, source files, and the target training camp before publishing.

In plain words
What is it for?
Use it to submit a project or other work to the platform's gallery or a training camp, including its repository, branch, name, description, cover image, and packaged details.
Why use it?
It replaces a manual multi-step submission process with an ordered workflow that checks required information and publishing conditions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to submit a project or other work to the platform's gallery or a training camp, including its repository, branch, name, description, cover image, and packaged details.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/huaweicloud/huaweicloud-skills/huawei-cloud-publish-work-to-gallery
Install

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.

Any agent
npx skills add huaweicloud/huaweicloud-skills --skill huawei-cloud-publish-work-to-gallery
Clone the repo
git clone --depth 1 https://github.com/huaweicloud/huaweicloud-skills

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for huawei-cloud-publish-work-to-gallery

README.md
[![agentmods](https://agentmods.dev/badge/skills/huaweicloud/huaweicloud-skills/huawei-cloud-publish-work-to-gallery/github.svg)](https://agentmods.dev/skills/huaweicloud/huaweicloud-skills/huawei-cloud-publish-work-to-gallery)
Your own site
<a href="https://agentmods.dev/skills/huaweicloud/huaweicloud-skills/huawei-cloud-publish-work-to-gallery"><img src="https://agentmods.dev/badge/skills/huaweicloud/huaweicloud-skills/huawei-cloud-publish-work-to-gallery/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.

agentmods 80×15 button for huawei-cloud-publish-work-to-gallery

Your own site · 80×15
<a href="https://agentmods.dev/skills/huaweicloud/huaweicloud-skills/huawei-cloud-publish-work-to-gallery"><img src="https://agentmods.dev/badge/skills/huaweicloud/huaweicloud-skills/huawei-cloud-publish-work-to-gallery.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 200 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,970 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00200 $0.07970
Opus 5.5 $0.00080 $0.03188
Sonnet 5.5 $0.00040 $0.01594
Haiku 4.5 $0.00020 $0.00797

Measured 13d ago against content hash b7a141070b49, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

huawei-cloud-publish-work-to-gallery scanned grade C with 2 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 13d ago.

The scan reads SKILL.md. This mod also ships 34 executable files (scripts/api.mjs, scripts/browser_launch.py, scripts/build-cover.mjs, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- **截图临时目录 `tmp=<abs>` 保留到整体流程结束**(供 Step 8 409 改名复用原截图,见下),**由 Step 8 发布成功/放弃后统一清理**(`Remove-Item -Recurse -Force <abs>` 或 `rm -rf <abs>`),build-cover 不删。

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- **启动项目**:`$SKILL_DIR/scripts/spawn-detached.mjs --out /tmp/spawn.out --pidfile /tmp/app.pid --cwd /path/to/project -- npm run dev` → `#spawn=ok pid=12345`。**必须传 `--cwd <workDir>`**(脚本默认用 `process.cwd()`,若执行目录非 workDir,
skills/devtools/common/huawei-cloud-publish-work-to-gallery/SKILL.md · 240 lines

How it starts

The opening of the file, as written. The whole thing — 240 lines — stays where its author put it; the contents beside it link to each section on GitHub.

发布作品至华为云高校运营平台。优先调用内置脚本(单入口、fail-fast、自带 --help),报错才查 references/troubleshooting.md。

Pipeline

Step 1 (workDir, domainID, STS)
Step 2 (port→变量, envUrl→变量)              ← 依赖 Step 1
  ├── Step 3 (gitUrl, gitBranch, workName)   ← 只依赖 workDir
  ├── Step 5 (introduction, camps)           ← 只依赖 workDir + STS
  ├── Step 4 (coverImage)                    ← 依赖 port + workName
  └── Step 6 (detailZip)                     ← 依赖 workName + 代码分析
Step 7 (trainingCampId)                      ← 依赖 Step 5 camps
Step 8 (publish)                             ← 依赖以上全部

并行(Step 2 完成后):Step 3/4/5/6 互不依赖,四者全并行(取最长路径 Step 4 ~90s,而非串行 160s)。Step 4 内 preflight + ensure-utf8 再并行。注意 Step 6 的隐性依赖:generate_diagram.py 用 Playwright,由 Step 4 的 preflight 安装(首次含 CJK 字体 + Chromium,510 分钟)——脚本已内置门禁:缺 font-gate-ok 标记时 exit 1 提示等待,不报 ModuleNotFoundError。并行跑 Step 6 收到该提示 → 等 preflight(轮询日志/标记)完成后再重跑本步,不是真失败。

变量贯穿:port/workName/envUrl 在最早步骤确定后作为变量传递全流程,禁止硬编码(隧道 URL 含 port,换端口时 envUrl 随之变)。

执行模型:① 脚本契约优先——按 stdout 成功信号判定,成功路径零源码读取;失败才 脚本提示 → troubleshooting 对应节 → grep 脚本源码 逐级查 ② 禁止手工绕过门禁 ③ 网络超时统一 3s ④ detect-env.mjs 确定平台后只读对应平台 reference(按目录跳转,不全读)⑤ 合并无依赖的 bash 调用:用 ; 串联进一条命令,减少工具往返(每次 ~1-2s) ⑥ 需用户交互的命令一律把链接/二维码原样展示给用户,禁止用 agent 内置浏览器/工具(browser_use_open 等)代开——脚本本地已起回调服务器,用户在任意浏览器授权后脚本自动拿到 token,agent 全程不需要浏览器。

Core Commands(脚本契约速查)

$SKILL_DIR 定义:本 skill 的安装目录绝对路径(含 SKILL.md 的目录)。执行前先设置 export SKILL_DIR=/path/to/huawei-cloud-publish-work-to-gallery(示例:$HOME/.local/share/huawei-cloud-publish-work-to-gallery)。所有脚本均为可执行文件(带 shebang),直接用 $SKILL_DIR/scripts/… 前缀调用,无需 node/python/bash 解释器前缀(该说法仅 Linux 成立;Windows 下 .mjs/.py 需 node/python 前缀、preflight.ps1 需 powershell 前缀);若安装器未恢复可执行位(Linux 直接调用报 Permission denied),先执行一次 chmod +x "$SKILL_DIR/scripts/"* 自愈,不改脚本;参数一律用可解析的示例值(无 <…> 占位符,避免命令提取器剥离后缺参/空值)。W/R 标注:W = 平台写操作(发布作品,必须经用户确认后才执行);R = 只读查询/本地辅助命令。

Read the full file on GitHub · 240 lines

Files

What ships with it

46 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.

Changes

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.

  1. 13d ago Changed · +27 lines · +51 tokens per session b7a141070b49
  2. 1mo ago First seen · 213 lines · 149 tokens per session scan C 9761666b4585

Subscribe to this mod's changes

huawei-cloud-publish-work-to-gallery is a skill published in the GitHub repository huaweicloud/huaweicloud-skills (59 stars, last pushed yesterday), licensed MIT. It adds 200 tokens to every session and 7,970 once invoked, about $0.0008 per session on Opus 5.5. A static security scan graded it C with 2 findings (recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-10.