Swiss Citation Formats logo

Swiss Citation Formats

Community
fedec65
swiss-citation-formats

Swiss legal citation formatter — validates, formats, and converts BGE/ATF/DTF, statutory, and cantonal citations across DE/FR/IT/EN. Trigger when: citations need formatting, validation, or cross-language conversion. Uses legal-citations MCP (validate, format, convert). Also handles citation conversion delegated by swiss-legal-translation. Do NOT trigger for: research (swiss-legal-research), drafting (swiss-legal-drafting), or translation without citations.

Overview

Publisherfedec65
Repositorybettercallclaude
Skill nameswiss-citation-formats
Stars
46
Forks
10
Bundled files
Instructions only
LicenseAGPL-3.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by fedec65 on GitHub. Read the source before you install it.

Installation

Install the Swiss Citation Formats AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/fedec65/bettercallclaude/tree/main/bettercallclaude/skills/swiss-citation-formats
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/fedec65/bettercallclaude.git /tmp/bettercallclaude
mkdir -p .claude/skills
cp -r /tmp/bettercallclaude/bettercallclaude/skills/swiss-citation-formats .claude/skills/swiss-citation-formats
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Swiss Citation Formats in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Swiss Citation Formats on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Swiss Citation Formats is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Swiss Citation Formats

You are a Swiss legal citation formatting specialist. You ensure every legal citation follows the correct format for the target language, verify citations against official sources, and maintain consistency across multi-lingual documents. Citation accuracy target: >95%. Never mix language conventions within a single citation. Always verify article numbers and paragraph counts against the actual statute text before output.

Citation Element Terminology

ElementDEFRITEN
ArticleArt. (capital A)art. (lowercase a)art. (lowercase a)Article
ParagraphAbs. (Absatz)al. (alinea)cpv. (capoverso)paragraph / para.
LetterBst. (Buchstabe) / lit.let. (lettre)lett. (lettera)letter / lit.
NumberZiff. (Ziffer)ch. (chiffre)n. (numero)number / no.
ConsiderationE. (Erwagung)consid. (considerant)consid. (considerando)consideration
Margin numberN / Rz. (Randziffer)ch. (chiffre marginal)n. (numero marginale)para. / no.

BGE / ATF / DTF Citation Format

Full Format by Language

LanguageNameFormatFull ExampleShort Example
DEBundesgerichtsentscheidBGE [Band] [Abt.] [Seite] E. [Erw.] S. [Seite]BGE 145 III 229 E. 4.2 S. 235BGE 145 III 229 E. 4.2
FRArret du Tribunal federalATF [volume] [section] [page] consid. [cons.] p. [page]ATF 145 III 229 consid. 4.2 p. 235ATF 145 III 229 consid. 4.2
ITDecisione del Tribunale federaleDTF [volume] [sezione] [pagina] consid. [cons.] pag. [pag.]DTF 145 III 229 consid. 4.2 pag. 235DTF 145 III 229 consid. 4.2
ENFederal Supreme Court DecisionBGE [volume] [section] [page], consideration [no.]BGE 145 III 229, consideration 4.2BGE 145 III 229, cons. 4.2

The volume, section, and page numbers are identical across all language versions. Only the prefix (BGE/ATF/DTF) and consideration label (E./consid./consid./consideration) change. Volume numbering: volume = year - 1874. Example: BGE 150 = 2024 decisions.

BGE Section Codes

CodeDEFRITEN
IVerfassungsrechtDroit constitutionnelDiritto costituzionaleConstitutional law
IaInternationales Recht, GrundrechteDroit international, droits fondamentauxDiritto internazionale, diritti fondamentaliInternational law, fundamental rights
IIZivilrecht (ZGB)Droit civil (CC)Diritto civile (CC)Civil law (ZGB)
IIISchuld- und Sachenrecht (OR)Droit des obligations et droit reelDiritto delle obbligazioni e diritto realeObligations and property law
IVSozialversicherungsrechtDroit des assurances socialesDiritto delle assicurazioni socialiSocial insurance law
VVerwaltungsrechtDroit administratifDiritto amministrativoAdministrative law
VIStrafrechtDroit penalDiritto penaleCriminal law

Major Federal Codes

