Ai Training Lawfulnessのロゴ

Ai Training Lawfulness

コミュニティ
mukul975
ai-training-lawfulness

Assesses lawful basis for AI training data processing per EDPB April 2025 report on LLMs and general-purpose AI. Covers legitimate interest balancing tests, consent challenges for ML training, public dataset assessment, and web scraping lawfulness. Keywords: AI training data, lawful basis, EDPB LLM, legitimate interest, consent, web scraping.

概要

公開者mukul975
リポジトリPrivacy-Data-Protection-Skills
スキル名ai-training-lawfulness
スター
279
フォーク
59
同梱ファイル
4
ライセンスApache-2.0
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 4個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/mukul975/Privacy-Data-Protection-Skills/tree/main/plugins/ai-privacy-governance-skills/skills/ai-training-lawfulness
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/mukul975/Privacy-Data-Protection-Skills.git /tmp/Privacy-Data-Protection-Skills
mkdir -p .claude/skills
cp -r /tmp/Privacy-Data-Protection-Skills/plugins/ai-privacy-governance-skills/skills/ai-training-lawfulness .claude/skills/ai-training-lawfulness
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

Lawful Basis for AI Training Data

Overview

The processing of personal data for AI model training constitutes a distinct processing operation requiring its own lawful basis under GDPR Art. 6(1). The EDPB Guidelines 04/2025 and the coordinated ChatGPT Taskforce findings establish that AI training creates unique lawful basis challenges: the scale of data collection, the difficulty of obtaining meaningful consent for open-ended AI training purposes, the tension between legitimate interest and data subject expectations, and the complexity of determining lawfulness for web-scraped and third-party datasets. This skill provides the comprehensive lawful basis assessment framework for AI training data processing, addressing each Art. 6(1) basis as applied to ML training contexts.

Fundamental Principles

AI Training as Personal Data Processing

The EDPB has confirmed that AI model training constitutes processing of personal data under Art. 4(2) GDPR when:

  1. Training datasets contain personal data (directly or indirectly identifiable natural persons)
  2. The model is trained on data that includes personal data, even if the intent is to learn general patterns
  3. The resulting model retains the capability to generate or reproduce personal data from training sets
  4. Personal data is used in any pipeline stage: collection, cleaning, annotation, augmentation, validation, testing

The controller cannot avoid GDPR obligations by claiming the model has "learned" rather than "stored" personal data. The processing occurs at the point of training, regardless of whether the model can later reproduce specific records.

Purpose Specification for AI Training

Art. 5(1)(b) requires that personal data be collected for specified, explicit, and legitimate purposes. For AI training, this means:

  • "Training an AI model" is insufficiently specific — the controller must articulate the specific capability being developed
  • "Improving our services" through AI training must be disaggregated into concrete purposes
  • Each purpose must be documented before training begins, not retroactively justified
  • The purpose must be communicated to data subjects in privacy notices per Arts. 13-14

Lawful Basis Analysis for AI Training

Art. 6(1)(a) — Consent

Requirements for Valid AI Training Consent
RequirementAI Training Application
Freely givenData subjects must have genuine choice; consent cannot be bundled with service access unless AI training is necessary for the service
Specific"AI training" alone is insufficient — must specify what type of model, for what purpose, what data elements are used
InformedMust explain how personal data will be used in training, retention period for training data, risk of model memorization, inability to fully delete data from trained models
UnambiguousClear affirmative action; pre-ticked boxes or implied consent from terms of service are insufficient
WithdrawableController must provide mechanism to withdraw consent; but model already trained on the data presents technical challenge
Consent Challenges in AI Training
  1. Granularity problem: AI training often uses all available data — difficult to obtain specific consent for each data element's use in training
  2. Withdrawal complexity: Once a model is trained on personal data, true erasure requires model retraining or verified machine unlearning
  3. Purpose evolution: Foundation models and transfer learning mean the model may be repurposed — original consent may not cover downstream uses
  4. Scale impracticality: Obtaining consent from millions of data subjects whose data appears in web-scraped training corpora is practically impossible
  5. Power imbalance: When AI service use requires consent to training (e.g., "use our AI assistant and your conversations train our model"), consent may not be freely given
When Consent Works for AI Training
  • Users explicitly opt into a research programme where AI model training is a primary purpose
  • Users contribute data to a specific AI system with clear disclosure (e.g., "your feedback trains this recommendation engine")
  • Fine-tuning on user-provided data where the user understands and consents to the training purpose

