baoanmobile-skill-sync
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 "baoanmobile-skill-sync" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-73b0f65a8585d9cd546cf77748448f9293565e7274509d8cd222be31cc060723. Verify the upstream source and version against https://skillhub.cn/skills/cmcc-baoan-ai/baoanmobile-skill-sync 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
Team-skill one-click sync tool. Search, download and install skills from a SkillHub team source; perform local skill sensitization scan, package and publish skills to the team source; and bulk-upgrade installed team skills. Built specifically for WorkBuddy and Hermes platforms. Core capabilities: team-source skill browsing and search, one-click install/upgrade, local skill sensitization scan + packaging + publishing, and a pitfalls collection (12 practical lessons such as CLI differences, port conflicts, version clashes, PII leakage). Includes a built-in sensitize_scan.py script that must be run before publishing. Triggers: sync team skills / install team skill / publish skill to team / upgrade all skills / skill sensitization scan.
Introduction source: third_party · cmcc-baoan-ai · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Not specified in the source documentation.
- Inputs and outputs
- Not specified in the source documentation.
- Software, accounts and paid services
- Not specified in the source documentation.
- Limits and differences
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: baoan-skill-sync
slug: baoan-skill-sync
displayName: 宝安技能同步
description: "团队 Skill 一键同步技能。从 SkillHub 团队源搜索/下载/安装 skill,打包+脱敏+发布 skill 到团队源,批量升级已装 skill。专门适配 WorkBuddy 和 Hermes 两个平台。核心能力:① 团队源 skill 浏览与搜索 ② 一键安装/升级团队 skill ③ 本地 skill 脱敏扫描 + 打包 + 发布 ④ 踩坑库(两套 CLI 差异、端口占用、版本冲突、PII 泄露等 12 条实战教训)。触发词:同步团队技能 / 安装团队 skill / 发布技能到团队 / 升级所有 skill / skill 脱敏扫描。内置 sensitize_scan.py 脱敏扫描脚本,发布前必跑。"
version: 1.0.0
category: 办公效率
platforms:
- workbuddy
- hermes
agent_created: true
metadata:
tags: [skillhub, team-sync, publish, install, upgrade, sensitize, workbuddy, hermes]
source: "Distilled from 2026-07-18 SkillHub team source publishing practice (oa-mail-briefing + baoanmobile-tdhl)"宝安技能同步
v1.0.0 — 团队 Skill 一键同步。从 cmcc-baoan-ai 团队源搜索/下载/安装 skill,打包+脱敏+发布 skill 到团队源。专门适配 WorkBuddy 与 Hermes。
核心能力
| 能力 | 命令 | 说明 |
|---|---|---|
| 搜索团队 skill | search <关键词> |
按关键词搜索 SkillHub(含团队源) |
| 安装团队 skill | install <slug> |
从团队源下载并安装到本地 |
| 升级已装 skill | upgrade 或 upgrade <slug> |
批量或单个升级 |
| 列出已装 skill | list |
显示本地已安装的 skill |
| 发布 skill 到团队源 | publish <zip> |
打包+脱敏+发布(发布前必跑脱敏扫描) |
| 校验已发布 skill | verify <slug> |
验证本地 skill 与平台签名是否一致 |
| 查看身份/团队 | auth whoami / config list |
确认当前登录身份和所属团队 |
关键认知:两套 CLI + 两个源(最重要的坑)
SkillHub 有两套 CLI + 两个源,必须搞清楚:
两套 CLI
| CLI 版本 | 可执行文件 | 凭证文件 | 端点 | 用途 |
|---|---|---|---|---|
| Python 版 | ~/.skillhub/skills_store_cli.py |
~/.skillhub/credentials.json |
api.skillhub.cn |
team install/search + community publish |
| Node 版 | skillhub 命令 |
~/.skillhub/auth.json |
skillhub.club |
公开源 OAuth 登录 |
始终用 Python 版 CLI。
两个源
| 源 | 谁可见 | 发布方式 | CLI 支持 |
|---|---|---|---|
| community(公开源) | 所有 SkillHub 用户 | CLI publish |
✅ 支持发布(用个人 skh_ token) |
| team(团队源) | 团队成员 | 网页后台手动 | ❌ CLI 不支持 |
关键限制:CLI publish 只能发到 community
publish 命令的 token 解析逻辑(resolve_user_token)要求 skh_ 开头的个人 token,不认 sk-ent- 企业 key:
if not token.startswith("skh_"):
die("token 必须以 skh_ 开头")
publish 的 HTTP 端点是 /api/v1/community/skills/publish,明确只发 community。团队源发布 API(/api/v1/team/skills/publish 等)返回 405,且企业 key 访问 /api/v1/admin/skills 返回 403(admin access required)。
结论:CLI 能做的 = community 发布 + team/community 安装搜索。团队源发布只能走网页后台 https://skillhub.cn/admin/skill-reviews。
推荐发布流程(community → team)
- CLI 发到 community(本 skill 的流程 B)
- 网页后台导入到 team:登录
https://skillhub.cn/admin/skill-reviews,把 community 的 skill 导入/关联到团队源 - 或直接网页上传:在团队管理后台上传 zip
环境准备
Python 路径
WorkBuddy: C:\Users\<user>\.workbuddy\binaries\python\versions\3.13.12\python.exe
Hermes: python3(系统默认)
CLI 路径
Python CLI: ~/.skillhub/skills_store_cli.py
如果 ~/.skillhub/skills_store_cli.py 不存在,说明尚未安装 SkillHub CLI。引导用户从 SkillHub 网页版下载安装包,或联系团队管理员。
首次登录(团队源)
发布 skill 需要 API key。用 AskUserQuestion 询问用户是否已有 key:
- 已有 key → 直接
login --key <sk-ent-xxx> - 没有 key → 引导找团队管理员获取(key 形如
sk-ent-开头)
python ~/.skillhub/skills_store_cli.py login --key sk-ent-xxxxxxxxxxxx
登录后凭证存入 ~/.skillhub/credentials.json,后续无需重复登录。
⚠️ API key 安全:key 只存在用户本地
~/.skillhub/credentials.json,绝不写入 skill 包。key 泄露风险:攻击者可发布恶意 skill 到团队源、删除/篡改已有 skill。发现泄露立即联系团队管理员轮换 key。
工作流
流程 A:安装/升级团队 skill(下载方)
用户说"同步团队技能"/"安装团队 skill"/"升级 skill"时:
Step 1: 搜索可用 skill
python ~/.skillhub/skills_store_cli.py search <关键词>
注意:团队源搜索偶尔超时(
@org-icppcsek: request timed out),这是 SkillHub 服务端问题,重试即可。超时不影响 install/publish。
Step 2: 安装到本地
# WorkBuddy 项目级(推荐,团队共享)
python ~/.skillhub/skills_store_cli.py install <slug> --dir .workbuddy/skills
# WorkBuddy 用户级(跨项目可用)
python ~/.skillhub/skills_store_cli.py install <slug> --dir ~/.workbuddy/skills
# Hermes
python ~/.skillhub/skills_store_cli.py install <slug> --dir ~/.hermes/skills
用 AskUserQuestion 询问安装位置(项目级/用户级)。
Step 3: 验证安装
python ~/.skillhub/skills_store_cli.py list --dir <安装目录>
python ~/.skillhub/skills_store_cli.py verify <slug>
Step 4: 批量升级(可选)
# 检查可用升级(不实际安装)
python ~/.skillhub/skills_store_cli.py upgrade --check-only --dir <安装目录>
# 执行升级(全部)
python ~/.skillhub/skills_store_cli.py upgrade --dir <安装目录>
# 升级单个
python ~/.skillhub/skills_store_cli.py upgrade <slug> --dir <安装目录>
流程 B:发布 skill 到 community 公开源(发布方)
用户说"发布技能"/"发布 skill"时:
⚠️ 重要:CLI publish 只能发到 community 公开源(所有 SkillHub 用户可见)。要发到团队源,需在 community 发布后,登录
https://skillhub.cn/admin/skill-reviews网页后台手动导入。详见"推荐发布流程"。
Step 1: 脱敏扫描(必做,发布前铁律)
python .workbuddy/skills/baoan-skill-sync/scripts/sensitize_scan.py <skill目录或zip>
扫描 13 类敏感数据:API key / 授权码 / 密码 / token / 真实人名 / 邮箱 / 手机号 / 省公司域名 / 业务数据 / 测试产出文件。
- 扫描通过 → 继续 Step 2
- 扫描失败 → 列出所有敏感词命中位置,要求修复后重新扫描。详见
references/pitfall-library.md的 PII 泄露案例
⚠️ 脱敏铁律:发布到团队源的 skill 会被团队所有成员看到。任何 API key、授权码、真实人名、邮箱、业务数据泄露都会造成安全事故。扫描未通过禁止发布。
Step 2: 打包
# 用 skill-creator 的 package_skill.py 打包
python "D:\Program Files\WorkBuddy\resources\app.asar.unpacked\resources\builtin-skills\skill-creator\scripts\package_skill.py" <skill目录> <输出目录>
Hermes 平台或无 skill-creator 时,手动 zip:
cd <skill目录父目录> && zip -r <slug>.zip <slug>/
Step 3: dry-run 预检
python ~/.skillhub/skills_store_cli.py publish --dry-run <zip路径>
预检 SKILL.md frontmatter 完整性 + 打包结构。失败则修复后重跑。
Step 4: 正式发布
python ~/.skillhub/skills_store_cli.py publish <zip路径> --changelog "<本次发布说明>"
版本冲突处理:如果报错 slug 冲突: 版本 X.Y.Z 已存在,用 --version 升级版本号:
python ~/.skillhub/skills_store_cli.py publish <zip路径> --version <新版本号> --changelog "<说明>"
版本号规则:patch(修 bug)→ x.y.Z+1 / minor(新功能)→ x.Y+1.0 / major(破坏性变更)→ X+1.0.0
Step 5: 验证发布
# 查 skill 详情
python -c "
import urllib.request, json
url = 'https://api.skillhub.cn/api/v1/skills/<slug>'
req = urllib.request.Request(url, headers={'Authorization': 'Bearer <token>'})
with urllib.request.urlopen(req, timeout=15) as resp:
data = json.loads(resp.read())
print('owner:', data['owner']['displayName'])
print('latestVersion:', data['latestVersion']['version'])
print('security:', {k: v.get('statusText') for k, v in data.get('securityReports', {}).items()})
"
确认 owner 是自己、安全扫描状态(keen/sanbu,发布后排队 → 几分钟后出结果)。
流程 C:从公开源迁移 skill 到团队源
用户说"把 xxx skill 也发到团队源"时:
- 检查 skill 是否已在 SkillHub:
GET /api/v1/skills/<slug>查详情 - 本地无源文件 → 从 SkillHub 下载:
install <slug> --dir <临时目录> - 脱敏扫描(下载的 skill 也要扫,防止之前版本有遗漏)
- 打包
- 用
--version升级版本号发布(同 slug 不能重复发同版本号)
交互规范 — AskUserQuestion
涉及用户决策时必须用 AskUserQuestion 工具弹选项框,禁止让用户回复编号或提示词。每个问题提供 2-4 个选项 + 带"其他(自定义)"兜底。
需要 AskUserQuestion 的决策点:
- 首次发布时 API key 状态:已有 key 直接 login / 没有 key 引导找管理员 / 其他
- 安装位置选择:项目级 / 用户级 / 其他
- 版本冲突时版本号选择:patch 升级 / minor 升级 / major 升级 / 其他
- 脱敏扫描失败后处理:自动修复 / 列出问题让用户修 / 其他
踩坑库(12 条实战教训)
详见 references/pitfall-library.md。摘要:
- 两套 CLI 凭证文件不同 — node 版读 auth.json,Python 版读 credentials.json
- node 版 login 端口占用 — 54322 端口被上次卡住的进程残留占用,需
Stop-Process释放 - 同 slug 不能重复发同版本号 — 用
--version升级 - 团队源搜索超时 — SkillHub 服务端问题,重试即可,不影响 install/publish
- PII 泄露:测试产出留在 skill 目录 — output/briefing 等含真实业务数据的文件不能打包
- PII 泄露:省公司专属域名 —
<province>.chinamobile.com等是可识别信息,改<province>占位符 - PII 泄露:案例里的真实人名 — references 里的示例要用"张三/李四"虚构
- package_skill.py 路径 — WorkBuddy 在
D:\Program Files\WorkBuddy\...\builtin-skills\skill-creator\scripts\ - Python 路径 — WorkBuddy 用 managed 版
C:\Users\<user>\.workbuddy\binaries\python\versions\3.13.12\python.exe - Windows 路径 — 传给 Python 的路径必须用反斜杠或带引号,不能用 Git Bash 的
/d/...风格 - verify 校验签名 — 发布后用 verify 确认本地与平台一致
- 安全扫描排队 — keen/sanbu 扫描发布后排队,几分钟后才出结果
平台适配
WorkBuddy
- Python:
C:\Users\<user>\.workbuddy\binaries\python\versions\3.13.12\python.exe - skill 目录:
.workbuddy/skills/(项目级)或~/.workbuddy/skills/(用户级) - package_skill.py:
D:\Program Files\WorkBuddy\resources\app.asar.unpacked\resources\builtin-skills\skill-creator\scripts\package_skill.py - 交互: 用 AskUserQuestion 工具
Hermes
- Python:
python3(系统默认) - skill 目录:
~/.hermes/skills/ - 打包: 手动
zip -r <slug>.zip <slug>/(无 skill-creator) - 交互: 命令行 prompt 或 Hermes 自身的交互机制
触发词
- 同步团队技能 / 同步 skill
- 安装团队 skill / 下载团队 skill
- 发布技能到团队 / 发布 skill 到团队源
- 升级所有 skill / 升级 skill
- skill 脱敏扫描 / 扫描敏感信息
- 从公开源迁移 skill 到团队源
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决企业内部 SkillHub 团队源高频刚需,显著提升技能同步与发布效率
- 覆盖完整工作流:搜索、安装、升级、发布、脱敏扫描,闭环体验强
Highlights
- 触发词精准完整,覆盖多种变体(同步/安装/发布/升级/脱敏),边界清晰
Areas to improve
-
description写错位置 Reported severity: Minor
顶层 frontmatter 中 description 字段为空,实际描述内容在 skill_body 内部
Recommendation: 将 description 内容移至顶层 frontmatter 的 description 字段
-
缺少When to Use章节 Reported severity: Minor
文档未明确设置 When to Use 使用场景说明章节
Recommendation: 在核心能力后增加 When to Use 章节,说明典型使用场景
-
文档过长 Reported severity: Minor
skill_body 内容约 480 行,接近 500 行限制
Recommendation: 考虑将踩坑库细节移至独立文件,主文档保留摘要
Highlights
- Phase/步骤清晰(流程 A/B/C),有出口条件,含端到端示例
- frontmatter 完整,平台适配说明详细
Highlights
- 工具来源明确(SkillHub CLI),参数正确,覆盖主要异常(版本冲突、PII 泄露等)
- 不可逆操作(发布)有脱敏扫描确认机制,安全性高
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 41, 42, 91, 100, 102
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.
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.