Agent skill

Uk Citation Verification Matei Clej

by lawve-ai in lawve-ai/awesome-legal-skills

Verifies UK case-law citations, pinpoint references and quotations against the official public register — The National Archives' Find Case Law — and statutory references against legislation.gov.uk…

MITAuto-check passedResearch & Science

Install Uk Citation Verification Matei Clej

skills CLI
$ npx skills add lawve-ai/awesome-legal-skills --skill uk-citation-verification-matei-clej -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install lawve-ai/awesome-legal-skills uk-citation-verification-matei-clej --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/lawve-ai/awesome-legal-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/uk-citation-verification-matei-clej .claude/skills/uk-citation-verification-matei-clej && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
uk-citation-verification-matei-clej
GitHub stars
847
Token cost
~2.9k tokens
SKILL.md length
1,433 words
Files
5 (incl. scripts)
Skills in repo
154
Repo updated
First seen
Licence
MIT

At a glance

Verifies UK case-law citations, pinpoint references and quotations against the official public register — The National Archives' Find Case Law — and statutory references against legislation.gov.uk…

  • Works in 5 steps: Establish what is being checked: a… → Run the check (scripts/ukcite.py), or… → Report the graded verdict for each… → …
  • Asked to check citations
  • SKILL.md covers What this is for, The verdicts — what each one…, Running it and Coverage — where the register…, plus 3 more sections
  • Runs Python scripts from its folder; calls python3; reaches caselaw.nationalarchives.gov.uk and legislation.gov.uk

What it does

Uk Citation Verification Matei Clej is an agent skill from lawve-ai/awesome-legal-skills. Verifies UK case-law citations, pinpoint references and quotations against the official public register — The National Archives' Find Case Law — and statutory references against legislation.gov.uk, before a document that cites them is relied on, served or filed. Every check returns a graded verdict: VERIFIED, MISMATCH (the citation resolves to a different case — the classic AI miscitation), NOT ON REGISTER, OUTSIDE COVERAGE (the register cannot answer — absence proves nothing), or UNCHECKABLE (a law-report…

Its SKILL.md is about 2.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including scripts (for example `README.md`, `reference/coverage.md` and `scripts/ukcite.py`).

It sits in Research & Science, covering Citation management and Legal research. The repository describes itself as: A curated list of awesome Agent Skills for automating legal work. The licence is MIT.

When your agent uses it

  • Asked to check citations
  • Verify a case exists
  • Confirm a quotation is verbatim
  • Check a pinpoint paragraph

Example prompts

  • “Use the uk-citation-verification-matei-clej skill to verify UK case-law citations, pinpoint references and quotations against the official public…”
  • “/uk-citation-verification-matei-clej”

Requirements

  • Python 3

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Establish what is being checked: a single citation, a quotation, or a whole
  2. Run the check (scripts/ukcite.py), or work the register by hand where no
  3. Report the graded verdict for each citation — never collapse the grades
  4. For anything not VERIFIED, say exactly what the register could and could not
  5. Never treat a VERIFIED existence check as verification of the proposition

What it can do on your machine

Read from SKILL.md and the folder at commit 045f738. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • caselaw.nationalarchives.gov.uk
    • legislation.gov.uk

    Also links to:

    • mateiclej.substack.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Uk Citation Verification Matei Clej loads about 2.9k tokens when it runs. Until then it costs about 251 tokens; SKILL.md has 1,433 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~251
When it runs · the whole SKILL.md, loaded when a task matches
~2.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from lawve-ai/awesome-legal-skills at commit 045f738, republished under its MIT licence (© lawve-ai). 1,433 words, ~2,878 tokens.

