DSH Plugins Marketplace

DSH Plugins

Plugins

/

Development & Infrastructure

/

dsh-office-desk

d

dsh-office-desk

Manifest valid

Office template shelf under the composer: 14 Chinese office briefs (request, notice, meeting minutes, weekly report, briefing outline) whose text is appended at the caret, keeping the draft you alread

UI (client)hasBundlePatch

办公台 · Office Desk

输入框下方的一叠中文办公模板。点开一条,点击「填入输入框」,模板正文就追加在光标处(不覆盖你已经写的内容)。

它不是文档生成器,而是"开口之前那二十秒"用的东西:把"帮我写个请示"变成一份把每个空都点出来的委托书。

安装

dsh plugin --profile web add @caoxiaoa/dsh-office-desk

或在 Harness 的 设置 → 插件 → 插件市场 里搜索 "office desk" 安装。装完刷新页面,输入框下方会出现 ✎ 办公台。

卸载:dsh plugin --profile web remove @caoxiaoa/dsh-office-desk。

交互

  • 收起态:输入框下方 ✎ 办公台 · 14 条模板。
  • 展开态:顶栏「办公台 + 搜索框 + ✕」,下接分组列表,按需折叠。
  • 点一条 → 展开正文预览(可滚动)+ 填入输入框 / 复制 + 字数。
  • 最近用过的 6 条会自动排到最前(localStorage,键 dsh.office-desk.v1)。
  • Esc 收起;搜索同时匹配标题、说明和正文。

填入走 InputActions:captureInsertion() 取当前选区的 revision 守卫,insertText(text, span) 原子插入;编辑器已锁或草稿已变时返回 false,此时退回剪贴板并提示。

为什么是"指令"而不是"空文档"

在对话里插一份无内容的公文骨架,你还得自己动笔;插一条写清结构、语体、字数,并要求"缺信息先问我、不许编数字"的指令,模型一次就能给到能改的稿子。所以每条模板都是任务书,【】 是必须由你填的空。

收录的 14 条

分组模板
公文起草请示 · 通知 · 函 · 情况说明 · 会议纪要
汇报材料汇报提纲 · PPT 单页文案 · 领导口径(三句话/一分钟/被追问) · 指标异动解释
项目协同项目周报 · 待办拆解 · 需求变更说明
日常沟通催办跟进 · 对外回复

兼容性

  • 只用到一个挂载点 conversation.composer.dock 与主题令牌(--dsw-alias-*),不依赖任何官方包,因此没有 peer 依赖,也不会因 core 版本升级而 ERESOLVE。
  • 浏览器端只 require('react')(模块表提供),不加载其它 Harness Client 包。
  • 已在 dsh 0.2.0-rc.2(web profile)上安装并验证 slot 注册。

结构

package.json         清单(dsh.bundle / dsh.client / icon / locale)
cordis.patch.yml     插入一行 id: office-desk
index.js             Host 半边:export function apply() {}
client.js            Client 半边:模板表 + slot 组件 + 填入逻辑
locale/{zh,en}.json  插件管理页标题与描述
icon.svg             插件图标(管理器内使用)
assets/icon-180.png  市场卡片图标(位图)

想改的话

  • 加/改模板:TEMPLATES 数组,字段 id / cat / title / hint / body;cat 取 doc | report | project | talk。
  • 改分组名:CATS。
  • 只想当"公文骨架"用:把某条 body 直接换成正文骨架即可,组件不关心内容形态。

License

MIT

Comments

Loading…

Similar plugins

dsh-file-to-chat

by feifiefei

DSH right-sidebar file helper: annotate a selection in the document preview (text lines / Excel ranges / Word-PDF pages) or right-click a file, then send the quote plus your note into the current chat

Manifest valid

★ 0

MIT

JavaScript

Oct 19, 2026

dsh plugin --profile web add dsh-file-to-chat

by drscrewdriver

A dsh-better-sidebar tab that renders a session brief — a todo board read from the `todos` projection plus a deliverables section listing the files written this turn — and hides the official todo pane

Tools & CapabilitiesUI & ExperienceSessions & MessagesManifest valid

★ 5

↓ 954/wk

NOASSERTION

JavaScript

Nov 18, 2026

dsh plugin --profile web add dsh-brief-sidebar

Work todo reminders in a sidebar panel with four stage tabs (not started, in progress, overdue, done) plus separate recurring and paused filters, priority derived from the end time in real time, pinni

UI & ExperienceManifest valid

★ 0

dsh plugin --profile web add dsh-todos-diy

by Kaiji-Z

An RTS-style orchestration dashboard where commands replace chats: a resident commander agent decomposes each order into task briefs with acceptance criteria, typed subagent troops (recon/engineer/med

Workflow & AutomationManifest valid

★ 3

↓ 534/wk

MIT

TypeScript

Nov 12, 2026

dsh plugin --profile web add dsh-plugin-stardeck

Scheduled DSH tasks: each topic keeps its own folder and task-detail file, runs by cron or manually, and renders a timestamped PNG or PDF report that can be pushed to Lark.

Workflow & AutomationManifest valid

★ 1

MIT

TypeScript

dsh plugin --profile web add dsh-atan-daily

by JayYuen666

Two buttons beside the chat input: one rewrites the draft with the current directory in view, the other inserts a role template from 85 curated entries generated from the bundled `agents/` role librar

UI & ExperienceManifest valid

★ 0

MIT

TypeScript

Nov 8, 2026

dsh plugin --profile web add @jayyuen66/dsh-dir-prep-organize