/documents:searchable-case-files-enfrom documents
Turns a folder of case files (PDFs, including scans with no text layer) into text with page numbers, a local search tool and a report: unreadable pages, duplicate files and files with IDENTICAL text under different names (sometimes a sign that a document is missing). OCR runs locally on the CPU - the case text never leaves the computer, no account, no cloud. Use when: "search the case files", "make the bundle searchable", "where in the file is", "OCR the documents", "scanned bundle", "what is missing from the case file", "digitize the case file".
Ships in documents. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
A folder of scanned case files becomes text you can search. Every hit shows the file and the page, so you can check it against the original right away.
python -m pip install liteparse==2.14.6
python scripts/akta.py --check
python scripts/akta.py "C:/Cases/2024-CV-123/bundle"
cd "C:/Cases/2024-CV-123/bundle-text"
python szukaj.py "expert report"
--check takes a few seconds to assess the machine: Python, the OCR library (whether Windows lets
it load), Smart App Control (read-only), the language model and disk space. Result: OK, NOTES or
BLOCKED (exit 0/10/20). Run it before starting on a large bundle.
The script names are Polish (the code is shared with the Polish twin): akta.py means
"case files", szukaj.py means "search".
Pick the language of the documents, not of the user. English is the default;
Portuguese case files (Brazil, Portugal) need --lang por, Polish ones --lang pol. The
report and messages follow the same language. Reading Portuguese scans with the English
model loses most accents and about one word in six (measured, see Limits).
The first run downloads the OCR model for the chosen language (Tesseract language data,
12-15 MB, Apache-2.0). To work offline, download it once and pass its folder with
--tessdata.
<document>.txt - text with ===== page N ===== markers;REPORT.md - status of every file, unreadable pages, duplicates by bytes and by text;szukaj.py + indeks.sqlite - search tool: file, page, snippet.Search ignores letter case and accents. It matches whole words: contract does not find
contractor. Add --prefix to match word beginnings as well.
[UNREADABLE PAGE - check the original]; read that page in the PDF.BLOCKED (exit code 20) - a file is incomplete or would not open. Do not treat
its text as complete.$ -> § repair runs only for Polish (--lang pol);
in English and Portuguese documents $ 5,000 and R$ 5.000 are amounts.--lang por): 99.3% of words
findable at 300 dpi, 92.6% degraded; the English model on the same scan found 83.9% and
kept 39 of 272 accented letters.pdfium.dll, _liteparse.pyd). The skill turns "DLL load failed" into a message that
names Smart App Control - verified on a simulated error, not on a machine with SAC on.
Changing that setting is the computer owner's decision.python -m pytest tests -q
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub matematicsolutions/awesome-matematic-skills-en --plugin documents