Legal Citation Extractionのロゴ

Legal Citation Extraction

組織
open-legal-products
legal-citation-extraction

英語のテキストから、判断ではなくパターンに基づいて法的引用をすべて抽出します。ECLI識別子(CJEUおよび各国)、EU法令の識別子(CELEX、官報の参照、規則・指令番号)、事件名・事件番号、引用された条項などを抽出し、表記を統一して重複を除き、略式参照(ibid.、id.、supra、op. cit.、前掲判決)を元の引用に結び付けます。引用の検証に先立つ作業として、まずすべての引用を見つけ、その後に確認します。法的根拠を検証する前、意見書や準備書面を提出する前、またはテキスト中の引用内容を尋ねられたときに使用してください。

Add to TypingMind

概要

公開者open-legal-products
リポジトリmike-workflows
スキル名legal-citation-extraction
スター
91
フォーク
43
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    open-legal-productsがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Legal Citation Extraction」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/open-legal-products/mike-workflows/tree/main/assistant-workflows/eu-gdpr-pack/legal-citation-extraction
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/open-legal-products/mike-workflows.git /tmp/mike-workflows
mkdir -p .claude/skills
cp -r /tmp/mike-workflows/assistant-workflows/eu-gdpr-pack/legal-citation-extraction .claude/skills/legal-citation-extraction
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでLegal Citation Extractionを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にLegal Citation Extractionを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Legal Citation Extractionは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Legal Citation Extraction

You can only verify what you first find. Grounding a citation checks whether it exists in the source - but it runs on a list that someone has to assemble first. This workflow is that front-end: it walks the text and lists every authority, so none slips past verification. A missed citation is an unverified one.

Extraction is mechanical - by patterns and rules, not by judgement - on purpose: an unconstrained reading might miss a citation or invent one.

Three steps

  1. Extraction - recognise and capture every reference by the patterns below.
  2. Aggregation - resolve short references (ibid., id., supra, op. cit., "the above-cited judgment") to their antecedents by the pointer-aware rules below, so they count as one citation, not several.
  3. Hand-off - pass the structured list to verification: does each cited authority exist, and does it say what the text claims.

Citation patterns

Case law

  • ECLI (EU): ECLI:EU:C:2020:559 (Court of Justice), ECLI:EU:T:2019:... (General Court).
  • ECLI (national): ECLI:NL:HR:2021:..., ECLI:DE:BGH:..., ECLI:PL:SN:....
  • Case names and numbers: Party v Party; CJEU case numbers C-123/20, C-123/20 P (appeal), joined cases C-123/20 and C-124/20; General Court T-456/19.

EU legislation

  • CELEX: 32016R0679, 32019L0790 (sector + year + type + number).
  • Named acts: Regulation (EU) 2016/679, Directive 2019/790, Regulation (EC) No 1/2003.
  • Official Journal: OJ L 119, OJ C 326.

Provisions

  • Article 5(1)(a) GDPR, Art. 263 TFEU, section 12, § 3(2).

Aggregation - short references

Short reference forms carry different resolution rules - they cannot all be sent to the nearest antecedent:

  • ibid., id., loc. cit. - refer to the immediately preceding authority.
  • supra, op. cit. - often carry a pointer that overrides proximity: an author name, a title fragment, or a note number ("Kranenborg, op. cit., p. 12"; "supra note 14"). Resolve by the pointer first; fall back to proximity only when the reference is bare.
  • Descriptive forms (the cited judgment, the above-cited) - match by the described attributes (court, party, subject), not by position alone.

Where more than one antecedent matches, or none does, mark the reference unresolved - manual review instead of guessing: a wrong merge silently fuses two distinct authorities into one. Count each resolved reference as the same citation as its antecedent, but record where it occurs.

Output format

A numbered table with columns: Type, Citation (normalised), Occurrences (page or offset), Antecedent (if a short reference). Close with the list of citations to verify.

Limits

  • Extraction catches references in a known format. A descriptive reference with no identifier ("the Court's data-protection case law") has nothing to match - mark it "no identifier, manual check".
  • This is not existence verification - it says what is cited, not whether the citation is real.
  • The patterns cover the common EU and ECLI formats; an unusual citation style may slip through. At high stakes, review by hand as well.

Attribution

The extraction, aggregation, and annotation architecture follows eyecite (Free Law Project), BSD-2-Clause (https://github.com/freelawproject/eyecite), as a design pattern only - no eyecite code is used. US reporter patterns are dropped; the ECLI, CELEX, OJ, and EU citation patterns and the antecedent rules are the author's own.

よくある質問

AIスキル「Legal Citation Extraction」では何ができますか?

英語のテキストから、判断ではなくパターンに基づいて法的引用をすべて抽出します。ECLI識別子(CJEUおよび各国)、EU法令の識別子(CELEX、官報の参照、規則・指令番号)、事件名・事件番号、引用された条項などを抽出し、表記を統一して重複を除き、略式参照(ibid.、id.、supra、op. cit.、前掲判決)を元の引用に結び付けます。引用の検証に先立つ作業として、まずすべての引用を見つけ、その後に確認します。法的根拠を検証する前、意見書や準備書面を提出する前、またはテキスト中の引用内容を尋ねられたときに使用してください。

TypingMindでLegal Citation Extractionを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Legal Citation Extractionはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにLegal Citation Extractionをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/open-legal-products/mike-workflows/tree/main/assistant-workflows/eu-gdpr-pack/legal-citation-extractionを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Legal Citation Extractionを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Legal Citation Extractionで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもLegal Citation Extractionを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Legal Citation Extraction」は無料ですか?

はい。open-legal-productsがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