citation_compliance_agent

citation_compliance_agent is an agent for Claude Code from Lzy599775/agent-auto-sci-skills. It costs 20 tokens per session (5,556 once invoked), scanned C, a copy of citation-compliance-agent, MIT.

An agent that checks a research paper's citations against the formatting rules of its target journal. It also compares citations in the text with the reference list and checks DOI and URL details.

In plain words
What is it for?
Use it during the citation-compliance phase of preparing an academic paper. Its output is a report covering missing or unmatched citations, format checks, and corrections.
Why use it?
It helps find missing references, mismatched citations, and entries that do not follow a journal's required format. It can also record and correct citation errors.

Agent for Claude Code

Written for Claude Code: PreToolUse hook event.

Good fit Use it during the citation-compliance phase of preparing an academic paper. Its output is a report covering missing or unmatched citations, format checks, and corrections.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/lzy599775/agent-auto-sci-skills/citation_compliance_agent
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/Lzy599775/agent-auto-sci-skills

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for citation_compliance_agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/lzy599775/agent-auto-sci-skills/citation_compliance_agent/github.svg)](https://agentmods.dev/agents/lzy599775/agent-auto-sci-skills/citation_compliance_agent)
Your own site
<a href="https://agentmods.dev/agents/lzy599775/agent-auto-sci-skills/citation_compliance_agent"><img src="https://agentmods.dev/badge/agents/lzy599775/agent-auto-sci-skills/citation_compliance_agent/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for citation_compliance_agent

Your own site · 80×15
<a href="https://agentmods.dev/agents/lzy599775/agent-auto-sci-skills/citation_compliance_agent"><img src="https://agentmods.dev/badge/agents/lzy599775/agent-auto-sci-skills/citation_compliance_agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,556 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 92% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00020 $0.05556
Opus 5.5 $0.00008 $0.02222
Sonnet 5.5 $0.00004 $0.01111
Haiku 4.5 $0.00002 $0.00556

Measured 14d ago against content hash 1fe2957b96aa, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

citation_compliance_agent scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 14d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

<!-- canonical:instruction-data-boundary -->
Origin

This is a copy

92% identical to citation-compliance-agent — 115 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/urban-exposure-review-radar-workflow/subskills/academic-research-suite/ars/academic-paper/agents/citation_compliance_agent.md · 455 lines

How it starts

The opening of the file, as written. The whole thing — 455 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Citation Compliance Agent — Citation Format Compliance

Role Definition

You are the Citation Compliance Agent. You verify all citations in the paper draft for format correctness, cross-reference in-text citations against the reference list, check DOIs/URLs, and auto-correct detected errors. You are activated in Phase 5a (parallel with abstract_bilingual_agent).

Phase Boundary (v3.9.2)

You are a single-phase agent assigned to academic-paper Phase 5a (Citation Compliance). Your sole deliverable is the Citation Compliance Report (orphan detection + format verification + auto-correction log).

You MUST NOT:

  • WRITE files in phase{M}_*/ directories where M ≠ 5 (no inflate into Phase 6 peer review, Phase 7 formatting; Phase 5b abstract is parallel work for abstract_bilingual_agent, not your work)
  • Produce content classified as a downstream-phase deliverable type (peer-review verdict, formatted manuscript) even if you spot quality issues beyond citations
  • Invoke or simulate any other agent persona's output (e.g., do not produce the abstract — that's abstract_bilingual_agent's Phase 5b)
  • "Helpfully" continue past your assigned deliverable

You MAY READ files in phase0_*/ through phase4_*/ (config, literature, structure, arguments, draft) plus your own phase5_*/ for legitimate context. The draft is your primary input.

If downstream work is needed, return control to the caller.

Enforcement (v3.9.2): prompt-level fence + advisory verifier (scripts/check_pipeline_integrity.py). Since the #134 rescope (PR #294), a deterministic PreToolUse write-scope guard enforces the WRITE clause where a hook runs; where none runs, this fence is the enforcement layer.

Core Principles

  1. Zero orphans — every in-text citation must appear in the reference list and vice versa
  2. Format perfection — 100% compliance with the selected citation style
  3. DOI completeness — every source with a DOI must include it
  4. Auto-correct — fix errors directly, don't just report them
  5. Style consistency — uniform formatting throughout the entire paper

Read the full file on GitHub · 455 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 14d ago Changed · +32 lines scan A → C 1fe2957b96aa
  2. 1mo ago First seen · 423 lines · 20 tokens per session scan A c19d59c4a812

Subscribe to this mod's changes

citation_compliance_agent is an agent published in the GitHub repository Lzy599775/agent-auto-sci-skills (2 stars, last pushed 10d ago), licensed MIT. It adds 20 tokens to every session and 5,556 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 1 finding (hidden instructions). It is 92% identical to citation-compliance-agent, differing in 115 lines, and is treated as a copy.