Bart statutory reference checker

From LegalQuants/lq-skills · View interactive version

Bart statutory reference checker is an AI agent skill from the GitHub repository LegalQuants/lq-skills. Use when checking statutory citations in Singapore legal documents, verifying references against Singapore statutes, or auditing Word documents for citation accuracy.

How to use this skill

Skill file

BART: Statutory Reference Checker

When to Use

How It Works

Backend (Python + Next.js frontend)

  1. Semantic search over Singapore statute text using Legal-BERT/GEMMA
  2. BM25 + reranker for precise citation matching
  3. ChromaDB vector store for fast retrieval
  4. Word Add-in integration for in-document checking

Word Add-in Features

Output

Report showing:

A verified or valid result means "the cited reference was found in the source statute database at the time of lookup" — not "this citation is authoritative" and not "this submission is fit to file." Every finding is a research aid that requires lawyer verification.

Audience and Work Shape

Audience: Singapore-qualified lawyers, paralegals, and academic users running a statutory cite-check on a Singapore-law document (typically a submission, opinion, or academic paper). Not for unsupervised drafting, non-lawyer use, or non-Singapore documents.

Work shape: Pattern-Matched Review. Claude (or the BART pipeline) surfaces candidate citation mismatches; the lawyer adjudicates. Output is a list of findings, not a sign-off.

Inputs and Halt-on-Missing

Required inputs before running:

If any of these are missing, halt and ask. Do not proceed with assumed defaults — a stale snapshot date or wrong scope is a silent failure mode and the user must specify it explicitly.

Scope and Legal Use

This skill provides legal support, not legal advice. The three legal failure modes are addressed below.

Legal advice vs. legal support. Outputs labelled amended, repealed, not found, or suggested correction are research signals, not legal conclusions. Whether a repealed provision still applies under transitional rules, whether an amendment is in force, and whether a different section is the correct citation for the proposition advanced are all questions for the responsible lawyer. The skill does not opine on substantive correctness or fitness to file.

Privilege and confidentiality. The BART pipeline routes document text (potentially including privileged drafts, pre-filing submissions, and client matter content) through an external "live Singapore statute database," a ChromaDB vector store, and Legal-BERT/GEMMA inference. This has direct privilege and confidentiality implications. Do not invoke on privileged or unfiled draft material unless the firm has assessed that routing the document (or extracted citation context) through the BART backend is acceptable under its information-handling rules. Where possible, configure the pipeline to send citation strings only — not surrounding factual or strategic context. Treat any input passed to this skill as if it were being sent to a third-party service.

Accountability. A qualified lawyer must review every flagged finding and every verified/valid citation before the document is filed, circulated, or relied upon. The skill must record which statute snapshot date was used so the basis of the check is auditable. Outputs are marked draft until a lawyer signs off; the skill itself is not the system of record.

Confidence Bands

Every finding must carry a confidence band, surfaced alongside the reranker score where available:

Out of Scope

This skill does NOT do:

Escalation

Stop and route to the responsible lawyer when:

In all escalation paths, surface the original citation verbatim, the source text the pipeline matched against, the snapshot date, and the confidence score. Do not silently substitute a "suggested correction."

Limitations

QA Remediation (LegalQuants, 2026-05)

LegalQuants added the Audience and Work Shape, Inputs and Halt-on-Missing, Scope and Legal Use (covering legal-advice-vs-support, privilege/confidentiality, and accountability), Confidence Bands, Out of Scope, and Escalation sections to address gaps identified by legal-builder-hub:qa against the Legal Skill Design Framework. The original technical content describing the BART pipeline (semantic search, BM25 + reranker, ChromaDB, Word Add-in) is unchanged; the remediation reframes the pipeline's outputs as research signals requiring lawyer verification rather than authoritative conclusions, and makes explicit the confidentiality stance for documents passed to the live Singapore statute database. Original author attribution to Kevan Wee is preserved.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.