npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@y1x1n/dsh-prompt-optimizer

v0.5.0

Published

DeepSeek Harness 插件:在发送栏旁一键分析并优化提示词(复用当前会话模型)。适配 dsh 0.2.0-rc.2(含官方桌面端)

Readme

🐣 小白版:三分钟用上「提示词优化」

← 返回完整中文文档 | English

这页是写给第一次接触 dsh 插件的朋友的,全程大白话,不讲技术细节。 想看完整功能说明、兼容性、测试覆盖?请回完整版 README。

目录


这是个啥?

一句话:帮你把发给 AI 的话写得更好。

你在 DeepSeek 对话框里打了一句"帮我写周报",总觉得太笼统、AI 回答不给力? 装了这个插件,输入框旁边会多一个 ✨「优化」按钮。点一下,它自动把你的话改写成一份表达清晰、要求明确的提示词,像打字机一样一段段显示出来,满意就一键替换。

它长这样:

| 输入框旁的按钮 | 点完之后的效果 | |---|---| | 发送栏空闲态 | 结果面板 |


开始前,你要有这三样东西

  1. 一台装了 Node.js 的电脑(Node 18 或更新版本)
  2. dsh 命令行 —— 就是能在终端跑 npx @deepseek-ai/dsh web 的环境
  3. 配好的模型 —— 在 dsh 网页版的 设置 → 模型 里,已经配好至少一个模型提供方(比如 DeepSeek 官方 API)

三样里缺哪样?先把 dsh 本体跑起来 —— 本插件是装在它上面的「小挂件」,本体没有它也无处安放。


三步装好

第 1 步:下载插件包

打开 Releases 页面,下载文件名形如 y1x1n-dsh-prompt-optimizer-<版本号>.tgz 的插件包。

第 2 步:安装

打开终端,进到下载文件所在的目录,运行(把 <版本号> 换成你下载的文件实际名字):

dsh plugin --profile web add ./y1x1n-dsh-prompt-optimizer-<版本号>.tgz

第 3 步:重启

关掉 dsh web 重新启动,打开网页版界面。

装好了! 输入框旁边是不是多了一个 ✨ 按钮?

也可以直接从 npm 装:dsh plugin --profile web add @y1x1n/dsh-prompt-optimizer(装完同样要重启)。

用官方桌面端(DeepSeek Harness 桌面应用)? 装法不一样:桌面应用先启动一次让它初始化,然后完全退出应用,用应用自带的 dsh 命令安装,再重新打开应用。Windows 自带命令在 E:\Deepseek-Harness\resources\runtime\cli\bin\dsh.cmd(macOS/Linux 在应用安装目录里找),命令形如:

dsh plugin --profile desktop add ./y1x1n-dsh-prompt-optimizer-<版本号>.tgz

怎么用

就三下:

  1. 打字:在输入框里随便写一句话,比如"帮我写周报"
  2. 点按钮:点 ✨「优化」
  3. 选结果:等几秒,面板会出现两段内容 ——「分析诊断」和「优化结果」
    • 觉得好 → 点 「替换输入框」,你的草稿就变成优化后的版本了
    • 不满意 → 点 「重新优化」,再生成一版
    • 点错了?→ 点 「撤回」,一键回到替换前

几个实用小开关(可选)

在设置的「内置插件」页 → 「提示词优化」里(旧版 dsh 在 设置 → 插件配置):

  • 等待时间:0.5.0 起默认就是快速模式(只要优化结果,等待约减半);想附带看「分析诊断」再切到完整模式
  • 想固定用某个模型优化? 「优化用模型」里选一个,不选就跟随当前会话
  • 优化出来的结果想换英文? 「输出语言」里切

常见小问题

多半是模型没配好。去 设置 → 模型 配好至少一个提供方,再试。 还不行就按 F12 打开浏览器控制台,找 [dsh-prompt-optimizer] 开头的红色日志,拿去提 issue。

重启 dsh web 了吗?插件装完必须重启才生效,光刷新网页不够。

重启 dsh web,然后刷新浏览器页面(建议 Ctrl+F5 强刷)。

设置卡里把「最大输出 Token」调高一点(默认 8192,最长 32768)。

更多问题看完整版常见问题。


卸载

dsh plugin --profile web remove @y1x1n/dsh-prompt-optimizer

然后重启 dsh web。


觉得好用?给仓库点个 ⭐ 就是最大的支持。有问题欢迎提 issue。