Install
openclaw skills install @willoscar/citation-injectorApply a citation-diversifier budget report by injecting *in-scope* citations into an existing draft (NO NEW FACTS), so the run passes the global unique-citation gate without citation dumps.
**Trigger**: citation injector, apply citation budget, inject citations, add citations safely, 引用注入, 按预算加引用, 引用增密.
**Use when**: output/CITATION_BUDGET_REPORT.md exists and you need to raise *global* unique citations (or reduce over-reuse) before draft-polisher / pipeline-auditor.
**Skip if**: you need more papers/citations upstream (fix C1/C2 mapping first), or citations/ref.bib is missing.
**Network**: none.
**Guardrail**: NO NEW FACTS; do not invent citations; only inject keys present in citations/ref.bib; keep injected citations within each H3’s allowed scope (via the budget report); avoid citation-dump paragraphs (embed cites per work).
openclaw skills install @willoscar/citation-injectorPurpose: make the pipeline converge when the draft is:
This skill is intentionally conservative and scriptable:
output/DRAFT.md directly using the budget report as constraintsoutput/DRAFT.mdoutput/CITATION_BUDGET_REPORT.md (from citation-diversifier)outline/outline.yml (H3 id/title mapping)citations/ref.bib (must contain every injected key)output/DRAFT.md (updated in place)output/CITATION_INJECTION_REPORT.md (PASS/FAIL + what you changed)This subsection ..., Next, we ...).[@a; @b; @c] as the only citations in a paragraph.Use these as sentence intentions (paraphrase; do not copy verbatim).
Systems such as X [@a] and Y [@b] instantiate <axis/design point>, whereas Z [@c] explores a contrasting point under a different protocol.... (e.g., X [@a], Y [@b], Z [@c]).Representative implementations span both <cluster A> (X [@a], Y [@b]) and <cluster B> (Z [@c]), suggesting that the trade-off hinges on <lens>.For builders choosing between <A> and <B>, prior systems provide concrete instantiations on both sides (X [@a]; Y [@b]; Z [@c]).Across commonly used agent evaluations, systems such as X [@a] and Y [@b] illustrate how <lens> is operationalized, while Z [@c] highlights a different constraint.While many works operationalize <topic> via <mechanism> (X [@a]; Y [@b]), others treat it as <alternative> (Z [@c]), which changes the failure modes discussed later.Avoid these stems (they read like automated injection):
A few representative references include ...Notable lines of work include ...Concrete examples include ...If your draft contains these, rewrite them immediately using the patterns above (keep citation keys unchanged).
contrast_hook) so the same sentence cannot be copy-pasted into every H3.output/CITATION_BUDGET_REPORT.md)Global target (policy; blocking) as the PASS line for the pipeline gate (derived from queries.md:citation_target; A150++ default: recommended).Gap: 0, do nothing: write a short PASS report and move on.outline/outline.yml to confirm H3 ordering and ensure the injected sentence lands inside the correct ### subsection.citations/ref.bib.output/CITATION_INJECTION_REPORT.md- Status: PASS only when the global target is met.draft-polisher to smooth any residual injection voice (citation keys must remain unchanged).output/CITATION_INJECTION_REPORT.md exists and is - Status: PASS.pipeline-auditor no longer FAILs on “unique citations too low”.You usually do not run this manually; it exists so a pipeline runner can deterministically apply a baseline injection and validate the target.
python scripts/run.py --workspace workspaces/<ws>--workspace <dir>--unit-id <U###> (optional; for logs)--inputs <semicolon-separated> (rare override; prefer defaults)--outputs <semicolon-separated> (rare override; default validates output/CITATION_INJECTION_REPORT.md)--checkpoint <C#> (optional)python scripts/run.py --workspace workspaces/<ws>