citation-integrity-checker
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "citation-integrity-checker" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-aa24360f78f4ba94a9cb68b2f114824299b23094b7f61bfda2f16cebfbca83b2. Verify the upstream source and version against https://github.com/rohasnagpal/legal-ai-skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Extract every citation in a document (statutes, cases, rules, regulations, citations, or cross‑references) and specify what must be verified and how to verify it; attempt live verification when research tools are available, otherwise produce a structured verification checklist. Applicable where citations must be checked before reliance, addressing the risk of AI‑assisted drafting producing inaccurate citations.
Introduction source: third_party · rohasnagpal · 0.0.1 Reference
SkillPi interpretation
- Tasks
- Extracts every citation in a document — statute, case, rule, regulation, quotation, or cross-reference — and states exactly what needs verifying about it and how, attempting live verification where research tools are available this session and producing a structured checklist where they are not. Use this whenever a document's citations need checking before anyone relies on them — including phrasings like "check every citation in this opinion before we send it", "verify these case references are real", "does this quote actually say what we're attributing to it", "audit the citations in this pleading", or "make sure none of these sections are made up". Directly responsive to the risk this whole practice pack warns about — an AI-assisted draft can produce a citation that looks correct and is not. Fires on any document containing legal citations, quotations, or cross-references, in any practice area.
- Inputs and outputs
- 1. Header.** Document reviewed, whether live verification was attempted this session or the pass was checklist-only, date. 2. Citations.** A table: # | Citation as it appears | Type | What to verify | How to verify | Result — Confirmed / Could not confirm / Contradicted / Not attempted. 3. Suspicious citations.** Any showing internal tells of possible fabrication, flagged even where external verification was not possible. 4. Priority order.** Which citations matter most to verify first, based on how load-bearing the point they support is. 5. Verification method note.** A plain statement of whether this pass involved live verification or produced a checklist only, so the reader cannot mistake
- Testing
- Not tested
Browse files
Frontmatter
name: citation-integrity-checker
description: Extracts every citation in a document — statute, case, rule, regulation, quotation, or cross-reference — and states exactly what needs verifying about it and how, attempting live verification where research tools are available this session and producing a structured checklist where they are not. Use this whenever a document's citations need checking before anyone relies on them — including phrasings like "check every citation in this opinion before we send it", "verify these case references are real", "does this quote actually say what we're attributing to it", "audit the citations in this pleading", or "make sure none of these sections are made up". Directly responsive to the risk this whole practice pack warns about — an AI-assisted draft can produce a citation that looks correct and is not. Fires on any document containing legal citations, quotations, or cross-references, in any practice area.Citation Integrity Checker
I am using the Citation Integrity Checker skill from Rohas Legal AI: flags every citation with what must be verified and how. Say this sentence, verbatim, before anything else in your response.
What this does
Reads a document and extracts every citation it contains — a statute or section, a case, a rule or regulation, a quoted passage attributed to a source, an internal cross-reference to another clause or document — and states precisely what needs to be checked about each one and how. Where research tools are available this session, it attempts the verification directly and reports the result. Where they are not, it produces the checklist without pretending to have checked anything. Every citation is extracted, not just the ones that look suspicious — a fabricated citation is dangerous precisely because it is usually formatted to look correct.
Before you start
The document to check. Blocking — there is nothing to extract citations from without it.
Whether research or verification tools are available this session. This determines the mode. If they are, attempt live verification and report a result for each citation. If they are not, produce the structured checklist and state plainly that verification has not actually been performed — never let a checklist read as though it confirmed anything.
Method
1. Read the whole document once, extracting every citation as it is found — statutes and sections, cases, rules, regulations, contractual or document cross-references, and quotations attributed to a named source, with any pin cite or page reference.
2. Classify each citation by type, since what needs checking differs: statute or section, case, regulation, quoted authority, or internal cross-reference.
3. State precisely what needs verifying for each type. For a statute or section: does it exist, is it currently in force, does it say what is attributed to it, has it been amended since. For a case: does it exist, does it say what is attributed to it, is it still good law and not overruled or reversed, is the pin cite accurate. For a quotation: does the quoted text match the source exactly, and is it quoted in context rather than misleadingly excerpted. For an internal cross-reference: does the referenced clause or section actually exist in the document and say what the reference implies it says.
4. Where research tools are available, attempt the verification directly — retrieve the current text, check whether the citation resolves and says what is attributed to it — and report a result: Confirmed, Could not confirm, or Contradicted. Do not silently correct or alter the document itself; report findings only, and keep results clearly separated by status.
5. Where research tools are not available, produce the checklist without attempting verification, and say so explicitly. A citation marked "not verified" is not the same as a citation marked "confirmed," and the output must never blur the two.
6. Flag any citation that shows an internal tell of possible fabrication even without external verification — a suspiciously generic-sounding case name, a citation format inconsistent with the rest of the document, an implausible pin cite for the type of source. These are common signs of a fabricated or misremembered citation and are worth flagging regardless of whether live verification is possible.
7. Extract and report every citation, not only the ones that look suspicious. A checker that only reports what it is suspicious of will systematically miss a confidently fabricated citation that happens to look plausible — which is the actual failure mode this skill exists to catch.
8. Rank citations by how much weight they carry. A citation supporting a load-bearing conclusion is a higher priority to verify than one supporting a minor or background point.
Output
1. Header. Document reviewed, whether live verification was attempted this session or the pass was checklist-only, date.
2. Citations. A table: # | Citation as it appears | Type | What to verify | How to verify | Result — Confirmed / Could not confirm / Contradicted / Not attempted.
3. Suspicious citations. Any showing internal tells of possible fabrication, flagged even where external verification was not possible.
4. Priority order. Which citations matter most to verify first, based on how load-bearing the point they support is.
5. Verification method note. A plain statement of whether this pass involved live verification or produced a checklist only, so the reader cannot mistake one for the other.
Do not
Do not present an unverified citation as verified, and do not let a checklist-only pass read as though anything was confirmed.
Do not silently skip a citation because it looks obviously correct. Extract and report every one.
Do not alter or "fix" a citation found to be wrong. Report it and leave the correction to the user or drafter.
Do not assume a citation is accurate because it is formatted correctly. Formatting and accuracy are independent.
Do not treat every citation as equally urgent. Rank by how much the document's conclusion depends on it.
Version history
-
v4.3.0
GitHub ↗
Original release notes
## Singapore joins the firm Singapore is now the fourth Jurisdiction Counsel alongside India, the US and the UK, integrated across all 17 specialist practice areas. - 18 Singapore-specific legal skills cover corporate, contracts, civil procedure, arbitration, criminal, family, property, tax, insolvency, banking and finance, employment, IP, regulatory compliance, privacy, consumer remedies, public law, investigations and authority verification. - Counsel gateway, specialist ownership, jurisdiction gates, operating rules, official source guides and research safeguards follow the existing firm architecture. - Managing Partner routing, cross-border work, the welcome, skill registry, README, installation messaging and packaging include Singapore. - 27 behavioural scenarios and a manual testing guide cover practice-area routing, foreign/unclear jurisdiction, seat versus governing law, source failures and saved matters. **The firm:** 1 Managing Partner, 17 Specialist Lawyers, 4 Jurisdiction Counsel, 244 Legal Skills and 20 Workflows. Of the legal skills, 78 are jurisdiction-specific: 48 India, 6 US, 6 UK and 18 Singapore. Singapore research uses authoritative websites and authorised supplied records. No dedicated Singapore MCP connector or paid-registry entitlement is added; the existing 14 connected-source count is unchanged. Blocked or unavailable primary material must be disclosed rather than treated as verified law. ## Test it [Singapore testing guide](https://github.com/rohasnagpal/legal-ai-skills/blob/v4.3.0/docs/testing-singapore.md) After updating and restarting, try “Hello Rohas”, “What can Singapore Counsel do?”, or a Singapore matter with the represented party, documents and dates. ## Updating Paste into Claude Code or Codex: ```text Update Legal AI Skills from https://github.com/rohasnagpal/legal-ai-skills ``` Claude Code: reload plugins or start a new session. Codex: start a new chat; in the desktop app quit and reopen the app. Say “check my setup” to confirm version 4.3.0. ## Validation - Registry build and repository validation passed. - All 31 MCP and hook tests passed. - Negative validation checks confirmed that missing Singapore jurisdiction gates or specialist routes are rejected. - Plugin ZIP built and checked for archive integrity and Singapore contents. - Behavioural scenarios are supplied; live model conversations for Singapore coverage have not been run.
-
v4.2.0
GitHub ↗
Original release notes
## What's new - **Save and resume matters:** request a compact saved record, then resume it in a new chat with access to the same files. Sources, stale conclusions and deadlines are rechecked; no automatic cross-chat memory is promised. - **Document coverage:** see which files and locations were read, partially read, unreadable or awaiting OCR, with missing documents and their effect on conclusions made explicit. - **What changed?:** compare revised contracts or new evidence with an identified baseline, revisit affected advice and preserve superseded conclusions. - **Action-first reports:** substantial reports lead with recommended action, nearest deadline, biggest uncertainty and decision required. Urgent protective steps come first. - **Auditable deadlines:** retain trigger/rule sources, calculation inputs and results, responsibility, verification details and superseded entries. - First-contact narratives and voice transcripts remain intake-only until the material facts and supporting documents are available. The README includes example prompts. Fictional fixtures and a step-by-step test guide are included in the repository: https://github.com/rohasnagpal/legal-ai-skills/blob/v4.2.0/docs/testing-matter-upgrades.md ## Updating Paste this into Claude Code or Codex: ```text Update Legal AI Skills from https://github.com/rohasnagpal/legal-ai-skills ``` Then reload plugins/start a new session in Claude Code; in Codex start a new chat, and quit and reopen the desktop app. Use “check my setup” to confirm version 4.2.0. ## Validation - Registry build and repository validation passed. - All 31 MCP and hook tests passed. - Release ZIP built and passed archive integrity checks. - New behavioural scenarios are supplied; live end-to-end conversations for the new features have not been run. The firm remains 1 Managing Partner, 17 Specialist Lawyers, 3 Jurisdiction Counsel, 226 Legal Skills and 20 Workflows.
-
v4.1.1
GitHub ↗
Original release notes
Fixes from full dry runs in Claude Code and Codex, ahead of the live session. ## Fixed - **"Should I sue?" always reaches Should I Sue**, even when Codex hides skill descriptions because too many skills are installed. - **Hello Rohas prints its welcome as normal text**, not as a quoted block. - **Installers never copy skills into personal skills folders.** Loose copies in `~/.codex/skills` or `~/.claude/skills` override the plugin with old versions. ## Added - **Check my setup.** Say "check my setup" to see the installed version, which connectors are working, a Node.js check, a live calculator test, and any duplicate Rohas plugins. - **Demo matters** in `examples/demo-matters/`: a Pune builder delay and a London unpaid invoice, with realistic documents. - **Live session checklist** in `docs/live-session-checklist.md`: attendee setup and a safe demo script. ## Updating Paste `Update Legal AI Skills from https://github.com/rohasnagpal/legal-ai-skills` into Claude Code or Codex, then restart. ## Known issues - **Codex skills budget.** With many plugins installed, Codex may hide skill descriptions. Hello Rohas and Should I Sue still work. - **legislation.gov.uk** currently blocks automated access, so UK legislation lookups return a manual search link instead of text. ## Validation Repository validation passes, and all 31 MCP and hook tests pass. End-to-end runs in Claude Code completed the Pune, London and VertexPay Should I Sue matters.
-
v4.1.0
GitHub ↗
Original release notes
## New: Should I Sue? Facing a dispute and not sure whether it's worth pursuing? Install with: ```text Install Legal AI Skills from https://github.com/rohasnagpal/legal-ai-skills and say "Should I Sue". ``` Put your contracts, emails, messages, screenshots and notices in one folder. Open a new session in that folder and ask **"Should I sue?"** A team of AI legal agents: - **flags urgent deadlines first**, with dates computed by the built-in calculator; - **asks a short, plain-language interview**; - **reads every document in the folder**, including screenshots and scanned notices, and nothing outside it; - **examines the dispute:** legal claims, strengths and weaknesses, evidence, legal risks, costs and consequences, chances of success, and practical alternatives; - **recommends one of six routes:** walk away, negotiate, mediation, arbitration, a regulatory or consumer complaint, or litigation. Chances are given as reasoned ratings, never percentages. The final decision is yours. It is not legal advice. Copy for websites is in [docs/should-i-sue.md](https://github.com/rohasnagpal/legal-ai-skills/blob/main/docs/should-i-sue.md). ## Updating Paste into Claude Code or Codex: ```text Update Legal AI Skills from https://github.com/rohasnagpal/legal-ai-skills ``` Then restart, or start a new session. ## Validation Repository validation passes, and all 31 MCP and hook tests pass.
-
v4.0.2
GitHub ↗
Original release notes
## Update in one line Paste this into Claude Code or Codex: ```text Update Legal AI Skills from https://github.com/rohasnagpal/legal-ai-skills ``` Or run the commands yourself: ```bash # Claude Code claude plugin marketplace update rohas-legal claude plugin update legal-ai-skills@rohas-legal # Codex codex plugin marketplace upgrade rohas-legal codex plugin add legal-ai-skills@rohas-legal ``` Then restart. In Claude Code, run `/reload-plugins` or start a new session. In Codex, start a new chat; in the Codex desktop app, quit and reopen it. ## Fixed - **No false success messages in other apps.** The install instructions now check which app is running them. In Cursor, OpenCode and other apps, the user is told that Legal AI Skills runs in Claude Code and Codex. Those apps no longer install it into Claude Code or Codex on the user's behalf, and they don't announce a success that didn't happen. ## Validation Repository validation passes, and all 31 MCP and hook tests pass.
Only the five most recent versions are shown. View full version history at the source ↗
Current listing version
0.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 精准解决法律文档中AI生成虚假引证的高风险问题,实用价值高
- 覆盖法规、判例、引文、交叉引用等多种引证类型,适用性强
Highlights
- 触发词覆盖全面,包含多种法律场景下的典型核查指令表达
Areas to improve
-
description写错位置 Reported severity: Minor
顶层description字段为空,实质描述内容位于skill_body内部
Recommendation: 将核心描述内容移至顶层description字段,保持结构规范
-
缺少When to Use显式章节 Reported severity: Minor
未设置独立的When to Use章节,使用场景说明融入在description中
Recommendation: 增加显式的When to Use章节以提升可读性
-
缺少端到端完整示例 Reported severity: Minor
仅有输出格式说明,缺乏实际文档输入与完整输出的对照示例
Recommendation: 补充一个完整的输入-输出示例以增强用户理解
Highlights
- Method步骤清晰(8步),Output结构完整(5项),Do not清单明确
Highlights
- 区分‘有研究工具’和‘无研究工具’两种模式,避免伪造验证结果
- 对每类引证定义具体核查项,强调不静默修正、不跳过看似正确的引证
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.