Skill Publish Guide

v1.0.0

Guide for publishing and managing skills on ClawHub. Use when the user wants to publish, update, delete, or manage skills on ClawHub. 当用户需要发布、更新、删除或管理 ClawHu...

0· 102·0 current·0 all-time
by路多辛@luduoxin

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for luduoxin/skill-publish-guide.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Skill Publish Guide" (luduoxin/skill-publish-guide) from ClawHub.
Skill page: https://clawhub.ai/luduoxin/skill-publish-guide
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install skill-publish-guide

ClawHub CLI

Package manager switcher

npx clawhub@latest install skill-publish-guide
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
The skill is an instruction-only publisher guide for ClawHub and only references the clawhub CLI, GitHub account age, and SKILL.md formatting requirements — all appropriate and expected for a publish/manage guide.
Instruction Scope
SKILL.md gives step-by-step authoring, validation, publishing, updating, and deletion commands using the clawhub CLI and describes frontmatter requirements; it does not instruct reading unrelated system files or accessing unrelated credentials. It explicitly warns about risky patterns (e.g., curl|bash).
Install Mechanism
No install spec or code files are present. This is lowest-risk (instruction-only) and nothing is being downloaded or written by the skill itself.
Credentials
The guide declares only optional CLAWHUB_SITE and CLAWHUB_REGISTRY overrides and instructs authors to declare any service-specific env vars in a skill's frontmatter. It does not request secrets or unrelated credentials.
Persistence & Privilege
always:false and no install or config changes are requested. Autonomous model invocation is allowed by platform default but the skill itself does not request permanent presence or elevated privileges.
Scan Findings in Context
[no_code_files_to_scan] expected: The static scanner found no code files to analyze — expected because this is an instruction-only SKILL.md. Absence of findings is not evidence of safety, but here it aligns with the skill being documentation.
Assessment
This is a text-only publishing guide that appears consistent with its purpose. Before using it: ensure you have the official clawhub CLI installed from a trusted source, avoid pasting secrets into SKILL.md (declare secrets only in frontmatter as required), be cautious of any referenced install scripts that use curl | bash, and confirm the CLI login step uses the scopes you expect. Because this is documentation-only, it does not add code or request credentials itself.

Like a lobster shell, security has layers — review code before you run it.

latestvk976pv52rmrgmdbrkcdwzb1zk584ncb3
102downloads
0stars
1versions
Updated 2w ago
v1.0.0
MIT-0

ClawHub Publisher - Publish & Manage Skills on ClawHub

ClawHub 发布器 - 在 ClawHub 上发布和管理技能


Prerequisites / 前提条件

  1. clawhub CLI must be installed. Verify with clawhub -V. clawhub CLI 必须已安装。用 clawhub -V 验证。

  2. You must be logged in. Check with clawhub whoami. If not logged in, run clawhub login. 必须已登录。用 clawhub whoami 检查。未登录则运行 clawhub login

  3. GitHub account must be at least 1 week old to publish. GitHub 账户需创建至少一周才能发布。


SKILL.md Format / SKILL.md 格式

Every skill must have a SKILL.md file with YAML frontmatter: 每个技能必须包含带 YAML frontmatter 的 SKILL.md 文件:

---
name: my-skill
description: "Short description of what this skill does / 技能简短描述"
env:
  MY_API_KEY: "Optional. Description of the env var / 可选。环境变量说明"
always: false
---

# Skill Title

Instructions and documentation here...

Frontmatter Fields / Frontmatter 字段

Field / 字段Required / 必填Description / 说明
nameSkill identifier, lowercase + hyphens / 技能标识符,小写+短横线
descriptionShort description for discovery / 用于搜索发现的简短描述
envEnvironment variables the skill needs / 技能所需的环境变量
alwaysWhether skill stays loaded (default: false) / 是否常驻加载(默认 false)

Directory Structure / 目录结构

my-skill/
├── SKILL.md          # Required / 必需
├── scripts/          # Optional, helper scripts / 可选,辅助脚本
├── rules/            # Optional, reference files / 可选,参考文件
└── ...

Important / 注意:

  • Do NOT include .git, LICENSE, .DS_Store, or binary files / 不要包含 .gitLICENSE.DS_Store 或二进制文件
  • Only text files are allowed / 只允许文本文件

Publishing Workflow / 发布流程

Step 1: Prepare / 准备

Ensure the skill folder contains a valid SKILL.md with proper frontmatter. 确保技能文件夹包含有效的 SKILL.md 和正确的 frontmatter。

Step 2: Validate / 验证

Before publishing, verify: 发布前验证以下内容:

  • name in frontmatter matches the --slug you plan to use / frontmatter 中的 name 与计划的 --slug 一致
  • description is clear and includes trigger keywords / description 清晰且包含触发关键词
  • All env vars used in commands are declared in env section / 命令中使用的环境变量都在 env 中声明
  • No binary files, .git, or LICENSE in the folder / 文件夹中无二进制文件、.gitLICENSE
  • No interactive prompts (AI Agent cannot answer y/n) / 无交互式提示(AI Agent 无法回答 y/n)

Step 3: Publish / 发布

clawhub publish <path> \
  --slug <slug> \
  --name "<Display Name>" \
  --version <semver> \
  --tags latest \
  --no-input

Parameters / 参数:

