1056802185/dsh-prompt-manager ↗★ 0

dsh-prompt-manager

Prompt library plugin for DeepSeek Harness: create, search, and reuse prompt templates from the Web GUI, the agent tool, and slash commands 适合团队统一提示词风格的使用场景,提升反复提问一致性。需通过插件配置启用。

Package
dsh-prompt-manager
Compatibility
Unverified
Harness peer range
^0.1.0-rc.6
Cordis peer range
^4.0.1
Version
0.1.0
License
MIT
Last updated
Aug 16, 2026

Other repositories with this package name

Install

This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full README ↗

使用方式

Web GUI

  1. 快速使用:输入框工具行点击「🔍 提示词库」→ 搜索/浏览 → 点击条目 → 填写变量 → 「填入输入框」。
  2. 管理:设置 → 提示词库 → 新建/编辑/删除/置顶/收藏,编辑器中可直接维护分类、标签与变量声明。

斜杠命令

/prompt                              # 用法帮助
/prompt list                         # 列出提示词(置顶在前)
/prompt search 代码评审               # 关键词搜索
/prompt code-review language=go      # 渲染模板(变量=值)

Agent 工具

模型在需要时可以自己调用:

  • prompt_search(query?, limit?) — 检索提示词库,返回条目元信息与所需变量
  • prompt_get(name, variables?) — 加载模板、代入变量,返回渲染后的文本与缺失变量

配置

配置写在插件 entry 的 config 中(即 cordis.patch.yml 里该插件的行内配置,见上文示例):

字段默认值说明
providerNamefilesystem在 ctx.prompts 上注册的提供者名称
dshHome$DSH_HOME / ~/.dshDSH 配置根目录
customPromptDirs[]额外的提示词目录
watchtrue监听目录变化并实时刷新目录
watchUsePollingfalse使用轮询而非原生文件事件
watchStabilityThresholdMs200文件事件防抖窗口
maxSearchResults10单次 prompt_search 返回上限
maxListEntries50/prompt list 显示上限
collectCacheMaxEntries128目录缓存条目上限
enableTools / enableCommands / enableRpctrue三个能力面的开关