Composes a previewable prompt for an ordinary university lab report from a folder, subject, reference files, process records and a template, then fills the composer or sends it.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:REDSTONE440/dsh-exp-report-prompt
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
为 DeepSeek Harness(DSH)写的一个会生成"实验报告提示词"的小插件:把文件夹、科目、参考资料、过程记录及数据、模板和备注拼成一段完整提示词,你确认后再交给模型。 "老实写实验报告,很无趣吧。"
⚠️ 适用范围(请务必先看)
本插件仅适用于一般的大学实验报告,方便大学生写电子报告,不适合任何专业、严谨的学术实验报告生成。
- 简单来说这个插件的功能就是帮你写提示词,你只需要动动鼠标就行。
- 生成的报告是否可用,取决于你提供的模板与数据质量;课程要求、学术规范、署名与引用责任始终在你。
- 不要用它生成需要审计、复核、发表或作为实验证据的材料。
- 我仍然建议你将用到的文件都按内容命名,这会极大方便大模型工作。
它解决什么
写实验报告最烦的是"每次都要把一堆文件路径、模板要求、数据来源讲一遍",虽然用AI生成实验报告已经非常轮椅了,但是我们为什么不打通最后一公里呢? 这个插件把这件事固定成一个表单:
| 表单项 | 说明 |
|---|---|
| 实验报告相关文件所在文件夹 | 默认当前会话的工作区;也可用系统文件夹选择器另选 |
| 实验科目 | 预设下拉 + 自由输入 |
| 实验名称(可选) | 报告标题与建议文件名都会用到 |
| 本次实验内容参考资料 | PDF / Word / PPT / 图片等,可多选 |
| 本次实验的过程记录及数据 | 可多选 |
| 实验报告模板 | 单选;换文件夹时自动识别名字含「模板 / 模版 / template」的文件,也可手动「自动识别」 |
| 硬性要求 | 数据纪律(严格 / 适度 / 宽松)、图表规范(简洁 / 标准 / 精细) |
| 输出选项 | 是否在 .docx 之外同时导出一份 PDF |
| 备注及其他要求 | 可选 |
然后:
- 生成提示词,放进可编辑的预览区(默认版本可一键恢复);
- 填入输入框(你自己再改、再发送),或 填入并发送(确认一次);
- 每个选中的文件都有校验点:绿色存在 / 红色不存在 / 灰色无法校验。
表单按会话记忆在浏览器本地,关掉再开还在。
安装
方式一:插件市场 / 插件页面(Desktop 推荐)
在 DSH 的 插件 页面「添加插件」里填入本仓库地址(或包名),按提示安装。Desktop 的 desktop profile 由应用管理,命令行装不了它。
方式二:命令行(web 等自管 profile)
dsh plugin --profile <profile> add github:<owner>/<repo>
装完刷新页面(Ctrl+R)。入口在输入框下方一行,以及新会话那一行:都叫「实验报告在自己写提示词」。
本地开发
# 把目录装进一个自管 profile(改 client.js 刷新页面即可,改 index.js 需重装)
dsh plugin --profile <profile> add <本地目录>
兼容性
- 面向 DSH Web / Desktop 的 web 界面(
dsh.client.platform = "web"),带dsh.bundle清单,可直接用dsh plugin add安装。 - 已在 DSH 0.2.2-rc.3(desktop profile) 上实际运行验证;
engines.dsh声明为>=0.2.2-rc.1。 - 依赖的宿主接口:插槽
conversation.composer.dock/conversation.hero.options、ctx.locale、ctx.remote.workspaceFiles(stat、list)、inputActions.setDraft/submit、useSessions/useWorkspaces、桌面预加载桥__DSH_HOST_PATHS__。 - 不依赖任何
@deepseek-ai/*npm 包,也没有构建步骤:client.js只用宿主浏览器模块表里的react/react-dom。
限制
- 绝对路径只有 Desktop 应用能拿到(预加载桥)。普通浏览器打开同一页面时,路径按「文件夹 + 文件名」拼出并逐个校验。(建议将所有相关文件都放在工作区文件夹或者同一个文件夹里)
- 模板自动识别只能列当前工作区内的文件夹:宿主的目录列举接口限定在工作区里;工作区外会提示手动选择(把带「模板」字样的文件选进参考资料时仍会自动认领)。
- 写回工作区之外的目录需要会话具备完全权限,否则模型能读、不能写。
- 扫描版 PDF 没有 OCR;
.docx的复杂页眉页脚按"读取结构后重建"处理,不保证逐像素一致。 - 提示词是确定性模板,不保证模型一次成稿——预览区可编辑就是为此准备。
- 提示词固定用中文撰写(报告正文是中文),与界面语言无关。
隐私
选中的文件绝对路径会写进提示词并进入会话记录,模型据此按需读取本地文件;插件本身不上传文件、不联网、不读取文件内容。
目录结构
client.js 浏览器半身:表单、校验、提示词拼装、预览与发送
index.js Host 半身(无 Host 侧能力,只负责激活)
cordis.patch.yml bundle 补丁:插入插件行
locale/*.json 插件页面显示用的标题与描述
icon.svg 插件图标
test/smoke.cjs 自带冒烟测试:node test/smoke.cjs
开发与自测
node test/smoke.cjs # 装载模块、注册槽位、渲染弹窗、拼装提示词、检查文案键
English summary
Lab report prompt — a DSH web plugin that composes a complete, previewable prompt for an ordinary university lab report from a folder, subject, reference files, process records and data, a report template, and notes. It checks every picked path through the host filesystem, writes a .docx (optionally also a PDF) back to the chosen folder, and never invents missing data unless you pick a looser data-discipline level.
For ordinary university lab reports only — not suitable for professional or rigorous academic experiment reports.
Tested on DSH 0.2.2-rc.3 (desktop profile); engines.dsh is >=0.2.2-rc.1. No build step, no runtime dependencies.
License
MIT
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-task-board★ 10703
Task board for the dsh web GUI: a sidebar multi-column kanban whose cards run in real DSH agent sessions and can also be scheduled with cron expressions, executed host-side even with the browser closed.
zhu1090093659/dsh-web#packages/dsh-web-all★ 10703
Plugin and skin collection for the DSH Web UI: task board, Git graph, right-side panel, remote mobile UI, pet, live token stats, and a skin center.
ccch1mneyyy/dsh-TUI★ 8557
Claude Code-style full-screen terminal UI: pixel-whale header, live status line, and streaming thought expansion.
MeteorNOX/DeepSeek-Balance-Whale-Widget★ 7523
A fixed-corner whale widget for the DSH web GUI — balance, today's usage and per-turn cost with peak/off-peak pricing, editable balance-alert and daily-budget bubbles, a module-based custom bubble queue with A/B weighted choices and random lines or images, 30+ vendor templates (OpenAI, OpenRouter, Kimi, SiliconFlow, Ark, Zhipu, MiniMax and more) with per-model balance and subscription quota, plus task-end sound, imported audio, custom roles and a resource manager. Local-only, no telemetry.
omdsh-dev/DSH-better-sidebar★ 5405
Full sidebar workbench with file rendering and editing, terminal, Git, and subagents; third-party plugins can register new tabs.
omdsh-dev/dsh-genui★ 1091
Interactive UI components rendered inline in replies: layout, charts, forms, quizzes, mermaid, 3D scenes, and an action event loop back to the model.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.