skillhub-auto-publish
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "skillhub-auto-publish" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-d500438d3a9ac076773cafbdbe6855241423cdf86420ffaa74d2c521628a7176. Verify the upstream source and version against https://skillhub.cn/skills/user_cb80f343/skillhub-auto-publish before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Preconfigure a SkillHub Token to enable one-click fully automated publishing of skills to a community platform. Intended to simplify and automate the skill publishing process.
Introduction source: third_party · user_cb80f343 · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Software, accounts and paid services
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: skillhub-auto-publish
slug: skillhub-auto-publish
version: 1.0.0
displayName: "SkillHub 一键发布(全自动)"
description: "全自动将本地技能发布到 SkillHub 社区平台。Token 预配置,无需手动登录,自动补全 frontmatter、检查文件合规性、打包上传。This skill should be used when the user asks to publish, upload, or submit a skill to SkillHub, or says \"发布技能\"、\"上传到SkillHub\"、\"publish skill\"."
summary: "预配置 SkillHub Token,一键全自动发布技能到社区平台。"
triggers:
- 上传技能
- 发布技能
- 上传到skillhub
- 发布到skillhub
- publish skill
- upload to skillhub
- skillhub publish
- 一键发布
agent_created: trueskillhub-auto-publish — 全自动一键发布到 SkillHub
用途
将任意本地 Skill 目录一键发布到 SkillHub 社区平台(https://skillhub.cn)。Token 已预配置,全程无需手动登录。
何时使用
- 用户说"发布技能"、"上传到 SkillHub"、"publish skill"
- 用户完成技能开发后想一键分享到社区
- 用户想更新已发布的技能
前置条件
- SkillHub CLI 已安装于
~/.skillhub/cli/skills_store_cli.py - Token 已预配置(存放在
~/.skillhub/credentials.json) - Python:
C:\Users\wlb\.workbuddy\binaries\python\versions\3.13.12\python.exe
工作流程(严格按顺序执行)
Step 1:确定要发布的技能目录
若用户明确指定了技能目录,直接使用。否则根据上下文推断(当前正在编辑的技能目录),或询问用户。
Step 2:确保 CLI 和登录就绪
运行自动准备脚本:
"C:\Users\wlb\.workbuddy\binaries\python\versions\3.13.12\python.exe" "C:\Users\wlb\.workbuddy\skills\skillhub-auto-publish\scripts\auto_prepare.py"
该脚本自动完成:
- 检查 CLI 是否存在,不存在则自动下载安装
- 检查登录状态,未登录则自动用预配置 token 登录
- 输出当前登录用户信息
若登录失败(token 过期等),提示用户到 https://skillhub.cn 重新生成 token。
Step 3:检查并补全 SKILL.md frontmatter
用 Read 工具读取目标技能的 SKILL.md,检查 YAML frontmatter 是否包含 SkillHub 要求的必填字段:
| 字段 | 要求 | 说明 |
|---|---|---|
slug |
必填 | kebab-case,3-128 字符,如 my-awesome-skill |
version |
必填 | SemVer 格式(X.Y.Z),如 1.0.0 |
displayName |
必填 | 显示名称,如 "我的技能" |
name |
必填 | 技能标识符 |
description |
必填 | 技能描述(英文为主) |
summary |
选填 | 简短中文摘要 |
slug 规则:只能小写字母、数字、连字符,以字母/数字开头和结尾。
version 规则:严格 X.Y.Z 格式。
若缺少必填字段,用 Edit 工具自动补充:
- 缺
slug→ 用name字段转 kebab-case 作为 slug - 缺
version→ 设为1.0.0 - 缺
displayName→ 用name字段值或目录名 - 缺
summary→ 从description截取前 80 字
Step 4:检查文件合规性
用 Glob 检查目标技能目录:
pattern: "**/*.bat"
path: <技能目录>
规则:
- 禁止
.bat文件 → 用 Bash 重命名为.txt - 禁止
.ps1文件 → 用 Bash 重命名为.ps1.txt - 排除目录自动忽略:
.git、.idea、.vscode、node_modules、__pycache__ - 排除文件自动忽略:
*.pyc、.DS_Store、Thumbs.db - 必须包含根目录的
SKILL.md
若有 .bat/.ps1 文件被重命名,同步更新 SKILL.md 中对这些文件的引用路径。
Step 5:执行发布
cd "C:\Users\wlb\.workbuddy\.skillhub\cli" && "C:\Users\wlb\.workbuddy\binaries\python\versions\3.13.12\python.exe" skills_store_cli.py publish "<技能目录绝对路径>" --changelog "<变更说明>"
变更说明格式:"<动作>: <简述>",如 "feat: 新增自动登录功能" 或 "update: 优化发布流程"。
若此前该技能未发布过,使用 "init: 首次发布"。
Step 6:报告结果
成功输出示例:✓ Published: skillId=12345 status=success
提取 skillId,告知用户:
- 发布成功的技能名称和版本
- SkillHub 上的审核状态(新技能需平台审核)
- 可在 https://skillhub.cn "我的技能" 页面查看
常见错误处理
| 症状 | 原因 | 解决 |
|---|---|---|
未登录 |
Token 过期 | 提示用户到 skillhub.cn 重新生成 token |
SKILL.md 缺少 slug |
frontmatter 不完整 | 执行 Step 3 自动补全 |
slug 不合法 |
格式错误 | 转为小写 kebab-case |
HTTP 401 |
Token 无效 | 重新生成 token |
HTTP 429 |
限流 | 等待 30 秒后重试 |
| 上传被拒 | 含 .bat 文件 | 执行 Step 4 重命名 |
技术参考
- API Host:
https://api.skillhub.cn - 发布端点:
POST /api/v1/community/skills/publish - 认证方式:
Authorization: Bearer skh_xxx - 凭证存储:
~/.skillhub/credentials.json
更新已发布的技能
若技能已发布过,只需递增 version 字段(如 1.0.0 → 1.0.1),再次执行发布流程即可。平台会识别为版本更新。
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决 Skill 开发者一键发布到社区的明确痛点
- 具有广泛受众的实用工具
- 功能闭环完整,从准备到发布全流程覆盖
Highlights
- 触发词覆盖全面,包含中英文多种变体
- 边界清晰,不易误触或漏触
Highlights
- 6 个明确步骤,Phase 划分清晰
- 包含端到端示例和详细错误处理
- frontmatter 完整,文档结构规范
Highlights
- 工具来源明确,参数具体
- 覆盖主要异常场景,有详细错误处理表格
- 不可逆操作有确认机制
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Accounts, secrets or authorization
Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.
Mentioned in main document · lines 35, 133
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- api.skillhub.cn
- skillhub.cn
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Translation pending; see source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.