skillhub-upload-pro
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-upload-pro" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-22c3288651dac8b08748a5a9e0e7158dd9880dbc874b97f314fe662e93ce9785. Verify the upstream source and version against https://skillhub.cn/skills/user_b710a0b0/skillhub-upload-pro 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
SkillHub upload tool: publishes skills using pure Python urllib (no curl dependency). Supports automatic file filtering, metadata extraction, rate-limit retries, and slug conflict alerts, enabling a single-command upload of a local skill directory to the SkillHub platform.
Introduction source: third_party · user_b710a0b0 · 1.2.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Translation pending; see source documentation.
- Inputs and outputs
- Translation pending; see source documentation.
- Software, accounts and paid services
- Not specified in the source documentation.
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: skillhub-upload-pro
description: 跨平台SkillHub上传工具,使用Python原生urllib构造multipart/form-data请求,彻底解决Windows下curl SSL/TLS连接重置、cmd.exe分号截断、Git Bash/WSL PATH冲突、中文编码等兼容性问题。自动过滤不需要发布的文件(.git/__pycache__/测试数据等),自动从SKILL.md提取元数据,支持限流自动重试。当用户需要发布/更新skill到SkillHub时使用。触发词:"发布到skillhub"、"上传到SkillHub"、"上架技能"。
slug: skillhub-upload-pro
displayName: SkillHub一键上传工具(专业版)
version: 1.2.0
summary: SkillHub技能发布工具,纯Python urllib上传(零curl依赖)、自动文件过滤、元数据提取、限流重试、slug冲突提示,一条命令上传本地skill目录到SkillHub平台
license: MIT
tags:
- skillhub
- skill-publish
- deployment
- automationSkillHub 一键上传工具
自动处理SkillHub上传全流程,纯Python实现(零外部依赖),跨平台兼容Windows/macOS/Linux。
使用场景
当用户需要把本地skill目录发布/更新到SkillHub平台时触发。
功能特性
- ✅ 零外部依赖:使用 Python 标准库 urllib 构造 multipart/form-data,无需 curl
- ✅ 自动从SKILL.md的front matter提取元数据(slug/version/displayName/summary/description/tags等)
- ✅ 自动过滤不需要发布的文件:.git、pycache、.pyc、.csv/.html测试数据、dot文件等
- ✅ 完美解决Windows兼容性问题:SSL/TLS重置、cmd.exe分号截断、bash PATH混乱、中文编码
- ✅ 自动处理429限流,等待后自动重试
- ✅ 支持changelog自定义
- ✅ 跨平台兼容(Windows/macOS/Linux)
使用方法
基础命令
# 上传skill目录
python scripts/upload.py <skill目录路径> --token <你的skh_xxx token>
# 指定changelog
python scripts/upload.py <skill目录路径> --token <skh_xxx> --changelog "v1.1.0 新增XX功能"
参数说明
| 参数 | 必填 | 说明 |
|---|---|---|
path |
是 | 本地skill目录路径,必须包含SKILL.md |
--token |
是 | SkillHub API Token(skh_开头) |
--host |
否 | 自定义registry地址,默认 https://api.skillhub.cn |
--changelog |
否 | 版本更新说明 |
上传步骤
- 工具自动读取SKILL.md的YAML front matter作为元数据
- 自动过滤不允许上传的文件类型,只保留SkillHub支持的文件:
- 允许扩展名:.md, .py, .sh, .cmd, .txt, .json, .js, .ts, .yaml, .yml
- 自动排除目录:.git, pycache, node_modules, .workspace
- 自动排除文件:.gitignore, .DS_Store, .pyc, .pyo, 测试数据文件
- 使用 Python 标准库 urllib 原生构造 multipart/form-data 请求上传(无需 curl,跨平台)
- 遇到429限流自动等待60秒重试
- 返回发布结果和skill信息
输出示例
成功返回:
{
"ok": true,
"skillId": 101157,
"slug": "finance-expert-pack",
"version": "2.1.0",
"reviewStatus": "pending",
"securityScanStatus": "pending"
}
审核通过后即可在 https://www.skillhub.cn 搜索到。
常见问题
- Q: 提示"网络连接被重置"怎么办? A: v1.1+ 已改用纯 Python urllib,不再依赖 curl;如仍失败请临时关闭VPN/代理/防火墙重试
- Q: 上传失败提示"请求过于频繁"? A: 工具会自动等待重试,无需手动操作
- Q: 提示缺少slug/version/displayName? A: 请确保SKILL.md的front matter包含这三个必填字段
- Q: 提示"版本X.X.X已存在"? A: 更新 SKILL.md 里的 version 字段后重试(SkillHub 同版本号不能覆盖上传)
- Q: 提示"slug 'xxx' 已被其他用户占用"?
A: slug 全局唯一,换一个独特的名字(建议加
-pro或用户名后缀,如xxx-ccct) - Q: 上传的文件被拒绝/被安全扫描拦截?
A: 检查是否包含
.env/*.key/密码硬编码;SKILL.md 及 scripts 里不能有真实凭据 - Q: Windows 下 curl 报错但 urllib 成功? A: v1.1+ 已完全切换到 urllib,不需要 curl;如果看到 curl 相关报错,说明用的是旧版本,升级到最新脚本
Current listing version
1.2.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 高价值技能发布工具,解决跨平台上传痛点
- 面向SkillHub开发者群体的刚需功能
- 显著提升技能发布效率
Highlights
- 触发词覆盖多种变体,边界清晰
- 使用场景描述明确,不易误触
Highlights
- 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.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
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
- www.skillhub.cn
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Not specified in the 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.