Y
dsh-code-simplifier
yidasanqian/dsh-code-simplifier
Registers the code-simplifier skill, which simplifies code changed in the current session without changing its behavior and reports the verification it ran.
インストール
dsh plugin --profile web add github:yidasanqian/dsh-code-simplifierREADME
dsh-code-simplifier
A DeepSeek Harness bundle that registers the code-simplifier skill: refine code changed in the current session for clarity and consistency while keeping its behavior identical.
English | 中文
What it does
- Adds one skill,
code-simplifier, to the skill catalog of every agent in the profile. - The skill body lives in
skills/code-simplifier/SKILL.mdand is read on every load, so edits take effect without restarting the Harness. - It adds no tools, commands, panels, or settings. Stopping the bundle removes the skill.
Install
- In the app: Plugins → Add plugin, enter
dsh-code-simplifieror point at a local checkout. - From a checkout:
plugin_managerinstall_bundlewith this directory as the target. - From npm:
dsh plugin --profile <profile> add dsh-code-simplifier.
Usage
Ask in plain language:
- "Simplify what I just changed."
- "Clean this up without changing behavior."
The skill then:
- reads the current diff and nearby code;
- makes only simplifications with a clear payoff — less nesting, no fresh duplication, clearer names, comments that explain reasons instead of repeating code;
- runs the narrowest relevant verification command;
- reports the files changed and what was actually verified.
Limitations
- The skill carries instructions only; it ships no diff engine, test runner, or rollback.
- The body is read per load;
index.jschanges need a plugin reload. - A project skill of the same name takes precedence over this bundle's entry.
License
MIT. The skill body is adapted from yidasanqian/codex-code-simplifier (MIT); see NOTICE.
中文
一个 DeepSeek Harness 插件:把 code-simplifier 技能注册进技能目录,让代理在不改变行为的前提下,把本次会话改动的代码整理得更清晰、更一致。
它做什么
- 向 profile 内所有代理的技能目录加入一个技能:
code-simplifier。 - 技能正文在
skills/code-simplifier/SKILL.md,每次加载时读取,改完文件不用重启。 - 不新增工具、命令、面板或设置项;停用插件,技能随即消失。
安装
- 应用内:插件 → 添加插件,输入
dsh-code-simplifier,或直接指向本地目录。 - 本地检出:用
plugin_manager的install_bundle,target 指向本目录。 - npm:
dsh plugin --profile <profile> add dsh-code-simplifier。
用法
直接说「简化我刚改的代码」「清理这段,别改行为」,技能会先看 diff 与邻近代码,只做收益明确的简化,跑最窄的验证命令,最后报告改了哪些文件、验证了什么、哪些没验证。
限制
- 技能只提供指令,不带 diff 引擎、测试执行器或回滚。
- 正文每次加载读取;改
index.js需要重载插件。 - 同名的项目级技能优先于本插件提供的条目。
许可
MIT。技能正文改编自 yidasanqian/codex-code-simplifier(MIT),见 NOTICE。