dsh-code-simplify
其他 活跃维护

dsh-code-simplify

satan9394/dsh-code-simplify

代码简化能力,自动识别并删除代码冗余、降低逻辑复杂度、去除不必要抽象层,保留核心业务逻辑,输出更易读易维护的简洁代码,无需手动调整即可快速完成代码重构。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
5 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:satan9394/dsh-code-simplify
git clone https://github.com/satan9394/dsh-code-simplify.git
git clone git@github.com:satan9394/dsh-code-simplify.git
README.md main

dsh-code-simplify

代码简化:删冗余、降复杂度、去不必要的抽象,让代码更简单可维护。
简化 = 去掉复杂度,不是去掉功能;行为保持不变。

受 addyosmani/agent-skills
(88k★ MIT)的 code-simplification 技能启发,改编为 DSH 中文原创精简版。

安装

dsh plugin --profile web add dsh-code-simplify
# 或本地开发:dsh plugin --profile web add link:E:\DeepSeek_Harness\workspace\2026_08_15\plugins\dsh-code-simplify
# 重启 dsh web 生效

使用

对 agent 说"简化这段代码 / 太绕了精简一下",
code-simplify 技能按 理解 → 列简化点 → 小步简化 → 验证 → 交付 diff 执行。

结构

dsh-code-simplify/
├── index.js           # 注册 skills/ 到 ctx.skills
├── cordis.patch.yml   # bundle patch 层
├── package.json       # dsh.bundle manifest
└── skills/code-simplify/SKILL.md

License

MIT。原创精简改编,灵感来自 addyosmani/agent-skills(MIT)。