dsh-prompt

uitested: passnpmMIT

🌹 Save every repetitive, tiresome templated prompt — one mouse click injects it into the composer and spares you the effort.

下载量 / Downloads
10,101
依赖体积 / node_modules
9.77 MB
测试时间 / Tested
2026-11-06
DSH 版本 / Version
0.2.2-rc.1

Install

dsh plugin --profile web add dsh-prompt

Sandbox test results

StageResult
1 install✓
2 list✓
3 mount✓
4 boot—

Four stages run in an isolated sandbox: install (network on) → list → mount → boot (last three with no network).

README

<h1 align="center">dsh-prompt</h1>

<div align="center">

中文 · [English](docs/README.en.md)

将所有重复的Prompt变成模板。<br>

点击一下即可注入到对话框中。

你的 ⭐ 是我夜空中最亮的星。

Stop copy-pasting — one click, template in chat.

![版本](https://www.npmjs.com/package/dsh-prompt) ![下载量](https://www.npmjs.com/package/dsh-prompt) ![最近更新](https://github.com/FeatherHunter/dsh-prompt/commits/main) ![提交数](https://github.com/FeatherHunter/dsh-prompt/graphs/commit-activity) ![期待你参与](https://github.com/FeatherHunter/dsh-prompt/issues)

</div>

<div align="center">

安装 <sub>INSTALL</sub>

</div>

<div align="center">

前置要求:DSH(DeepSeek Harness)。

</div>

# ① 安装 DSH CLI(已装跳过)
npm install -g @deepseek-ai/dsh

# ② 安装 dsh-prompt —— --profile 必填:装进你实际使用的 DSH 入口对应的 profile
#    (装错 profile 等于没装,重启多少次都不会加载)
dsh plugin --profile web add dsh-prompt     # 用自启 web 服务(dsh web)
#     或者
dsh plugin --profile desktop add dsh-prompt   # 用 DSH Desktop 桌面应用
# 锁定最新版更稳(当前 0.4.41):
dsh plugin --profile web add dsh-prompt@0.4.41 --registry https://registry.npmjs.org
#     或者
dsh plugin --profile desktop add dsh-prompt@0.4.41 --registry https://registry.npmjs.org

<div align="center">

安装完成后重启一次DSH。

👇 装完重启,输入框左侧多出这枚按钮就是成功。

<img src="assets/readme/01-install-ready.png" width="720" alt="安装成功后输入框左侧的 Prompt 按钮" style="border:1px solid #30363d;border-radius:6px">

</div>

<div align="center">

入口一<br>Prompt 按钮

</div>

<div align="center">

鼠标移到输入框左侧的「Prompt」按钮,列表自动展开——官方预置模板和我们自定义的模板都能看到。

👇 按钮一点,面板长这样。

<img src="assets/readme/02-panel-button.png" width="640" alt="Prompt 按钮悬浮面板:范围与标签筛选、模板列表、底栏一键屏蔽预制模板" style="border:1px solid #30363d;border-radius:6px">

点底栏「屏蔽预制模板」,屏蔽官方预置Prompt;再点「展示预制模板」解除屏蔽。

不想鼠标划过就展开?点底栏「当前:悬浮触发」(或设置面板里的「触发方式」行右侧按钮),此后只有点击按钮才开合,鼠标偶然划过不再闪烁;按钮变成「当前:点击触发」即是已切过去,再点切回。

</div>

<div align="center">

入口二<br>/prompt 触发源

</div>

<div align="center">

只敲一个 / 不再列出模板,命令菜单保持干净;敲 /prompt 或者 /p 才看到全部模板。<br>

/prompt 后面继续输入可以缩小范围(如 /prompt复盘;不要加空格,宿主遇到空格会关掉菜单)。

👇 /prompt 看到全部模板。

<img src="assets/readme/03-trigger-prompt.png" width="640" alt="/prompt 触发源:模板名 + 标签 + 正文开头的候选列表" style="border:1px solid #30363d;border-radius:6px">

</div>

<div align="center">

设置面板<br>SETTINGS

</div>

<div align="center">

👇 设置面板提供各种功能。

<img src="assets/readme/05-templates-gallery.png" width="640" alt="模板一览:设置页中的 24 条预制模板" style="border:1px solid #30363d;border-radius:6px">

</div>

<div align="center">

自定义与管理<br>CUSTOM

</div>

<div align="center">

👇 新增自定义Prompt提示词模板:名称、标签、文字颜色、正文 全部可以DIY。

<img src="assets/readme/06-custom-manage.png" width="560" alt="自定义管理:新增自定义模板弹窗(名称、标签、文字颜色、正文)" style="border:1px solid #30363d;border-radius:6px">

正文会按你写的原样保留:换行都在,包括开头和结尾的空行(只忽略首尾的空格与制表符)。想让插入后的光标停在指定位置,就在正文里放 {{cursor}}——只认第一个,其余会被删掉。不带标记时,光标落在插入文本之后;/prompt 斜杠插入只去掉标记、不移动光标。插入后按一次撤销,可能先撤销「落光标」那一步(会看到标记文本回来),再按一次才撤销插入。另外,字面 {{cursor}} 这串字符本身暂时无法表达——把它写进正文,它就会被当作光标标记。

👇 文字颜色可以修改,支持文字描边。

<img src="assets/readme/07-custom-manage-color.png" width="560" alt="文字颜色浮层:60 色可选、默认跟随主题、文字描边开关" style="border:1px solid #30363d;border-radius:6px">

👇 自定义提示词:可配置文字颜色。

<img src="assets/readme/02-panel-button-only-custom.png" width="640" alt="Prompt 按钮悬浮面板:预制模板已收起,只显示自定义模板" style="border:1px solid #30363d;border-radius:6px">

</div>

<!-- MORE-START -->

<div align="center">

作者的其他作品 <sub>MORE</sub>

</div>

<div align="left">

喜欢这个插件的话,这些可能你也用得上:

dsh-mattpocock-skills-deck —— 近 30 万 star 的 mattpocock/skills 整套预置好(27 个技能),装好即用。

dsh-opencode-palette —— 38 款 opencode 经典配色 + 20+自定义主题 一键换装 DSH。

dsh-im-companion —— 给 dsh-im 加了「助理」和「家」的概念。

ilife —— ⚠️建设中⚠️爱生活:居家生活套件,记账、运动、饮食、体重、食谱、物品管理、作息规划、备忘录等。

</div>

<!-- MORE-END -->

<div align="center">

致谢 <sub>THANKS</sub>

</div>

<div align="left">

有任何问题、建议、想法、IDEA、灵感、随谈:欢迎提交 ISSUE🌹

感谢每一位提交 Issue、PR 与Star的朋友,是你们让这个工具箱一点点变好。万分感谢!🎉🎉🎉🎉🎉🎉🎉🎉🎉

<!-- THANKS-TABLE-ZH-START -->

贡献者 · 致敬 · 贡献

@wqzhellohhwy · 🌹🌹🌹 · #146 #147 #148

@zuojinxin · 🌹🌹 · #195 #196

@SunWe-success · 🌹 · #194

@minevery512 · 🌹 · #179

@kBlankii · 🌹 · #178

@dagangwo · 🌹 · #175

@jheroy · 🌹 · #165

<!-- THANKS-TABLE-ZH-END -->

</div>


<!-- CONTACT-START -->

<div align="center">

反馈与联系 <sub>CONNECT</sub>

…(truncated)

Rendered from the README published on npm. Formatted only, not edited.

Versions

Published on npm::76,最后更新 2026-11-02

Links

GitHub · Homepage · npm

Same category