sun04222/dsh-prompt-enhance ↗★ 0
dsh-prompt-enhance
Prompt enhancement for DeepSeek Harness: a composer button and an enhance_prompt tool that rewrite a draft into a clearer, more specific prompt, following the same rules as WorkBuddy's enhance-prompt feature. 适合需要将草稿快速润色为具体、清晰提示词的用户。
同名パッケージの別リポジトリ
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:sun04222/dsh-prompt-enhanceドキュメント
README 全文を読む ↗3.3 Web 通道(输入框按钮使用)
POST /prompt-enhance,content-type: application/json,请求体 { "text": string, "model"?: string },响应体就是 §3.2 的同一个信封(HTTP 200)。信任检查委派官方 connection.requestRejection,缺席或抛错一律 fail-closed;非 POST 返回 405,坏 JSON 返回 400。
7. 配置
cordis.patch.yml 的 config(全部可选):
- insert:
- id: dsh-prompt-enhance
name: 'dsh-prompt-enhance'
config:
provider: '' # 默认模型 provider;空则用当前默认模型
model: '' # 默认模型 id;空则用当前默认模型
timeoutMs: 60000 # 单次补全墙钟上限(毫秒)
路由优先级:工具参数 model > 配置 provider+model > 当前默认模型。