Training Data Review logo

Training Data Review

Community
AlsKozlov
training-data-review

RU-unique. Review training data на compliance — 152-ФЗ ПДн в training data, авторские права (для generative AI — критично!), public datasets licensing, sensitive content filtering, sanctions-related sources (post-2022).

Overview

PublisherAlsKozlov
Repositoryru-legal
Skill nametraining-data-review
Stars
42
Forks
6
Bundled files
Instructions only
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 AlsKozlov on GitHub. Read the source before you install it.

Installation

Install the Training Data Review 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/AlsKozlov/ru-legal/tree/master/packs/ai-governance/skills/training-data-review
  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/AlsKozlov/ru-legal.git /tmp/ru-legal
mkdir -p .claude/skills
cp -r /tmp/ru-legal/packs/ai-governance/skills/training-data-review .claude/skills/training-data-review
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Training Data Review 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 Training Data Review 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 Training Data Review 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.

/training-data-review

Назначение

Pre-training review data sources для compliance + risk avoidance. Critical для:

  • Fine-tuning LLM на specific data
  • Training classical ML на customer data
  • Computer vision training на images
  • Building NL processing dataset

Categories training data sources

A. Internal data (наша)

  • Customer interactions (chat logs, support tickets, calls)
  • Internal documents
  • Employee data
  • Business transactions

B. Public data (open source)

  • Common Crawl
  • Wikipedia
  • Public papers / books in public domain
  • Open datasets (HuggingFace, Kaggle, etc.)

C. Purchased / Licensed data

  • Commercial datasets от vendors
  • News archives под licenses
  • Industry-specific data

D. User-generated content (UGC)

  • Social media posts / comments (если у нас platform)
  • Forum posts
  • Reviews

E. Synthetic / generated data

  • Augmented from real data
  • Fully synthetic generation
  • LLM-generated training data

Review framework

A. ПДн compliance (152-ФЗ)

Identify ПДн в training data
markdown
## ПДн assessment

- [ ] Имена / контакты
- [ ] Адреса
- [ ] Идентификаторы (ИНН, СНИЛС, паспорт)
- [ ] Биометрия
- [ ] Health data (special category — ст.10)
- [ ] Political / religious / sexual orientation (special category)
- [ ] Photos / voice — могут identifying
- [ ] Quasi-identifiers (комбинации dating, location, demographic — могут identify)

If any → 152-ФЗ applies.
Legal basis assessment
markdown
## Legal basis для использования ПДн в training

| Basis | Когда applicable | Documentation needed |
|-------|------------------|-----------------------|
| Согласие субъекта (ст.6 ч.1 п.1) | Если consent explicitly включает training AI | Запись согласия + scope |
| Договор (ст.6 ч.1 п.5) | Если training необходимо для оказания услуг по договору | Договор + анализ необходимости |
| Законные интересы (ст.6 ч.1 п.7) | Если интерес weighs over interest субъекта | Документация баланса interests + assessment |
| Public availability (ст.6 ч.1 п.10) | Если data publicly available **и** разглашена самим субъектом | Документация source — public |

⚠ **Если нет legal basis** → нельзя использовать ПДн.
Anonymization / De-identification
markdown
## Если anonymization possible

- **Direct identifiers removal** (имена, ID, контакты) — minimum
- **Quasi-identifiers** (combinations) — requires careful handling
- **k-anonymity / differential privacy** — для material exposure
- **After anonymization** — если truly anonymized, no longer ПДн (ст.3 152-ФЗ)
- **Risk re-identification** — high if data rich

→ Recommend anonymization где applicable; verify сложность re-identification.
Special category ПДн
markdown
## Special category check (ст.10 152-ФЗ)

If training data contains:
- Раса / этническое происхождение
- Политические взгляды
- Религиозные / философские убеждения
- Сведения о здоровье
- Биометрия (для identification)
- Sex life / sexual orientation
- Criminal records
- (новые с 2024: трудовая активность, имущественное положение, и др.)

→ Use требует **отдельное явное согласие** OR одно из ограниченных оснований
ст.10. **Higher scrutiny**.

B. Copyright + IP compliance

Copyright в training data
markdown
## Copyright assessment

### Licensed for training?

- [ ] Source имеет explicit "OK for AI training" — best
- [ ] Source имеет broad license covering ML use — good
- [ ] Source — public domain — OK
- [ ] Source — CC license — check specific (some restrict commercial use)
- [ ] Source — fair use claimed (с argument) — risky в РФ (нет US fair use doctrine)
- [ ] Source — unlicensed scraped — high risk

### РФ-specific copyright considerations

- РФ не имеет US fair use doctrine — strict licensing required
- **Ст.1274 ГК** — citation / scientific use allowed limited (не commercial training)
- **Произведения public domain** — после 70 лет с смерти автора (ст.1281 ГК)
- **Произведения с CC-BY** — атрибуция required
- **Произведения с CC-NC** — нельзя commercial use (в т.ч. training)

### Specific risk areas

| Source type | Risk | Mitigation |
|-------------|------|------------|
| News articles | High | Licensed datasets only |
| Books | High | Public domain only or licensed |
| Code (GitHub) | Medium | Check repository licenses; OSS licenses preserved |
| Images | High | Stock photo licensing или CC-BY/CC0 only |
| Music / audio | High | Licensed only |
| Movies / video | High | Licensed only |
| Wikipedia text | Low | CC-BY-SA — share-alike but attribution required |
| Scientific papers | Med | Open access (CC) OK; subscription — careful |

C. Sensitive content filtering

markdown
## Sensitive content в training data