Param / 参数Required / 必填Description / 说明
<path>Path to skill folder / 技能文件夹路径
--slugURL identifier (lowercase + hyphens only) / URL 标识符(仅小写+短横线)
--nameDisplay name / 显示名称
--versionSemantic version (e.g., 1.0.0) / 语义化版本号
--tagsComma-separated tags (default: latest) / 逗号分隔的标签
--no-inputSkip interactive prompts / 跳过交互提示

Example / 示例:

clawhub publish ./my-skill \
  --slug my-skill \
  --name "My Skill" \
  --version 1.0.0 \
  --tags latest \
  --no-input

Step 4: Verify / 确认

After publishing, the skill enters security scan (usually takes a few minutes): 发布后技能进入安全扫描(通常需要几分钟):

# Check skill status / 检查技能状态
clawhub inspect <slug>

If you see "Skill is hidden while security scan is pending", wait and retry. 如果看到"Skill is hidden while security scan is pending",等待后重试。


Updating a Skill / 更新技能

To update, publish with an incremented version number: 更新时需升级版本号

clawhub publish ./my-skill \
  --slug my-skill \
  --name "My Skill" \
  --version 1.0.1 \
  --tags latest \
  --no-input

Important / 注意: The same version cannot be republished. If you delete a skill and republish, you must use a new version number. 同一版本号不可重复发布。删除后重新发布也必须使用新版本号。


Deleting a Skill / 删除技能

clawhub delete <slug> --yes

Warning / 警告: Deletion is soft-delete. After deletion, the same version number cannot be reused for the same slug. 删除为软删除。删除后同一 slug 的同一版本号不可复用。


Common Issues & Solutions / 常见问题与解决

Error / 错误Cause / 原因Solution / 解决
Slug must be lowercaseSlug contains uppercase / Slug 含大写Use lowercase + hyphens / 使用小写+短横线
Version already existsSame slug+version published before / 同 slug+版本已发布过Increment version / 升版本号
Remove non-text filesFolder contains .git, LICENSE, binaries / 含非文本文件Remove those files / 删除这些文件
GitHub API rate limit exceededToo many requests / 请求太频繁Wait 10 minutes / 等待 10 分钟
Connection lost while action was in flightNetwork issue or too many files / 网络问题或文件过多Retry with fewer files / 精简文件后重试
Security scan flagged missing env declaration / 安全扫描标记缺少 env 声明Commands use env vars not declared in frontmatter / 命令使用了未在 frontmatter 中声明的环境变量Add env section to frontmatter / 在 frontmatter 中添加 env
Security scan flagged curl|bash / 安全扫描标记 curl|bashInstall script uses curl | bash / 安装脚本使用 curl | bashAdd security warning, recommend Homebrew/source build / 添加安全提示,推荐 Homebrew/源码构建

Security Best Practices / 安全最佳实践

When writing a SKILL.md, follow these guidelines to pass ClawHub security review: 编写 SKILL.md 时,遵循以下准则以通过 ClawHub 安全审核:

  1. Declare all env vars / 声明所有环境变量: If any command requires an API key or secret, declare it in the env section of frontmatter. Explain what it's for and whether it's optional. 如果命令需要 API key 或密钥,在 frontmatter 的 env 中声明,说明用途和是否可选。

  2. Avoid curl|bash as primary install method / 避免将 curl|bash 作为主要安装方式: Recommend Homebrew, Scoop, or source build first. If including a curl|bash script, add a security warning. 优先推荐 Homebrew、Scoop 或源码构建。如包含 curl|bash 脚本,添加安全提示。

  3. No interactive prompts / 无交互提示: AI Agents cannot answer y/n questions. All operations must be completable via command-line arguments. AI Agent 无法回答 y/n 问题。所有操作必须能通过命令行参数完成。

  4. Document network operations / 说明网络操作: If the skill includes HTTP requests, DNS lookups, port scanning, etc., note this clearly so users are aware. 如果技能包含 HTTP 请求、DNS 查询、端口扫描等,明确说明让用户知晓。

  5. Document credential storage / 说明凭据存储: If the skill stores secrets locally (password vault, API keys), explain the encryption method and storage location. 如果技能在本地存储密钥(密码保险库、API key),说明加密方式和存储位置。

  6. No binary files in skill bundle / 技能包中不含二进制文件: Only include text files (Markdown, JSON, YAML, scripts). Binary files will be rejected. 只包含文本文件(Markdown、JSON、YAML、脚本)。二进制文件会被拒绝。


CLI Reference / CLI 命令参考

# Authentication / 认证
clawhub login                           # Login via browser / 浏览器登录
clawhub login --token <token>           # Login with API token / 用 API token 登录
clawhub logout                          # Logout / 登出
clawhub whoami                          # Check current identity / 查看当前身份

# Publish / 发布
clawhub publish <path> --slug <slug> --name "<name>" --version <ver>
                                        # Publish a skill / 发布技能

# Verify / 确认
clawhub inspect <slug>                  # View skill metadata / 查看技能元数据

# Delete & Restore / 删除与恢复
clawhub delete <slug> --yes             # Soft-delete a skill / 软删除技能
clawhub undelete <slug>                 # Restore deleted skill / 恢复已删除技能

# Batch / 批量
clawhub sync --all                      # Sync all local skills / 同步所有本地技能
clawhub sync --dry-run                  # Preview without uploading / 预览不上传

Comments

Loading comments...