/install citation-diversifier
Citation Diversifier (budget-as-constraints) [NO NEW FACTS]
Purpose: fix a common survey failure mode:
- the draft reads under-cited (or reuses the same few citations everywhere)
- the pipeline fails the global unique-citation gate
This skill does not change prose by itself.
It produces a constraint sheet: output/CITATION_BUDGET_REPORT.md.
Inputs
output/DRAFT.mdoutline/outline.yml(H3 ids/titles; used to allocate budgets per subsection)outline/writer_context_packs.jsonl(source ofallowed_bibkeys_{selected,mapped,chapter,global}per H3)citations/ref.bib
Output
output/CITATION_BUDGET_REPORT.md
Non-negotiables (NO NEW FACTS)
- Only propose citation keys that exist in
citations/ref.bib. - Only propose keys that are in-scope for the target H3 (prefer subsection-first scope; use chapter/global only when truly cross-cutting).
- Do not propose “padding citations” that would require adding new claims or new numbers.
What a good budget report looks like (contract)
The report should feel like a constraint sheet, not a random list:
- It states the blocking policy target and the gap-to-target (how many unique keys are missing; policy default is
recommended). - For each H3, it proposes a scope-safe budget sized to actually close the gap:
- small gaps: 3-6 keys / H3 is often enough
- A150++ gaps: plan for ~6-12 keys / H3 (and avoid duplicates across H3 budgets)
- It gives placement guidance (where in the subsection those keys can be embedded without adding new facts).
Canonical (parseable) lines required (downstream validators depend on these):
- The target is derived from
queries.md:citation_target(recommendedby default for A150++). - Global target (policy; blocking): >= \x3CN> ...- Gap: \x3CK>(gap-to-target; if0, injection can be a no-op PASS)
Optional (always reported; may be blocking depending on citation_target):
- Global recommended target: >= \x3CN> ...- Gap to recommended: \x3CK>
Recommended prioritization (scope-safe):
allowed_bibkeys_selected→allowed_bibkeys_mapped→allowed_bibkeys_chapter- Use
allowed_bibkeys_globalonly for:- benchmarks/protocol papers
- widely-used datasets/suites
- cross-cutting surveys/method papers referenced across chapters
How this connects to writing (LLM-first)
After you generate the budget report:
- Apply it using
citation-injector(LLM edits tooutput/DRAFT.md, NO NEW FACTS). - Then run
draft-polisherto remove any “budget dump voice” while keeping citation keys unchanged.
Important: citation-injector is LLM-first. Its script is validation-only.
Workflow
- Diagnose the global situation
- Read
output/DRAFT.mdand estimate the “unique-key gap” (or usepipeline-auditor’s FAIL reason).
- Allocate budgets per H3 (scope-first)
- Use
outline/outline.ymlto enumerate H3s in paper order. - For each H3, read its allowed key sets from
outline/writer_context_packs.jsonl. - Pick a small set of unused keys that strengthen positioning without requiring new claims.
- Write
output/CITATION_BUDGET_REPORT.mdRequired structure:
- Status: PASS|FAIL- Global target (policy; blocking): >= \x3CN> ...- Gap: \x3CK>## Summary(gap + strategy)## Per-subsection budgets(H3 id/title → suggested keys → placement hint)
Script (optional; deterministic report generator)
If you want a deterministic first-pass budget report, run the helper script. Treat it as a baseline and refine the plan as needed.
Quick Start
python scripts/run.py --helppython scripts/run.py --workspace workspaces/\x3Cws>
All Options
--workspace \x3Cdir>--unit-id \x3CU###>(optional)--inputs \x3Csemicolon-separated>(rare override; prefer defaults)--outputs \x3Csemicolon-separated>(rare override; default writesoutput/CITATION_BUDGET_REPORT.md)--checkpoint \x3CC#>(optional)
Examples
- Default IO:
python scripts/run.py --workspace workspaces/\x3Cws>
Done criteria
output/CITATION_BUDGET_REPORT.mdexists and has actionable, in-scope budgets.- After applying the plan via
citation-injector,pipeline-auditorno longer FAILs on global unique citations.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install citation-diversifier - 安装完成后,直接呼叫该 Skill 的名称或使用
/citation-diversifier触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Citation Diversifier 是什么?
Raise citation diversity/density (NO NEW FACTS): generate an in-scope “citation budget” plan per H3 so drafts stop failing the global unique-citation gate an... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 146 次。
如何安装 Citation Diversifier?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install citation-diversifier」即可一键安装,无需额外配置。
Citation Diversifier 是免费的吗?
是的,Citation Diversifier 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Citation Diversifier 支持哪些平台?
Citation Diversifier 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Citation Diversifier?
由 WILLOSCAR(@willoscar)开发并维护,当前版本 v1.0.0。