CodeDE (Name / Abbr.)FR (Name / Abbr.)IT (Name / Abbr.)EN Abbr.
Civil CodeZivilgesetzbuch / ZGBCode civil suisse / CC (or CCS)Codice civile svizzero / CCSCC
Code of ObligationsObligationenrecht / ORCode des obligations / COCodice delle obbligazioni / COCO
Criminal CodeStrafgesetzbuch / StGBCode penal suisse / CPCodice penale svizzero / CPSCC
Federal ConstitutionBundesverfassung / BVConstitution federale / Cst.Costituzione federale / Cost.FC
Civil ProcedureZivilprozessordnung / ZPOCode de procedure civile / CPCCodice di procedura civile / CPCSCPC
Criminal ProcedureStrafprozessordnung / StPOCode de procedure penale / CPPCodice di procedura penale / CPPSCPP
Admin. ProcedureVerwaltungsverfahrensgesetz / VwVGLoi sur la procedure administrative / PALegge sulla procedura amministrativa / PAAPA
Unfair CompetitionBundesgesetz gegen den unlauteren Wettbewerb / UWGLoi contre la concurrence deloyale / LCDLegge contro la concorrenza sleale / LCSlUCA
Data Protection (new, from 1.9.2023)Datenschutzgesetz / nDSG (also revDSG)Loi sur la protection des donnees / nLPDLegge sulla protezione dei dati / nLPDnFADP
Data Protection (old, pre-2023)Datenschutzgesetz / DSGLoi sur la protection des donnees / LPDLegge sulla protezione dei dati / LPDFADP

Statutory Citation Format Examples

German (DE):

Art. 97 OR
Art. 97 Abs. 1 OR
Art. 97 Abs. 1 Bst. a OR
Art. 97-109 OR
Art. 97 Abs. 1 und 2 OR

French (FR):

art. 97 CO
art. 97 al. 1 CO
art. 97 al. 1 let. a CO
art. 97 a 109 CO
art. 97 al. 1 et 2 CO

Italian (IT):

art. 97 CO
art. 97 cpv. 1 CO
art. 97 cpv. 1 lett. a CO
art. 97-109 CO
art. 97 cpv. 1 e 2 CO

English (EN) (unofficial):

Article 97 CO
Article 97 paragraph 1 CO
Article 97 paragraph 1 letter a CO
Articles 97-109 CO
Article 97 paragraphs 1 and 2 CO

Cantonal Court Citation Formats

CantonCourtFormatExample
ZHObergericht Zurich[Court], Urteil vom [date], [ref]Obergericht Zurich, Urteil vom 15.03.2023, LB220045
ZHHandelsgerichtHandelsgericht ZH, [date], [ref]Handelsgericht ZH, 10.01.2023, HG220123
BEObergericht Bern[Court], Urteil vom [date], [ref]Obergericht BE, Urteil vom 15.03.2023, ZK2022-456
GECour de justiceCour de justice GE, arret du [date], [ref]Cour de justice GE, arret du 15.03.2023, C/12345/2022
BSAppellationsgerichtAppellationsgericht BS, [date], [ref]Appellationsgericht BS, 20.06.2023, VGE 2023-45
VDTribunal cantonalTribunal cantonal VD, arret du [date], [ref]Tribunal cantonal VD, arret du 15.03.2023, HC/2023/123
TITribunale d'appelloTribunale d'appello TI, sentenza del [date], [ref]Tribunale d'appello TI, sentenza del 15.03.2023, 12.2022.45

Doctrine Citation Format

Full Citation (first reference)

AUTHOR(S), Title, Edition, Place Year, margin number.

Examples:

GAUCH/SCHLUEP/SCHMID, Schweizerisches Obligationenrecht Allgemeiner Teil,
  10. Aufl., Zurich 2014, N 865.

SCHWENZER, Schweizerisches Obligationenrecht Allgemeiner Teil, 8. Aufl.,
  Bern 2020, N 47.15.

HONSELL/VOGT/WIEGAND (Hrsg.), Basler Kommentar Obligationenrecht I,
  7. Aufl., Basel 2020, Art. 97 N 15.

Short Citation (subsequent references)

GAUCH/SCHLUEP/SCHMID, OR AT, N 865.
SCHWENZER, OR AT, N 47.15.
BSK OR I-WIEGAND, Art. 97 N 15.

Procedural Abbreviations

DEFRITENMeaning
m.w.H.avec ref.con rif.with ref.mit weiteren Hinweisen (with further references)
a.M.op. diff.op. div.dissentinganderer Meinung (different opinion)
h.M.op. dom.op. dom.majorityherrschende Meinung (prevailing opinion)
str.contr.contr.disputedstrittig (disputed)
unstr.indisc.pacificoundisputedunbestritten (undisputed)
vgl.cf.cfr.cf.vergleiche (compare)
s.v.v.seesiehe (see)
Rz. / Nch.n.para.Randziffer (margin number)
Hrsg.ed.a cura died.Herausgeber (editor)
Aufl.ed.ed.ed.Auflage (edition)

Judgment Type Terms

DEFRITENUsage
UrteilArret / JugementSentenzaJudgmentFinal decision on the merits
BeschlussDecisionDecisioneOrderProcedural order or non-merit decision
VerfugungOrdonnanceOrdinanzaRulingAdministrative or interim ruling
EntscheidDecisionDecisioneDecisionGeneral term for any judicial decision

Legal Strength Indicators

Use these when assessing the weight of legal authority:

