agentleFS
LegalQuantsLegalQuants/lq-skills/skills/uk-citation-verification/SKILL.md

uk-citation-verification

Skill63 starsChanged 6 months agoApache-2.0View on GitHub

Use when users say "verify these UK citations", "check this skeleton for hallucinated cases", "BAILII/FCL check", "is this EWCA citation real", or need UK authorities, paragraph references, case names, or quotations checked against public sources.

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 7 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Live source mode: - use browser, web search, MCP, API, or other configured access to retrieve public authority sources.

    line 40
  2. Distinctive:

    User-supplied source mode: - use judgment PDFs, HTML, text, screenshots, exports, URLs, or pasted source material supplied by the user.

    line 41
  3. Very specific:

    If the source cannot be retrieved or supplied, do not verify from model memory.

    line 44
  4. Distinctive:

    Keep each citation's location in the source document.

    line 57
  5. Distinctive:

    Check each authority using available sources, in this order where possible:

    line 61
  6. Very specific:

    Use citation-not-found only after recording the sources and queries searched.

    line 83
  7. Distinctive:

    Keep unresolved authorities unresolved.

    line 123
  8. Distinctive:

    Stop and ask when the citation appears Scottish, Northern Irish, tribunal-specific, devolved, non-UK, or otherwise outside the available …

    line 127
  9. Distinctive:

    Not every UK judgment is available in public databases.

    line 140

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

uk-citation-verification

When to Use

  • A draft cites UK cases and needs a pre-filing citation audit.
  • AI-generated legal text may contain hallucinated authorities.
  • A user wants to verify neutral citations, party names, report citations, or quoted passages.
  • A cited proposition needs to be tied back to the authority actually retrieved.

This skill verifies existence and citation integrity. It does not decide the merits of the case.

For Scotland, Northern Ireland, tribunal-specific, or devolved materials, identify the applicable official source before treating the citation as verified.

Audience and Work Shape

Audience: UK litigators, trainees, paralegals, and legal researchers checking draft legal text before lawyer review or filing.

Work shape: pattern-matched verification. The skill resolves and classifies citations; it does not decide whether the authority supports a proposition.

Legal Failure Modes

  • Legal support, not legal advice: citation existence and integrity checks do not decide merits or legal propositions.
  • Privilege/confidentiality: drafts may be privileged or confidential. Use only approved environments or user-supplied/public sources; do not send client drafts to unapproved services.
  • Accountability: unresolved, ambiguous, traditional, or lower-confidence authorities remain for lawyer/researcher review.

Access Modes

This skill works in three modes:

  1. Live source mode - use browser, web search, MCP, API, or other configured access to retrieve public authority sources.
  2. User-supplied source mode - use judgment PDFs, HTML, text, screenshots, exports, URLs, or pasted source material supplied by the user.
  3. No-source mode - extract citations and prepare a verification queue, but do not mark citations as verified.

If the source cannot be retrieved or supplied, do not verify from model memory. Mark the item unverified-source-unavailable and ask for a source, URL, export, or connector.

How It Works

1. Extract citations

Parse the text for:

  • Neutral citations, such as [2024] UKSC 1, [2023] EWCA Civ 10, [2022] EWHC 123 (KB).
  • Traditional law report citations where present.
  • Case names adjacent to citations.
  • Paragraph references and quoted passages tied to a citation.

Keep each citation's location in the source document.

2. Resolve against public sources

Check each authority using available sources, in this order where possible:

  1. The National Archives Find Case Law.
  2. BAILII.
  3. Court or tribunal source pages.
  4. Other sources may be used only to locate leads.

Do not classify an authority as verified from search snippets, summaries, commentary, unofficial mirrors, or model memory. If only unofficial material is available, classify it as unverified-source-unavailable or lower-confidence-lead. If no live source, database export, or user-supplied authority text is available, stop verification and say what access is missing.

3. Classify each citation

Use these statuses:

  • verified - citation and case identity match a retrieved source.
  • case-name-mismatch - citation exists but party names differ materially.
  • citation-not-found - search found no matching authority.
  • paragraph-not-found - authority exists but cited paragraph was not found.
  • quote-mismatch - quoted words differ from retrieved text.
  • unverified-source-unavailable - source could not be checked.
  • duplicate-or-ambiguous-match - search returns multiple plausible authorities.
  • lower-confidence-lead - unofficial material suggests a possible match, but no verification-grade source was retrieved.

Use citation-not-found only after recording the sources and queries searched. If the search could not be run, use unverified-source-unavailable.

Confidence Bands

  • High: direct public/official source match with retrieved text and matching citation/case name.
  • Medium: existence appears confirmed but text, party names, paragraph, or quote still needs checking.
  • Low: indirect mention, ambiguous match, traditional citation without primary text, or unofficial/source-limited lead.

4. Check quotation and paragraph integrity

For direct quotes:

  • Compare the quotation against retrieved text.
  • Flag ellipses, substitutions, or changed emphasis.
  • Distinguish harmless punctuation differences from substantive wording changes.

For paragraph references:

  • Confirm paragraph number exists.
  • Confirm the cited paragraph appears to support the proposition only if the user asks for proposition checking.

5. Report with evidence

Output a table:

FieldMeaning
citationcited authority
document_locationwhere it appears
retrieved_case_namecase name from the matched source
retrieved_citationcitation from the matched source
retrieved_court_datecourt and judgment date from the matched source
statusclassification
matched_sourceURL or source name
sources_searchedsources and search queries used
date_checkeddate verification was performed
source_typeofficial, public database, court/tribunal page, subscription, user-supplied, or unofficial
issuewhat is wrong, if anything
suggested_next_stepverify, correct, replace, or research manually

Keep unresolved authorities unresolved. A false negative is annoying; a false positive is dangerous.

Escalation

Stop and ask when the citation appears Scottish, Northern Irish, tribunal-specific, devolved, non-UK, or otherwise outside the available public-source path and the correct official source cannot be identified. Do not fall back to BAILII or model memory as if it were verification-grade for those sources.

Example

Check the citations in this skeleton argument. Verify UK neutral citations against Find Case Law or BAILII, flag any case-name mismatches, and do not summarize cases that cannot be retrieved.

For a compact output pattern, see examples/output.md. For resolution states, match quality, and source hierarchy, see references/citation-resolution-model.md.

Limitations

  • Not every UK judgment is available in public databases.
  • Traditional report citations may require subscription databases or manual checking.
  • Citation existence does not prove that the cited proposition is correct.
  • Tribunal and older authorities may need specialist sources.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.