Download SKILL.mdSave it as .claude/skills/uk-citation-verification-matei-clej/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
uk-citation-verification-matei-clej
description
Verifies UK case-law citations, pinpoint references and quotations against the official public register — The National Archives' Find Case Law — and statutory references against legislation.gov.uk, before a document that cites them is relied on, served or filed. Every check returns a graded verdict: VERIFIED, MISMATCH (the citation resolves to a different case — the classic AI miscitation), NOT ON REGISTER, OUTSIDE COVERAGE (the register cannot answer — absence proves nothing), or UNCHECKABLE (a law-report citation). The grading exists because there are two ways to get this wrong: citing a case that does not exist, and accusing a real case of not existing. Use when asked to check citations, verify a case exists, confirm a quotation is verbatim, check a pinpoint paragraph, audit a draft's authorities, screen a document for hallucinated cases, or check a statutory provision is in force. Not a substitute for reading the judgment: existence is not authority.
argument-hint
[citation or file] [--name "Case Name"] [--para N] [--quote "..."]
metadata.author
Matei Clej
metadata.license
mit
metadata.version
2026-08-27

UK citation verification — against the official register

  1. Establish what is being checked: a single citation, a quotation, or a whole document's authorities.
  2. Run the check (scripts/ukcite.py), or work the register by hand where no shell is available.
  3. Report the graded verdict for each citation — never collapse the grades into "real" and "fake".
  4. For anything not VERIFIED, say exactly what the register could and could not answer, and what the user must still do.
  5. Never treat a VERIFIED existence check as verification of the proposition the case is cited for. That requires reading the judgment.

What this is for

In Ayinde, R (on the application of) v The London Borough of Haringey [2025] EWHC 1383 (Admin), the Divisional Court dealt with lawyers who had put AI-generated material before courts containing "false information (typically a fake citation or quotation)", and said plainly that the duty to check is the lawyer's and is not discharged by trusting the tool. Regulators in several jurisdictions have since said the same.

This skill makes the checking mechanical where it can be mechanical. It verifies citations against the official public register of judgments for England and Wales — The National Archives' Find Case Law — and statutory references against legislation.gov.uk. Both sources are operated by The National Archives; nothing else is consulted, so every answer is traceable to the official record.

It is not for finding authorities on a topic (use a research service), and it is never a substitute for reading the judgment cited.


The verdicts — what each one proves, and what it does not

There are two ways to fail at citation checking. The obvious one is letting a fabricated case through. The less obvious one — and the one careless tooling commits constantly — is declaring a real case fabricated because one database does not hold it. The graded verdicts exist to keep those apart:

✔ VERIFIED — the citation resolves on the register; where a case name, pinpoint or quotation was supplied, it matched. This proves the case exists and says what was quoted. It does not prove the case is authority for the proposition it is cited for, that it is still good law, or that it has not been distinguished out of relevance. That is reading, not checking.

✖ MISMATCH — the citation resolves, but to a different case, a wrong paragraph, or a quotation that is not verbatim. This is the most dangerous failure mode in AI-assisted drafting: a real citation stitched to the wrong case name, a tidied "quotation" that no longer matches the source. The verdict prints what the register actually holds so the error can be repaired rather than merely deleted.

✖ NOT ON REGISTER — no record, though the court and year fall inside the register's stated coverage. Treat the citation as unsafe to rely on until the judgment is located somewhere — but do not report it as fabricated on this evidence alone. The register's own caveat is that coverage within a range is incomplete: not every judgment is sent for publication. Cross-check by party name (find), then on a subscription service, before any conclusion is stated.

◌ OUTSIDE COVERAGE — the register cannot answer. House of Lords judgments are not on Find Case Law at all; most courts' holdings begin in 2001–2003 and several tribunals much later. For these citations the check is not run and no inference arises. A tool that returns "not found" for Kakis v Cyprus has not found a hallucination; it has found its own boundary.

◌ UNCHECKABLE — a law-report citation ([1978] 1 WLR 779). The register resolves neutral citations only. Find the neutral citation by name where one exists (post-2001), or verify in the printed series. Says nothing about whether the case is real.


Running it

The checker ships in this package; Python 3.9+, standard library only, nothing to install:

bash
# One citation, with everything checkable checked
python3 scripts/ukcite.py check "[2015] EWHC 1274 (Admin)" \
    --name "Polish Judicial Authorities v Celinski" \
    --para 13 \
    --quote "the public interest in ensuring that extradition arrangements are honoured is very high"

# Every citation in a draft — .docx is read natively; plain text and
# markdown too. A PDF is refused with instructions, never scanned as noise:
# a verification tool must not return a false clean bill because it could
# not read the file.
python3 scripts/ukcite.py scan skeleton.docx

