DeepSeek Harness Plugin

yidasanqian/dsh-code-simplifier

Stars ★ 0 Category Skills Added 2026-12-01

Registers the code-simplifier skill, which simplifies code changed in the current session without changing its behavior and reports the verification it ran.

Install

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:yidasanqian/dsh-code-simplifier

Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).

README

This plugin publishes its README in Chinese only.

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.md and 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-simplifier or point at a local checkout.
  • From a checkout: plugin_manager install_bundle with 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:

  1. reads the current diff and nearby code;
  2. makes only simplifications with a clear payoff — less nesting, no fresh duplication, clearer names, comments that explain reasons instead of repeating code;
  3. runs the narrowest relevant verification command;
  4. 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.js changes 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。

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.