DeepSHPlugins
dsh-prompt-library 项目预览
GITHUB / COMMUNITY PROJECT

dsh-prompt-library

工具与集成JavaScriptMIT

DSH提示词库插件:支持提示词增删改查、分类标签、导入导出、AI智能优化、选中文本一键剪藏,附带侧边栏与词库助手气泡提醒。

10 Starsmaster1Sun 更新时间 2026-09-09
访问 GitHub 仓库
dsh-prompt-library 项目预览
dsh-prompt-library 界面截图dsh-prompt-library 界面截图dsh-prompt-library 界面截图dsh-prompt-library 界面截图

项目介绍

中文

DSH提示词库插件:支持提示词增删改查、分类标签、导入导出、AI智能优化、选中文本一键剪藏,附带侧边栏与词库助手气泡提醒。

English

DSH Prompt Library plugin: prompt CRUD, tags & categories, import/export, AI polish, one-click clip selected text, sidebar and assistant bubble reminders.

项目信息与收录信号

快照 2026-09-11
作者 / 组织
master1Sun
仓库
master1Sun/dsh-prompt-library
GitHub Stars
10
Forks
1
开发语言
JavaScript
许可证
MIT
最近推送
2026-09-09
Manifest
数据中检测到声明

公开仓库不自动等于可商用;许可证与当前兼容性以原项目文档为准。Manifest 和数据评分不构成安装安全认证。

数据评分

79/ 100
维护活跃
99
文档与实用信息
100
生态关注度
32
安装便捷信号
100
项目声明信号
100

近 2 天仍在更新;README 含完整安装与使用说明;标准命令一键安装。

评分来自已有数据快照的五维模型,仅作浏览参考,不是实际使用评测或安全检测结论。

安装与使用

所有项目资料与许可均以对应 GitHub 仓库为准。

dsh plugin --profile web add "https://github.com/master1Sun/dsh-prompt-library/releases/download/v0.9.1/dsh-prompt-library-0.9.1.tgz"

复制命令不会自动执行。请先阅读仓库文档,确认环境要求与许可证。

项目截图

仓库 README

GitHub 原文

已保存的仓库文档快照;文档抓取时间未记录,可能与上方目录介绍处于不同版本。安装前请核对当前仓库说明。

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

FileMeaningPurpose
SOUL.mdPersonaIdentity, 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

使用前核对

安装步骤、兼容版本与授权范围以原项目当前文档为准。Stars 和评分是快照中的导航信号。

安装与排错 · 项目问题反馈

同类项目