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
安装
此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗
说明文档
阅读完整 README ↗使用方式
Web GUI
- 快速使用:输入框工具行点击「🔍 提示词库」→ 搜索/浏览 → 点击条目 → 填写变量 → 「填入输入框」。
- 管理:设置 → 提示词库 → 新建/编辑/删除/置顶/收藏,编辑器中可直接维护分类、标签与变量声明。
斜杠命令
/prompt # 用法帮助
/prompt list # 列出提示词(置顶在前)
/prompt search 代码评审 # 关键词搜索
/prompt code-review language=go # 渲染模板(变量=值)
Agent 工具
模型在需要时可以自己调用:
prompt_search(query?, limit?)— 检索提示词库,返回条目元信息与所需变量prompt_get(name, variables?)— 加载模板、代入变量,返回渲染后的文本与缺失变量
配置
配置写在插件 entry 的 config 中(即 cordis.patch.yml 里该插件的行内配置,见上文示例):
| 字段 | 默认值 | 说明 |
|---|---|---|
providerName | filesystem | 在 ctx.prompts 上注册的提供者名称 |
dshHome | $DSH_HOME / ~/.dsh | DSH 配置根目录 |
customPromptDirs | [] | 额外的提示词目录 |
watch | true | 监听目录变化并实时刷新目录 |
watchUsePolling | false | 使用轮询而非原生文件事件 |
watchStabilityThresholdMs | 200 | 文件事件防抖窗口 |
maxSearchResults | 10 | 单次 prompt_search 返回上限 |
maxListEntries | 50 | /prompt list 显示上限 |
collectCacheMaxEntries | 128 | 目录缓存条目上限 |
enableTools / enableCommands / enableRpc | true | 三个能力面的开关 |