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
AI 분석
适合团队统一提示词风格的使用场景,提升反复提问一致性。需通过插件配置启用。
설치
검증된 bundle이 없거나 호환성 검사에 실패했습니다. 먼저 저장소 설명을 읽어 주세요. 전체 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 | 三个能力面的开关 |