citation-check

citation-check is a skill for Claude Code, Codex from jonashertner/opencaselaw. It costs 46 tokens per session (920 once invoked), scanned A, original, MIT.

A citation-checking workflow for Swiss court references, using the OpenCaseLaw collection to see whether each cited decision and passage can be found.

In plain words
What is it for?
Use it to verify citations in drafts, legal memoranda, briefs, or answers, including case numbers, quoted decisions, and pinpoint passages.
Why use it?
It reduces the risk of relying on a missing or incorrectly written case citation. It reports uncertainty instead of inventing or correcting references.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to verify citations in drafts, legal memoranda, briefs, or answers, including case numbers, quoted decisions, and pinpoint passages.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jonashertner/opencaselaw/citation-check
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 jonashertner/opencaselaw --skill citation-check
Clone the repo
git clone --depth 1 https://github.com/jonashertner/opencaselaw

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/jonashertner/opencaselaw/citation-check.svg)](https://agentmods.dev/skills/jonashertner/opencaselaw/citation-check)
Your own site
<a href="https://agentmods.dev/skills/jonashertner/opencaselaw/citation-check"><img src="https://agentmods.dev/badge/skills/jonashertner/opencaselaw/citation-check.svg" alt="Measured on agentmods" 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 920 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00920
Opus 5 $0.00023 $0.00460
Sonnet 5 $0.00009 $0.00184
Haiku 4.5 $0.00005 $0.00092

Measured today against content hash fbab479c58e2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

citation-check 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 today.

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.

clients/python/src/opencaselaw_cli/skills/citation-check/SKILL.md · 61 lines

How it starts

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

Citation check with ocl

Use this whenever a draft, memo, brief or answer cites Swiss court decisions (BGE/ATF/DTF, BGer dockets such as 4A_747/2012, cantonal dockets) or quotes an Erwägung. Existence is checked against the corpus; legal support is not.

Steps

  1. If the draft is a file (.docx, .md, .html, .txt), run ocl check <draft> --format json --no-report > check.json: the citations and the quotations next to them are found in the prose and checked in one go (install: pipx install opencaselaw-cli or uv tool install opencaselaw-cli). Otherwise extract every citation into references.jsonl, one JSON line each, exactly as the author wrote it, long form included: {"reference": "BGer 4A_747/2012 vom 5. April 2013, E. 3.2"}, with a quote field for quoted passages.
  2. Run ocl citations resolve --input references.jsonl --format jsonl > resolution.jsonl for a list; the rows have the same shape as check's results. check also returns statutes (Art./§ references: statute_found, article_missing, article_empty, law_unknown, unverifiable, error) and unparsed (citation-like strings that were not checked); report both.
  3. Read every row. resolved means the decision exists and carries a label the author wrote (and the pinpoint, if any, exists: pinpoint_status: retrieved). pinpoint_unavailable means the decision exists but the numbered passage is not indexed; with pinpoint_status: parent_retrieved the parent Erwägung's text is in the row and the lettered part must be located inside it. discrepancy means the decision exists but the date or the docket the author wrote next to it is wrong: report discrepancies verbatim. missing means no such decision in the corpus: flag it for the author; never replace it with a "close" citation. ambiguous means several decisions carry the label: name the court, ask which one, or use the decision_id. unrecognized means the service proposed a decision that does not carry the author's label: treat it as unverified, and never report service_candidate as the citation.
  4. For quoted passages, run ocl quotes check --input quotes.jsonl --format jsonl with one row per quotation (reference, pinpoint when cited, quote exactly as the author wrote it). exact stands; for near report the listed differences and replace the quotation with the served wording; for not_found tell the author the quotation is not in the served text that was compared (the closest served text is shown); for unverifiable (no served text: offline without an indexed pinpoint) say the quotation was not checked and must be checked against the decision, never that it is not there. Do not paraphrase inside quotation marks.
  5. Report per citation: reference, status, decision_id, canonical citation string from the service, pinpoint status, discrepancies. State that this establishes existence and wording only, not that the authority supports the proposition.

Read the full file on GitHub · 61 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. today Changed · +10 lines fbab479c58e2
  2. 2d ago First seen · 51 lines · 46 tokens per session scan A 7d46e19c89e3

Subscribe to this mod's changes

citation-check is a skill published in the GitHub repository jonashertner/opencaselaw (61 stars, last pushed yesterday), licensed MIT. It adds 46 tokens to every session and 920 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-09-06.

Related

Other skills, from other repositories

legaltech-expert

Expert in legal technology: contract lifecycle management, e-discovery, AI-assisted legal research, case and matter management, document automation, and compliance tooling. Use when the user mentions legal case or matter management, e-discovery and legal holds, CLM or contract review and obligation tracking, legal…

personamanagmentlayer/pcl · 74 tokens

legalize-kr

Use this skill when working with Legalize-KR public Korean legal data, including laws, court precedents, administrative rules, and local ordinances. It guides agents to choose between legalize-cli, the local stdio legalize MCP server, git clone workflows, and direct GitHub access for search, retrieval, article lookup…

legalize-kr/agent-skills · 86 tokens

format-monitoring-report

A formatting guide for turning already-approved legal-monitoring content into a DOCX or PDF report. It specifies a seven-section layout, blue labels, Times New Roman, footnotes, page numbers, and a final comparison table.

sergeionlyart/minius_codex_lab · 91 tokens

verifiable-legal-document

A Russian-language workflow for producing legal documents with claim identifiers, linked supporting passages, hashes, and validation reports.

sergeionlyart/minius_codex_lab · 69 tokens

matter-intake

A setup process for a new legal matter or research assignment. It turns an unstructured request into a defined question, scope, data classification, plan, sources, deadline, and completion criteria.

sergeionlyart/minius_codex_lab · 55 tokens

ukrainian-legal-research

A research workflow for determining which Ukrainian laws and regulations applied on a specific date. It checks official wording, versions, effective dates, transitional rules, legal hierarchy, authority, and official sources.

sergeionlyart/minius_codex_lab · 70 tokens