ysl289 / @ysl289/dsh-literature-workflow
Harness-native literature workflow: search, PDF-to-Markdown, extraction, Zotero filing, Excel sheet, cards handoff and publishing, with an authenticated local Client page.
About this plugin
Written by the registry from verified metadata, not from the README.
@ysl289/dsh-literature-workflow is a DSH plugin published from the packages/literature-workflow package in the ysl289/dsh-literature-workflow repository.
Capabilities and topics
dsh-literature-workflow
DSH 的文献主流程插件:把一篇论文从 PDF 推到「可交付材料」。
做什么
- 检索 / 导入:按研究需求检索,或扫描
input/里的 PDF / Markdown。 - PDF→Markdown:调用 Python bridge(PyMuPDF)。
- 抽取:生成
extract.json(摘要、理论、贡献、识别策略等字段)。 - Zotero 落盘:按分类写入,并取回执;未授权时停在
needs_auth。 - Excel:按 11 字段模板生成表格。
- 制卡任务书:交给知识卡片库/agent 制卡,再验收。
- 演示页:生成两个单文件 HTML。
- 发布(可选):blog / 腾讯文档;默认只预览。
安装
python -m pip install -r ../../requirements.txt
dsh plugin --profile <profile> add ./packages/literature-workflow
包内已带 assets/(PDF→MD、Excel、HTML、卡片、发布脚本与模板),不需要另装原工作流目录;
workflowRoot 只用于 input/、.plugin-state/ 和产物。
配置
路径默认走 DSH_LIT_WORKFLOW(~/Downloads/文献积累工作流);完整字段见
docs/configuration.md。
工具
{ "action": "status" }
{ "action": "enqueue", "payload": { "pdfPath": "...", "stages": ["import","extract","zotero","excel"] } }
{ "action": "run", "payload": { "jobId": "..." } }
{ "action": "finish", "payload": { "jobId": "..." } }
完整 action 列表见包内 index.mjs 的工具 schema。
测试
node --test tests/*.test.mjs
python -m pytest tests -q # 需要 requirements-dev.txt
已知限制
- Windows 优先;Zotero / 腾讯文档为可选集成。
client.js是预构建产物,改页面需要重新打包。
Badge
Listed here? Link back with this badge — paste the snippet into your repository README.
[](https://dsh-plugin.com/plugins/ysl289/dsh-literature-workflow/packages/literature-workflow)