注册 code-simplifier 技能,在不改变行为的前提下简化本次会话改动的代码,并报告实际跑过的验证。
安装
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:yidasanqian/dsh-code-simplifier
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。
README
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。
链接
同类插件
tw93/Mole#mole★ 76838
开源磁盘清理工具 Mole CLI(mo,支持 macOS 和 Windows)的官方 skill:按 Mole 的 JSON 输出查看磁盘占用、预览并执行清理、查看已安装应用、读取系统健康状态和清理记录。清理前先用 --dry-run 预览并征得同意,卸载应用和需要管理员权限的步骤留给用户在自己的终端里执行。插件只带 skill,CLI 需另外安装。
zhu1090093659/dsh-web#packages/dsh-skill-explorer★ 10703
技能中心:按来源分级浏览已加载的全部 skill,启用/禁用模型调用、创建新技能、删除进可恢复回收站。
QingYunA/answer-me-with-html★ 6761
把回答做成一页可视化 HTML:模型只写简短的 Markdown 草稿,随包附带的 `am` 命令行生成页面,支持流程图、时序图、树、时间线、ER 图、表格和提示框。
iflytek/skillhub#dsh★ 5513
在 DeepSeek Harness 内浏览、搜索 SkillHub 技能,并管理本地技能的安装、更新和卸载。适配 DSH 0.2.0-rc.2 与 0.2.1-rc.2,暂不兼容 0.2.1-rc.3。
hyhmrright/brooks-lint★ 1596
提供六个代码质量技能,涵盖代码审查、架构审计、技术债、测试质量、健康看板与修复。
GanyuanRan/Aegis★ 1459
面向编码 Agent 的软件工程方法包,提供基线优先规划、系统化调试、提示词卫生、完成前验证,以及修复/退役双轨跟踪技能。
社区评论
评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。