Command Palette

Search for a command to run...

Назад к скиллам
скилл № 39841

update-topic-synthesis

Update a structured Zotero topic_synthesis artifact using the zotero-bridge CLI, package-local SQLite gate scripts, and schema-validated JSON stage artifacts.

БесплатноЗапускает вложенные скрипты
leike0813от leike0813★ 17 звёзд на GitHub

Установить update-topic-synthesis в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

update-topic-synthesis

本 skill 运行于 ACP 后台自动化场景。stdout 只能输出一个 JSON 对象。 需要读取 Zotero/Synthesis host 数据时,使用 zotero-bridge synthesis <subcommand> --input ...。 如果正式执行中必需的 zotero-bridge synthesis 调用不可用或返回失败错误,立即输出合法 topic_synthesis_canceled。

产品目标与质量标准

Topic Synthesis 是 Zotero 中的信息密集型 topic 知识窗口,也是 Introduction / Related Work 等写作 workflow 的上游证据材料。它不是字段填空,也不是论文摘要拼接。 update 的目标是在保持 current topic 结构一致性的前提下,补强或修正 topic 的概念边界、研究路线、历史沿革、主要结论、争议、 缺口、库内覆盖状态、库外补充方向和综述写作角度。

最低质量目标:

  • 用户读完 summary、taxonomy、timeline_events、claims、external_literature_analysis、 statistics 和 synthesis_report 后,应能说清这个 topic 属于哪个学科/研究领域、 核心问题是什么、主要技术路线如何分化、关键论文如何推动演进。
  • taxonomy 是研究路线分析,不是标签表;必须解释每条路线解决什么问题、采用什么机制、 有哪些代表论文、路线之间是什么关系。
  • timeline_events 是历史递进逻辑,不是年份列表;必须说明里程碑论文、阶段转折、 前后工作的延续/修正/融合关系。
  • claims 是 synthesis-level finding,不是单篇论文结论;每条 claim 都要说明成立原因、 证据范围、适用边界和置信度。
  • external_literature_analysis 要判断库外概念/方法/综述/benchmark 与 topic 的关系、 当前库内覆盖档位,以及下一步建议入库文献。
  • statistics 要解释 synthesis 可靠性和覆盖结构,而不只是列数字。
  • synthesis_report 要把结构化 sections 串成连续报告正文,可直接作为用户理解 topic 和撰写综述时的高密度材料。

内容生成原则:

  • 先理解 topic,再写字段;字段服务于“理解 topic”和“支持综述写作”。
  • 单篇分析只抽取事实,跨文献阶段才综合;跨文献综合必须回到已校验 triage rows 和 evidence map。
  • 库内 paper evidence 支撑主 claim/timeline;库外/外部文献用于背景、覆盖判断和入库建议。
  • coverage/gaps 要区分领域真实空白、库内覆盖不足、artifact 证据不足和评价口径缺口。
  • patch 更新也必须维持被替换 section 的内容深度,不能只做局部短句替换。
  • 语言要信息密集、可追溯、具体到技术路线/评价场景/方法机制/证据范围。

核心执行指令

这部分是 gate 返回的 core_instruction 的完整等价内容。它只保留跨阶段都必须反复遵守的规则。

  1. 先读 SKILL.md,不要预读整个 references/ 目录。
  2. 首次进入和每次正式写入/校验 JSON 工件后,都必须重新运行 scripts/gate_runtime.py。
  3. 每一步看 gate,只执行 gate 返回的动作。
  4. 只执行 gate 返回的 next_action,不得跳 stage。
  5. 同时遵守 gate 返回的 next_action、command_example、instruction_refs、schema_refs、core_instruction 和 execution_note。
  6. SQLite 只保存流程状态、action receipt、manifest、hash、progress 和 artifact_registry;语义内容真源是 run workspace 中的 JSON 工件。
  7. 所有语义判断结果必须先整理为结构化 JSON,再通过 scripts/stage_runtime.py <next_action> 校验、登记和推进。 需要写入 payload 的动作都必须使用 --payload-file。
  8. 不要直接写 SQLite 表来伪造阶段完成;阶段推进必须由对应脚本动作成功写入 receipt。
  9. update_patch 只能写入 changed sections;重大 schema/language/resolver/paper set 变化必须转为 update_full。
  10. 最终公开产物只能由 validate_final_artifacts 从已校验 JSON 工件生成;agent 不得手写或改写 result/final-output.candidate.json。最终 assistant 输出必须是合法业务 JSON 对象,不得追加解释、Markdown fence 或嵌入 markdown。

成功态最终 JSON 示例:

