Areium/dsh-better-prompt
dsh plugin: rewrite your draft into a better prompt with the LLM and write the result back into the input box; optimization directions live in an editable skill, editable from the settings UI
Project Overview项目介绍
This is a native plugin built exclusively for DeepSeek Harness (DSH) that adds prompt refinement functionality to DSH's web interface. After installation, it adds an "✨Optimize" button to the left of the send button in the input toolbar. When clicked, it uses the LLM selected for the current DSH session to analyze and refine the user's draft prompt, then inserts the optimized result directly back into the input box so the user can review it before sending. The optimization rules are not hardcoded; instead, they are pulled from an editable skill document (SKILL.md) that is automatically generated in the user's DSH directory on first run.
The plugin includes a smart clarification flow that only asks follow-up questions if the draft is missing critical context. If clarification is needed, questions are presented through DSH's native question interface, which offers pre-set options and allows custom text input. Only after the user answers all questions does the plugin generate the final optimized prompt. If the original draft already has enough clear information, the plugin skips the clarification step and outputs the refined prompt directly. After refinement, an undo button is added to let users restore the original draft in one click if they are unsatisfied with the result.
To install the plugin, run the DSH CLI command pointing to this GitHub repository, then restart DSH Web to load it. Users can edit the optimization rules either through the dedicated settings panel in the DSH UI or by directly editing the SKILL.md file, and changes take effect immediately without a restart. All core settings, including request timeout, maximum input character count, maximum number of clarification questions, can be customized via the DSH profile configuration file. The plugin is distributed as open source under the permissive MIT license.
dsh-better-prompt 是专为 DeepSeek Harness (DSH) 开发的原生插件,作用是帮用户优化输入框内的提示词草稿。它会在输入框工具栏新增「✨优化」按钮,点击后调用当前会话选中的 LLM 优化草稿,优化结果自动写回输入框,需用户确认满意后再发送。优化方向不固定,来自可编辑的技能文档 SKILL.md,首次加载时会自动生成到用户目录。
它具备智能追问机制:如果草稿缺失关键信息,会通过 DSH 原生提问界面发起追问,支持选项点选或自定义输入,回答完成后才生成优化后的提示词;如果草稿信息足够清晰,则直接输出结果,不会打断流程。优化完成后可点击「↩ 撤回」按钮一键恢复原文,同时还提供专属设置入口,方便用户随时编辑优化方向。
安装可通过 DSH CLI 命令直接从 GitHub、本地目录或 npm 完成,安装后需要重启 DSH Web 才能加载插件。用户既可以通过设置界面修改优化方向文档,也可以直接编辑文件,修改无需重启即可生效。超时时间、最大输入长度、最大追问数量等所有配置都可以在 profile 配置文件中自定义,项目以 MIT 许可开源。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-better-prompt(Areium/dsh-better-prompt)
仓库:https://github.com/Areium/dsh-better-prompt
本站详情页:https://www.yhbd.top/plugins/areium-dsh-better-prompt/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 2 · 最近提交 2026-09-10 · 主语言 JavaScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add dsh-better-prompt
把 Areium/dsh-better-prompt 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-better-prompt
一个 DeepSeek Harness (dsh) 插件:把你在输入框里草拟的内容交给 LLM 优化,优化后的提示词自动写回输入框,确认满意后再发送。
优化方向不是写死的:它来自一个 skill 文档(SKILL.md),首次加载时自动生成在 ~/.dsh/skills/better-prompt/SKILL.md。你既可以直接改文件,也可以在 dsh 设置界面里编辑(设置 → 提示词优化),改完立即生效。
草稿确实缺关键信息时,模型才会先追问(grill me),而且提问走 dsh 原生提问界面(每题几个选项,可点选或自行输入),答完再生成提示词;草稿够清楚就直接生成,不打扰你。
功能
- 在输入框工具行(发送按钮左侧)新增按钮:✨优化。
- 点击后先判断草稿是否缺关键信息——缺才提问(走 dsh 原生
ask_user_question,带选项、可自行输入),答完生成;不缺就直接改写。判定与改写都用当前会话选择的模型(或默认模型)。 - 写回后出现 ↩ 撤回 按钮,可一键恢复优化前的输入内容。
- 出错时显示 ! 标记,悬停可见错误信息。
- 输入框内容不会自动发送,用户确认后再点发送。
- 设置界面:设置 → 提示词优化,直接查看/编辑优化方向文档,支持保存、取消、重置为默认;有未保存修改时离开会二次确认。
安装
# 从 GitHub 安装(推荐)
dsh plugin --profile web add git+https://github.com/Areium/dsh-better-prompt.git
# 或使用 github: 简写
dsh plugin --profile web add github:Areium/dsh-better-prompt
# 从本地目录安装(开发模式,改完立即生效)
dsh plugin --profile web add link:D:\Code\better-prompt
# 或从 npm 安装(发布后)
dsh plugin --profile web add dsh-better-prompt
仓库地址:https://github.com/Areium/dsh-better-prompt
安装完成后重启 dsh web(dsh web / dsh --profile web)使插件加载。浏览器插件端通过 HMR 刷新;修改 host 端(lib/index.js)需要重启。
使用
- 在输入框输入一段内容(可以是任意语言、任何粗糙的草稿)。
- 点击 ✨优化。
- 草稿缺关键信息:输入区切换为 dsh 原生提问(每题几个选项,可点选,也可自行输入;最多
clarifyMaxQuestions个),答完自动继续。 - 草稿信息足够:直接给出优化结果,不打断你。
- 草稿缺关键信息:输入区切换为 dsh 原生提问(每题几个选项,可点选,也可自行输入;最多
- 输入框内容被替换为优化后的提示词;不满意可点 ↩ 撤回 恢复原文,或直接编辑。
- 确认后点击发送。
编辑优化方向(skill)
方式一:设置界面(推荐)
设置 → 提示词优化:
- 顶部显示当前编辑的文件路径,以及当前是「默认」还是「自定义」;
- 多行编辑区直接改文档;保存后立即生效(下一次点 ✨优化 就用新方向,无需重启);
- 取消放弃未保存的修改(会二次确认);
- 重置为默认用插件内置文档覆盖当前文件(会二次确认,立即写盘);
- 有未保存修改时,切换设置页 / 关闭设置 / 刷新页面都会二次确认。
方式二:直接改文件
文档位置:~/.dsh/skills/better-prompt/SKILL.md(也可由 skillDir 配置指向别处):
- name / description:frontmatter,用于标识技能。
- 正文:优化原则——明确性、角色、上下文、约束、结构、输出形式、示例、质量要求、平衡准则、输出纪律。按需增删。
如果删掉该文件,插件下次读取时会把捆绑的默认版本重新生成;文档为空时同样回退到默认方向,不会崩溃。
也可以把 skills 目录移到自己工作区的任意位置,并在 profile 中配置 skillDir:
# ~/.dsh/profiles/web/cordis.patch.yml —— 在插件行上覆盖配置
- id: dsh-better-prompt
config:
skillDir: D:/Workspace/my-skill-dir
配置
| 字段 | 默认 | 说明 |
|---|---|---|
skillDir |
$DSH_HOME/skills/better-prompt |
优化方向技能目录(含 SKILL.md) |
timeoutMs |
120000 |
单次优化调用超时(ms) |
maxInputChars |
20000 |
输入草稿长度上限 |
maxTokens |
8192 |
优化输出 token 上限 |
clarifyMaxQuestions |
3 |
「追问」单次最多提几个问题(1–10) |
askTimeoutMs |
300000 |
等待用户回答原生提问的超时(ms),超时则不追问直接改写 |
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
titanwings/distilly
YuJunZhiXue/dsh-purge
Clearailhc/clearai-dsh
yejiming/MuseAI
superdesigndev/superdesign-skill
Miaotofu01/Study-Mate