bailii-case-download

bailii-case-download is a skill for Claude Code, Codex from ciaransaunders/Skills-Public. It costs 145 tokens per session (1,019 once invoked), scanned A, original, MIT.

A downloader for full UK and Irish court judgments from BAILII, a free online legal database. It searches by case citation or URL, cleans the judgment, and can save it as a PDF.

In plain words
What is it for?
Use it to fetch a case by neutral citation, search BAILII, download a judgment, and save a cleaned PDF or HTML copy. It supports citations such as “[2024] EAT 114” and “[2021] UKSC 5”.
Why use it?
BAILII uses a bot check and its pages include navigation and other material that is not part of the judgment. This tool handles the access step and produces a cleaner document for reading or verification.

Skill for Claude CodeCodex

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

Good fit Use it to fetch a case by neutral citation, search BAILII, download a judgment, and save a cleaned PDF or HTML copy. It supports citations such as “[2024] EAT 114” and “[2021] UKSC 5”.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ciaransaunders/skills-public/bailii-case-download
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 ciaransaunders/Skills-Public --skill bailii-case-download
Clone the repo
git clone --depth 1 https://github.com/ciaransaunders/Skills-Public

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 bailii-case-download

README.md
[![agentmods](https://agentmods.dev/badge/skills/ciaransaunders/skills-public/bailii-case-download/github.svg)](https://agentmods.dev/skills/ciaransaunders/skills-public/bailii-case-download)
Your own site
<a href="https://agentmods.dev/skills/ciaransaunders/skills-public/bailii-case-download"><img src="https://agentmods.dev/badge/skills/ciaransaunders/skills-public/bailii-case-download/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 bailii-case-download

Your own site · 80×15
<a href="https://agentmods.dev/skills/ciaransaunders/skills-public/bailii-case-download"><img src="https://agentmods.dev/badge/skills/ciaransaunders/skills-public/bailii-case-download.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 145 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,019 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00145 $0.01019
Opus 5 $0.00072 $0.00509
Sonnet 5 $0.00029 $0.00204
Haiku 4.5 $0.00015 $0.00102

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

Security

Grade A, and why

bailii-case-download scanned grade A with 1 finding 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 11d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/bailii_fetch.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

over `web_fetch`/`curl`, which will just hit the "Making sure you're not a bot!"
bailii-case-download/SKILL.md · 84 lines

How it starts

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

BAILII case downloader

Fetches UK/Irish judgments from BAILII and saves them as clean, readable PDFs (BAILII chrome, nav, search forms, donation banners and footers removed).

BAILII now sits behind Anubis — a JavaScript proof-of-work bot wall, on top of its long-standing cloud-IP block. The bundled script solves the proof-of-work in pure Python (no browser needed) and handles BAILII's CGI quirks, so prefer it over web_fetch/curl, which will just hit the "Making sure you're not a bot!" page.

The script

scripts/bailii_fetch.py — self-contained, Python 3 stdlib only for fetching. PDF rendering uses the first available of: wkhtmltopdf → headless Chrome/Chromium → weasyprint. If none is present it saves the cleaned HTML and says so in the output (you can then convert it yourself).

Run it with python3 scripts/bailii_fetch.py <command> .... All commands print JSON to stdout.

Choosing a command (in order of preference)

1. cite — when you have a neutral citation. Most reliable; use this first.

python3 scripts/bailii_fetch.py cite "[2024] EAT 114" --out DIR

Resolves the citation via BAILII's citation finder and downloads the case. Works for the usual courts: UKSC, UKHL, UKPC, EWCA, EWHC, EAT/UKEAT, UKUT, etc. Exits with code 2 and a helpful message if the citation doesn't resolve.

2. url — when you already have the BAILII case URL.

python3 scripts/bailii_fetch.py url "https://www.bailii.org/uk/cases/UKSC/2021/5.html" --out DIR

3. search — when you only have the case name. Returns candidates; does NOT auto-download.

python3 scripts/bailii_fetch.py search "Uber Aslam" --limit 6

Prints a JSON list of {url, title} candidates (title-scoped search — fuzzy by design). Pick the right one yourself, confirm with the user if ambiguous, then download it with url. Don't assume the first result is correct; BAILII often returns the whole litigation chain (ET → EAT → CA → SC) and you want the specific instance the user means.

Read the full file on GitHub · 84 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 11d ago First seen · 84 lines · 145 tokens per session scan A d34152eaf9c5

Subscribe to this mod's changes

bailii-case-download is a skill published in the GitHub repository ciaransaunders/Skills-Public (2 stars, last pushed 2mo ago), licensed MIT. It adds 145 tokens to every session and 1,019 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

synthesize

Thesis report synthesis — turn a thesis's markdown artifacts into its letter-size thesis-report.html, then OPTIMIZE it against real page renders. Four-step loop — pack (deterministic Python bundle of all sources + report/metrics.json), author (the LLM writes report/content.html — narrative, KPI tiles, badges…

agentii-ai/agentii-investment-intelligence · 134 tokens

law-to-markdown

A legal-document conversion skill for turning PDF, Word, or plain-text regulations into structured Markdown. Markdown is a text format that uses simple symbols for headings and lists.

anbeime/skill · 86 tokens

court-sms

A workflow that reads court text messages or delivery links, extracts case details, downloads court documents, and files them in the matching case folder.

ThomasMoreAI/legal-skills-open · 54 tokens

chinese-copyright-application

A document-generation toolkit for preparing Chinese software copyright registration materials from a software project’s code and documentation. It supports applications for web apps, mobile apps, desktop software, and WeChat mini programs.

ThomasMoreAI/legal-skills-open · 102 tokens

chinese-copyright-application-okooo5km

A document-generation tool for preparing Chinese software copyright registration materials from a software project. It creates a Markdown application form and LaTeX source files for a source-code document, user manual, and design description.

ThomasMoreAI/legal-skills-open · 179 tokens

okhp3-sharepoint-library-contract-extractor

Extract specified obligation, renewal, notice, owner, counterparty, and risk fields from selected SharePoint contract files into a review queue. Use when contracts need operational visibility. Do not use to interpret legal obligations, update records, or send notices automatically.

OKHP3/skillz · 60 tokens