dshbase

插件目录 / Developer / dsh-prompt-library

dsh-prompt-library

已验证 · 实测可装 master1Sun

✓ 持续维护 2 位贡献者 基于 2 个官方 DSH 包 纯 TypeScript

查看 GitHub ↗ ← 返回插件目录

11Stars
2Forks
1未关闭 issue
TypeScript语言
2026-09-10最近推送
跨平台平台

功能简介

DSH(DeepSeek Harness)Web 插件:在 composer 工具栏注入一个「提示词库」按钮,管理可复用的 prompt 片段,点击即可插入当前输入框。支持自动学习:输入复杂 prompt 文案时,插件会自动识别并保存到提示词库。

✅
我们的评价
可用 — 实测通过,早期项目

DSH(DeepSeek Harness)Web 插件:在 composer 工具栏注入一个「提示词库」按钮,管理可复用的 prompt 片段,点击即可插入当前输入框。支持自动学习:输入复杂 prompt 文案时,插件会自动识别并保存到提示词库。 实测能干净安装、正常启动。早期项目,但功能可用。

「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

README

🇨🇳 中文 | 🌐 English

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

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-prompt-library」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:master1Sun/dsh-prompt-library

Headless(CLI)profile:

dsh plugin --profile headless add github:master1Sun/dsh-prompt-library

实测报告

验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。

安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Developer 里更多

浏览全部 7819 个插件 →