check-refs

check-refs is a command for Claude Code from akougkas/wtf-p. It costs 21 tokens per session (967 once invoked), scanned A, a copy of wtfp:check-refs, MIT.

A citation-audit command that checks references and produces a corrected-bibliography candidate without changing the source manuscript or reference records.

In plain words
What is it for?
Use it to review citation integrity and prepare possible bibliography corrections when the required execution capability is available.
Why use it?
The command is unavailable in its current environment, so no audit or external action is performed. This avoids presenting an unexecuted check as complete.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the wtfp plugin — 36 commands, 3 hooks shipped together

Good fit Use it to review citation integrity and prepare possible bibliography corrections when the required execution capability is available.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add akougkas/wtf-p
Claude Code
/plugin install wtfp

Made for: Claude Code.

Or install wtfp, the plugin that ships this one along with the rest of its 36 commands, 3 hooks.

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 check-refs

README.md
[![agentmods](https://agentmods.dev/badge/commands/akougkas/wtf-p/check-refs/github.svg)](https://agentmods.dev/commands/akougkas/wtf-p/check-refs)
Your own site
<a href="https://agentmods.dev/commands/akougkas/wtf-p/check-refs"><img src="https://agentmods.dev/badge/commands/akougkas/wtf-p/check-refs/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 check-refs

Your own site · 80×15
<a href="https://agentmods.dev/commands/akougkas/wtf-p/check-refs"><img src="https://agentmods.dev/badge/commands/akougkas/wtf-p/check-refs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 967 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 97% 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.00021 $0.00967
Opus 5.5 $0.00008 $0.00387
Sonnet 5.5 $0.00004 $0.00193
Haiku 4.5 $0.00002 $0.00097

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

Security

Grade A, and why

check-refs 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 1mo 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.

Origin

This is a copy

97% identical to wtfp:check-refs — 75 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.

vendors/claude/commands/check-refs.md · 75 lines

How it starts

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

Check references

@${CLAUDE_PLUGIN_ROOT}/project/README.md @${CLAUDE_PLUGIN_ROOT}/skills/wtfp-research-literature/SKILL.md @${CLAUDE_PLUGIN_ROOT}/skills/wtfp-research-literature/references/actions.md

Record contract

Read: project://config, project://sources/{source}, project://evidence/{evidence}, project://materials/{artifact}, project://paper/{artifact}. Produce: project://deliverables/bibliography/{artifact} (create), project://validations/{validation} (create).

Resolve every logical URI through the host adapter. Portable v1 JSON records are the source of truth: schema-validate before a write, preserve stable IDs, update revision and timestamps where required, and replace records atomically. Never pass a literal logical URI to a shell command or infer record state from a legacy Markdown control file.

Manuscript prose and supporting context, research, plan, review, summary, handoff, and deliverable artifacts retain their authored format (normally Markdown). Link them from the relevant v1 record; do not convert manuscript prose into project-state JSON.

Procedure

  1. Resolve the author-selected bibliography, every in-scope manuscript citation, and verified or provisional source/evidence records under the configured citation policy.
  2. Report missing identities, metadata conflicts, uncited entries, unsupported citations, and style defects; search declared metadata providers for candidate records only after the gate names the providers and bounded query set. Treat provider results as candidate audit evidence until independently verified.
  3. Leave the bibliography, manuscript, source records, and evidence records unchanged. When requested, preview and create a separate corrected-bibliography candidate, validate it, and record unresolved issues and exact input revisions in the audit result.

Bundled tool execution

The declared tool.execute effect authorises exactly one command, run from the package root the host resolves for this bundle:

Read the full file on GitHub · 75 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. 1mo ago Changed 0e6b1a3c0d43
  2. 1mo ago Changed · +58 lines eeb296cb5352
  3. 1mo ago First seen · 17 lines · 21 tokens per session scan A 34b30783ec06

Subscribe to this mod's changes

check-refs is a command published in the GitHub repository akougkas/wtf-p (20 stars, last pushed 19d ago), licensed MIT. It adds 21 tokens to every session and 967 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 97% identical to wtfp:check-refs, differing in 75 lines, and is treated as a copy.