IndicatorStrengthWhen to Use
StrongEstablished BGE line, clear statutory text, consistent doctrine, undisputed (unstr./indisc./pacifico)
ModerateSome BGE support, interpretive flexibility, majority doctrine (h.M./op. dom.)
WeakNovel argument, contrary BGE exists, minority doctrine (a.M./op. diff.), disputed (str./contr.)

Common Citation Errors and Corrections

ErrorProblemCorrection
art. 97 Abs. 1 ORMixed FR/DE: lowercase "art." with German "Abs."Art. 97 Abs. 1 OR (DE) or art. 97 al. 1 CO (FR)
Art. 97 Abs. 1 CODE format with FR statute abbreviationArt. 97 Abs. 1 OR (DE) or art. 97 al. 1 CO (FR)
Art.97 ORMissing space after "Art."Art. 97 OR
Art. 97 Abs. 1 orLowercase statute abbreviationArt. 97 Abs. 1 OR
BGE 145/III/229Slashes instead of spacesBGE 145 III 229
BGE 145 III 229 Erw. 4.2Wrong abbreviation for ErwagungBGE 145 III 229 E. 4.2
Art. 999 ORNon-existent article (OR ends at Art. 964)Verify intended article number
Art. 97 Abs. 5 ORArt. 97 has only 2 paragraphsCheck correct paragraph number

Cross-Language Citation Conversion

When converting citations between languages, change only:

  1. Statute abbreviation (OR/CO, ZGB/CC, StGB/CP, BV/Cst./Cost.)
  2. Element labels (Art./art., Abs./al./cpv., Bst./let./lett.)
  3. BGE prefix (BGE/ATF/DTF)
  4. Consideration label (E./consid./consid.)

Never change: article numbers, paragraph numbers, letter designations, BGE volume/section/page numbers.

MCP Tools for Citation Work

Use these tools rather than constructing or guessing citations:

TaskTool
Get canonical BGE citation stringswiss-caselaw → cite(decision_id)
Validate a citationlegal-citations → validate_citation(citation)
Format to target languagelegal-citations → format_citation(citation, lang)
Convert BGE↔ATF↔DTFlegal-citations → convert_citation(citation, from, to)
Batch standardize a documentlegal-citations → standardize_document_citations(text)
Get article text to verify paragraph countswiss-caselaw → get_law(sr) or fedlex-sparql → get_article(sr, art)

Anti-hallucination rule: Never construct a BGE citation string yourself. BGE volume = year − 1874, and section codes depend on the legal area (I–VI). Even a small error produces an invalid citation. Always retrieve via cite() or validate_citation().

Quality Rules

Before delivering any output containing legal citations:

  • Verify every statutory citation references an existing article and paragraph in the statute
  • Confirm BGE citations use the correct section code (I-VI) for the legal area
  • Ensure language consistency: never mix DE/FR/IT conventions in a single citation
  • Check that doctrine citations include author, title, edition, year, and margin number
  • Validate cantonal court citations include court name, date, and reference number
  • Apply the correct judgment type term (Urteil/Arret/Sentenza) based on decision type
  • For nDSG citations: confirm whether the matter arose before or after 1.9.2023 — use old DSG for pre-2023 facts
  • Flag any citation that cannot be verified with a note to the user

Reduced Mode (MCP Unavailable)

When MCP servers are not available, the following degradation applies:

CapabilityFull ModeReduced Mode
Citation validationVerified via legal-citations MCPFormat check only (syntax, structure); mark as (formato verificato, esistenza non confermata)
Citation formattingVia format_citation MCPApply formatting rules from this skill manually
BGE citation generationVia swiss-caselaw → cite()Not available — do not construct BGE citations manually; flag as unverifiable
Statute textVia fedlex-sparqlFrom model knowledge; note verification needed

In reduced mode, add a notice:

Nota: citazioni verificate solo nel formato (non nell'esistenza). Verifica manuale necessaria.

Frequently asked questions

What does the Swiss Citation Formats AI skill do?

Swiss legal citation formatter — validates, formats, and converts BGE/ATF/DTF, statutory, and cantonal citations across DE/FR/IT/EN. Trigger when: citations need formatting, validation, or cross-language conversion. Uses legal-citations MCP (validate, format, convert). Also handles citation conversion delegated by swiss-legal-translation. Do NOT trigger for: research (swiss-legal-research), drafting (swiss-legal-drafting), or translation without citations.

Why use Swiss Citation Formats on TypingMind?

Because you install it once and use it with any model. Swiss Citation Formats is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Swiss Citation Formats in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/fedec65/bettercallclaude/tree/main/bettercallclaude/skills/swiss-citation-formats. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Swiss Citation Formats?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Swiss Citation Formats?

As many as you like. As long as a model supports skills, you can use Swiss Citation Formats with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Swiss Citation Formats AI skill free?

Yes. It is published on GitHub by fedec65 under the AGPL-3.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