qifenglun1/dsh-plugin-prompt ↗★ 0

dsh-plugin-prompt

提供侧边栏提示词模板库,支持浏览、管理和插入 适合需要高频使用、分类管理和快速输入常用提示词的用户。

套件
dsh-plugin-prompt
相容性
待驗證
版本
1.0.0
授權
MIT
最近更新
2026年10月18日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:qifenglun1/dsh-plugin-prompt

Configuration

The plugin has no Config schema and no required settings. There is no API key, token, password, endpoint, or model selection to configure.

SettingWhere
TemplatesManaged in the library panel or the template editor.
CategoriesCreated with New category or by typing a new category in the template editor.
LanguageFollows the DSH language setting (English or 简体中文).
Built-in templatesFixed in the plugin; Save as mine creates an editable copy.

Browser storage

Templates and categories are stored in the Harness Web origin's localStorage:

  • dsh.prompt-library.templates.v1 — user templates.
  • dsh.prompt-library.categories.v1 — categories that exist independently of templates. When this key is missing, categories already used by saved templates are migrated into it.

localStorage is scoped to the Web origin. A different origin, browser profile, or cleared browser storage has separate data. The plugin does not write templates to the session log, does not send them to a server, and does not read credentials. When you send a message, its text reaches your configured model through DSH as usual.

Usage

Sidebar library

  1. Click the bookmark entry in the left sidebar.
  2. Search by title, text, or category, or choose a category chip.
  3. Choose Insert to put the template into the current draft, Copy to copy it, or Save as mine to duplicate a built-in template.
  4. Use New category to create a category before it has templates.
  5. Use the back arrow in the panel header to return to the conversation.

Composer picker

  1. Click the bookmark button in the composer's left tool row.
  2. In a new, empty conversation the picker opens as a centered dialog, so the search field is always visible; in an active conversation it opens above the composer.
  3. Search for a template. Use the arrow keys to move and Enter to insert, or click a row.
  4. The template is inserted at the caret (or replaces the current selection).

Example

Create a reusable review prompt:

  1. Open the sidebar library.

  2. Choose New template.

  3. Set the title to Review a pull request, the category to Engineering, and the body to:

    Review this change for correctness, edge cases, performance, security,
    and maintainability. List issues by severity, then give concrete fixes.
    
    
  4. Save. The template appears under My templates.

  5. In any conversation, click the composer bookmark, choose the template, and it is inserted at the caret.

Empty categories

A newly created category is selected immediately. Until it has templates, the panel shows No templates in this category yet and New template in this category. That button opens the editor with the category prefilled.

Categories can be created and selected, but renaming or deleting a category is not yet supported.