Krokai Law — AI skill for Claude Code
AI citation and quote checker for legal documents: verifies every quotation in a ChatGPT or Claude draft word for word against the statutes, regulations, USCIS Policy Manual and case law on your disk.
How to install Krokai Law
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open igorsaevets/krokai-law and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Krokai Law does
AI citation and quote checker for legal documents: verifies every quotation in a ChatGPT or Claude draft word for word against the statutes, regulations, USCIS Policy Manual and case law on your disk. Catches fake and altered quotes (AI hallucinations) in USCIS petitions (EB-2 NIW, EB-1A), RFE responses and briefs. Free, open source, runs offline.
Alternatives in AI
- Fact Checker — Verify claims and facts with sources 653 ★
- Aar Loop — Run an After Action Review after any AI session and write concrete lessons so your agent stops repeating mista 78 ★
- Suzielaw — An open-source alternative to Harvey 63 ★
README
KrokAI Law — AI citation and quote checker for legal documents
[](https://github.com/igorsaevets/krokai-law/actions/workflows/selftest.yml)
**Check every quotation in your legal draft against the real source — before you file it.**
An AI assistant — ChatGPT, Claude, Gemini — drafts a USCIS petition, an RFE response or a brief in minutes. Some of what it puts in quotation marks is not in the source (an AI "hallucination"): a sentence the court never wrote, a regulation with its condition quietly dropped, the right words under the wrong citation. KrokAI Law is a free, open-source command-line tool that compares every quoted passage in your documents with the text of the law you downloaded, and tells you which quotations do not match and how. It runs on your computer: the draft is not uploaded anywhere, and no AI model decides the verdict.
*Русская версия: [README.ru.md](README.ru.md) · 简体中文: [README.zh-CN.md](README.zh-CN.md)*
| The pain | an invented or altered quotation looks exactly like a real one, and the person who signs pays for it |
| The fix | every quotation compared word for word with the statute, regulation, Policy Manual chapter or decision on your disk |
| The result | a list of what to fix, with the page each word stands on, before anything is filed |
| The price | free, MIT licence, no account, no API key |
The problem: hallucinated quotations in legal filings
**Invented quotations look exactly like real ones.** A model was asked to open a federal regulation and quote it. It opened the right page, attached a correct, working link — and invented the text of the rule, word for wor
Related Skills
Cite Guard
Research CLI for AI agents: searches the sources each field trusts (PubMed, arXiv, NASA NTRS, ISAP, SAOS...) a
Factual Research
Research CLI for AI agents: searches the sources each field trusts (PubMed, arXiv, NASA NTRS, ISAP, SAOS...) a
Legal MCP
The first comprehensive US legal MCP server -- case law, citations, practice management, and court filings for
Quoteproof
Research you can check. An evidence-first skill for AI agents: cheap parallel workers must quote sources word-
Claude Skill Citation Checker
AI citation hallucination detector — verify .bib files against CrossRef, Semantic Scholar, OpenAlex. Claude Co
Aegis Integrity
Open-source, offline, bias-aware academic integrity checker: plagiarism, AI-text detection, citation verificat
Related Agents
Admin Verify Law
Verify every legal citation in a document — must quote provisions verbatim, never paraphrase, and flag anythin
Mpep Expert
Expert in USPTO MPEP, 35 USC statutes, and 37 CFR regulations. Provides legal research, examiner guidance, and
Statutory Researcher
Searches primary normative acts (statutes, regulations, directives, secondary legislation) for issues listed i