当前位置: 首页 > Skill >

skill-publisher

skill-publisher

skill-publisher

端到端工作流,用于将智能体技能发布到GitHub、ClawdHub和skills.sh。处理仓库创建、主题标签、ClawdHub发布、skills.sh索引...

1.0.0 2026.11.22 166
获取Skill文件查看使用说明
作 者:陈禾 许可证: 更新时间:2026.11.22
本文目录展开

Skill Publisher

End-to-end publishing workflow for agent skills. Covers GitHub, ClawdHub, and skills.sh — from pre-flight checks to installation verification.

Language

Respond in the same language the user used to invoke this skill. Fall back to English if no language signal is found.

Prerequisites

command -v gh >/dev/null || echo "CRITICAL: gh (GitHub CLI) not found — install with: brew install gh"
command -v git >/dev/null || echo "CRITICAL: git not found"

Optional (for ClawdHub publishing):

npx clawhub --help >/dev/null 2>&1 || echo "INFO: clawhub CLI not installed — needed for ClawdHub publishing"

Workflow Overview

The full publishing pipeline has 6 phases:

1. Pre-flight Check    → Validate skill structure and content
2. GitHub Publish      → Create repo, push, add topics
3. ClawdHub Publish    → Publish to ClawdHub registry
4. skills.sh Submit    → Submit index request via GitHub issue
5. Install Verify      → Test all installation methods
6. Post-publish        → Summary with all links and install commands

Run phases sequentially. If the user only wants a specific phase (e.g., "just submit to skills.sh"), skip to that phase.

Phase 1: Pre-flight Check

Validate the skill directory before publishing. Check ALL of the following:

1.1 Required Files

SKILL_DIR="<path-to-skill>"  # Ask user or infer from context

# Required
[ -f "$SKILL_DIR/SKILL.md" ] || echo "FAIL: SKILL.md missing"
[ -f "$SKILL_DIR/LICENSE" ]  || echo "FAIL: LICENSE missing"
[ -f "$SKILL_DIR/README.md" ] || echo "FAIL: README.md missing"

1.2 SKILL.md Frontmatter

Read SKILL.md and verify YAML frontmatter contains:

  • name — required, should be kebab-case
  • description — required, should be descriptive (used by search engines and skill discovery)
  • version — required, valid semver

Optional but recommended:

  • metadata.openclaw.emoji
  • metadata.openclaw.homepage
  • metadata.openclaw.os
  • metadata.openclaw.requires.bins (list of required CLI tools)

1.3 README Quality

Check README.md for:

  1. Badges — at least License badge. Platform badge recommended.
  2. Description — clear one-liner explaining what the skill does.
  3. Install section — should have placeholder install commands (will be updated after publishing).
  4. No broken links — scan for URLs pointing to non-existent repos or placeholder orgs.
  5. No hardcoded user paths — scan for /Users/xxx/ or /home/xxx/ patterns.
  6. Secret redaction — no API keys, tokens, or passwords in plain text.

1.4 Bilingual README (Optional)

If the skill targets both Chinese and English users, check for:

  • README.zh-CN.md exists
  • Both READMEs have language switcher links at the top
  • Both have consistent content (same sections, same install commands)

1.5 Report

Present findings:

# Pre-flight Report

## Required Files
- [x] SKILL.md
- [x] LICENSE (MIT)
- [x] README.md
- [ ] README.zh-CN.md (optional, not found)

## SKILL.md Frontmatter
- name: my-skill
- version: 1.0.0
- description: OK (127 chars)

## Issues Found
- WARNING: README contains placeholder org "nicepkg" — update before publishing
- INFO: No .gitignore found (optional but recommended)

## Ready to publish? YES / NO (with blockers listed)

Phase 2: GitHub Publish

2.1 Initialize Git Repo

cd "$SKILL_DIR"
git init
git add -A
git status  # Review staged files

Before committing, scan staged files for:

  • Secrets (API keys, tokens, passwords)
  • User-specific absolute paths (/Users/xxx/)
  • Large binary files (> 1MB)
git commit -m "Initial release: <skill-name> v<version>"

2.2 Determine Repo Name

Ask the user for their preferred GitHub repo name. Default: same as the skill's name field in SKILL.md frontmatter.

Important: Check if the name is already taken on ClawdHub before creating the GitHub repo, so they can be consistent:

npx clawhub inspect <proposed-name> 2>&1

