DeepSeek Harness plugin

skillhub

DeepSeek Harness 插件:在对话中搜索、安装和管理 SkillHub 技能

Jump to install

Source facts

Repository
cocofhu/skillhub
Latest update
Aug 22, 2026
Category
Tools & Capabilities
GitHub stars
3
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/cocofhu/skillhub
Plugin: skillhub
Author: cocofhu

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer3 files
README.mdSource · read only

skillhub

![CI](https://github.com/cocofhu/skillhub/actions/workflows/ci.yml?query=branch%3Amain) ![npm](https://www.npmjs.com/package/@cocofhu/skillhub) ![Release](https://github.com/cocofhu/skillhub/releases/latest) ![License: MIT](LICENSE) ![Node.js](https://nodejs.org)

DeepSeek Harness 的 SkillHub 插件。在对话中搜索技能、查看详情并安装到 Harness 可发现的 skills 目录。

最新正式版:v0.2.13 · npm · [更新日志](CHANGELOG.md)

目录

  • [功能](#功能)
  • [环境要求](#环境要求)
  • [安装](#安装)
  • [使用](#使用)
  • [配置](#配置)
  • [数据与网络](#数据与网络)
  • [开发](#开发)
  • [故障排查](#故障排查)
  • [安全](#安全)
  • [参与贡献](#参与贡献)
  • [许可证](#许可证)

功能

  • 用公开接口搜索或按分类浏览技能
  • 在对话流中展示可点击卡片(名称、分类、下载量、简介)
  • 详情页包含概述、版本历史、TRACE 评测;标题栏显示 AI 评分、认证发布者与安全标记
  • 通过 zip 下载安装到本机,可指定版本;支持列出与卸载
  • 设置页可查看已安装技能,并一键更新到 GitHub 最新 release
  • 侧栏底部 插件广场:在聊天区打开独立面板,浏览 SkillHub 技能与 DSH 插件
  • 界面跟随 Harness 中英文

环境要求

  • Node.js 22 或更高版本
  • pnpm 11(见 packageManager 字段)
  • DeepSeek Harness Web

安装

npm 安装(预构建,不需要 allowBuilds):

dsh plugin --profile web add @cocofhu/skillhub

本地开发:

dsh plugin --profile web add /absolute/path/to/skillhub

安装后重启 dsh web,并强制刷新浏览器。dsh web 请绑定 127.0.0.1,不要监听 0.0.0.0。不要用 github:cocofhu/skillhub 安装:git 源会跑 prepare,pnpm 会要求手写 allowBuilds。npm 上的无前缀名 skillhub 是另一个项目,请用带 scope 的 @cocofhu/skillhub

使用

可以直接对 Agent 说:

> 找个能处理 PDF 的 skill > > SkillHub 上搜一下周报 > > 我装了哪些技能 > > 把刚才那个卸载掉

搜索完成后对话中会显示可点击卡片;点开详情后再安装。不要让 Agent 打印安装命令或 curl。

插件广场

侧栏底部 插件广场 在聊天区域打开独立面板(可切换 插件 / 技能),不会出现在「对话 / 轨迹」标签里,也不再注入设置页。面板盖在会话列上,关掉后直接回到对话。

点插件的 安装 会读取 SkillHub 的 install-plan,校验仓库与 pinned commit 后,由本插件在宿主进程里执行 dsh plugin --profile web add github:owner/repo#sha(与 dsh-market 相同,不走 Agent 沙箱)。安装过程显示进度条;若 pnpm 拦截 git 源的 prepare,会写入 web profile 的 dangerouslyAllowAllBuilds 并自动重试。装完会提示重启,并提供 立即重启(同源页面即可,含轻量云等反向代理;若 dsh web 由 systemd 托管则走 systemctl restart)。已装进当前 web profile 的插件会显示「已安装」。对话里的技能搜索 / zip 安装不受影响。

Agent 工具

工具作用
skillhub_search搜索或浏览技能,并展示卡片
skillhub_install按 slug 安装;可传 version
skillhub_list列出已安装技能
skillhub_uninstall卸载本地技能目录

配置

打开 设置 → 插件 → 插件配置 → SkillHub

说明
API 地址默认 https://api.skillhub.cn
安装目录默认 $DSH_HOME/skills(通常是 ~/.dsh/skills
搜索结果上限每批返回的卡片数量,默认 12

标题栏有 更新 按钮:会查询 GitHub 最新 release,并用 dsh plugin add github:cocofhu/skillhub#vX.Y.Z 安装。更新后请重启 dsh web 并强制刷新。若当前是本地 link: 开发安装,更新会改成 GitHub release 安装。

保存后立即生效。配置写入 Harness 用户目录下的 skillhub.json,不会进入 git。

也可通过 cordis.patch.yml 设置默认值:

- id: skillhub
  config:
    skillsDir: ~/.dsh/skills
    maxResults: 12

安装完成后,新对话即可被 dsh-skill-filesystem 发现。该目录有文件监视,多数情况无需重启 Harness。

数据与网络

插件只请求 SkillHub 公开 HTTP API,并把技能包写到配置的 skills 目录。图标经本机插件服务转发。自定义 API 地址应只指向你信任的服务。

用途请求
搜索 / 浏览GET /api/skills
技能详情GET /api/v1/skills/{slug}
版本历史GET /api/v1/skills/{slug}/versions
TRACE 评测GET /api/v1/skills/{slug}/evaluation
内容签名GET /api/v1/open/skills/{slug}/versions/{version}/signature
安装包GET /api/v1/download?slug={slug}&source=dsh
DSH 插件类目GET /api/v1/plugins/categories
DSH 插件目录GET /api/v1/plugins
插件安装计划GET /api/v1/plugins/{owner}/{name}/install-plan

上游请求有超时;技能 zip 安装会拒绝路径穿越,并要求解压结果含 SKILL.md。技能包来自第三方,插件不执行其中的代码。广场安装 DSH 插件会在本机执行 dsh plugin add,写入当前 web profile。

开发

git clone https://github.com/cocofhu/skillhub.git
cd skillhub
pnpm install --frozen-lockfile
pnpm typecheck
pnpm test
pnpm test:coverage
pnpm build

源码在 src/,构建输出到 lib/lib/ 不进版本库,安装或发布时由 prepare 生成。

文件作用
src/host.tsCordis 入口:工具注册、systemPrompt、settings
src/local-api.ts本机 /skillhub HTTP(搜索、安装、广场、详情、更新)
src/client.js搜索卡片、详情弹窗、设置页、插件广场
src/api.ts搜索与技能卡片映射
src/plugin-market.tsDSH 插件目录查询与 install-plan 安装
src/dsh-cli.ts复用当前 dsh 进程执行 dsh plugin add,解析 pnpm ndjson 进度
src/ndjson.tspnpm --reporter=ndjson 进度解析
src/restart.ts同源一键重启当前 dsh web(含反向代理)
src/install.tszip 下载、解压、安装 / 卸载
src/skill-detail.ts版本历史与 TRACE 评测
src/unzip.tszip 解压(含 data descriptor)
src/self-update.ts查询并安装 GitHub 最新 release
src/config-store.ts默认值与 skillhub.json

修改 Host(src/*.ts)后需要重启 dsh web。修改 Client(src/client.js)后复制到 lib/client.js 并强制刷新即可。

更完整的约定见 [CONTRIBUTING.md](CONTRIBUTING.md)。

故障排查

现象处理
页面停在 Loading plugins确认 pnpm build 成功,重启 dsh web 后强制刷新
cannot get property "locale" without inject@skillhub升级到含此次修复的版本;重启 dsh web 并强制刷新
搜索卡片未出现开新对话,确认 skillhub_search 已加载
安装失败 / unexpected end of file确认能访问 download 接口;本插件按中央目录解压 zip
装了但 Agent 看不见确认装到 $DSH_HOME/skills 或项目 .dsh/skills,并新开对话
找不到插件市场点侧栏底部 插件广场;重启 dsh web 并强制刷新
广场点安装失败确认当前是 dsh web 拉起的进程,且 web profile 可写
设置里点更新失败确认能访问 api.github.com,且 web profile 可执行 dsh plugin add
pnpm 拒绝 prepare广场安装会自动写入 dangerouslyAllowAllBuilds;自装 SkillHub 请用 dsh plugin add @cocofhu/skillhub,不要从 git 安装

安全

安装第三方技能等于在本机落下可被 Agent 读取的文件。广场安装 DSH 插件会把第三方代码装进 web profile。请只安装已验证且你信任的来源。

漏洞请按 [SECURITY.md](SECURITY.md) 私下报告,不要发公开 Issue。

参与贡献

Bug 修复、测试、文档和交互优化都欢迎。提交前请阅读:

  • [CONTRIBUTING.md](CONTRIBUTING.md)
  • [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md)
  • [SECURITY.md](SECURITY.md)
  • [CHANGELOG.md](CHANGELOG.md)

发布说明见 Releases

许可证

[MIT](LICENSE)

SkillHub、DeepSeek 等名称归其各自所有者。本项目与它们没有从属或背书关系。