DSH Plugins Marketplace

DSH Plugins

Plugins

/

UI & Experience

/

dsh-composer-lists

d

dsh-composer-lists

Manifest valid

Ordered and unordered list editing in the DSH composer: automatic numbering and renumbering, marker-aware caret moves, level promotion, and an undoable AI prompt-polish button.

UI (client)hasBundlePatch

dsh-composer-lists

CI npm License: MIT

一键把粗糙的想法改写成结构化的 Agent 提示词,再把输入框变成顺手的多级列表编辑器。Turn a rough idea into a structured agent prompt in one click — plus ordered/unordered list editing in the DSH composer.

✨ AI 提示词结构化改写(核心功能)

写 Agent 提示词最耗时的不是措辞,是结构:目标、步骤、约束混成一团,模型只能猜。点一下输入框旁的 ✨,当前草稿会被改写为「一句话任务目标 + 有序步骤列表(含子层级)+ 无序约束与验收标准」的结构化提示词——正是 Agent 最容易准确执行的形态。

改写效果示例 / What the rewrite looks like:

✨ 改写前                                          改写后 ↩
帮我做个周报,要包含这周做了什么,              1. 生成本周工作周报,按项目分组。
下周的计划,还有些数据要整理一下,                 1. 汇总本周各项目进展与关键结果;
老板喜欢看图表,别太长                            2. 整理下周计划,标注优先级。
                                              - 输出包含进度图表,正文控制在 500 字内;
                                              - 只使用草稿中提到的事实,不补充假设。

工程上为「点一下就完事」做了完整闭环:

  • 一键撤销:改写完成后 ✨ 变 ↩,一键恢复原文;手动编辑过结果后撤销自动退场,绝不吞你的修改
  • 跨模型自适应:自动选用当前默认模型自己声明的最轻思考档(改写不需要推理,速度从十几秒降到 2–5 秒;模型未声明档位则自动跳过)
  • 自愈与防护:思考耗尽生成预算时自动加倍重试;请求 90 秒硬超时,优化中按 Esc 立即中止;草稿含引用/命令 chip 时自动禁用;无意义输入(过短、纯符号、复读)直接拦截
  • 透明失败:出错时明确提示原因(超时/模型拒绝/无可用模型),输入框永不锁死

列表编排(第二能力)

结构化提示词里全是列表——所以输入框本身也需要顺手的列表编辑。遵循 DSH 原生按键(Enter 发送、⌘Enter 加速发送不改动):

手势行为
Shift+Enter列表行内换行并自动续号(沿用当前行样式);空项上按 = 退出列表
Backspace光标紧跟标记后:二级及更深 → 升一级(b. →2. ,光标停在当前行);一级 → 整个标记一步删掉;空项 → 退出
← / →标记前缀作为一步跨过(标记右侧 ← 一次到行首,行首 → 一次到标记右侧)
⌘← / Home跳到行首;列表行落在标记右侧,再按到最左
Tab / Shift+Tab降 / 升一级,所在块按新层级重排样式与编号;层级改变时光标保持原字符位置
⌘⇧8 / ⌘⇧7当前行或选中行:加无序 / 有序标记;再按取消
⌘⇧B选中文本加 **粗体**(⌘B 被 DSH 菜单占用)
输入/删除/粘贴有序编号自动重排;手改编号不会被覆盖

默认六级样式:有序 1. → a. → ① → (1) → α. → 1.,无序 - * + • ○ ▪;每层可在 ⚙ 设置中自定义,缩进宽度 2/4/8 可选。手写 a. α. (3) ① 同样被识别并参与重排。

安装 / Install

dsh plugin add dsh-composer-lists

Requires dsh 0.2.1+. 已收录于 awesome-dsh-plugin 市场目录 / listed in the plugin catalog. 刷新页面生效。

AI 改写使用你当前配置的默认模型,经 Host 本地路由(POST /composer-lists/optimize)完成,不引入额外密钥或第三方服务。

开发 / Development

node test-pure.cjs   # 8000+ 断言:纯函数回归 + 确定性混沌测试
node test-host.cjs   # Host 路由集成测试(假 req/res 驱动)
node bench-pure.cjs  # 性能基准(每按键路径 <1ms)

改 client.js 后停用→启用插件即同步页面;改 index.js(Host 半)需重启 dsh。

License

MIT

Comments

Loading…

Similar plugins

dsh-composer-markdown

by chendefine

dsh-composer-markdown is an automatically discovered DeepSeek Harness plugin bundle.

UI & ExperienceTerminal & ClientsManifest valid

★ 0

MIT

JavaScript

Sep 28, 2026

dsh plugin --profile web add dsh-composer-markdown

by Chi-hong22

DeepSeek Harness Web composer markdown editing helper: Shift+Enter list continuation with ordered-list auto-renumbering and Tab indent

Terminal & ClientsManifest valid

★ 0

MIT

JavaScript

Aug 14, 2026

dsh plugin --profile web add @chi-hong22/dsh-mdbox

One-click ✨ polish button for the composer: rewrites prompts and drafts with WorkBuddy humanizer-style rules (kills AI-flavored phrasing, varies rhythm, mode-aware for instructions/questions/prose) vi

Tools & CapabilitiesManifest valid

★ 0

↓ 87/wk

dsh plugin --profile web add dsh-prompt-polish

One-button prompt optimizer: rewrites the composer draft via a configurable strategy, with an editable template, few-shot examples, pinned models and reasoning effort.

UI & ExperienceManifest valid

★ 0

dsh plugin --profile web add @panando/dsh-prompt-optimizer

by sun04222

Adds an ✦ button to the DSH composer that rewrites the current draft into a clearer, more specific prompt in the same language, with one click to restore the original, plus an enhance_prompt tool the

UI & ExperienceDevelopment & InfrastructureManifest valid

★ 1

MIT

JavaScript

Oct 27, 2026

dsh plugin --profile web add dsh-prompt-enhance

by Nihao7-L

One-click prompt rewriting in the DSH composer — keep going for up to 5 rounds, diff every change, and jump back to any version.

UI & ExperienceManifest valid

★ 3

MIT

JavaScript

Oct 28, 2026

dsh plugin --profile web add dsh-prompt-chain