# Find a neutral citation from a case name (party-name search first)
python3 scripts/ukcite.py find "Celinski"

# A statutory provision — existence, current version, unapplied amendments
python3 scripts/ukcite.py statute "Extradition Act 2003" --section 2

Exit code 0 means everything checked came back VERIFIED; 1 means something needs attention. Every run writes a dated report to ~/.cache/uk-citation-verification/ so that months later the user can say what was checked, when, and what the register answered.

Reading the output for the user. Report MISMATCH and NOT ON REGISTER prominently, with the register's actual holding alongside the claimed one. Report OUTSIDE COVERAGE and UNCHECKABLE as unverified, with the reason — never in the same breath as the failures. A quotation flagged NEAR MISS is corrected from the source text the tool prints, not from memory.

Without a shell — in an assistant that cannot run Python — do not pretend to check. A neutral citation maps to a register URL directly: [2024] UKSC 12 → https://caselaw.nationalarchives.gov.uk/uksc/2024/12; [2019] EWHC 100 (Admin) → .../ewhc/admin/2019/100. Open it, confirm the case name and date, and read the passage cited. For statutes, open https://www.legislation.gov.uk/ukpga/<year>/<chapter>/section/<n> and check the version notes. Consult reference/coverage.md before drawing anything from a miss, and say plainly which citations were checked by hand and which were not checked at all.


Show full SKILL.md (626 more words)Show less

Coverage — where the register can and cannot answer

reference/coverage.md holds the full table as stated by Find Case Law, with the date it was read. The three traps, in descending order of frequency:

  1. The House of Lords is not there. UKSC holdings begin 2009. A UKHL citation can never be verified — or impugned — from this register.
  2. Most courts begin 2001–2003; tribunals later. EAT from 2021, UT (IAC) from 2007, UT (AAC) from 2011, Family Court from 2014. A miss on an early citation is a boundary, not a finding.
  3. Coverage within range is incomplete. The register's own words: not every judgment is sent for publication. This is why NOT ON REGISTER is phrased as "unsafe until located", never "fabricated".

Where a verdict turns on a boundary, re-check the live page — holdings grow: https://caselaw.nationalarchives.gov.uk/courts-and-tribunals.

