sn-prepare-citations
Skill5.7k starsChanged 7 months agoMITView on GitHub
用于终稿完成且脚注需要后处理时:去重 [^key] 引用,转换为 [N] 编号,并追加参考文献。
Trending
Quiet since September.thin dataabout the whole repository
Who's talking about OpenSenseNova/SenseNova-Skills
- sudosubin/agents.nix“agent-skills.github.opensensenova.sensenova-skills: init at 2026.09”GitHub · Sep 30, 2026
- OpenSenseNova/SenseNova6.7“docs: 安装入口合并到 SenseNova-Skills INSTALL 文档”GitHub · Apr 29, 2026
- SenseTime-FVG/agent_pack“Sync SenseNova-Skills to latest upstream (+2 new skills)”GitHub · Apr 28, 2026
The biggest 3 of 3 mentions linking to the repository that our crawl found. Each line is their own headline.
In this repository35 other files it gives its agents.
- sn-da-excel-workflowSkill
- sn-da-image-captionSkill
- sn-da-large-file-analysisSkill
- sn-da-non-spreadsheet-analysisSkill
- sn-deepresearch-cliSkill
- sn-deep-researchSkill
- sn-image-baseSkill
- sn-image-doctorSkill
- sn-image-imitateSkill
- sn-image-resumeSkill
- sn-infographicSkill
- sn-md-to-html-reportSkill
- sn-motion-htmlSkill
- sn-ppt-creativeSkill
- sn-ppt-dazzleSkill
- sn-ppt-doctorSkill
- sn-ppt-entrySkill
- sn-ppt-standardSkill
- sn-ppt-storySkill
- sn-ppt-toolsSkill
- sn-ppt-workbenchSkill
- sn-proactive-agentSkill
- sn-report-format-discoverySkill
- sn-research-reportSkill
- sn-search-academicSkill
- sn-search-codeSkill
- sn-search-financeSkill
- sn-search-imageSkill
- sn-search-market-cnSkill
- sn-search-social-cnSkill
- sn-search-social-enSkill
- sn-search-social-mediaSkill
- sn-search-year-reportSkill
- sn-team-harnessSkill
- sn-updateSkill
The file
Files
sn-prepare-citations(引用渲染)
处理 sn-deep-research 的 stitched.md:从 evidence.json 收集 sources[],将正文中的 [^source_id] 转换为 [N] 编号引用,插入 L0/TOC,并追加参考文献。
推荐用法(sn-deep-research v2)
python3 scripts/prepare_citations.py \
--report <report_dir>/stitched.md \
--evidence <report_dir>/sub_reports/d1.evidence.json <report_dir>/sub_reports/d2.evidence.json \
--outline <report_dir>/outline.json \
--output <report_dir>/report.md参数
| 参数 | 说明 |
--report | 输入 markdown。sn-deep-research 中通常是 stitched.md |
--evidence | 全部 d*.evidence.json,用于收集 source 元数据和修复 claim-id 泄漏 |
--outline | 可选但推荐。提供 L0、TOC 和标题结构信息 |
--output | 输出 markdown。sn-deep-research 中通常是 report.md |
--no-l0 | 关闭 L0 摘要层渲染 |
--no-toc | 关闭 TOC 渲染 |
处理逻辑
- 从所有 evidence.json 的
sources[]收集引用元数据。 - 按 URL 归一化去重,同 URL source 合并为同一编号。
- 检测
[^dN.cM]claim-id 引用泄漏;能映射到 claim evidence 时替换为对应source_id,不能映射则报告 unresolved。 - 扫描正文中的
[^source_id],按首次出现顺序分配编号。 - 替换
[^source_id]→[N],移除脚注定义行。 - 根据 outline 插入或校准 L0 / TOC。
- 追加
## 参考文献。 - 写出
report.md和同目录citations.json。 - stdout 输出结构化 JSON,包含 orphan citations、claim-id leakage、TOC 和 L0 状态。
控制器处理要求
orphan_citations非空:不要交付,回 writer/stitcher 修正引用或删除 unsupported 内容。claim_id_leakage.unresolved非空:不要交付,回 writer 修正[^dN.cM]。claim_id_leakage.resolved非空但 unresolved 为空:可以继续,但记录为警告;writer 后续应直接输出[^source_id]。
旧兼容模式
不传 --outline / --output 时,脚本会覆写 --report 指向的文件,仅做引用编号和参考文献追加。sn-deep-research 正常流程不使用该模式。
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

