快速了解
它能做什么
用于保存、检索、插入、润色可复用提示词,并可将其转为 Skill 的 DSH Web 插件。
本站提供的是中文说明,不代表该项目或 Plugin 自身提供中文界面;语言支持请以上游文档为准。
Web Profile
Not declared in supplied evidence
证据已验证
核对日期 2026/9/10 UTC 13:58
选择前先看
该插件在 DSH Web 聊天栏中加入“提示词库”按钮和 # 触发方式。你可以按标题、正文和标签管理提示词,搜索后追加到草稿、覆盖草稿,或填写变量后直接发送。它还提供 AI 润色、可选自动学习、由用户维护的 SOUL.md 人格参考,以及批量将提示词生成 DSH Skill 的功能。
适合谁
适合经常复用结构化提示词、希望在本地沉淀和持续改进提示词的 DSH Web 用户。
常见任务
- 沉淀带标签、可搜索的常用提示词。
- 将保存的提示词追加到草稿、覆盖草稿,或填写模板变量后发送。
- 在聊天中输入 #,快速筛选并选择已保存提示词。
- 从选中的提示词生成关联 DSH Skill,供后续斜杠命令或模型匹配使用。
权限与数据
提供的文档说明插件会在本地保存提示词库并记录 AI 诊断日志;未说明网络目标或凭据要求。
权限- 会在 ~/.dsh/prompt-library/ 下写入本地 SQLite 提示词数据和配置。
- 会在 ~/.dsh/skills/<name>/ 下写入生成的 Skill。
- 提示词存储于 ~/.dsh/prompt-library/db/prompts.db 的 SQLite 数据库。
- 每日 AI 诊断日志存储于 ~/.dsh/prompt-library/log/。
- 用户维护的 SOUL.md 人格文件存储于 ~/.dsh/prompt-library/character/。
- 为同一提示词重新生成 Skill 会覆盖对应 Skill 目录。
- 提供的证据未声明外部服务端点。
- 提供的证据未声明凭据要求。
局限
- 已验证固定 Git Bundle,但提供的分发检查未找到指定 npm 包版本。
- 提供的证据未声明 Harness 版本范围。
- README 描述了 AI 润色、自动学习和生成 Skill,但本记录未实际运行验证。
- 包清单要求 Node.js >=22.19;peer 依赖包括 Cordis、React,以及可选的 dsh-llm/react-dom。
DSHub 已核对
- 该包是 MIT 许可的 DSH Bundle,已验证的 patch 会将 @sunjuntao/dsh-prompt-library 以 prompt-library 名称插入配置。
- 包声明了 Web 客户端注入和 Node.js >=22.19。
- 已在提供的固定提交上验证不可变 Git Bundle 路径。
DSHub 未核对
- 未演示在 DSH Web Profile 中成功安装或运行。
- 未演示 @sunjuntao/dsh-prompt-library 0.13.2 的 npm Registry 可用性。
- 未演示实际运行行为、AI 行为或与特定 Harness 版本的兼容性。
固定版本安装
安装 DSH Prompt Library
这个Plugin Bundle没有 DSH Plugin 安装操作,请根据源码文档使用真实交付方式。
维护者原文
项目 README
🇨🇳 中文 | 🌐 English
</div>dsh-prompt-library
DSH (DeepSeek Harness) prompt library plugin: provides prompt management, AI polish and persona customization in the chat bar, helping you accumulate, reuse and continuously improve prompts.
The plugin treats conversation-level prompts as its core. Every feature is designed around this capability, while other auxiliary features are just a bonus. We warmly welcome users to share ideas and suggestions, and will keep iterating based on them.
Key Features
Prompt Library
- Manage frequently-used prompts (title + body + tags), with search, sorting, tag grouping and usage-count statistics
- The right panel shares the same style as the host's left sidebar, automatically squeezing and shrinking the chat area, freely toggling between expand/collapse
- Insert: appends to the existing content in the input box
- Overwrite: directly replaces the whole draft with this prompt
- Insert & Send: fills in template variables and sends with one click (uses the variable dialog when it contains
{{}}); outside#scenarios it is only available when the draft is empty, avoiding accidentally carrying existing content; when triggered by#, the trigger word is filtered out while the preceding text is kept and sent along - Type
#to quickly trigger selection with real-time filtering - The bottom shows the total number of tags and prompts in real time
Generate Skills
- Select prompts under "Prompt Library → Import/Export" to generate DSH Skills in batch
- AI generates an English skill name and description from the prompt content; the skill is written to
~/.dsh/skills/<name>/SKILL.md, and can be triggered by typing/skill-namein the chat box, or auto-matched by the model from the description - A link between the prompt and the skill is created automatically; regenerating the same prompt overwrites the original skill directory instead of adding endlessly
- If the body contains
{{variables}}, the "placeholder auto-fill" capability is marked at generation time — when using the skill, AI infers and fills them automatically from the current semantic context, no manual input needed
AI Polish
- The "AI Polish" button in the chat bar optimizes text with one click, then replaces it back into the input box with one click
- The polishing process follows the constraints of the persona file
Persona (AI read-only reference)
Each AI call and the whole chat session are constrained by a single SOUL.md persona file to form a stable assistant persona. The file is generated from a default template and rebuilt automatically if deleted; its content is manually maintained by the user, and AI only reads it without modifying it on its own.
| File | Meaning | Purpose |
|---|---|---|
SOUL.md |
Persona | Identity, tone/personality, working rules |
- Automatically learn input content into the prompt library, with AI smart-refining titles, tags, summaries and bodies
- The persona file is the user's explicit configuration (including the default template), and AI follows its personality, tone and working rules accordingly
Settings
Under DSH Settings → Prompt Library, adjust: auto learning, manual confirmation, AI smart polish, panel size, sidebar, button visibility, # triggering, etc. Changes take effect immediately.
Data Storage
The library uses SQLite (node:sqlite); all other configs and logs are stored under ~/.dsh/prompt-library/:
~/.dsh/prompt-library/
├── db/prompts.db # prompt library (SQLite)
├── log/
│ └── ai-YYYY-MM-DD.log # AI diagnostic logs (per-day files)
└── character/ # persona file
└── SOUL.md
Installation
dsh plugin --profile web add @sunjuntao/dsh-prompt-library
Usage
Start dsh web, click the "Prompt Library" button in the chat bar to open the panel, or type # to trigger it quickly; click "AI Polish" to polish your input with one click.
Development / Build
npm install
npm run deploy # type check + build + sync to DSH (restart dsh web to take effect)
Screenshots




Author
master1Sun
有意识地管理
安装与管理
前置条件与目标 Profile
目标: Web Profile
交付方式: Git Bundle — master1Sun/dsh-prompt-library#1af79df60c871f6c61388b8e483d7b906b81aa7e。
验证、更新与移除
显示生命周期命令
dsh plugin --profile web list兼容性与访问范围
DSH web bundle; Node.js >=22.19 declared: Not declared in supplied evidence。
风险事实
证据与编辑审查Manifest、Bundle patch、分发与新鲜度
不可变证据
审查状态与源码活动
评审时请使用固定提交的 Git 源码;README 中的功能和存储描述应视为发布者声明,而非运行测试结果。
AI 审查于 2026/9/10 UTC 13:59。GitHub 事实核对日期: 2026/9/10 UTC 13:59。
自当前证据基线以来,没有记录到重要源码变化。