Legal Hallucination Verifier
Paste the following prompt into your AI chat to install this skill:
Follow https://skillhub.cn/install/skillhub.md to install @user_0e939208/legal-verify in your AI assistant.
About this skill
Problem
In formal legal writing, the risk is often not style but citation: an invalid regulation, a modified clause, or a fabricated case number can turn an otherwise clear opinion into a compliance failure.
How It Works
This skill is for explicit citation-checking tasks, such as “verify legal citation,” “fact-check legal,” or drafting formal opinions, pleadings, and compliance reviews that cite statutes, clauses, or case numbers. It extracts plain text and calls hall_detect using X-API-Key authentication, submitting the text as text and preserving response.json with HTTP_STATUS.
It turns regulations[], cases[], and highlighted_text into an auditable review table. Regulations are checked against validity_status, semantic_compare.结论, and think_tank_content; cases are checked for court, date, facts, and key judgment points. Unverifiable case numbers are marked as “not found” or highly suspicious. The output uses fixed verdicts: accurate, validity risk, semantic mismatch, validity risk + semantic mismatch, not found.
Boundaries
Use it when formal sources matter, not for casual legal concept explanations or discussions without citations. If the API key is missing, authentication fails, or the response is unparsable, report the failure instead of inventing statutory text.
Use Cases
- Verifying whether cited statute clauses in a formal legal opinion are still in effect before finalizing the draft.
- Cross-checking case numbers and case facts against an authoritative database before drafting litigation documents.
- Extracting all statute citations from a compliance review report and flagging semantic mismatches before delivery.
- Pulling plain text from a client-supplied .docx file and locating unverifiable or suspicious references.
Best For
- In-house counsel or lawyers: drafting formal opinions or pleadings and needing clause-by-clause citation validation.
- Compliance reviewers: flagging invalid regulations and semantic mismatches before signing off on a review.
- Legal content editors: rewriting or compiling documents with statute citations and distinguishing verified sources from hallucinations.
- Risk or audit teams: tracing suspicious case numbers to authoritative links while re-auditing historical compliance files.
Related Skills
A local A-share quant workspace for quotes, k-lines, conditional screening, MA/RSI backtesting, simulated trading, and risk control via REST APIs.
Systematically identify and evaluate the economic moats of listed companies using the Tang Shu Fang investment methodology for long-term investment analysis.
A skill that converts natural language questions into A-stock data queries and returns verifiable structured analysis conclusions, covering multi-dimensional analysis of market trends, fundamentals, and news.
An AI financial copilot by Wind, integrating financial databases and multimodal analysis to provide end-to-end support across investment research, asset allocation, risk control, quant, and report generation.