Why the register only, when other open sources exist. This is a design rule, not an omission. A verdict is only worth grading if resolution is deterministic: Find Case Law resolves a neutral citation to a document, so a miss means something. The open tribunal archives (gov.uk's Employment Tribunal and EAT collections, the tribunals-decisions service) are search engines, not citation-addressable registers — an automated miss there would mean nothing, and folding them in would quietly weaken every verdict. BAILII is excluded on different grounds: it is a mirror rather than the official record, and its robots.txt disallows automated access to the very directories holding England and Wales judgments. So where the register cannot answer, the verdict points at the correct official archive for that citation type and the user checks it by hand — the tool never pretends a search-engine miss is a finding.


What this sends, and where

The tool contacts exactly two hosts, both operated by The National Archives: caselaw.nationalarchives.gov.uk and www.legislation.gov.uk. It sends the citation, name or search terms being checked and nothing else. There is no telemetry, no analytics, no credential, and no callback to the author. Reports are written only to the user's own machine. It identifies itself with an honest User-Agent (ukcite/1.0 …), throttles to about one request per second — far inside Find Case Law's published limit of 1,000 requests per rolling five minutes — and spaces legislation.gov.uk requests five seconds apart, honouring that site's robots.txt crawl-delay even though a targeted lookup is not a crawl. It stops rather than retries if rate-limited. It indexes nothing and follows no links, so the register's noindex,nofollow directives are satisfied by design; fetched content is parsed as data and never executed.

Licensing footing — and the one prohibited use

Find Case Law records are used under the Open Justice Licence v2.0, which expressly permits reading and downloading judgments one at a time as you need them, using the search, and citing them in your work, including commercially. Legislation is used under the Open Government Licence. Acknowledge the source when output from this tool reaches a published document — the verdicts carry the register URLs for exactly that purpose.

What the Open Justice Licence does not permit is computational analysis: programmatic searching in bulk across the records to identify, extract or enrich their contents. This tool checks the citations in the user's document, one at a time, as they need them — the expressly permitted use. Do not loop it across a corpus, use it to harvest judgment text, or build a dataset with it. If a user asks for that, decline and point them to The National Archives' computational-analysis licence, which is free to apply for.

Files

PathWhat it holds
scripts/ukcite.pyThe checker — citation parsing, register lookup, identity/pinpoint/quote verification, graded verdicts, dated reports
reference/coverage.mdThe register's stated coverage per court, with the date it was read and where to re-check

The author's write-up of the verification-duty engineering this skill grew out of: https://mateiclej.substack.com/p/ayinde-proofing-engineering-the-verification.

© lawve-ai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (scripts) in skills/uk-citation-verification-matei-clej of lawve-ai/awesome-legal-skills.

  • SKILL.md
  • LICENSE
  • README.md
  • reference/coverage.md
  • scripts/ukcite.py

Open the folder on GitHubat commit 045f738

Compare with similar skills

Uk Citation Verification Matei Clej next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Uk Citation Verification Matei Clej compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Uk Citation Verification Matei Clej this skilllawve-ai/awesome-legal-skills847—~2.9kAutomated safety check: PassMIT
Jape Literature Positioningfranklee16/academic-research-skills2231 repos~572Automated safety check: PassNone
Tw Legal RAGaa0101181514/tw-legal-rag328—~580Automated safety check: PassCustom licence
Ccf Literature Searchermikubaka88/CCFA-Skills3k—~3.1kAutomated safety check: PassMIT
Indication DossierJimLiu/science-skills2284 repos~1.4kAutomated safety check: PassApache-2.0
Case RetrievalTHUYRan/Legal-Skills-Chinese874—~18kAutomated safety check: PassNone

Similar skills

  • Jape Literature Positioning

    franklee16/academic-research-skills

    A skill your agent uses when positioning a Journal of Applied Econometrics (JAE) manuscript against prior work — applied-econometrics precedent, the methods you apply, and JAE's own corpus and Data…

    223 GitHub starsUsed in 1 repo~572 tokens
    Research & ScienceAuto-check passed
  • Tw Legal RAG

    aa0101181514/tw-legal-rag

    Retrieve real Taiwan court judgments with verifiable citations before answering any question about Taiwan law or case law.

    328 GitHub stars~580 tokensUpdated today
    Legal & ComplianceAuto-check passed
  • Ccf Literature Searcher

    mikubaka88/CCFA-Skills

    Find and verify external literature, prior art, datasets, benchmarks, and citation candidates.

    3k GitHub stars~3.1k tokensUpdated 25 days ago
    Research & ScienceAuto-check passed
  • Indication Dossier

    JimLiu/science-skills

    Generate a therapeutic indication dossier. An agent skill from JimLiu/science-skills.

    228 GitHub starsUsed in 4 repos~1.4k tokens
    Research & ScienceAuto-check passed
  • Case Retrieval

    THUYRan/Legal-Skills-Chinese

    Trigger this skill when the user needs to find similar cases, related judgments, or adjudicative rules relevant to a current legal issue.

    874 GitHub stars~18k tokensUpdated 1 mo ago
    Legal & ComplianceAuto-check passed
  • Citation Graph Ingest

    garrytan/gbrain

    Build a TYPED citation/reference graph over an ingested corpus — not just embeddings.

    31k GitHub stars~3k tokensUpdated yesterday
    Research & ScienceAuto-check passed

More from lawve-ai/awesome-legal-skills

All 154 skills in this repo
  • Customs Trade Law Onur Kafkas

    lawve-ai/awesome-legal-skills

    U.S. An agent skill from lawve-ai/awesome-legal-skills.

    847 GitHub stars~4.1k tokensUpdated 8 days ago
    Auto-check passed
  • Eu Data Act Oliver Schmidt Prietz

    lawve-ai/awesome-legal-skills

    Practitioner skill for advising on EU Regulation 2023/2854 (Data Act).

    847 GitHub stars~3.9k tokensUpdated 8 days ago
    Auto-check passed
  • Litigation Deadline Calendar

    lawve-ai/awesome-legal-skills

    Calendar litigation and arbitration deadlines from a scheduling order.

    847 GitHub stars~4.3k tokensUpdated 8 days ago
    Auto-check passed
  • Outlook Emails Lawvable

    lawve-ai/awesome-legal-skills

    Read, search, and download emails and attachments from Microsoft Outlook via OAuth2.

    847 GitHub stars~672 tokensUpdated 8 days ago
    Auto-check passed
  • Ambiguity Report

    lawve-ai/awesome-legal-skills

    Turn an interpretive-ambiguity audit of a legal text — contract, statute, regulation, or judicial opinion — into a polished deliverable.

    847 GitHub stars~4.6k tokensUpdated 8 days ago
    Auto-check passed
  • Az Eu Website Privacy Audit

    lawve-ai/awesome-legal-skills

    Audits a website for compliance with Azerbaijan's Law on Personal Data No.

    847 GitHub stars~3.8k tokensUpdated 8 days ago
    Auto-check passed

Questions about Uk Citation Verification Matei Clej

What does Uk Citation Verification Matei Clej do?

Verifies UK case-law citations, pinpoint references and quotations against the official public register — The National Archives' Find Case Law — and statutory references against legislation.gov.uk…. Uk Citation Verification Matei Clej is an agent skill from lawve-ai/awesome-legal-skills.uk, before a document that cites them is relied on, served or filed.

When should I use Uk Citation Verification Matei Clej?

Uk Citation Verification Matei Clej fits situations like: asked to check citations; verify a case exists; confirm a quotation is verbatim; check a pinpoint paragraph.

How do I install Uk Citation Verification Matei Clej in Claude Code?

Run `npx skills add lawve-ai/awesome-legal-skills --skill uk-citation-verification-matei-clej -a claude-code`. Or copy the skill folder (skills/uk-citation-verification-matei-clej in lawve-ai/awesome-legal-skills) into .claude/skills/uk-citation-verification-matei-clej in your project. Claude Code loads it when a task matches its description.

How do I install Uk Citation Verification Matei Clej in Codex?

Run `npx skills add lawve-ai/awesome-legal-skills --skill uk-citation-verification-matei-clej -a codex`. Or copy the skill folder (skills/uk-citation-verification-matei-clej in lawve-ai/awesome-legal-skills) into .agents/skills/uk-citation-verification-matei-clej in your project. Codex loads it when a task matches its description.

Can I use Uk Citation Verification Matei Clej in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add lawve-ai/awesome-legal-skills --skill uk-citation-verification-matei-clej -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/uk-citation-verification-matei-clej, .gemini/skills/uk-citation-verification-matei-clej, .github/skills/uk-citation-verification-matei-clej and .opencode/skills/uk-citation-verification-matei-clej in your project.

What does Uk Citation Verification Matei Clej need to run?

Going by SKILL.md and its folder, Uk Citation Verification Matei Clej needs Python for the scripts in its folder and the command-line tools its instructions call (python3). Our summary lists: Python 3.

Does Uk Citation Verification Matei Clej access the network?

SKILL.md names 3 domains. In commands or code: caselaw.nationalarchives.gov.uk and legislation.gov.uk; the agent is likely to contact these when it follows the instructions. As links in the text: mateiclej.substack.com. This is read from the text; nothing was executed.

Is Uk Citation Verification Matei Clej safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Uk Citation Verification Matei Clej use?

Uk Citation Verification Matei Clej is published under the MIT licence (from the LICENSE file in the skill folder). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Uk Citation Verification Matei Clej use?

About 2.9k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Uk Citation Verification Matei Clej?

Skills that share tags, products or a category with Uk Citation Verification Matei Clej: Jape Literature Positioning (franklee16/academic-research-skills, 223 stars), Tw Legal RAG (aa0101181514/tw-legal-rag, 328 stars), Ccf Literature Searcher (mikubaka88/CCFA-Skills, 3k stars) and Indication Dossier (JimLiu/science-skills, 228 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Uk Citation Verification Matei Clej?

lawve-ai (a GitHub organization) maintains it in lawve-ai/awesome-legal-skills, which has 847 GitHub stars. The repository holds 154 skills in this directory. The repository was last updated on October 2, 2026.

Source: lawve-ai/awesome-legal-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.