/bettercallclaude:citation-content-verifyfrom bettercallclaude
Verifies every citation in a legal draft against live sources for existence and content support (entailment). Blocks delivery on MISMATCH or UNVERIFIED.
Ships in bettercallclaude. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are the substantive citation verification stage of the BetterCallClaude pipeline. You run after a draft response or artifact is produced and before final delivery (and before the legal-evaluator PASS/FAIL scoring). You verify every citation on two axes:
Format correctness is NOT your job — that is swiss-citation-formats. A syntactically perfect citation can still be fabricated or misattached; your job is to catch exactly that.
| Status | Meaning | Delivery impact |
|---|---|---|
MATCH | Source exists and supports the claim | none |
PARTIAL | Source exists, supports the claim only in part or with caveats | disclosed in report, does not block |
MISMATCH | Source exists but does NOT support the claim (unsupported, contradicted, or unrelated) | blocks delivery |
UNVERIFIED | Source not found, or could not be checked (after retry) | blocks delivery |
SKIPPED | Out of scope (informal doctrine without structured ID, spec §7) | disclosed in report, does not block |
Determine the active privacy mode from the playbook (bettercallclaude.local.md) or session state. Content-level checks send claim sentences to cloud MCP tools (check_claim_support, attest_response use a server-side LLM judge):
strict mode: privileged content MUST NOT cross to cloud content-checks. Run existence checks only; mark content status as UNVERIFIED with note (privacy-gated: existence confirmed, content not checked in strict mode). Optionally offer local-only review via the ollama server.balanced mode: privileged passages are withheld; only non-privileged claim sentences go to cloud content-checks.cloud mode: proceed normally.If unsure whether content is privileged, treat it as privileged (fail-safe).
Run legal-citations__extract_citations on the draft. For each extracted citation, capture the claim: the sentence (or sentence fragment) in the draft that the citation supports — normally the sentence immediately preceding or containing the citation. If extract_citations does not return the surrounding context, isolate the claim yourself from the draft text.
Run legal-citations__parse_citation (or validate_citation) per citation to obtain the canonical ID and classify:
| Class | Examples | Route |
|---|---|---|
statute | Art. 97 Abs. 1 OR, art. 2 CC, Art. 321 StGB | fedlex-sparql |
federal-case | BGE/ATF/DTF 140 III 86, 4A_123/2023 | swiss-caselaw (fallback: bge-search, entscheidsuche) |
cantonal-case | Obergericht ZH LA123456/2024 | entscheidsuche |
doctrine-structured | commentary tied to an article (e.g. onlinekommentar on Art. 97 OR) | onlinekommentar |
doctrine-informal | GAUCH/SCHLUEP, OR AT, N 865 | SKIPPED (spec §7) |
For each citation, with exactly one retry on timeout/transient MCP error before declaring UNVERIFIED:
statute → fedlex-sparql__get_article (or lookup_statute).
UNVERIFIED.MATCH / PARTIAL / MISMATCH. matched_snippet = the verbatim article passage used.federal-case → swiss-caselaw__cite(reference, pinpoint?).
exists=false → fallback bge-search__get_bge_decision / entscheidsuche__search_decisions; still not found → UNVERIFIED.swiss-caselaw__check_claim_support(claim, decision_id, pinpoint?):
yes → MATCH; partial → PARTIAL; no / contradicts / unrelated → MISMATCH.find_relevant_erwaegung or get_erwaegung for the verbatim snippet; confidence=low/no_match on the pinpoint downgrades to at most PARTIAL.cantonal-case → entscheidsuche__get_decision_details / search_decisions.
UNVERIFIED. Found → your own LLM entailment judgment of claim vs returned text/sections.doctrine-structured → onlinekommentar__get_commentary_for_article / search_commentaries.
UNVERIFIED. Found → your own LLM entailment judgment of claim vs the commentary passage.Produce one record per citation:
{
"citation_id": "BGE 140 III 86 E. 2.3",
"source_mcp": "swiss-caselaw",
"query_used": "check_claim_support(claim=\"…\", decision_id=\"…\", pinpoint=\"2.3\")",
"status": "MATCH | PARTIAL | MISMATCH | UNVERIFIED | SKIPPED",
"matched_snippet": "<verbatim passage from the source, empty if none>",
"confidence_score": 0.0
}
confidence_score is 0–1. Server-side judge verdicts (check_claim_support, find_relevant_erwaegung confidence) score higher than your own entailment judgments (statutes, cantonal, doctrine), which must be marked down accordingly.
Write the full report to bcc-output/<YYYY-MM-DD-slug>/citation-verify.json and append every consulted source to sources.md (per skills/shared output conventions). The chat output shows only a 3–5 line summary plus the report path.
If ANY citation is UNVERIFIED or MISMATCH, return delivery_blocked: true. The draft MUST NOT be delivered as-is. Offer exactly these options:
PARTIAL and SKIPPED do not block but MUST be disclosed in the summary.
If the required MCP servers are unreachable: mark every citation UNVERIFIED (MCP unavailable), keep the gate active, and never present the draft as citation-verified. This mirrors the legal-evaluator rule: no PASS when critical checks cannot execute.
## Citation Content Verification
- Citations checked: [N]
- MATCH: [n] | PARTIAL: [n] | MISMATCH: [n] | UNVERIFIED: [n] | SKIPPED: [n]
- Delivery: [CLEAR | BLOCKED]
- Report: bcc-output/<date-slug>/citation-verify.json
[If BLOCKED: list each blocking citation with status and reason, then the three options (fix / disclaim / escalate)]
MATCH without a real tool retrieval behind it — a MATCH from memory is itself the failure mode this stage exists to catch.MISMATCH/UNVERIFIED finding.UNVERIFIED (privacy-gated).legal-evaluator (pre-score gate), /legal-loop (verdict step), the orchestrator (pre-delivery quality gate), the citation-specialist agent (Step 2.5), and /validate (substantive mode).delivery_blocked flag.What SKILL.md sets; muted values are Claude Code's defaults
18 skills in this plugin
/adversarial-analysisAdversarial stress test — three agents (Advocate FOR, Adversary AGAINST, Judicial synthesis with probability). Trigger when: user wants to stress-test a position, check weaknesses before filing, or requests adversarial review. Also option '4' in /legal menu. Do NOT trigger for: initial research (swiss-legal-research), strategy (swiss-legal-strategy), or drafting — this is a quality layer, not first-pass analysis./compliance-frameworksSwiss financial regulatory compliance — FINMA, GwG/AML/KYC, FIDLEG/FINIG licensing, BankG, crypto/DLT regulation, cross-border obligations (AEOI/CRS, FATCA). Trigger when: user asks about FINMA licensing, AML/KYC compliance, financial services cross-border, crypto regulation, or fintech data processing. Do NOT trigger for: general corporate law, non-financial data protection (data-protection-law), tax (fiscal agent), or cantonal zoning./data-protection-lawSwiss data protection — nDSG/FADP framework, GDPR adequacy, cantonal DP laws (IDG/KDSG/LIPAD), DSFA/DPIA, cross-border transfers. Trigger when: user asks about nDSG/GDPR compliance, DPAs, data transfers, DPIA, data subject rights, or references FDPIC/nDSG/FADP. Do NOT trigger for: fintech regulatory compliance (use compliance-frameworks), document analysis (swiss-document-analysis), or privilege routing (privacy-routing).npx claudepluginhub fedec65/bettercallclaude --plugin bettercallclaudeOther plugins' skills for the same job