{"data":{"slug":"github-opensensenova-sensenova-skills-skills-sn-prepare-citations-9918fe9436d6","title":"Citation Rendering and Reference Organization","summary":"Converts footnote citations to numbered citations and appends a reference list, ideal for final processing of academic or research reports.","url":"https:\/\/skillshunter.net\/skills\/github-opensensenova-sensenova-skills-skills-sn-prepare-citations-9918fe9436d6","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-opensensenova-sensenova-skills-skills-sn-prepare-citations-9918fe9436d6","markdown_url":"https:\/\/skillshunter.net\/skills\/github-opensensenova-sensenova-skills-skills-sn-prepare-citations-9918fe9436d6.md","download_url":"https:\/\/skillshunter.net\/skills\/github-opensensenova-sensenova-skills-skills-sn-prepare-citations-9918fe9436d6\/download","category":{"slug":"content-editorial","name":"Content & Editorial"},"editor_note":"The tool requires evidence.json files to collect source metadata and resolve claim-id leaks. It outputs a report.md file with numbered citations and a reference list.","instructions":"---\nname: sn-prepare-citations\ndescription: \u7528\u4e8e\u7ec8\u7a3f\u5b8c\u6210\u4e14\u811a\u6ce8\u9700\u8981\u540e\u5904\u7406\u65f6\uff1a\u53bb\u91cd [^key] \u5f15\u7528\uff0c\u8f6c\u6362\u4e3a [N] \u7f16\u53f7\uff0c\u5e76\u8ffd\u52a0\u53c2\u8003\u6587\u732e\u3002\n---\n\n# sn-prepare-citations\uff08\u5f15\u7528\u6e32\u67d3\uff09\n\n\u5904\u7406 sn-deep-research \u7684 `stitched.md`\uff1a\u4ece evidence.json \u6536\u96c6 `sources[]`\uff0c\u5c06\u6b63\u6587\u4e2d\u7684 `[^source_id]` \u8f6c\u6362\u4e3a `[N]` \u7f16\u53f7\u5f15\u7528\uff0c\u63d2\u5165 L0\/TOC\uff0c\u5e76\u8ffd\u52a0\u53c2\u8003\u6587\u732e\u3002\n\n## \u63a8\u8350\u7528\u6cd5\uff08sn-deep-research v2\uff09\n\n```bash\npython3 scripts\/prepare_citations.py \\\n  --report <report_dir>\/stitched.md \\\n  --evidence <report_dir>\/sub_reports\/d1.evidence.json <report_dir>\/sub_reports\/d2.evidence.json \\\n  --outline <report_dir>\/outline.json \\\n  --output <report_dir>\/report.md\n```\n\n## \u53c2\u6570\n\n| \u53c2\u6570 | \u8bf4\u660e |\n|---|---|\n| `--report` | \u8f93\u5165 markdown\u3002sn-deep-research \u4e2d\u901a\u5e38\u662f `stitched.md` |\n| `--evidence` | \u5168\u90e8 `d*.evidence.json`\uff0c\u7528\u4e8e\u6536\u96c6 source \u5143\u6570\u636e\u548c\u4fee\u590d claim-id \u6cc4\u6f0f |\n| `--outline` | \u53ef\u9009\u4f46\u63a8\u8350\u3002\u63d0\u4f9b L0\u3001TOC \u548c\u6807\u9898\u7ed3\u6784\u4fe1\u606f |\n| `--output` | \u8f93\u51fa markdown\u3002sn-deep-research \u4e2d\u901a\u5e38\u662f `report.md` |\n| `--no-l0` | \u5173\u95ed L0 \u6458\u8981\u5c42\u6e32\u67d3 |\n| `--no-toc` | \u5173\u95ed TOC \u6e32\u67d3 |\n\n## \u5904\u7406\u903b\u8f91\n\n1. \u4ece\u6240\u6709 evidence.json \u7684 `sources[]` \u6536\u96c6\u5f15\u7528\u5143\u6570\u636e\u3002\n2. \u6309 URL \u5f52\u4e00\u5316\u53bb\u91cd\uff0c\u540c URL source \u5408\u5e76\u4e3a\u540c\u4e00\u7f16\u53f7\u3002\n3. \u68c0\u6d4b `[^dN.cM]` claim-id \u5f15\u7528\u6cc4\u6f0f\uff1b\u80fd\u6620\u5c04\u5230 claim evidence \u65f6\u66ff\u6362\u4e3a\u5bf9\u5e94 `source_id`\uff0c\u4e0d\u80fd\u6620\u5c04\u5219\u62a5\u544a unresolved\u3002\n4. \u626b\u63cf\u6b63\u6587\u4e2d\u7684 `[^source_id]`\uff0c\u6309\u9996\u6b21\u51fa\u73b0\u987a\u5e8f\u5206\u914d\u7f16\u53f7\u3002\n5. \u66ff\u6362 `[^source_id]` \u2192 `[N]`\uff0c\u79fb\u9664\u811a\u6ce8\u5b9a\u4e49\u884c\u3002\n6. \u6839\u636e outline \u63d2\u5165\u6216\u6821\u51c6 L0 \/ TOC\u3002\n7. \u8ffd\u52a0 `## \u53c2\u8003\u6587\u732e`\u3002\n8. \u5199\u51fa `report.md` \u548c\u540c\u76ee\u5f55 `citations.json`\u3002\n9. stdout \u8f93\u51fa\u7ed3\u6784\u5316 JSON\uff0c\u5305\u542b orphan citations\u3001claim-id leakage\u3001TOC \u548c L0 \u72b6\u6001\u3002\n\n## \u63a7\u5236\u5668\u5904\u7406\u8981\u6c42\n\n- `orphan_citations` \u975e\u7a7a\uff1a\u4e0d\u8981\u4ea4\u4ed8\uff0c\u56de writer\/stitcher \u4fee\u6b63\u5f15\u7528\u6216\u5220\u9664 unsupported \u5185\u5bb9\u3002\n- `claim_id_leakage.unresolved` \u975e\u7a7a\uff1a\u4e0d\u8981\u4ea4\u4ed8\uff0c\u56de writer \u4fee\u6b63 `[^dN.cM]`\u3002\n- `claim_id_leakage.resolved` \u975e\u7a7a\u4f46 unresolved \u4e3a\u7a7a\uff1a\u53ef\u4ee5\u7ee7\u7eed\uff0c\u4f46\u8bb0\u5f55\u4e3a\u8b66\u544a\uff1bwriter \u540e\u7eed\u5e94\u76f4\u63a5\u8f93\u51fa `[^source_id]`\u3002\n\n## \u65e7\u517c\u5bb9\u6a21\u5f0f\n\n\u4e0d\u4f20 `--outline` \/ `--output` \u65f6\uff0c\u811a\u672c\u4f1a\u8986\u5199 `--report` \u6307\u5411\u7684\u6587\u4ef6\uff0c\u4ec5\u505a\u5f15\u7528\u7f16\u53f7\u548c\u53c2\u8003\u6587\u732e\u8ffd\u52a0\u3002sn-deep-research \u6b63\u5e38\u6d41\u7a0b\u4e0d\u4f7f\u7528\u8be5\u6a21\u5f0f\u3002","use_cases":["Convert footnote citations like `[^source_id]` in a research report to numbered citations like `[N]` and append a reference list.","Process sn-deep-research generated `stitched.md` files to produce the final `report.md`."],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/OpenSenseNova\/SenseNova-Skills\/blob\/07e7ff8c4bdfd7b79e7402fe94af59d2a5a9749b\/skills\/sn-prepare-citations\/SKILL.md","source_commit":"07e7ff8c4bdfd7b79e7402fe94af59d2a5a9749b","license":null,"version":null,"listing_approved_at":"2026-11-16","created_at":"2026-11-15T12:03:43.000000Z","updated_at":"2026-11-16T05:16:54.000000Z","seo_title":"Citation Rendering and Reference Organization Tool","seo_description":"Converts footnote citations to numbered citations and appends a reference list, ideal for final processing of academic or research reports.","seo_keywords":["Citation Rendering","Reference Organization","Footnote Conversion","Research Report Processing","Academic Formatting"]}}