Art. 6(1)(b) — Contract Necessity

AI training can rely on contractual necessity only when:

  • The AI model training is genuinely necessary for performing the contract with the data subject
  • The data subject has entered into a contract that requires AI-powered features
  • The training cannot be separated from the service delivery

Limitations per EDPB:

  • General improvement of AI systems through aggregate training is not "necessary" for any individual contract
  • Training a general-purpose model that benefits future users is not necessary for the current data subject's contract
  • Fine-tuning based on individual user interactions may qualify if the personalised model is part of the contracted service

Art. 6(1)(f) — Legitimate Interest

This is the most commonly relied-upon basis for AI training. The EDPB requires a rigorous three-part assessment:

Part 1: Legitimate Interest Identification

The controller must identify a specific, real, and lawful interest:

Interest TypeExampleEDPB Assessment
Commercial product improvementTraining a fraud detection model to protect customersGenerally legitimate — concrete benefit to data subjects
Research and developmentTraining models for medical imaging analysisLegitimate if research purpose is genuine and specific
General AI capabilityTraining a foundation model for general-purpose useScrutinised — interest must be articulated with specificity
Competitive advantageTraining to match competitor AI capabilitiesLegitimate commercial interest but weak in balancing
Part 2: Necessity Assessment
QuestionAssessment Criteria
Is AI training necessary for the identified interest?Could the interest be pursued without training on personal data?
Could anonymised data achieve the same result?Has the controller tested model performance with anonymised data?
Could synthetic data supplement or replace personal data?Has synthetic data generation been evaluated?
Is the volume of personal data proportionate?Has the minimum effective dataset been determined?
Could federated learning avoid centralising personal data?Has distributed training been assessed?
Part 3: Balancing Test

Factors weighing in favour of the controller:

  • Training data is publicly available (but this alone is not decisive)
  • Model serves a beneficial purpose (fraud prevention, medical research)
  • Strong technical safeguards applied (differential privacy, access controls)
  • Data subjects can exercise opt-out rights effectively
  • Training data is pseudonymised before use

Factors weighing in favour of data subjects:

  • Data was not collected with AI training in mind — processing is far from original expectations
  • Large-scale data collection from diverse sources without data subjects' awareness
  • Special category data is present or can be inferred from training data
  • Children's data is present in the training corpus
  • No practical opt-out mechanism exists
  • Model may memorize and regurgitate personal data
  • Web scraping bypasses data subjects' choices about data sharing
EDPB Position on Legitimate Interest for AI Training

The EDPB Guidelines 04/2025 establish that:

  1. Legitimate interest for AI training is not automatically available — it requires case-by-case assessment
  2. Web scraping of personal data for AI training faces a particularly high bar
  3. The scale of data collection is a relevant factor — larger datasets require stronger justification
  4. The controller must demonstrate necessity: evidence that personal data is required rather than anonymised or synthetic alternatives
  5. Effective opt-out mechanisms are expected as a minimum safeguard
  6. The balancing test should consider the cumulative impact of multiple AI developers scraping and training on the same data subjects' data

Art. 6(1)(e) — Public Interest

Available to public bodies and organisations performing tasks in the public interest:

  • Academic research institutions training AI models for publicly beneficial research
  • Government agencies training AI for public service delivery
  • Must have a basis in national or Union law
  • Proportionality requirements apply

Special Situations

Web-Scraped Data

The EDPB has given specific guidance on web scraping for AI training:

  1. Robots.txt is not consent: Compliance with robots.txt does not establish lawful basis
  2. Public availability is not a lawful basis: Data being publicly accessible does not mean it can be freely used for AI training
  3. Reasonable expectations: Data subjects who post content online do not reasonably expect it to be used for AI training
  4. Children's data: Web-scraped data likely contains children's data — heightened protections apply
  5. Technical measures: Data subjects who implement privacy settings have expressed a preference against broad data use

Assessment framework for web-scraped training data:

FactorHigh Lawfulness IndicatorLow Lawfulness Indicator
Data sourceExplicitly open-licence data (CC0, public domain)Personal profiles, social media, private websites
Data typeFactual, non-personal contentIdentifiable personal information, photos, opinions
Data subject expectationsData published with intent for wide reuseData shared in specific context (social media, forums)
SafeguardsDifferential privacy, PII filtering pre-trainingNo preprocessing to remove personal data
Opt-outEffective and accessible opt-out mechanismNo opt-out or technically impractical opt-out
TransparencyPrivacy notice covers AI training useNo notice to data subjects about AI training
Third-Party Datasets

