sgcite

sgcite is a skill for Claude Code, Codex from LegalQuants/lq-skills. It costs 31 tokens per session (938 once invoked), scanned A, original, Apache-2.0.

A checker for citations to Singapore court cases that verifies them against eLitigation, Singapore's online case-law database. It looks for missing cases, wrong party names, made-up paragraph references, and inaccurate quotations.

In plain words
What is it for?
Use it to audit Singapore legal submissions, memoranda, and AI-generated text for valid case names, citations, paragraph references, and quotations.
Why use it?
It helps detect fabricated or distorted authorities in legal submissions and AI-generated drafts before filing or review.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to audit Singapore legal submissions, memoranda, and AI-generated text for valid case names, citations, paragraph references, and quotations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/legalquants/lq-skills/sgcite
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add LegalQuants/lq-skills --skill sgcite
Clone the repo
git clone --depth 1 https://github.com/LegalQuants/lq-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sgcite

README.md
[![agentmods](https://agentmods.dev/badge/skills/legalquants/lq-skills/sgcite/github.svg)](https://agentmods.dev/skills/legalquants/lq-skills/sgcite)
Your own site
<a href="https://agentmods.dev/skills/legalquants/lq-skills/sgcite"><img src="https://agentmods.dev/badge/skills/legalquants/lq-skills/sgcite/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sgcite

Your own site · 80×15
<a href="https://agentmods.dev/skills/legalquants/lq-skills/sgcite"><img src="https://agentmods.dev/badge/skills/legalquants/lq-skills/sgcite.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 938 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00031 $0.00938
Opus 5 $0.00015 $0.00469
Sonnet 5 $0.00006 $0.00188
Haiku 4.5 $0.00003 $0.00094

Measured 12d ago against content hash c014aad4434e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

sgcite scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/sgcite/SKILL.md · 94 lines

How it starts

The opening of the file, as written. The whole thing — 94 lines — stays where its author put it; the contents beside it link to each section on GitHub.

sgcite — Singapore Court Citation Checker

When to Use

  • Reviewing legal submissions before filing
  • Checking AI-generated legal text for hallucinated citations
  • Verifying that cited Singapore cases actually exist in eLitigation
  • Detecting fabricated case names, paragraph references, or distorted quotations
  • Routine citation audit for Singapore law documents

How It Works

Input

A legal text (submission, memo, brief, AI-generated draft) containing Singapore court citations.

Process

  1. Extract — Parse all case citations from the text
  2. Validate — Query eLitigation (Singapore's case law database) for each citation
  3. Check — Detect:
    • Hallucinated authorities (case doesn't exist)
    • Mismatched case names (case exists but different party names)
    • Fabricated paragraph references
    • Distorted quotations
  4. Report — Flag each issue with specific location and explanation

Output

✓ 5 citations verified
✗ 2 issues found:
  - [Para 23] "ABC v DEF [2023] SGHC 45" — Case not found in eLitigation
  - [Para 41] Quotation distorted — actual text differs from cited passage

Example

npx sgcite check ./my-submission.docx

Or import as a library in your legal workflow tools.

Audience and Work Shape

Audience: Singapore-qualified lawyers, paralegals, and litigation-support teams running a pre-filing or pre-circulation citation check. Not for unsupervised drafting or non-lawyer use.

Work shape: Pattern-Matched Review. Each citation is checked against a known reference (eLitigation). Output is a list of findings, not a sign-off.

This skill provides legal support, not legal advice. A verified result means "the cited case was found in eLitigation with matching party names" — not "this citation is correctly used in your submission" and not "this submission is fit to file."

Privilege and confidentiality. sgcite sends extracted citation text (and quoted passages, when checking for distorted quotations) to eLitigation. Do not invoke on privileged or unfiled draft material unless your firm has assessed that routing the cited extracts through a public case-law database is acceptable. Configure the tool to send citation strings only (not surrounding context) where possible.

Read the full file on GitHub · 94 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 94 lines · 31 tokens per session scan A c014aad4434e

Subscribe to this mod's changes

sgcite is a skill published in the GitHub repository LegalQuants/lq-skills (54 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 31 tokens to every session and 938 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

citation-check

Verify every Swiss case citation in a draft against the OpenCaseLaw corpus with the ocl CLI before answering or filing; report resolved, missing, ambiguous and pinpoint status; never invent or "fix" a citation.

jonashertner/opencaselaw · 46 tokens

research

Research a Swiss legal question with the ocl CLI (search, read, follow citations, cite, verify) and hand back an answer whose every citation and quotation was checked against the OpenCaseLaw corpus.

jonashertner/opencaselaw · 43 tokens

evidence-bundle

Keep and verify the evidence behind a memo with ocl bundles (decisions, passages, statute articles, SHA-256 manifest), so a reviewer can audit what the agent relied on.

jonashertner/opencaselaw · 42 tokens

legaltech-expert

Expert in legal technology: contract lifecycle management, e-discovery, AI-assisted legal research, case and matter management, document automation, and compliance tooling. Use when the user mentions legal case or matter management, e-discovery and legal holds, CLM or contract review and obligation tracking, legal…

personamanagmentlayer/pcl · 74 tokens

contract-guardian

A contract-review workflow that checks agreements for risks, links important findings to relevant laws, and produces a written review. It covers common agreements such as sales, leases, loans, services, contracting, and intellectual property.

lawyerllsx-dotcom/Legal-Workflow-Chain · 245 tokens

法律周报

A legal-news briefing workflow that finds recent court and legal-practice articles, scores them against selected criteria, and archives chosen items in a local Obsidian notes folder. Obsidian is a local note-taking application.

lawyerllsx-dotcom/Legal-Workflow-Chain · 242 tokens