{
  "kind": "topic_synthesis",
  "operation": "update_patch",
  "topic_id": "object-detection",
  "language": "zh-CN",
  "read_section_hashes": {
    "claims": "sha256:..."
  },
  "topic_definition": {
    "id": "object-detection",
    "title": "Object Detection"
  },
  "resolver_manifest_path": "runtime/payloads/resolver.json",
  "resolver_diagnostics": {
    "final_count": 21,
    "warnings": []
  },
  "artifact_metadata": {},
  "analysis_manifest_path": "result/topic-analysis.patch.json"
}

取消态最终 JSON 示例:

{
  "kind": "topic_synthesis_canceled",
  "status": "canceled",
  "reason": "required_zotero_bridge_call_unavailable",
  "message": "Required zotero-bridge synthesis command is unavailable.",
  "topic_id": "object-detection"
}

输入输出硬契约

  • 输入只读取 prompt payload 中的 topicId、updateScope、updateMode、updateReason 与 language。
  • topicId 是要更新的 topic。
  • updateScope、updateMode、updateReason 用于约束更新范围和原因。
  • language 控制自然语言输出;缺失或为 auto 时沿用 current topic language。
  • 必须先通过 ./.zotero-bridge/bin/zotero-bridge synthesis get-topic-context --input ... 读取 { topicId, mode: "update", includeArtifact: true, includeManifest: true }。
  • get_topic_context 返回的 current hashes、section hashes、recommended_update、current artifact/manifest 是 update 的 base truth。
  • update 成功的最终响应只包含合法业务 JSON 对象。
  • update_full stdout 必须包含 base_hashes,host apply 用它校验 current manifest/artifact/export/metadata/hash 未变化。
  • update_patch stdout 必须包含 read_section_hashes,host apply 只校验补丁读取过的 sections;未读取 section 变化不阻断 patch。
  • update_patch stdout 不要求也不使用 base_hashes,但 resolver 仍必须运行,不能跳过 resolver 直接写 patch。
  • update_full 成功必须生成公开可消费产物:
    • result/topic-analysis.json
    • result/final-output.candidate.json
    • result/sidecars/topic-interest-metadata.json
    • result/sidecars/concept-cards-proposal.json
    • result/sidecars/topic-graph-relation-proposals.json
    • result/sections/*.json
  • update_patch 成功必须生成公开可消费产物:
    • result/topic-analysis.patch.json
    • result/final-output.candidate.json
    • result/sidecars/topic-interest-metadata.json
    • result/sidecars/concept-cards-proposal.json
    • result/sidecars/topic-graph-relation-proposals.json
    • changed result/sections/*.json
    • read_section_hashes
  • update_patch 是 section_patch 合同,只能替换 changed sections。
  • 最终 JSON 不得内嵌 markdown。
  • 最终 JSON 只保留公开业务 schema 字段,不包含正文 Markdown 或 host/runtime 管理的内部 provenance metadata。
  • sidecars 固定路径写入,但由 result/topic-analysis.json 或 result/topic-analysis.patch.json 的 sidecars manifest 对象公开;final stdout 不逐一列出 sidecar path。
  • Host apply 负责 canonical persistence 与导出渲
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • assets/output.schema.json
  • assets/runner.json
  • assets/schemas/core_analytical_sections.schema.json
  • assets/schemas/cross_paper_evidence_map.schema.json
  • assets/schemas/debates_section.schema.json
  • assets/schemas/evidence_map_section.schema.json
  • assets/schemas/kg_enrichment.schema.json
  • assets/schemas/paper_analysis_batch.schema.json
  • assets/schemas/paper_analysis_row.schema.json
  • assets/schemas/positioning_section.schema.json
  • assets/schemas/resolver_manifest.schema.json
  • assets/schemas/resolver_proposal.schema.json
  • assets/schemas/review_outline_section.schema.json
  • assets/schemas/taxonomy_section.schema.json
  • assets/schemas/topic_analysis_manifest.schema.json
  • assets/schemas/topic_context_payload.schema.json
  • assets/schemas/topic_interest_metadata.schema.json
  • assets/schemas/topic_section_patch_manifest.schema.json
  • assets/schemas/topic_synthesis_artifact.schema.json
  • references/section_examples.md
  • references/step_05_paper_triage.md
  • references/step_06_cross_paper_map.md
  • references/step_07_taxonomy_timeline.md
  • references/step_08_core_synthesis.md
  • references/step_09_kg_enrichment.md
  • references/step_10_summary_coverage.md
  • references/step_11_render_validate.md
  • references/topic_synthesis_content_contract.md
  • scripts/gate_runtime.py
  • scripts/runtime_db.py
  • scripts/stage_runtime.py

FAQ

Что делает скилл update-topic-synthesis?

Update a structured Zotero topic_synthesis artifact using the zotero-bridge CLI, package-local SQLite gate scripts, and schema-validated JSON stage artifacts.

Как установить скилл update-topic-synthesis?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл update-topic-synthesis запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить update-topic-synthesis с