zhtx2024/dsh-skin-switcher
DeepSeek Harness Web GUI 皮肤切换插件:在设置界面一键切换已安装的皮肤
Project Overview项目介绍
dsh-skin-switcher is a native plugin built exclusively for the DeepSeek Harness (DSH) Web GUI. It adds a dedicated "Skins" section to DSH's official settings page, where users can view all installed DSH skins and switch between them with one click. The recommended way to install it is via DSH's official CLI: run dsh plugin --profile web add dsh-skin-switcher in your terminal. For development and debugging, you can clone the GitHub repository and install it via a local link with the DSH CLI. After installation, restart dsh web or rely on hot reload to see the new Skins section in your DSH settings.
This plugin is designed for users who want to customize the look of their DSH Web interface. It automatically discovers all installed skins, including legacy skin packages that follow the naming convention dsh-client-ui-skin-* and v2 asset skins stored in the skin center or the user's local ~/.dsh/skins directory. It also supports any npm scope for skin packages, so third-party hosted skins can be detected correctly. Users can override the default skins directory with the DSH_SKINS_HOME environment variable if they prefer a different storage location. Switching skins is handled via hot reload, so users do not need to restart the DSH service to see their new skin take effect.
This plugin is released under the BSD-3-Clause license, and its core skin patch management logic was ported from another existing open source DSH project. It requires version 0.2.x or higher of the DSH skin center for v2 asset skin support. It also handles conflicts between old and new skin systems by automatically disabling legacy skin centers that are older than version 0.2, to avoid duplicate or conflicting skin management behavior. When the plugin starts, it automatically migrates active legacy skins to the new v2 activation file format, so users do not lose their existing skin configuration after an upgrade. If you uninstall the plugin, you can manually delete any leftover configuration from the cordis.patch.yml file if needed.
这是一款专为 DeepSeek Harness(DSH)Web GUI 开发的原生皮肤切换插件,可通过 DSH 官方 CLI 命令一键安装到 web profile 中,安装后会在 DSH 的官方设置面板中新增一个「皮肤」设置页,自动列举所有已安装的 DSH 皮肤,并提供一键切换功能,同时支持一键恢复 DSH 的官方默认外观,兼容旧版 legacy 皮肤和新版 v2 资产皮肤两种格式,热切换数秒内即可生效,无需手动修改代码。
面向需要自定义 DSH Web 界面外观的用户,支持自动发现 profile 目录下所有包名以 dsh-client-ui-skin- 开头的皮肤包,同时支持任意 npm 作用域的皮肤包,也能识别 dsh-web-ui 的 dsh-skins 聚合载体和新版皮肤中心 v2 的资产引擎,新版皮肤存放在用户目录 ~/.dsh/skins 下,也可通过环境变量 DSH_SKINS_HOME 自定义存储路径。
本插件遵循 BSD-3-Clause 许可证发布,皮肤切换的核心管理逻辑移植自现有开源项目,支持 v2 皮肤中心 >= 0.2.x 版本;若插件卸载后残留配置,用户可手动删除 cordis.patch.yml 中 dsh-skin-switcher 管理区块内的内容,插件启动时会自动迁移旧版活跃皮肤到新版激活文件,不会丢失用户原有外观配置。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-skin-switcher(zhtx2024/dsh-skin-switcher)
仓库:https://github.com/zhtx2024/dsh-skin-switcher
本站详情页:https://www.yhbd.top/plugins/zhtx2024-dsh-skin-switcher/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 NOASSERTION · ⭐ 3 · 最近提交 2026-08-19 · 主语言 JavaScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- 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 dsh-skin-switcher
把 zhtx2024/dsh-skin-switcher 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-skin-switcher
DeepSeek Harness Web GUI 的皮肤切换插件:在设置界面新增「皮肤」页,列出所有已安装的皮肤并提供一键切换按钮,支持一键恢复官方默认外观。
特性
- 设置界面内切换:官方设置面板新增「皮肤」页(
settings.section),已安装皮肤自动列出,无需改代码 - 统一管理所有皮肤:自动发现 profile 中所有
dsh-client-ui-skin-*皮肤包(支持任意 npm scope,如@dsh-external/dsh-client-ui-skin-maid-atelier),以及 dsh-web-ui 的dsh-skins聚合载体 - 支持皮肤中心 v2 资产引擎(0.4.0+):皮肤中心(
@linxin666/dsh-client-ui-skin-center>= 0.2.x)内置的skins/与用户目录~/.dsh/skins(DSH_SKINS_HOME可覆盖)中的 v2 皮肤自动列出;切换写入~/.dsh/skin-center-active.json,中心在页面加载时应用,无需 cordis 行 - 热切换,无需重启:legacy 皮肤切换写入
~/.dsh/cordis.patch.yml的 managed section(原子重写),DSH 配置监视器数秒内热重载,页面自动刷新生效 - 一键恢复默认:「恢复默认」回到官方原版外观
- 升级不丢外观:启动时自动把旧版活跃皮肤迁移到 v2 激活文件(存在 v2 孪生时),并解除旧版写下的皮肤中心禁用行
- 单一管理权威(仅旧版中心):legacy 皮肤中心(< 0.2,写 patch 的竞争者,行 id 自动从 bundle patch 发现,兼容
ui-skin-center与web-ui-skin-center)自动禁用;v2 中心是资产引擎,不会被禁用
安装
从 npm 安装(推荐)
dsh plugin --profile web add dsh-skin-switcher
从 GitHub 仓库安装(改代码调试)
# 1. 克隆本仓库
git clone https://github.com/zhtx2024/dsh-skin-switcher.git
# 2. 安装进 web profile
dsh plugin --profile web add link:<克隆路径>/dsh-skin-switcher
然后重启 dsh web(或依赖热重载),打开 设置 → 皮肤。
卸载
dsh plugin --profile web remove dsh-skin-switcher
卸载后如仍残留 ~/.dsh/cordis.patch.yml 中的 managed section,可手动删除
# --- dsh-skin-switcher managed --- 与 # --- end dsh-skin-switcher managed --- 之间的内容。
工作原理
| 半 | 文件 | 职责 |
|---|---|---|
| Host | lib/index.js |
挂载 /api/skin-switcher/state 与 /api/skin-switcher/use 路由;扫描 profile node_modules 发现皮肤(legacy 包 + v2 资产);管理 boot patch 的 managed section 与 v2 激活文件 ~/.dsh/skin-center-active.json |
| Browser | lib/client.js |
注册设置面板 settings.section「皮肤」页;切换后轮询 state 直至配置监视器确认,再刷新页面加载新的客户端插件图 |
皮肤切换协议
- legacy 皮肤:非激活皮肤 → 仅对「已组合」的皮肤写入
- id: <wiringId>+disabled: true(DSH 官方 loader patch 语法):bundle-wired 的皮肤,或 bundle patch 已插入其行的皮肤;仅安装而未组合的皮肤不写行,避免 "entry not found" 警告 - 激活皮肤(bundle-wired,即其包名在
dsh.profile.bundles中)→ 不写行,解除禁用即恢复 - 激活皮肤(未 bundle-wired,如 dsh-skins 载体中的皮肤)→ 自动在 profile node_modules 建链接并写入
insert行 - v2 资产皮肤(中心引擎存在时):激活 → 写入
~/.dsh/skin-center-active.json的{"active": "<id>"},中心在每次页面加载时应用;同 id 存在旧版皮肤包时其 wiring 行恒保持禁用,两套机制不叠加 - 皮肤中心 → 旧版(< 0.2)从 profile bundle patch 中发现其实际行 id(如
ui-skin-center/web-ui-skin-center),恒定写入disabled: true;v2 中心(>= 0.2,资产引擎)不写禁用行 - 恢复默认 → 清空激活文件(
{"active": null})并禁用所有 composed legacy 行 - managed section 恒为合法 YAML 数组(无行时写
[]),保证 patch 文件始终可被 DSH 解析
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
Small-tailqwq/dsh-deep-whale
d-dev0101/open-sea-skin
kingOfSoySauce/dsh-liang-skin
RevolutionLA/dsh-dream-skin
Fishquito7/dsh-skill-mcp-panel
01Virex/dsh-status-rotator
ymh0000123/dsh-theme-endfield
SLin-code/dsh-custom-skin