citation-enforcer

citation-enforcer is a skill for Claude Code from a-ariff/ariff-claude-plugins. It costs 46 tokens per session (520 once invoked), scanned A, original, MIT.

An instruction set that requires file-and-line references for claims about code. A citation identifies the exact place in a project where a function, class, setting, or error appears.

In plain words
What is it for?
Add citations to documentation, code reviews, and other outputs that describe specific code details.
Why use it?
It makes code-related explanations and reviews easier to verify and discourages unsupported statements.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the citation-enforcer plugin — 1 skill shipped together

Good fit Add citations to documentation, code reviews, and other outputs that describe specific code details.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/a-ariff/ariff-claude-plugins/citation-enforcer
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.

Any agent
npx skills add a-ariff/ariff-claude-plugins --skill citation-enforcer
Clone the repo
git clone --depth 1 https://github.com/a-ariff/ariff-claude-plugins

Made for: Claude Code.

Or install citation-enforcer, the plugin that ships this one along with the rest of its 1 skill.

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-enforcer

README.md
[![agentmods](https://agentmods.dev/badge/skills/a-ariff/ariff-claude-plugins/citation-enforcer/github.svg)](https://agentmods.dev/skills/a-ariff/ariff-claude-plugins/citation-enforcer)
Your own site
<a href="https://agentmods.dev/skills/a-ariff/ariff-claude-plugins/citation-enforcer"><img src="https://agentmods.dev/badge/skills/a-ariff/ariff-claude-plugins/citation-enforcer/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-enforcer

Your own site · 80×15
<a href="https://agentmods.dev/skills/a-ariff/ariff-claude-plugins/citation-enforcer"><img src="https://agentmods.dev/badge/skills/a-ariff/ariff-claude-plugins/citation-enforcer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 520 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found 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.00046 $0.00520
Opus 5 $0.00023 $0.00260
Sonnet 5 $0.00009 $0.00104
Haiku 4.5 $0.00005 $0.00052

Measured 10d ago against content hash 49d6932aada0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

citation-enforcer scanned grade A with 0 findings 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 10d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/citation-enforcer/skills/citation-enforcer/SKILL.md · 60 lines

What it actually says

Citation Enforcer

Every code claim needs a citation. file:line or it didn't happen.

The rule

When you mention any of these, include the file path and line number:

  • A function name -> "validateToken() at src/auth.ts:42"
  • A variable -> "the MAX_RETRIES constant at src/config.ts:15"
  • A class -> "the UserService class at src/services/user.ts:1"
  • An import -> "imported from @auth/core at src/auth.ts:3"
  • A config value -> "timeout set to 30000 at config/default.json:12"
  • An error message -> "the error 'Invalid token' thrown at src/auth.ts:67"

Citation format

Standard: file:line Example: src/auth.ts:42

With range: file:line-line Example: src/auth.ts:42-58

With context: description at file:line Example: "the validateToken function at src/auth.ts:42"

Self-check

Before sending a response, scan it for uncited claims:

  1. Find every mention of a function, file, class, or variable
  2. Does each one have a file:line citation?
  3. If not, either: a. Use Read/Grep to find the actual location and add it b. Remove the claim if you can't find it c. Clearly state "I haven't verified where this is located"

Examples

Bad: "The authentication middleware checks for valid tokens." Good: "The authentication middleware at src/middleware/auth.ts:15-30 checks for valid tokens by calling validateToken()."

Bad: "There's a bug in the error handling." Good: "The catch block at src/api/users.ts:87 swallows the error without logging it."

Bad: "The config file has the wrong timeout." Good: "The timeout at config/production.json:23 is set to 5000ms, which may be too low for this API call."

When citations aren't needed

  • General programming concepts ("REST APIs use HTTP methods")
  • Suggestions that aren't about existing code ("you could add a retry mechanism")
  • Questions to the user ("what error are you seeing?")
  • Tool output that already includes file references
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. 10d ago First seen · 60 lines · 46 tokens per session scan A 49d6932aada0

Subscribe to this mod's changes

citation-enforcer is a skill published in the GitHub repository a-ariff/ariff-claude-plugins (14 stars, last pushed 5mo ago), licensed MIT. It adds 46 tokens to every session and 520 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.