mole
tw93/Mole开源磁盘清理工具 Mole CLI(mo,支持 macOS 和 Windows)的官方 skill:按 Mole 的 JSON 输出查看磁盘占用、预览并执行清理、查看已安装应用、读取系统健康状态和清理记录。清理前先用 --dry-run 预览并征得同意,卸载应用和需要管理员权限的步骤留给用户在自己的终端里执行。插件只带 skill,CLI 需另外安装。
中文技能名零改造直用:输入 /私 自动补全 私家大厨。为 DSH 打上技能发现、斜杠手势与 skill 工具补丁,Unicode 技能名(私家大厨/卡路里/作息管家…)补全、直达、加载全可用;不改 SKILL.md、零配置;运行时改动随卸载恢复,但写进 DSH 三个依赖包磁盘文件里的正则补丁会保留到下次 DSH 升级覆盖为止。
Make DeepSeek Harness natively support Chinese skill names: 私家大厨 / 卡路里 / 作息管家 — no renaming, /私 completes to 私家大厨, /私家大厨 jumps directly, skill({name:"私家大厨"}) works.
DSH's dsh-skill only accepts
const SKILL_NAME = /^[a-z0-9]+(?:-[a-z0-9]+)*$/
name: 私家大厨 is warn skipped forever, skill-catalog never completes, Chinese skills never load, /私 never completes and /私家大厨 never triggers.
This plugin patches the three hard-coded spots with ^[\p{L}0-9]+(?:-[\p{L}0-9]+)*$/u without touching DSH source or your SKILL.md. Uninstall to revert.
Requires DSH CLI:
npm install -g @deepseek-ai/dsh
dsh plugin --profile web add dsh-chinese-skill-patch
Zero-config: cordis.patch.yml is bundled, dsh plugin add writes dsh.profile.bundles and dsh plugin remove cleans up. Restart dsh web.
Dev (source inject):
git clone https://github.com/FeatherHunter/dsh-chinese-skill-patch cd dsh-chinese-skill-patch && npm install && npm run build dev_inject_plugin file:$(pwd)
| Input | Before | After |
|---|---|---|
/私 | no completion | dropdown shows 私家大厨 |
/私家大厨 Enter | no match | CN_GESTURE hits, agent/pre-step injects <skill_content> |
skill({name:"私家大厨"}) | invalid skill name | loads |
Handles BOM (\uFEFF) and description: > folded YAML.
In D:\3DeepSeekHarness\agents\xiaoshan\.dsh\skills\私家大厨\SKILL.md or ~/.dsh/skills/私家大厨/SKILL.md:
---
name: 私家大厨
description: Your private recipe book.
whenToUse: When user says 私家大厨
---
# 私家大厨
...
Keep directory, name and description in Chinese. Verify with _chinese_skill_patch_list.
get/register/listLayerCandidates → CN validators, validateCandidateCN only warns and skips.chinese-skill-patch: mirrors dsh-skill-filesystem roots (findProjectRoot + ~/.dsh/skills) and parseSkillFileCN (yaml first, manual fallback, BOM stripped).agent/pre-step for CN_GESTURE; global skill tool (CN) for model.require.resolve locates dsh-skill/dsh-skill-filesystem/dsh-tool-skill lib/index.js and replaces regex, idempotent (skips if already /u), survives restart until next DSH upgrade.No hard-coded
D:\3DeepSeekHarness\agents; setDSH_AGENTS_DIRor plugin configextraAgentsDirif you need extra aggregated dirs globally.
{
extraAgentsDir: "D:\\3DeepSeekHarness\\agents"
}
Or env DSH_AGENTS_DIR, DSH_HOME, DSH_AGENTS_HOME.
Still no completion? Check _chinese_skill_patch_list, restart dsh web, ensure first line is --- and name matches.
Will others get it? Yes, npm i + dsh plugin add dsh-chinese-skill-patch, no hard-coded paths, require.resolve adapts.
npm run typecheck
npm run build # tsc → lib/
Source src/index.ts (@ts-nocheck, three patches).
seq11/12 identical). Single source via patched native CN_GESTURE, plugin falls back only when native not yet CN-capable, dedup against decision injections (both handler orders).[\p{L}0-9] across dsh-skill/filesystem/tool-skill, BOM/> compatible.MIT — same as dsh-prompt.
Found a bug or have an idea? Please open an Issue on GitHub — or scan the QR code below to reach the author on Feishu.