dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
输入框技能分组选择器:🧩按钮弹出按场景分组(科研、办公、数据、写作、媒体、开发)的技能面板,新装技能自动分类,中文说明、搜索与双层下钻,点选即插入 /技能名 手势。
DSH Desktop 输入框技能选择器 —— 把散落各处的技能整理成带图标的中文分组面板,一键插入。
在 DSH Desktop 的对话输入框左侧加一枚「🧩 技能」按钮。点开是一个自绘面板:
~/.dsh、~/.agents、~/.claude、安装目录 office-runtime),preset 层技能也能看到inputActions.captureInsertion / insertText 通道,不碰草稿状态机DSH Desktop 插件目录布局(web profile):
<DSH profile>/ # %APPDATA%\dsh-desktop\harness\profiles\web
├── package.json # dependencies 加 "@local/dsh-skill-groups"
├── .local-plugins/
│ └── dsh-skill-groups/ # 本仓库内容
└── node_modules/
└── @local/
└── dsh-skill-groups -> ../../.local-plugins/dsh-skill-groups
package.json 里补两处:
{
"dependencies": { "@local/dsh-skill-groups": "file:./.local-plugins/dsh-skill-groups" },
"dsh": { "profile": { "bundles": ["@local/dsh-skill-groups"] } }
}
重启 DSH Desktop,输入框左侧出现「🧩 技能」即成功。
面板行为的可调项都在 lib/client.js 顶部:
CATEGORIES —— 分类定义(icon / label),7 类EXPLICIT —— 显式技能→分类映射,优先于关键词KEYWORD_RULES —— 兜底关键词规则,先匹配先赢ZH_DESC —— 技能名→中文一句话说明(可选,缺失时自动兜底)host 侧 lib/index.js 无需配置;office-runtime 定位失败时技能照常可用,仅少 12 个内置 office 技能。
client (lib/client.js) host (lib/index.js)
┌──────────────────────────┐ fetch ┌────────────────────────────┐
│ 🧩按钮 + 自绘面板 │ ────────▶ │ /api/skill-picker/skills │
│ 分类状态机 + 搜索 │ │ 注册表 + 磁盘扫描合并 │
│ insertText 插入 /技能名 │ │ /api/skill-picker/describe │
└──────────────────────────┘ │ 读 SKILL.md 提中文摘要 │
└────────────────────────────┘
conversation.input.left 插槽(session scope)withDeadline(3000) 兜底:host 不可达时面板仍能打开(空列表),不拖死输入框删 node_modules/@local/dsh-skill-groups 链接、.local-plugins/dsh-skill-groups 目录,并移除 package.json 中两处条目,重启即可。
MIT