tuogusa/dsh-skill-manager

DeepSeek Harness 技能管理器(宿主端与客户端一体包)

Project Overview项目介绍

This is a native DSH plugin built exclusively for the DSH web profile, combining both host-side backend API endpoints and a browser-side frontend client interface. It is designed specifically to help users manage all user skills installed in their DSH instance, across multiple common skill root directories including project directories, DSH home and user home directories. To install, users just run the command dsh plugin --profile web add github:tuogusa/dsh-skill-manager via the official DSH CLI tool. After installation completes, you need to manually edit the allowBuilds entry in pnpm-workspace.yaml before restarting DSH and refreshing the browser.

Regular DSH end users are the target audience for this plugin, as it adds a dedicated skill management section to DSH's web settings page. When you delete a skill, it is first moved to a hidden trash directory on the same disk instead of being permanently erased immediately. You can restore any deleted skill within the current DSH session, or choose to permanently delete it right away if you are sure you do not need it. It also supports checking for updates for skills that declare version and repository metadata in their SKILL.md file.

This plugin only works with DSH's web profile, it does not currently support other DSH profile variants. Note that plugin updates and user skill updates are handled separately: to update the plugin itself, you run the DSH CLI dsh plugin --profile web update dsh-skill-manager command, while user skill updates are handled directly via the plugin's UI. The project is released under the permissive open-source MIT license, so there is no cost or restriction on personal or commercial use.

这是一个专为DeepSeek Harness(DSH)Web端开发的原生技能管理器插件,集成了主机端服务与浏览器端客户端,专门用于管理DSH中的各类用户技能。它支持按名称搜索技能、查看技能大小和标记信息、复制技能路径、删除用户技能等基础操作,还提供删除会话级撤回、技能版本检测更新等特色功能。用户可通过DSH官方CLI命令行工具,一键从本GitHub仓库完成安装。

普通DSH用户可以通过该插件在设置页面的技能分区统一管理所有来源的用户技能,包括项目目录、DSH主目录、用户目录下的技能。删除技能时,插件会先将其移入同盘隐藏回收目录,在当前会话内支持一键恢复,也可选择直接彻底删除技能,避免误删带来的麻烦。需要更新技能时,插件可以一键检测并更新到SKILL.md声明的最新版本。

该插件仅兼容DSH的Web端Profile,安装后需要修改pnpm-workspace.yaml的allowBuilds条目,重启DSH后按Ctrl+Shift+R刷新浏览器才能正常使用。插件自身更新需要通过DSH CLI命令完成,不要混淆插件自身更新和插件管理的用户技能更新。项目采用MIT许可证开源,没有使用成本和闭源限制。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 5 stars - very few users, little community feedback星标只有 5,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add github:tuogusa/dsh-skill-manager

把 tuogusa/dsh-skill-manager 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-skill-manager

DeepSeek Harness (DSH) 技能管理器(host + client 一体包)。

功能

  • 设置 → 技能:列出全部用户技能(含来源目录:项目/DSH-Home/用户目录)
  • 按名称/描述搜索,显示技能大小与文件数、user-invocable / disable-model-invocation 标记
  • 复制技能路径、删除用户技能(仅限已知用户技能根之下,防路径逃逸)
  • 会话级撤回:删除技能时先移入同盘隐藏回收目录,当前会话内可一键恢复;也支持“彻底删除”和查看最近删除列表
  • 版本检测与更新:支持在 SKILL.md 中声明 version / repository / sourcePath,从 GitHub/Gitee 检查最新 Release;有新版本时显示更新按钮,已最新时显示版本号

安装

dsh plugin --profile web add github:tuogusa/dsh-skill-manager

兼容 Profile:web(DSH Web GUI)。

然后按 dsh 引导添加 pnpm-workspace.yaml 的 allowBuilds 条目,重启 DSH 并 Ctrl+Shift+R 刷新浏览器。

更新

# 方式一:CLI 更新(推荐)
dsh plugin --profile web update dsh-skill-manager

# 方式二:重新从 GitHub 源安装/更新
dsh plugin --profile web add github:tuogusa/dsh-skill-manager

说明:dsh plugin 是 pnpm 的前置转发器,update 会按当前依赖声明重新解析该包;通过 github:tuogusa/dsh-skill-manager 安装时,会更新到仓库默认分支的最新提交。本插件的“技能更新”功能更新的是用户技能(SKILL.md 中声明 repository 的 Release),不是插件自身;插件自身请用上面的 CLI 命令更新。

结构

  • lib/index.js — 主机侧:/api/skill-manager/list、/api/skill-manager/delete、/api/skill-manager/trash、/api/skill-manager/undo、/api/skill-manager/purge、/api/skill-manager/check-update、/api/skill-manager/update
  • lib/update.js — 更新检测/版本比较/清单/下载解压工具
  • lib/client.js — 浏览器侧:设置 → 技能 分区
  • test/delete-undo.test.mjs — 删除/撤回/彻底删除的验证测试
  • test/update.test.mjs — 更新检测/更新流程的验证测试(npm test)

删除/撤回 API

  • POST /api/skill-manager/delete { path } → 移入会话回收站,返回 { undoId }
  • GET /api/skill-manager/trash → 当前会话可撤回的删除列表
  • POST /api/skill-manager/undo { id } → 恢复技能到原路径
  • POST /api/skill-manager/purge { id } → 彻底删除回收站中的技能

回收目录位于各技能根目录的同级隐藏目录 .dsh-skill-manager-trash;插件重启时会自动清理,保证“仅当前会话可撤回”。

更新检测/更新 API

  • POST /api/skill-manager/check-update { path } 或 {} → 检查单个/全部技能更新,返回更新状态
  • POST /api/skill-manager/update { path } → 下载最新 Release 并整体替换技能目录,失败自动回滚

SKILL.md 可选元数据

---
name: demo
description: ...
version: 1.2.0
repository: https://github.com/owner/repo
sourcePath: .   # 可选;仓库内技能所在子目录,默认仓库根目录
---

本地清单

更新状态会缓存到 $DSH_HOME/.dsh-skill-manager.json,避免每次打开设置页都请求外网。

扫描根(与 dsh-skill-filesystem 一致)

  • <项目>/.agents/skills、<项目>/.dsh/skills
  • $DSH_HOME/skills、~/.agents/skills

License

MIT

← 上一个 Prev dsh-memory 下一个 Next dsh-browser-firefox →