- [ ] Hate speech / extremism (запрещён ст.6 ФЗ-114 для distribution)
- [ ] Criminal content
- [ ] Sexually explicit material
- [ ] Content involving minors
- [ ] Self-harm / suicide content
- [ ] Misinformation / disinformation
- [ ] State secrets

→ Filter / remove before training. Otherwise:
- Model может generate such content
- Liability для harmful outputs
- Compliance violations

D. РФ-specific concerns post-2022

markdown
## Sanctions / source country issues

### Sources from недружественных stran

- US-origin datasets — потенциальная access ограничена (HuggingFace might restrict)
- Some datasets могут содержать content "discrediting" РФ (ст.20.3.3 КоАП) — flag

### Russian government data

- Открытые государственные dataset (https://data.gov.ru) — OK
- Restricted source data — separate clearance

### Foreign vendors

- US OFAC may restrict providing data services к РФ entities
- Practical workarounds (proxy / VPN access) — business risk

E. Quality + bias

markdown
## Quality + bias

- [ ] Data representative of population AI будет serve?
- [ ] Subgroup coverage adequate?
- [ ] Labels / annotations quality verified?
- [ ] Data freshness / staleness OK?
- [ ] Outliers / noise managed
- [ ] Class imbalance addressed

Workflow

Шаг 1. Inventory training data sources

markdown
## Training data inventory

| # | Source | Type | Volume | License | ПДн? | Risk |
|---|--------|------|--------|---------|------|------|
| 1 | Internal chat logs 2023-2025 | Internal | 1M conversations | Internal use | Yes (имена, content) | 🟡 |
| 2 | Wikipedia RU | Public | 5GB | CC-BY-SA | No | 🟢 |
| 3 | Customer support tickets | Internal | 500k | Internal use | Yes | 🟡 |
| 4 | Industry papers (purchased) | Licensed | 100GB | Vendor license | Maybe (authors) | 🟢 |
| 5 | Web scrape news 2024 | Scraped public | 50GB | None | Yes (subjects in news) | 🔴 |

Шаг 2. Per-source compliance check

Apply checklists A-E above to each source.

Шаг 3. Risk findings + mitigation

markdown
## Findings

### 🔴 Critical

1. **Web scrape news (source 5)** — copyright violation risk + ПДн без legal basis
   - Mitigation: drop этот источник, ИЛИ licensed alternative

### 🟡 Medium

1. **Internal chat logs (source 1)** — ПДн в training requires legal basis
   - Mitigation: anonymize before training, ИЛИ documented legitimate interests

### 🟢 OK

1. Wikipedia, licensed papers

Шаг 4. Remediation plan

markdown
## Action items

- [ ] Drop / replace problematic sources
- [ ] Anonymization pipeline implemented
- [ ] Legal basis documented для каждого ПДн source
- [ ] Licensed alternatives explored для replacement
- [ ] Filtering pipeline для sensitive content
- [ ] Documentation of training data lineage (для audit)

Шаг 5. Documentation

Создать Datasheet для training data (industry best practice):

  • Sources
  • Legal basis per source
  • Volumes
  • Date range
  • Known issues
  • Mitigations applied

Output

markdown
# Training Data Review — [model / use case]

## Bottom line

[Proceed with training / Modify and re-review / Cannot proceed without fundamental changes]

## Sources analyzed

[Table from Step 1]

## Critical issues

[From Step 3 🔴]

## Mitigations applied

[From Step 4]

## Datasheet attachment

[Link to formal datasheet]

## Sign-off needed

- [ ] DPO (для 152-ФЗ aspects)
- [ ] IP counsel (для copyright)
- [ ] AI Officer

Что НЕ делает

  • Не performs actual anonymization (это data engineering)
  • Не licensed datasets (это procurement + legal)
  • Не handles legal review для material commercial models — engage outside-адв ФПА

Why RU-unique

US fair use doctrine — allows certain unlicensed training (с растущим legal challenge). РФ — no fair use; strict licensing required. Plus 152-ФЗ + sanctions overlays.

Правовая основа:

  • 152-ФЗ (особ. ст.6, ст.10, ст.18.1)
  • Часть 4 ГК РФ (особ. ст.1270, 1274, 1281)
  • ФЗ-114 «О противодействии экстремизму»
  • ФЗ-149 «Об информации»
  • ст.20.3.3 КоАП («discrediting» РФ ВС — для filtering)

⚠ Юридический disclaimer

Данный skill — техническая платформа, не оказывает юридических услуг по ст.2 ФЗ-63 «Об адвокатской деятельности». Outputs не заменяют консультацию лицензированного юриста / адвоката ФПА.

AI может галлюцинировать, выдавать устаревшие нормы, неверно интерпретировать факты. Material decisions (увольнение, M&A, налоговый спор, IP litigation) — обязательно engage outside-адв ФПА с релевантной специализацией.

Проект ru-legal и его contributors не несут ответственности за решения, принятые на основе outputs системы. Использование — на свой риск.

Frequently asked questions

What does the Training Data Review AI skill do?

RU-unique. Review training data на compliance — 152-ФЗ ПДн в training data, авторские права (для generative AI — критично!), public datasets licensing, sensitive content filtering, sanctions-related sources (post-2022).

Why use Training Data Review on TypingMind?

Because you install it once and use it with any model. Training Data Review 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 Training Data Review in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/AlsKozlov/ru-legal/tree/master/packs/ai-governance/skills/training-data-review. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Training Data Review?

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 Training Data Review?

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

Is the Training Data Review AI skill free?

It is published on GitHub by AlsKozlov. Check the repository for licensing terms. 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 👇