AntMan-xtalgh/dsh-prompt-enhance ↗★ 0

dsh-prompt-enhance

重写粗糙草稿为结构清晰的提示词 适合需要优化提示词质量的用户,需手动配置模型和通道。

包名
dsh-prompt-enhance
兼容性
待验证
版本
1.0.0
许可证
MIT
最近更新
2026年10月22日

同名包的其他仓库

安装

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

Configuration

All configuration lives in the profile patch from step 3.

FieldTypeRequiredMeaning
providerstringyesProvider route id, e.g. moxing, deepseek-official
modelstringyesModel id on that route, e.g. deepseek-flash-1017

Both must be set together. ctx.llm.listProviders() reports provider ids but not their models, and the session's own resolved route is not exposed to plugin code — so this pair cannot be auto-detected. See Known limitations.

The rewrite instruction is a constant in index.js (SYSTEM_PROMPT). Fork and edit it if you want a different rewriting policy — for example, always produce English, or always emit a bullet list.


Usage

  1. Type anything into the composer — a fragment, a garbled sentence, a rough plan.
  2. Click ✨.
  3. Wait a moment. The draft is replaced in place with the rewrite.
  4. Edit it if you want, then send as usual.

Notes:

  • The draft is replaced, not appended. Undo (Cmd+Z) restores the original.
  • Multi-line drafts are flattened for the model call, because a command line may not contain line breaks. Line breaks are collapsed to single spaces, not dropped.
  • An empty draft does nothing except show a short hint.
  • The button is per-session. Each session has its own composer and its own button state.
  • Concurrent sends are safe — if a submission is in flight, the button is disabled rather than racing it.