dsh-prompt-optimizer
One-click prompt enhancement and structuring plugin for DeepSeek Harness (DSH)
- Stars
- 0
- Language
- TypeScript
- Created
- Aug 29, 2026
- Updated
- Aug 29, 2026
Introduction
dsh-prompt-optimizer
✦ One-Click Prompt Enhancement and Structuring Plugin for DeepSeek Harness (DSH)
一键提示词结构化增强与润色插件,无缝集成至 DSH 输入框
English | 中文说明
English
✨ Features
- Seamless Composer Integration: Injects an elegant
✦sparkle button directly into the DSH composer tool row (conversation.input.rightslot), matching the native design system. - Smart Prompt Structuring: Instantly turns short, vague, or casual ideas into professional, structured instructions with objectives, key details, execution steps, and constraints.
- Automatic Domain Intelligence:
- 🎬 Video & Script Creation: Generates high-retention 3-second hooks, narrative pacing, and storyboard editing tips.
- 💻 Coding & Architecture: Enforces environment specifications, API interfaces, boundary tests, and error handling.
- 🎯 Universal AI Directives: Formats any daily prompt into a production-grade instruction.
- Session Model Sync: Automatically leverages the currently active model in your session (MiniMax, DeepSeek, Claude, etc.) without extra configuration.
- Keyboard Shortcut: Press
Alt + Oto optimize instantly without clicking. - One-Click Revert (Undo): Revert back to your original input at any time with a single click or by pressing
Alt + Oagain within 15 seconds.
📦 Installation
In your DSH environment:
# Add plugin to your web profile
dsh plugin add dsh-prompt-optimizer
# Or install from GitHub
dsh plugin add git+https://github.com/lokih1028/dsh-prompt-optimizer.git
Then start DSH:
dsh web
中文说明
✨ 核心特性
- 原生输入栏嵌入:无缝注入至 DSH 官方输入栏右侧槽位(
conversation.input.right),完全遵循 DSH 官方设计规范与主题配色。 - 一键结构化重构:将简短或粗略的一句话需求,秒级重构为包含【任务目标】、【核心要求】、【分步执行路径】与【输出约束规范】的高质量专业指令。
- 垂类场景智能识别:
- 🎬 影视解说与视频文案:自动补齐黄金前3秒吸睛 Hook、情绪递进叙事节奏、分镜剪辑提示点与爆款标题方案。
- 💻 代码与架构开发:自动补充技术栈约束、接口规范、边界测试与异常处理逻辑。
- 🎯 通用任务结构化:全面提升各类日常问答与 Agent 执行任务的准确度。
- 会话模型自动联动:自动感知并使用当前会话激活的模型(如 MiniMax M3、DeepSeek-V3 等),无需单独配置密钥。
- 快捷键支持:随时按下
Alt + O快捷键极速触发优化。 - 防误触一键撤销(Undo):优化后 15 秒内再次点击或按快捷键,可一键还原至修改前的原始内容。
📦 安装使用
在 DSH 项目根目录下执行:
# 通过 DSH 插件管理器添加
dsh plugin add dsh-prompt-optimizer
# 或直接通过 GitHub 仓库安装
dsh plugin add git+https://github.com/lokih1028/dsh-prompt-optimizer.git
启动 DSH Web 界面:
pnpm dsh web
刷新浏览器页面后,在输入框右侧即可看到 ✦ 优化按钮。
📄 License
MIT License © 2026 lokih1028