kezboardpj/dsh-skill-loader

DeepSeek Harness(dsh)的按会话技能目录选择器——为每次对话选择要加载的技能。未选中的技能在该对话中不可用。

Project Overview项目介绍

This is a native plugin built exclusively for DeepSeek Harness (DSH) that enables selective skill loading for new DSH conversations. When you start a new conversation, you can check which skills you want to load into the current session, and any unchecked skills will be fully disabled for that conversation. It adds a new "Skill List" tab next to the default "Work Directory" and "Agent Preset" tabs on the new conversation start page, and this tab automatically disappears once the conversation begins. To install the plugin, you can use the official DSH plugin command from your terminal, replacing the placeholder profile name with your actual profile name, which is web by default for the web interface.

Only checked skills are added to the <available_skills> list that the LLM sees, so unselected skills can't be called via any method, including slash commands or the skill catalog. If you do not make any selection, the default DSH behavior of loading all skills remains unchanged. The plugin also adds two useful slash commands: /skill-select lets you set the active skills for the current conversation (comma-separated, no input clears the selection), and /skill-unarchive lets you unarchive archived sessions that DSH does not provide a native unarchive entry for. This plugin is ideal for DSH users who have many installed skills and want to reduce clutter and context bloat in specific conversations.

Version 0.2 fixed a critical issue where v0.1 saved selection data as a custom session event, which caused DSH to throw a SessionFormatUnsupportedError when loading old sessions because it does not recognize custom event types from third-party plugins. The current version stores selection state in the official DSH settings file under the skill-loader namespace, which avoids this error entirely. If you are upgrading from v0.1, you need to run the provided repair script from your terminal while DSH is stopped to fix old session logs, then update the plugin dependency and restart DSH. This plugin is released under the open source MIT license, with no associated costs for use or modification.

这是一款原生DeepSeek Harness(DSH)插件,用于为新建对话提供自定义技能选择功能。创建新对话时,用户可勾选需要载入当前会话的技能,未勾选的技能会在该对话中完全禁用。它在新建对话起始页的「工作目录」「agent 预设」标签旁新增了「技能清单」标签,对话开始后该标签会自动消失。

用户勾选的技能会被加入当前对话的可用技能列表,大语言模型只会看到勾选后的技能,未勾选技能无法被调用,也不会出现在技能目录中。未做选择的对话保持DSH默认行为,也就是加载全部技能。用户的选择状态会保存在DSH设置文件$DSH_HOME/settings.yaml的skill-loader命名空间下,重启后依然保留。

该插件可通过DSH官方命令行工具从GitHub直接安装,也支持从本地目录安装,安装完成后需要重启对应配置文件的DSH才能生效。从v0.1版本升级需要先运行官方修复脚本修复旧会话日志,再更新插件依赖,最后重启DSH。本插件采用MIT许可证开源,可供免费使用,没有额外使用成本。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 3 stars - very few users, little community feedback星标只有 3,几乎没人在用,遇到问题缺少社区反馈
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 https://github.com/kezboardpj/dsh-skill-loader.git

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

READMEREADME

dsh-skill-loader

English | 中文

DeepSeek Harness (dsh) 的按对话技能清单选择器:新建对话时选择要把哪些技能的清单条目(name + description)载入本对话(载入技能清单);未勾选的技能在该对话中不可用。

功能

  • 新建对话的开始页,「工作目录」「agent 预设」chip 旁新增「技能清单」chip;对话开始后自动消失。
  • 勾选的 skill 会把其清单条目载入本对话:模型看到的技能目录(<available_skills>)只包含勾选的技能。
  • 未勾选的 skill 在本对话不可用(模型目录、/名称 手势与 skill 工具都会拒绝)。
  • 没有做过选择的对话保持 dsh 默认行为(全部载入)。
  • 选择状态存储在 dsh settings(skill-loader 命名空间,$DSH_HOME/settings.yaml),刷新/重启后依然准确。

位置说明:开始页那一行是内置 UI 里硬编码的 JSX,只声明了两个 single 槽位(均被内置选择器占用),插件无法在其中声明第三个槽位。本插件因此在该行内追加自己的 chip 节点并用 react-dom 渲染(锚点:[data-phase="hero"] 内的 button[aria-haspopup="menu"],由 MutationObserver 在 React 重挂载后自动恢复),仅当当前会话处于 blank(未开始对话)时出现。

命令

命令 说明
/skill-select <name1,name2,...> 将本对话的技能清单设为这些技能(逗号分隔;无参数=清空)
/skill-unarchive <sessionId1,...> 取消归档指定会话,使其重新出现在侧边栏(dsh 界面本身没有取消归档入口)

实现要点

  • 目录接管:宿主 agent/pre-step 监听器在 dsh-tool-skill 之后运行,丢弃其未过滤目录并发布自己的过滤目录(沿用 skill-catalog 来源与 source.entries 格式,保证 dsh 自带的历史/摘要逻辑一致,避免每轮重发)。
  • 拦截:tools/pre-execute 瀑布拒绝未选技能的 skill 调用;手势注入按选择过滤。
  • 选择状态写入 dsh settings($DSH_HOME/settings.yaml),不写自定义会话事件类型——该 dsh 版本会因未知事件类型拒绝加载会话日志(SessionFormatUnsupportedError)。

安装

<profile> 是占位符:换成你的 profile 名(Web 界面默认是 web;可用 dsh --profile <name> 启动指定 profile)。

从 GitHub 安装(推荐):

dsh plugin --profile web add https://github.com/kezboardpj/dsh-skill-loader.git

或从本地目录安装:

dsh plugin --profile web add ./dsh-skill-loader

安装后重启该 profile 的 dsh(已安装插件不做热加载)。

(注:dsh plugin add 不能处理含空格的路径;路径含空格时请直接编辑 profile 的 package.json 依赖 + dsh.profile.bundles 后运行 pnpm install。)

从 0.1 升级

全新安装的用户直接执行上面的安装命令即可,装到的就是 0.2.0。已安装 0.1 的用户按以下顺序升级(全程 dsh 保持停止):

  1. 运行修复脚本,让被 0.1 写坏的历史会话日志恢复可读(原文件自动备份为 .bak;脚本是幂等的,没有受影响日志时直接输出 nothing to repair。从未在 0.1 里勾选过技能、没有产生过 skill-loader/selection 事件的用户可以跳过这一步,其余用户跳过会导致旧会话升级后仍然打不开)。一条命令完成下载并运行(无需先 clone 仓库;dsh 保持停止状态):

    Windows PowerShell:

    Invoke-WebRequest "https://raw.githubusercontent.com/kezboardpj/dsh-skill-loader/main/scripts/repair-v01-logs.mjs" -OutFile "$env:TEMP\dsh-skill-loader-repair.mjs"; node "$env:TEMP\dsh-skill-loader-repair.mjs"
    

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-vision 下一个 Next dsh-client-ui-pet →