If taken on ClawdHub, suggest alternatives and let the user choose a name that works on both platforms.

2.3 Create GitHub Repo

gh repo create <owner>/<repo-name> 
  --public 
  --description "<skill description from SKILL.md>" 
  --source . 
  --push

2.4 Add GitHub Topics

Add discoverable topics for skills.sh indexing and general discoverability:

gh repo edit <owner>/<repo-name> --add-topic agent-skill,claude-code-skill

Additional topic suggestions based on skill content:

  • Category topics: productivity, devtools, security, health-check, etc.
  • Platform topics: macos, linux, openclaw
  • Technology topics: eventkit, calendar, etc.

2.5 Update References

After repo creation, update all files that reference the repo:

  • README.md — badge links, install commands, git clone URL
  • README.zh-CN.md — same
  • SKILL.md — metadata.openclaw.homepage
  • docs/ — any user story or doc files with install commands
  • LICENSE — copyright holder
# Verify no stale references remain
grep -r "placeholder-org|nicepkg|example-user" "$SKILL_DIR" --include="*.md"

Commit and push the updates.

Phase 3: ClawdHub Publish

3.1 Login

npx clawhub whoami 2>&1 || npx clawhub login

3.2 Check Slug Availability

npx clawhub inspect <slug> 2>&1

If slug is taken, suggest alternatives based on the skill name.

3.3 Publish

npx clawhub publish "$SKILL_DIR" 
  --slug <slug> 
  --name "<display-name>" 
  --version <version> 
  --changelog "<changelog text>"

Known issue (as of clawhub CLI v0.7.0): The server requires acceptLicenseTerms: true in the publish payload, but the CLI doesn't include it. If you get:

Error: Publish payload: acceptLicenseTerms: invalid value

Fix by patching the local CLI:

# Find the publish.js file
PUBLISH_JS="$(find ~/.npm/_npx -name 'publish.js' -path '*/clawhub/dist/cli/commands/*' 2>/dev/null | head -1)"

# Add acceptLicenseTerms to the payload
# In the JSON.stringify block, add: acceptLicenseTerms: true,

Then retry the publish command.

3.4 Verify

npx clawhub inspect <slug>

Phase 4: skills.sh Index Request

skills.sh does NOT auto-index skills. You must submit a request via GitHub issue.

4.1 Submit Index Request

gh issue create --repo vercel-labs/skills 
  --title "Request to index skill: <owner>/<repo>" 
  --body "$(cat <<'ISSUE_EOF'
## Skill Information

- **Repository:** https://github.com/<owner>/<repo>
- **Skill name:** <skill-name>
- **Install:** `npx skills add <owner>/<repo>`
- **License:** MIT

## Description

<2-3 sentence description of what the skill does and its key features>
ISSUE_EOF
)"

4.2 Note to User

Explain that:

  • The index request is reviewed by the vercel-labs/skills maintainers
  • It may take days to be processed
  • The npx skills add <owner>/<repo> install command works immediately (it clones from GitHub directly)
  • Only the npx skills search / npx skills find discovery requires indexing

Phase 5: Installation Verification

Test all three installation methods sequentially. Back up any existing installation first.

5.1 skills.sh

npx skills add <owner>/<repo> -g -y
# Verify: check installation path and file completeness
ls ~/.agents/skills/<skill-name>/ || ls ~/.claude/skills/<skill-name>/
# Cleanup
npx skills remove <skill-name> -g -y

5.2 ClawdHub

npx clawhub install <slug>
# Verify
ls ~/clawd/skills/<slug>/
# Cleanup
npx clawhub uninstall <slug> --yes

5.3 Manual Git Clone

git clone https://github.com/<owner>/<repo>.git /tmp/test-skill-install
# Verify
ls /tmp/test-skill-install/
# Cleanup
rm -rf /tmp/test-skill-install

5.4 Report

# Installation Verification

| Method | Command | Result |
|--------|---------|--------|
| skills.sh | npx skills add <owner>/<repo> -g -y | OK / FAIL |
| ClawdHub | clawhub install <slug> | OK / FAIL |
| Manual | git clone ... | OK / FAIL |

Phase 6: Post-publish Summary

Present a final summary with all links and commands:

# Published: <skill-name> v<version>

