Frog755/dsh-prompt-vault
Prompt Vault: 输入框上方的提示词库(DSH 插件)— 📚 按钮展开面板,点条目一键填入 prompt。DeepSeek Harness prompt library plugin.
Project Overview项目介绍
dsh-prompt-vault is a DeepSeek Harness plugin that adds a 📚 button to the input toolbar, opening a prompt list panel above the input box. Each entry shows its title and first-line preview; clicking fills the full content into the input (appending to any existing draft, not overwriting). It supports expand, search, create, edit, and delete-with-confirm actions, persisting data to ~/.dsh/prompt-library.json, overridable via DSH_PROMPT_VAULT_FILE. Two example prompts ship initially. Caveat: it targets the dsh web profile only, requires Node.js ≥ 20, and you must hard-refresh the browser (Cmd/Ctrl+Shift+R) after install or update to see the button.
dsh-prompt-vault 是 DeepSeek Harness 的插件,在输入框工具行左侧添加 📚 按钮,点开在输入框上方展开提示词列表面板,每条显示主题名与首行预览,点击即整条填入输入框(已有草稿时自动追加),支持展开、搜索、新建、编辑与二次确认删除。数据持久化在 ~/.dsh/prompt-library.json,可通过 DSH_PROMPT_VAULT_FILE 覆盖;首次使用自带两条示例 prompt。注意:仅适用于 dsh web profile,需 Node.js ≥ 20,安装或更新后必须硬刷新浏览器(Cmd/Ctrl+Shift+R)才能看到按钮。
请帮我了解并安装插件:【dsh-prompt-vault】【https://github.com/Frog755/dsh-prompt-vault】
Send this message to DSH in your current session. CLI install commands may not be accurate across systems — DSH will figure it out for you.把上面这条消息直接发给当前会话里的 DSH,让它帮你了解并安装。安装命令不一定准确,发给 DSH 更稳。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add github:Frog755/dsh-prompt-vault
把 Frog755/dsh-prompt-vault 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
@frog755/dsh-prompt-vault
English README | 中文说明
Prompt Vault —— DeepSeek Harness(DSH)输入框上方的提示词库(灵感来自 voyager 的 Prompt Vault)。
- 输入框工具行左侧 📚 按钮,点开在输入框上方展开 Prompt 列表面板
- 每条只显示主题名 + 首行预览;点条目 = 整条填入输入框(已有草稿时自动追加,不覆盖)
- ▸ 展开完整内容;支持新建 / 编辑 / 删除(二次确认)/ 搜索
- 数据持久化在
~/.dsh/prompt-library.json(环境变量DSH_PROMPT_VAULT_FILE可覆盖) - 首次使用自带两条示例 prompt(代码审查 / 中英互译),可随意编辑或删除
安装
前置:已装好 DSH(dsh web 能正常运行),Node.js ≥ 20。
npx -y --package @deepseek-ai/dsh dsh plugin --profile web add @frog755/dsh-prompt-vault
装完硬刷新浏览器(Cmd/Ctrl+Shift+R)即可在输入框工具行看到 📚 按钮。
该命令自动完成:登记依赖 → 识别包内
dsh.bundle.patch(cordis.patch.yml)→ 注册进dsh.profile.bundles挂载。插件以 npm 包发布,不修改 DSH 源码。
更新
npx -y --package @deepseek-ai/dsh dsh plugin --profile web update @frog755/dsh-prompt-vault
然后硬刷新浏览器。client 改动热加载生效,无需重启 DSH;host 半改动才需重启。
卸载
npx -y --package @deepseek-ai/dsh dsh plugin --profile web remove @frog755/dsh-prompt-vault
数据文件 ~/.dsh/prompt-library.json 会保留。
数据文件
| 项 | 值 |
|---|---|
| 默认路径 | ~/.dsh/prompt-library.json |
| 覆盖方式 | 环境变量 DSH_PROMPT_VAULT_FILE |
| 格式 | { version, items: [{ id, title, content, createdAt, updatedAt }] } |
结构
| 文件 | 作用 |
|---|---|
src/index.js |
Host 半:/__prompt-vault/list·save·delete HTTP 端点 + JSON 文件存储 |
src/client.js |
Client 半(ModuleLoader bundle):📚 按钮 + 展开面板,填入走 inputActions.setDraft |
cordis.patch.yml |
bundle patch:把 prompt-vault 行插入 profile roster |
从源码安装 / 开发(可选)
~/.dsh/profiles/web/package.json的dependencies加:"@frog755/dsh-prompt-vault": "link:C:/path/to/dsh-prompt-vault"- 在
~/.dsh/profiles/web目录执行pnpm install - 重启 DSH(新 bundle 进入 boot graph 需要 host 重启;此后只改 client.js 热刷新即可)
YuJunZhiXue/dsh-purge
yejiming/MuseAI
superdesigndev/superdesign-skill
FSMargoo/dsh-at-file
Rain-kl/dsh-preset-plus
bugmaker2/dsh-plugin-template