feiwell/dsh-enhance-prompt
这是一个提示词增强插件
Project Overview项目介绍
dsh-enhance-prompt is a small native plugin built specifically for DeepSeek Harness, designed to rewrite prompts in place from inside the composer. It is installed with a single command, dsh plugin --profile web add feiwell/dsh-enhance-prompt, and the package ships a cordis.patch.yml that is applied during install so the plugin is automatically registered into the web profile without any manual configuration edit; a DSH restart then surfaces a mode menu and an enhance button on the right side of the input bar. Runtime requirements are Node ≥ 22.19.0, which is already satisfied by the Node bundled with DSH, and enhancement calls reuse the currently selected conversation model at temperature 0.2 and maxTokens 800, automatically stepping down to that model's lowest reasoning tier so short rewrites do not burn invisible thinking budget.
In day-to-day use, the plugin tightens whatever the user has typed in the input box, adding missing audience, tone, scope, and deliverable details, then replacing the textarea content with the rewritten version; a second click restores the original text exactly as typed. Three built-in modes are offered: daily-office (work) frames the prompt as an office task with deliverable type and file edit semantics, code-development (code) frames it as a feature spec with inputs, outputs, boundaries, and completion criteria without choosing a stack, and design-creative (design) frames it in design language covering medium, style, audience, aspect ratio, and required or forbidden elements. Language is strictly preserved across Chinese and mixed input, and the plugin never answers the user's question or injects the main conversation template. A /enhance slash command is also registered but only returns its result text and never mutates the composer.
Edge handling is conservative: the enhance button stays disabled while a message is sending or while the model is streaming a verdict, turns grey when the input box is empty with a "type first" hint, and times out after 30 seconds with an "enhance timeout" notice, leaving the original prompt untouched; model errors and request failures likewise preserve the user's text. The plugin exposes POST /api/enhance-prompt with { input, mode }, accepting only work, code, or design and falling back to work for any other value, returning { text } on success or an error plus 4xx/5xx status on failure. The front-end mounts into the conversation.input.right slot through its own client entry and does not modify @deepseek-ai/dsh-client-ui-conversation. The project is MIT licensed.
dsh-enhance-prompt 是一个面向 DeepSeek Harness 的小型插件,专门用来在输入栏就地改写提示词。它通过 dsh plugin --profile web add feiwell/dsh-enhance-prompt 一条命令安装,安装时附带 cordis.patch.yml,会自动写入 web profile,重启 DSH 即可在输入栏右侧看到新增的模式菜单和增强按钮。底层调用会话默认模型,temperature 0.2、maxTokens 800,使用最低推理档以减少耗时。
插件为输入栏里的临时提示词补充上下文、约束和交付要求,按钮点击后把改写结果直接替换到输入框,再点一次即可还原原文。提供日常办公、代码开发、设计创意三种模式,分别围绕受众与交付、明确要实现的架构与边界、媒介风格与保留要素来收束提示词;改写结果严格跟随输入语言,不会自作主张翻译。同时它注册了 /enhance 命令,但命令只返回结果,不改动输入框文字。
使用上要求 Node ≥ 22.19.0(DSH 自带 Node 已满足),仅作用于按钮与命令交互,UI 入口渲染在 conversation.input.right 插槽,未修改 @deepseek-ai/dsh-client-ui-conversation 源码。输入框为空时按钮置灰,一次改写最长等待 30 秒并显示「增强超时」,模型出错或会话忙时按原样保留原文且按钮临时禁用。插件对外提供 POST /api/enhance-prompt,接受 { input, mode } 其中 mode 仅识别 work、code、design。项目采用 MIT 协议。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-enhance-prompt(feiwell/dsh-enhance-prompt)
仓库:https://github.com/feiwell/dsh-enhance-prompt
本站详情页:https://www.yhbd.top/plugins/feiwell-dsh-enhance-prompt/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 2 · 最近提交 2026-09-24 · 主语言 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 feiwell/dsh-enhance-prompt
把 feiwell/dsh-enhance-prompt 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-enhance-prompt
给 DeepSeek Harness 用的一个小插件,用来增强提示词。
平时在输入栏里随手敲的提示词,往往缺上下文、缺约束,直接发给模型,得到的答案经常跑偏。这个插件做的事很简单:在输入栏右侧加了一个按钮,点一下就把你输入的提示词改写成一版更清晰、更具体的版本,改完直接替换输入框里的文字。不满意的话,再点一下就能回到原文。
除了默认的「日常办公」,还提供「代码开发」和「设计创意」两种模式,让改写结果更贴合你要做的事——写文档、写代码还是做设计,收束的方向是不一样的。
安装
一条命令搞定:
dsh plugin --profile web add feiwell/dsh-enhance-prompt
装完重启 DeepSeek Harness 就能看到按钮。插件自带 cordis.patch.yml,安装时会把插件自动写进 web profile,不用手动改配置。环境要求 Node ≥ 22.19.0,DeepSeek Harness 自带的 Node 已经满足。
怎么用
输入栏右侧会出现两个控件:一个模式菜单,一个增强按钮。
模式菜单默认选「日常办公」,点开可以在「代码开发」和「设计创意」之间切换,菜单是向上弹出的。
输入框里有提示词的时候就可以点增强按钮。点下去之后按钮显示「增强中…」,改写完成后结果直接替换输入框里的文字,按钮变成「恢复原文」——觉得改得不好就点一下还原,原文一直留着。
几个细节:
- 输入框为空时按钮是灰的,提示「先输入内容,再增强提示词」。
- 一次改写最多等 30 秒,超时会提示「增强超时」,你的提示词原样不动。
- 模型出错、请求失败也一样,提示词不会被半截结果覆盖。
- 正在发送消息、或者模型正在输出判定的时候,按钮会暂时禁用,避免跟会话状态打架。
三种模式的区别
模式不影响底层模型和改写模板,只影响改写时怎么"收"你的提示词:
日常办公(work) 把提示词当成办公任务来改:帮你补上受众是谁、语气怎么样、篇幅多长、最终要交付什么。如果涉及 Word、PPT、Excel,会写清楚是新建文件还是修改已有文件。
代码开发(code) 把提示词当成一个要实现的功能来改:写明白要做什么、输入输出是什么、边界在哪、错误怎么处理、做到什么程度算完成。它不会替你选技术栈,也不会把实现代码直接写进提示词里。
设计创意(design) 把提示词当成设计任务来改:交代清楚媒介、风格、受众、尺寸或比例、哪些元素必须保留、哪些明确不要。描述用的是设计语言,不会往代码开发或者数据库的方向扩。
/enhance 命令
插件同时注册了一个 /enhance 命令,比如:
/enhance 帮我写个登录页
不过命令返回的是命令结果,不会动输入框里的文字。想在输入栏里原地改写,用按钮就行。
接口
按钮背后调用的是插件自己的 POST /api/enhance-prompt:
{ "input": "要增强的提示词", "mode": "work | code | design" }
mode 只认 work、code、design 三个值,传别的都按 work 处理。成功时返回 { "text": ... },出问题时返回对应的 error 和 4xx/5xx 状态码。
实现上的一些事
改写请求走的是你当前会话里选的默认模型,参数是 temperature 0.2、maxTokens 800。推理档位不跟输入栏里的选择走:改写是一段短文本,会自动用这个模型提供的最低档,避免高推理档把时间耗在看不见的思考上。系统提示词和用户提示词是内置的改写模板,会再按所选模式在末尾追加一段收束说明。
有两点是刻意保证的:改写结果严格跟随你的输入语言——中文进中文出,中英混排就保持混排,不会自作主张翻译成单语;另外插件只增强你的提示词,不会替你回答里面的问题,也不会把整份主对话模板塞进请求。
按钮注册在 conversation.input.right 插槽上,由插件自己的前端入口渲染,没有改动 @deepseek-ai/dsh-client-ui-conversation 里的任何东西。
项目结构
index.js 服务端入口:注册 /enhance 命令和 /api/enhance-prompt 接口
lib/client.js 前端入口:在输入栏右侧渲染模式菜单和增强按钮
cordis.patch.yml 安装补丁:把插件自动加进 web profile
许可
MIT
titanwings/distilly
YuJunZhiXue/dsh-purge
Clearailhc/clearai-dsh
yejiming/MuseAI
superdesigndev/superdesign-skill
Miaotofu01/Study-Mate