## Links
- GitHub: https://github.com/<owner>/<repo>
- ClawdHub: https://clawhub.ai/<owner>/<slug> (if published)
- skills.sh: pending indexing (issue #NNN)

## Install Commands
# skills.sh (recommended)
npx skills add <owner>/<repo> -g -y

# ClawdHub
clawhub install <slug>

# Manual
git clone https://github.com/<owner>/<repo>.git ~/.claude/skills/<skill-name>

## Next Steps
- [ ] Wait for skills.sh indexing (issue #NNN)
- [ ] Share the GitHub link
- [ ] Consider creating a GitHub Release with tag v<version>

Important Notes

  • Slug consistency: Try to use the same name on GitHub and ClawdHub. If ClawdHub slug is taken, rename the GitHub repo to match the available ClawdHub slug for consistency.
  • README install commands: Always update install commands in all README files after determining the final repo name and ClawdHub slug.
  • Bilingual docs: If the skill has docs (e.g., user stories), create bilingual versions with language switcher links. English docs should use internationally recognizable examples (Telegram, not Feishu).
  • Pre-commit privacy check: Before every git push, scan for real IP addresses, API keys, WiFi credentials, user-specific paths, and other PII.
  • ClawdHub CLI bug: The acceptLicenseTerms patch is needed as of CLI v0.7.0. Check if newer versions fix this before patching.

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,034
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,031
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,018
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,017
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,013
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,013
Skill 文件
  • SKILL.md
    • Skill Publisher
    • Language
    • Prerequisites
    • Workflow Overview
    • Phase 1: Pre-flight Check
      • 1.1 Required Files
      • 1.2 SKILL.md Frontmatter
      • 1.3 README Quality
      • 1.4 Bilingual README (Optional)
      • 1.5 Report
    • Phase 2: GitHub Publish
      • 2.1 Initialize Git Repo
      • 2.2 Determine Repo Name
      • 2.3 Create GitHub Repo
      • 2.4 Add GitHub Topics
      • 2.5 Update References
    • Phase 3: ClawdHub Publish
      • 3.1 Login
      • 3.2 Check Slug Availability
      • 3.3 Publish
      • 3.4 Verify
    • Phase 4: skills.sh Index Request
      • 4.1 Submit Index Request
      • 4.2 Note to User
    • Phase 5: Installation Verification
      • 5.1 skills.sh
      • 5.2 ClawdHub
      • 5.3 Manual Git Clone
      • 5.4 Report
    • Phase 6: Post-publish Summary
    • Important Notes
  • 项目或源文件

相关 Skill

更多
Skill Forge V32 Fixed Skill Forge V32 Fixed 技能熔炉 — 锻造/评估技能。执行“技能熔炉”时走全流程;执行“技能评估/skill评估/评估技能”时仅做同类比对+腾讯9维度。发布环节请使用 skill-publisher。禁止用于编辑已有技能、技能安全审查等操作。
Skill Forge 技能熔炉 Skill Forge 技能熔炉 技能熔炉 — 锻造/评估/改进 Skill。说 技能熔炉 走全流程(含R5改进已有skill);说 技能评估/skill评估/评估技能 只做同类比对+腾讯9维度。可选能力:搜索SkillHub同类技能(通过TRAE内置工具)、修改已有skill文件(仅R5诊断修复路径,需用户确认)。发布环节请用 skill-publisher。Do NOT use for skill security vetting, skill publishing (use skill-publisher), or general coding tasks.
general-skill-publisher(Skill一键打包发布) general-skill-publisher(Skill一键打包发布) 通用技能发布器——将本地技能一键打包为可跨平台分发、自包含的 zip 压缩包。解决 Agent 技能从开发环境迁移到 Skillhub 等发布平台的最后一公里问题。
service-qa-coach service-qa-coach Review support quality for chat, email, phone, social DM, or marketplace service teams. Use when a team needs a QA scorecard, failure-mode analysis, coaching plan, calibration checklist, or service-improvement brief without live ticketing, CRM, or contact-center system access.
高中数学作业批改助手 高中数学作业批改助手 >图片识别 直接读取学生手写作答照片,识别公式、符号、步骤 🧮 自动推导 根据题目自动生成参考答案和评分细则,无需教师预设 📊 逐步给分 每个关键步骤独立评分,体现过程分 📝 结构化报告 输出含识别内容、参考答案、逐步评分、改进建议的完整报告 🗂 批量批改 支持一次性批改多道题,最终汇总得分表