shellpower96/dsh-prompt-optimizer ↗★ 0

dsh-smartprompt

将草稿重写为结构化提示词的按钮 适合需要根据工作区规范自动优化、重构输入框提示词的用户。

套件
dsh-smartprompt
相容性
待驗證
版本
0.1.0
授權
MIT
最近更新
2026年10月17日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:shellpower96/dsh-prompt-optimizer

Configuration

Every value is read from the row's config; the plugin reads no environment variables and no settings module of its own. Invalid values throw at activation with the field name.

FieldDefaultMeaning
enabledtrueMaster switch; false registers nothing
maxDraftChars4000Reject longer drafts instead of sending them to the model
contextChars8000Total character budget for the project-facts block
maxOutputChars400Character cap for the optimized prompt, defined in Chinese characters; the English ceiling scales to 1.8x. The meta prompt targets 75% of it, so the hard cap only trims a runaway answer
timeoutMs120000Per-call timeout
docs["AGENTS.md","README.md"]Workspace-relative documents read as facts, in order; missing files are skipped, absolute paths and .. are rejected
includeGoaltrueInclude the session's current goal in the facts block
systemPromptLocale"auto"Language of the meta prompt: auto follows the draft's script, zh/en force one. The produced prompt always follows the draft's language