AI Agent Hub
Back to skills
📚

SkillHub Publishing Guide

Knowledge Management Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Please follow https://skillhub.cn/install/skillhub.md to install @user_310a65be/openclaw-skillhub-publish-guide into the current AI assistant.

About this skill

The problem

Publishing a local skill to skillhub.cn often fails for reasons beyond a single CLI mistake. On Windows, authentication may keep returning 401, while flag names and registry behavior differ between tooling. If a public package also contains a real API Key, local paths, or an outdated version, it can break installation and expose credentials. This skill turns a Windows/WSL publishing run into a repeatable checklist.

How it works

The workflow is built around separating publish packages from runtime packages: the publish package keeps only SKILL.md, templated notes, and placeholders; the runtime package holds real secrets, local paths, and credential-reading logic. Key steps include:
- using the WSL script-based CLI to avoid Windows-native CLI differences in authentication flags;
- reading the SkillHub Token from credential-vault at runtime instead of embedding it;
- converting local paths such as D:\ to /mnt/d/... before publishing;
- checking code, SKILL.md, and README.md for missing hardcoded keys, default credentials, or real paths;
- bumping version when a conflict occurs, then verifying the result through the page or registry.

Boundaries

It assumes the skill directory, Token, and CLI environment already exist, and it does not generate business logic for the skill. Tokens are usually shown only once, so expired or leaked credentials should be recreated. Published versions are hard to fully retract, which makes pre-publish cleanup more reliable than post-release repair.

Use Cases

  • After organizing a local skill directory on Windows, publish the template package to SkillHub.cn without leaking the Token.
  • When CLI publishing returns 401 or unknown flag --key, switch to the WSL script CLI and log in again.
  • Before publishing, check SKILL.md, README.md, and code for hardcoded API keys or real D:\ paths.
  • When a slug conflict or existing version appears, bump the version, rerun publish, and verify the result.

Best For

  • Engineering leads who maintain OpenClaw local skills and update versions on SkillHub.cn.
  • Automation engineers configuring CLI, Token, and publish paths in Windows and WSL environments.
  • Security or quality owners who review publish packages for leaked keys and real paths.
  • Skill authors who template local Agent skills for others to install and use.