literature-deep-reading
Dynamic HTML generator for literature deep-reading. Use when the user wants to read a paper in depth. Ensure you can access to the Zotero library through…
от leike0813★ 17 звёзд на GitHub
Установить literature-deep-reading в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Literature Deep Reading
本 skill 用于从 source_bundle.zip 启动文献精读运行。当前内置包实现:
stage_00_bootstrap:解包 source bundle、解析 Markdown 结构、best-effort 执行 Host preflight、建立 SQLite 和生成 bootstrap runtime views。stage_10_source_reading_context_request:agent 读取原文结构和 Host preflight 后写入context-request.json,runtime 通过 Host Bridge best-effort 收集后续精读需要的上下文。stage_20_reading_enrichment:agent 读取原文、Host context 和 artifact views 后写入reading-enrichment.json,runtime 归一化为 Preface、章节说明、概念、参考文献、总结和扩展阅读 views。stage_30_block_translation:agent 按稳定 block id 写入block-translations.json,runtime 归一化为翻译 view。stage_40_final_review_and_render:agent 写入轻量final-review.json,runtime 使用内置模板渲染最终单体 HTML。
最终产物为 result/deep-reading.html。
输入
input.source_bundle_path 必须指向一个本地 source_bundle.zip。bundle 预期包含:
source.mdsource-manifest.jsonimages/- 可选
translator/alignment.json - 可选
original.pdf - 可选
artifacts/artifact-manifest.json - 可选
artifacts/references.json - 可选
artifacts/digest.md - 可选
artifacts/citation-analysis.md
参数:
target_language:目标语言,默认zh-CN。
可选输入:
translator_alignment_path:已有literature-translatoralignment JSON 的本地路径。translator_output_path:已有literature-translator译文 Markdown 的本地路径。translator_status:当 translator 因源目标语言相同而cancelled时,runtime 会在 bootstrap 生成 source-only alignment。
Host 提供的输入以 runtime/input.json 和 .audit/*/input_manifest.json 为准。agent 不要手工猜测、替换或省略 translator 相关路径;如果 runtime/input.json 缺少 host 已提供的字段,bootstrap 会从审计输入中自动补齐。
任务目标
本 skill 的目标是生成帮助用户深度阅读当前论文的 self-contained HTML。原文是主角;译文、topic/context、citation graph、reference digests 和 concept explanations 都是辅助阅读层。
不要把本 skill 当作通用综述生成器、纯翻译任务或普通报告生成器。所有语义内容都应服务于“读懂当前论文”:先帮助读者理解问题、方法、贡献、证据和局限,再用外部 context 解释它在研究脉络中的位置。
职责分工
LLM 必须负责:
- 理解论文内容、研究问题、方法脉络、贡献和局限。
- 决定 Stage 10 context request 的语义意图和证据需求。
- 写作 Stage 20 的导读、章节阅读目标、概念解释、引用角色和扩展阅读。
- 验收 Stage 30 的译文质量,判断是否遗漏、误译、复制原文或破坏 Markdown/公式/表格结构。
- 写作 Stage 40 final review 的质量观察。
runtime 必须负责:
- 解包 source bundle、解析结构、建立 SQLite 状态和维护 stage gate。
- 调用 Host Bridge、记录 diagnostics,并生成 packet、view 和 translation batch 文件。
- 校验 payload schema、枚举、字段类型和当前阶段状态。
- 归一化 agent payload,生成 runtime-owned views,并渲染最终 HTML 与结果 JSON。
禁止事项:
- 不要手工编辑
runtime/views/*、runtime/literature-deep-reading.sqlite、result/deep-reading.html或literature-deep-reading.result.json。 - 不要用临时脚本替代 LLM 完成论文摘要、导读、概念解释、引用角色判断或翻译质量判断。
- 不要让 subagent 推进 gate、写 SQLite、写 runtime-owned views 或生成最终机器消费产物。
- 不要在 payload 中伪造 runtime-owned IDs、状态、diagnostics、packet 字段或最终 HTML 字段。
通用注意事项
- 默认 packet-first:每阶段只读当前 packet 和其中列出的 batch 文件;
trace_paths仅在需要核对证据、修复 payload 或解释 diagnostics 时读取。 - Host Bridge diagnostics 是降级信号,不是自动终止信号。Host context 缺失时,根据已有原文和可用 artifacts 继续完成当前阶段,并在 payload 语义上避免声称不可用证据已经存在。
- 远程 SkillRunner profile 下,Host Bridge 的
paper-artifacts export-filtered可能返回delivery.mode="bridge-download"而不是直接写本地 artifact 文件。runtime 会 fail closed 并写出runtime/payloads/*paper-artifacts-export-delivery.json;遇到该错误时,读取这个 delivery JSON,执行其中的delivery.downloadCommand,再执行delivery.unpackHint,确认下载包已解包到当前 run workspace 后,重跑同一个 runtime command。 - 恢复运行时先执行
status,再读取当前阶段 packet。packet 缺失时,不要跳过阶段;运行对应validate-*定位缺失项,并回到当前或上一阶段 submit/validate 修复。 - 每次只写当前阶段 agent-authored payload。runtime-owned views、packets、SQLite、translation batches、最终 HTML 和 result JSON 都由 runtime 生成。
- 不要手写、猜测或替换 Host Bridge 下载包内的 paper artifact manifest 路径;只使用 runtime 写出的 delivery JSON、其中的
downloadCommand和unpackHint。
Runtime model
唯一面向 agent 的 CLI 是:
python scripts/deep_reading_runtime.py bootstrap --input runtime/input.json
python scripts/deep_reading_runtime.py status
python scripts/deep_reading_runtime.py validate-bootstrap
python scripts/deep_reading_runtime.py submit-context-request --payload runtime/payloads/context-request.json
python scripts/deep_reading_runtime.py validate-context-request
python scripts/deep_reading_runtime.py submit-reading-enrichment --payload runtime/payloads/reading-enrichment.json
python scripts/deep_reading_runtime.py validate-reading-enrichment
python scripts/deep_reading_runtime.py submit-block-translations --payload runtime/payloads/block-translations.json
python scripts/deep_reading_runtime.py validate-block-translations
python scripts/deep_reading_runtime.py submit-final-review --payload runtime/payloads/final-review.json
python scripts/deep_reading_runtime.py validate-final-output
不要调用其他脚本入口。
阶段 gate 纪律:
- 每次
submit-*成功后,必须立即运行对应的validate-*命令。 validate-*返回非 0、ok: false或列出 errors 时,只修复当前阶段 payload,并重跑当前阶段 submit/validate;不得进入下一阶段。- 只有对应
validate-*返回ok: true后,才可以读取下一阶段 packet 并继续。 - 启动或恢复时先运行
status,再读取当前阶段 packet。大 view 只作为 packet 中trace_paths指向的按需追溯材料。
Bootstrap 输出
bootstrap 成功后会生成:
runtime/literature-deep-reading.sqliteruntime/views/source-structure.jsonruntime/views/reading-blocks.json- `runtim
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- assets/input.schema.json
- assets/output.schema.json
- assets/parameter.schema.json
- assets/runner.json
- assets/schemas/block-translations.schema.json
- assets/schemas/context-request.schema.json
- assets/schemas/final-review.schema.json
- assets/schemas/reading-enrichment.schema.json
- renderer/templates/citation-graph-standalone.css
- renderer/templates/citation-graph-standalone.js
- renderer/templates/citation-graph-synthesis-app.js
- renderer/templates/citation-graph-synthesis-i18n.json
- renderer/templates/citation-graph-synthesis-theme.js
- renderer/templates/citation-graph-synthesis.css
- renderer/templates/deep-reading.css
- renderer/templates/deep-reading.html.tpl
- renderer/templates/deep-reading.js
- renderer/templates/markdown-renderer.css
- renderer/templates/markdown-renderer.js
- renderer/templates/topic-timeline-shared.css
- renderer/templates/topic-timeline-shared.js
- scripts/deep_reading_runtime.py
FAQ
Что делает скилл literature-deep-reading?
Dynamic HTML generator for literature deep-reading. Use when the user wants to read a paper in depth. Ensure you can access to the Zotero library through zotero-bridge CLI.
Как установить скилл literature-deep-reading?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл literature-deep-reading запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
agent-skill-stack
GitHubFind, evaluate, and assemble the smallest compatible set of AI Agent Skills for an end-to-end natural-language goal. Use when a user wants Skills for a…
build-evidence-map
GitHubBuild an auditable evidence map for a contested technical choice, research synthesis, proposal review, or consequential decision. Use when Copilot must…
pinecone-rag
GitHubBuild production RAG pipelines and persistent agent memory using Pinecone as the vector database backend. ALWAYS USE THIS SKILL when the user mentions…
qdrant-monitoring-debugging
GitHubDiagnoses Qdrant production issues using metrics and observability tools. Use when someone reports 'optimizer stuck', 'indexing too slow', 'memory too high'…