FeatherHunter/dsh-chinese-skill-patch

FeatherHunter★ 2TypeScriptLast synced: 2026-08-21

Open on GitHub

让 DSH 原生支持中文技能名 · Make DSH discover Chinese skill names without renaming — /私 → 私家大厨 · More by @FeatherHunter: 🎨 dsh-opencode-palette · ⚡ dsh-prompt

README excerpt

🈶 dsh-chinese-skill-patch 🌐 中文 · English 让 DeepSeek Harness 原生支持中文技能名: 私家大厨 / 卡路里 / 作息管家 无需改英文, /私 即补全, /私家大厨 直达, skill({name:"私家大厨"}) 亦可。 为什么需要这个 DSH 内置 dsh-skill 对 SKILL.md 的 name 字段只认 name: 私家大厨 会在发现阶段被 warn skipped , skill-catalog 永远 complete: false ,中文技能永远加载不到,输入框 /私 不补全、 /私家大厨 强行回车也不触发、模型 skill({name:"私家大厨"}) 抛 invalid skill name 。 本插件在 不改 DSH 源码、不改你 SKILL.md 一个字符 的前提下,用 ^[\p{L}0-9]+(?:-[\p{L}0-9]+) $/u (Unicode 字母+数字+中划线)打通三处硬编码: dsh-skill 校验、 dsh-skill-filesystem 扫描、 dsh-tool-skill 手势/工具。卸载即回退。 一条命令安装 需要 DSH CLI : 装进你的 profile( web 为默认桌面 profile): 零配置 :包内自带 cordis.patch.yml , dsh plugin add 自动写入 dsh.profile.bundles ; dsh plugin remove dsh-chinese-skill-patch 干净卸载。重启 dsh web (或刷新页面)即生效。 源码注入(开发): 它为你修了什么 输入 修复前 修复后 /私 无补全 下拉出现 私家大厨 ( startsWith("私") ) /私家大厨 回车 无匹配, SKILL GESTURE 仅 a-z0-9 命中 CN GESTURE , agent/pre-step 注入 skill({name:"私家大厨"}) invalid skill name 正常加载, content 返回 已处理 BOM ( \uFEFF )导致的 解析失败,兼容 description: 折叠语法。 使用示例 在 D:\3DeepSeekHarness\agents\xiaoshan\.dsh\skills\私家大厨\SKILL.md (或任意 /.dsh/skills/私家大厨/SKILL.md ): 目录名、中文 name 、中文 description 完整保留 。 chinese skill patch list 工具可验证: 工作原理 SkillRegistry 原型补丁 : get / register / listLayerCandidates 换成 CN 校验, validate…

View full README on GitHub →
Tools / Devchinesecjkdeepseekdeepseek-harnessdshdsh-plugini18nskill

Category