证据快照复核于 2026-09-10GitHub 数据核对日期: 2026-08-21
证据已验证Plugin Bundle记忆与上下文Web Profile

DSH Prompt Library

用于保存、检索、插入、润色可复用提示词,并可将其转为 Skill 的 DSH Web 插件。

快速了解

它能做什么

用于保存、检索、插入、润色可复用提示词,并可将其转为 Skill 的 DSH Web 插件。

本站提供的是中文说明,不代表该项目或 Plugin 自身提供中文界面;语言支持请以上游文档为准。

使用场景
记忆与上下文记忆个性化配置
适配技术
deepseek-harnessWebnodejsreact
兼容性

Web Profile
Not declared in supplied evidence

可信度与状态

证据已验证
核对日期 2026/9/10 UTC 13:58

有代码证据的贡献

它为 DSH 增加什么

提示词库面板与聊天控件

为 DSH Web 聊天界面添加提示词库面板、# 选择器和 AI 润色控件。

机制证据
提示词转 Skill 生成

可从选中的已保存提示词生成关联的 DSH Skill,并推断英文名称和描述。

机制证据

选择前先看

该插件在 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

查看 commit 1af79df 对应的 README
维护者编写的上游内容原文于 2026/9/10README.md 获取,正文和仓库相对媒体固定到 commit 1af79df60c87,内容哈希为 60bc8d232cf6。以下是未经 DSHub 翻译的上游原文,语言可能与当前页面不同;第三方托管的 badge 可能独立更新。
<div align="center">

🇨🇳 中文 | 🌐 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-name in 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

1787652137511178765219211517876522013021787652209555

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

检查兼容性证据

风险事实

local_data_storage

Stores prompts, AI diagnostic logs, and persona configuration under ~/.dsh/prompt-library/.

证据
file_overwrite

Regenerating a Skill for the same prompt overwrites its existing ~/.dsh/skills/<name>/ directory.

证据
证据与编辑审查Manifest、Bundle patch、分发与新鲜度

不可变证据

审查状态与源码活动

AI 已审查

评审时请使用固定提交的 Git 源码;README 中的功能和存储描述应视为发布者声明,而非运行测试结果。

AI 审查于 2026/9/10 UTC 13:59GitHub 事实核对日期: 2026/9/10 UTC 13:59

自当前证据基线以来,没有记录到重要源码变化。

下一步

按 Plugin 安装流程操作

订阅重要变化: DSH Prompt Library