When using datasets obtained from third parties:

  1. Upstream lawful basis verification: The controller must verify that the data provider had a lawful basis to collect and share the data
  2. Contractual warranties: Obtain warranties from the provider regarding lawful collection, consent scope, and right to license for AI training
  3. Due diligence: Conduct reasonable due diligence on the provider's data collection practices
  4. Chain of accountability: The AI developer remains a controller responsible for lawful processing, even if the data was provided by a third party
Public Datasets

Academic and government datasets require assessment:

  1. Is personal data present? (Many datasets contain inadvertent personal data)
  2. What was the original purpose of the dataset? Is AI training compatible?
  3. Does the dataset licence permit commercial AI training?
  4. Has the dataset been ethically reviewed for consent and privacy?
  5. Are there known issues (bias, PII leakage, consent gaps)?

Training Data Retention

Art. 5(1)(e) storage limitation applies to AI training data:

  • Training data must not be retained longer than necessary for the training purpose
  • Once the model is trained, is continued retention of training data justified?
  • If training data is retained for retraining, what is the maximum retention period?
  • Model artefacts (weights, embeddings) that encode personal data are also subject to retention limits
  • Deletion verification: can the controller demonstrate that training data has been effectively deleted?

Data Subject Rights for Training Data

RightAI Training ApplicationTechnical Challenge
Access (Art. 15)Data subject can request confirmation that their data was used in training and receive a copyIdentifying specific records in large training datasets
Rectification (Art. 16)Inaccurate personal data in training sets must be correctedCorrection may require model retraining
Erasure (Art. 17)Data subjects can request deletion of their data from training setsRequires machine unlearning or model retraining
Objection (Art. 21)Data subjects can object to processing based on legitimate interestController must cease processing unless compelling grounds override
Restriction (Art. 18)Processing must be restricted while accuracy or objection is contestedMay require quarantining data from training pipeline

Enforcement Precedents

  • Garante v. OpenAI (2023): Temporary processing ban — no lawful basis identified for ChatGPT training data. Ordered OpenAI to identify Art. 6(1) basis for training data, implement age verification, and provide opt-out mechanism.
  • CNIL v. Clearview AI (SAN-2022-019, 2022): EUR 20M fine — web scraping of biometric data without lawful basis. No consent, legitimate interest balancing test not conducted.
  • Datatilsynet (Norway) v. Meta (2023): Temporary ban on using Norwegian user data for AI training — legitimate interest basis not sufficiently documented; balancing test inadequate.
  • DPC (Ireland) v. Meta (2024): Investigation into use of public Facebook/Instagram posts for AI training under legitimate interest basis. Meta paused EU AI training following DPC engagement.
  • EDPB Taskforce on ChatGPT (2024): Coordinated finding that legitimate interest for LLM training requires comprehensive balancing test, transparency, and effective opt-out — mere assertion of legitimate interest is insufficient.

Integration Points

  • ai-dpia: Training data lawfulness feeds into DPIA Phase 2 assessment
  • ai-data-subject-rights: Rights exercise mechanisms for training data
  • ai-data-retention: Retention and deletion requirements for training datasets
  • ai-transparency-reqs: Transparency obligations regarding training data use

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Ai Training Lawfulness」では何ができますか?

Assesses lawful basis for AI training data processing per EDPB April 2025 report on LLMs and general-purpose AI. Covers legitimate interest balancing tests, consent challenges for ML training, public dataset assessment, and web scraping lawfulness. Keywords: AI training data, lawful basis, EDPB LLM, legitimate interest, consent, web scraping.

TypingMindでAi Training Lawfulnessを使うメリットは何ですか?

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

TypingMindにAi Training Lawfulnessをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/mukul975/Privacy-Data-Protection-Skills/tree/main/plugins/ai-privacy-governance-skills/skills/ai-training-lawfulnessを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Ai Training Lawfulnessを使えるAIモデルはどれですか?

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

Ai Training Lawfulnessで使えるAIモデルの数に制限はありますか?

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

AIスキル「Ai Training Lawfulness」は無料ですか?

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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