- Home
- Skills
- Legal & Compliance
- citewarden
More screenshots
Works with the AI Agents you already use
citewarden
by Umer Farooq
Verify legal case citations against the CourtListener record to catch hallucinations and party name mismatches.
Free
citewarden
Example session with this skill installed
Please cite-check this excerpt: The court in Smith v. Jones, 412 F.3d 110 (2d Cir. 2005) held that summary judgment was improper. Id. at 112. See also 26 U.S.C. § 7201.
- Read your context and instructions
- Compiled the citewarden
- Generated the document
I have processed the text through the CiteWarden verification script. I wrote the content to a temporary file and performed a lookup against the CourtListener record database.
Citation Verification Report
WARNING: Name Mismatch Detected
The citation 412 F.3d 110 points to a real entry in the Federal Reporter, but the record indicates the case name is
United States v. Mesirow (6th Cir. 2005), not
Smith v. Jones. This is a high-confidence signal of a hallucinated or incorrect citation.
Verified Full Citations
| Citation | Status | Verified Case Name | Court / Year |
|---|---|---|---|
| 412 F.3d 110 | MATCH (Name Mismatch) | United States v. Mesirow | 6th Cir. 2005 |
Other References (Not Verified)
- Short Form / Id. Cites:
Id. at 112(Linked to 412 F.3d 110). These were not independently checked. - Non-Case Citations:
26 U.S.C. § 7201. This tool does not verify statutes.
Important Disclaimers
- Not a Citator: A match confirms the case exists in the record. It does not confirm the case is still "good law" or hasn't been overruled or vacated.
- Content Accuracy: This tool confirms the citation exists, not that it supports the specific legal proposition or quote attributed to it.
- Verification Limits: "Unmatched" results may include fabricated cases, but also valid cases not yet indexed, such as very recent or unpublished state court decisions.
Next steps
- Review the record for United States v. Mesirow to see if the holding was intended.
- Manually verify the statutory reference to 26 U.S.C. § 7201.
- Check if the 2005 6th Circuit holding is still valid in your jurisdiction.
citewarden.pdf
PDF · document
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
About this skill
LLM-drafted legal documents often include fabricated or mismatched case citations, leading to severe professional and judicial consequences. CiteWarden mitigates this risk by verifying citations against the real court record rather than relying on model memory. It identifies hallucinated cases that reuse real reporter volumes and pages but substitute incorrect party names.
What it does
- Citation Extraction automatically parses legal text to identify full case citations, short forms, and statutes.
- Record Verification checks full volume and page citations against the CourtListener/Free Law Project database.
- Name Cross-Checking detects instances where a citation refers to a real case but the provided party names do not match the official record.
- Categorized Reporting separates verifiable full citations from short-form references (
Id.,supra) and non-case citations like statutes. - Risk Signaling flags unmatched citations for manual review without making definitive claims of fabrication.
How it works
- Source Ingestion where the user pastes a brief or memo into the agent environment.
- Secure Writing of the untrusted text to a local temporary file to prevent shell injection or command breakage.
- Execution of the verification script using a Free Law Project API token to query the official record.
- Data Analysis of the resulting JSON to match party names and verify citation existence.
- Report Delivery including a verification table, mismatch alerts, and mandatory legal disclaimers.
Frameworks & tools
The skill requires python3 with the eyecite and requests libraries. It interfaces with the CourtListener API and uses local file handling to process legal documents securely.
Why this beats prompting it yourself
Standard LLMs frequently hallucinate convincing but non-existent case law because they predict tokens rather than querying databases. CiteWarden forces an external truth check against a primary source, catching "phantom" citations that look correct but point to the wrong case or no case at all.
Use cases
- Verify AI-generated drafts before filing them with a court.
- Cite-check opposing counsel's briefs for fabricated authority.
- Audit internal memos for accuracy in citation formatting and naming.
- Rapidly identify non-indexed or unpublished cases requiring manual lookup.
Known limitations
This tool does not verify statutes, regulations, or local rules. It cannot determine if a case is still "good law" (it does not Shepardize) or if a specific quote within the case is accurate.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 15 days ago
- Free with an Agensi account
- Accounts
Courtlistener
- Software
Python
Permissions
Allowed Hosts
What's inside
Frequently Asked Questions
New in Legal & Compliance
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Legal & Compliance.