igorsaevets

Krokai Law — AI skill for Claude Code

AI community

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

[![selftest](https://github.com/igorsaevets/krokai-law/actions/workflows/selftest.yml/badge.svg)](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