SkillHub.cn Skill Publishing Guide (Practical OpenClaw Edition): Turning the Publishing Process into Step-by-Step Operational Notes for Agents

Preface

Publishing skills on skillhub.cn often involves handling several issues simultaneously: the publication directory must not contain real API Keys, CLI behavior differs between Windows and WSL, and incorrect path formats or login methods can lead to repeated 401 errors. Official documentation is scattered across web pages and installation instructions. Without a step-by-step note to follow, Agents are prone to missing checks or writing local execution environment paths into the public package.

The following introduces the community Skill “SkillHub.cn Skill Publishing Guide (OpenClaw Practical Edition)”: it integrates the complete workflow for one-click skill publishing on skillhub.cn into a SKILL.md. Other Agents can simply execute according to the document, with the author declaring that no further reference materials are needed. This article is organized based on SkillHub page metadata and the Skill’s content to assist in selection and installation.

What is this

In one sentence: A SkillHub.cn publishing SOP (Standard Operating Procedure) Skill, based on the universal SKILL.md format, emphasizing the separation of “Publish Package” and “Runtime Package”.

  • Coordinate: @user_310a65be/openclaw-skillhub-publish-guide
  • Version: 2.0.0 (Source: community)
  • Category: knowledge-management
  • Publisher: user_310a65be
  • Tags: requires_api_key=true (SkillHub API Key / Token required for publishing and CLI login)
  • Description: A complete operational note for one-click skill publishing on skillhub.cn; other Agents can follow it directly without consulting any other materials.
  • SkillHub Page: https://www.skillhub.cn/skills/user_310a65be/openclaw-skillhub-publish-guide
  • Resource URL: https://api.skillhub.cn/user_310a65be/openclaw-skillhub-publish-guide

The document states that it has been practically verified with publishing cases such as deepseek-bridge and skill-sedimentation (including skillId). The primary scenario is OpenClaw Workspace + Calling bash script CLI via WSL on Windows.

Core Features

The following content is derived from the Skill’s body text, listing only verifiable capability points.

Separation of Publish Package and Runtime Package

Type Upload to skillhub.cn? Allowed to contain API Key?
Publish Package (Workspace skills/<slug>/ template) Required Prohibited
Runtime Package (Local real execution path) Prohibited Real Key configured here only

Principle: Tokens are read from the credential vault at runtime and must not be written into the publish package; keys uploaded to the public platform cannot be deleted.

CLI Selection on Windows

The Skill compares npm global installation (@astron-team/skillhub / clawhub, using --token) with WSL bash script installation (curl -fsSL https://skillhub.cn/install/install.sh | bash -s -- --cli-only, using --key). The document concludes: Windows publishing should use the WSL script version of the CLI, as the npm version is prone to authentication 401 errors on Windows.

End-to-End Publishing Flow

The document covers the following steps:

  1. Install CLI within WSL (first time only)
  2. Create an API key at https://skillhub.cn/dashboard/keys (Format skh_xxx, displayed only once)
  3. skillhub login --key <Token> (Example requires calling via wsl)
  4. Organize the publish package directory (SKILL.md, core scripts, optional README.md) and Frontmatter template
  5. Use environment variables for keys in code (Python / JavaScript examples provided)
  6. 5-item self-check list before publishing (No hardcoded keys, no real path leaks, etc.)
  7. skillhub publish "<WSL Path>" --changelog "..." (Path must be in /mnt/d/... format)
  8. Verify via browser or CLI; optionally notify the main Agent via sessions_send

Common Error Comparison Table

The Skill includes a built-in table of error messages, causes, and handling methods (e.g., 401 authentication, unknown flag, 409 slug conflict, mistakenly uploading skill.zip, path format issues), facilitating troubleshooting by Agents.

Installation and Activation

For general SkillHub installation instructions, see https://skillhub.cn/install/skillhub.md. First check the CLI, then install to the current Agent’s skills directory (Must use --dir, otherwise the default ./skills/ might not be recognized).

Check / Install SkillHub CLI

command -v skillhub && skillhub --version

If not installed (Full installation or CLI only):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only

Install This Skill

The installation prompt provided on the webpage is: Install coordinate @user_310a65be/openclaw-skillhub-publish-guide following skillhub.md.

skillhub install @user_310a65be/openclaw-skillhub-publish-guide --dir <Current Agent's skills directory>

Common client skills directories (Excerpt from official installation docs):

  • Claude Code: ~/.claude/skills/
  • Cursor: ~/.cursor/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

OpenClaw and its variants use the skills directory under their respective workspaces; refer to your current environment.

After installation, let the Agent read the SKILL.md in that directory to load the publishing guide. The publishing operation itself still requires a SkillHub API Key, and login and publish must be completed within WSL (see Typical Usage below).

Typical Usage

1. Login (Windows + WSL example in Skill)

After creating a Token in the SkillHub Console, execute in WSL (Path depends on which skillhub on your machine):

wsl /home/huawei/.local/bin/skillhub login --key <YourToken>

Successful output includes the current account @user_310a65be.

2. Prepare Publish Package Frontmatter

---
slug: <slug>
displayName: <Skill Display Name>
version: 1.0.0
summary: <One-sentence description>
license: MIT
---

3. Publish Command

The path must be Unix-style recognized by WSL (Document example):

wsl /home/huawei/.local/bin/skillhub publish "/mnt/d/openclaw-data/workspace/skills/<slug>" --changelog "First release v1.0.0"

If prompted that the version already exists, increase the version in SKILL.md and retry.

4. Verification

Open the skill page pattern provided in the document via browser, or use a search command with registry (Body example uses https://skill.xfyun.cn/api/v1/skills.json).

Through the above steps, Agents can string “Organize Package → Self-check → publish → Verify” into a fixed pipeline, rather than scrambling commands every time.

Applicable Scenarios & Notes

Who is it for

  • Developers or Agents maintaining skills in OpenClaw workflows who need to repeatedly publish versions to skillhub.cn
  • Scenarios wishing to solidify the publishing checklist, CLI pitfalls, and error tables into a Skill for other Agents to execute

Limitations & Notes

  • The document primarily uses Windows + WSL; Linux/macOS users can adapt the flow but need to replace the wsl prefix and path examples (e.g., /mnt/d/..., fixed home paths in examples) themselves.
  • Tag requires_api_key=true: A Token must be created in the console and securely saved before publishing; do not write the Token into the uploaded publish package.
  • Paths and APIs for the credential vault and OpenClaw session notifications within the Skill are bound to specific deployments; change them to your own vault and sessionKey when migrating environments.
  • SkillHub Page Statistics (as of data capture): Rating 100000, Downloads 1327, Install count 0; Data is subject to platform display and changes over time.

Conclusion

If your pain points are “fear of leaks when publishing skills publicly, fear of CLI authentication failures, fear of incorrect path formats,” this OpenClaw Practical Edition Skill writes principles, steps, and troubleshooting tables into a single SKILL.md, suitable as a publishing manual for Agents within a team. Installation coordinate @user_310a65be/openclaw-skillhub-publish-guide, details at https://www.skillhub.cn/skills/user_310a65be/openclaw-skillhub-publish-guide .

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye