Reg Gap Analysis logo

Reg Gap Analysis

Community
AlsKozlov
reg-gap-analysis

Diff'ит новую или изменённую норму (152-ФЗ изменения, приказы РКН, ПП РФ, письма регулятора) против current политики и practice — outputs gap list и план remediation с owners и сроками. Используй когда вышел новый ФЗ-XXX, "влияет ли на нас [нормативный акт]", "gap analysis для [приказ РКН]", "compliance check против [регулирование]", или пользователь paste'ит regulatory text.

Overview

PublisherAlsKozlov
Repositoryru-legal
Skill namereg-gap-analysis
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 Reg Gap Analysis 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/data-protection/skills/reg-gap-analysis
  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/data-protection/skills/reg-gap-analysis .claude/skills/reg-gap-analysis
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Reg Gap Analysis 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 Reg Gap Analysis 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 Reg Gap Analysis 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.

/reg-gap-analysis (gap analysis для изменений 152-ФЗ)

Назначение

152-ФЗ — fast-moving regulatory area в РФ:

  • ФЗ-266 от 14.07.2022 — введение ОВПД
  • ФЗ-420 от 30.11.2024 — увеличение штрафов
  • С 01.03.2023 — двухэтапное уведомление РКН для cross-border
  • С 30.05.2025 — штрафы до 18 млн (cross-border)
  • С 01.07.2025 — ужесточение локализации
  • Постановления Правительства РФ обновляются регулярно (например ПП №1119 — уровни защиты)
  • Приказы РКН и Минцифры

Этот skill — gap analysis при появлении нового regulation: что нужно изменить у нас?


Workflow

Шаг 1. Load PROFILE.md

Прочитай:

  • ## Политика обработки ПДн (commitments)
  • ## Системы обработки ПДн (где обрабатывается ПДн)
  • ## Системы и инфраструктура
  • Existing compliance state

Шаг 2. Получить regulation

  • Пользователь paste'ил текст → use as is
  • Указал название → fetch через pravo-mcp (если подключён)
  • Если оба нет — спросить ссылку или text

Шаг 3. Scope: applies ли к нам?

Определи:

Юрисдикция:

  • Регулирование РФ? Применяется к operator'ам, обрабатывающим ПДн российских граждан (extraterritorial reach 152-ФЗ)
  • Применяется к нашим operations?

Sector:

  • Применяется к нашей отрасли? (некоторые приказы — только для банков, медицины, и т.д.)

Thresholds:

  • Применяется при определённом размере (количество субъектов, оборот)?
  • Применяется ли к нашим объёмам?

Effective date:

  • Когда вступает в силу?
  • Transition period есть?

Если не applies → output: "Это регулирование не применяется к [нашей организации] по [конкретное основание]. No action needed." Stop.

Шаг 4. Extract requirements

Из текста регулирования — extract конкретные требования:

yaml
requirements:
  - id: req-1
    text: "Оператор обязан в течение 24 часов с момента обнаружения
           утечки ПДн уведомить Роскомнадзор."
    type: notification
    owner_role: DPO
    deadline_relative_to_event: 24h
    citation: "Приказ РКН №ХХХ ст.Y п.Z"

  - id: req-2
    text: "При обработке биометрических ПДн использовать сертифицированные
           средства защиты УЗ-2."
    type: technical_security
    owner_role: IT Security
    citation: "ПП РФ №1119"

Шаг 5. Diff против current state

Для каждого requirement — check:

RequirementCurrent stateGapPriority
24-hour инцидент notificationСейчас 72 часа в incident-planYes — обновить план🔴 Critical
Биометрия УЗ-2 средстваСейчас УЗ-3 общие средстваYes — закупить и сертифицировать🟡 High
Cross-border двухэтапное уведомлениеПодаём один разYes — добавить шаг 1🔴 Critical

Шаг 6. Remediation plan

Для каждого gap'а:

markdown
## Gap [N]: [Краткое описание]

**Requirement:** [цитата нормы]
**Citation:** [конкретная статья / пункт]
**Effective date:** [DD.MM.YYYY]

**Current state:** [что у нас сейчас]

**Action required:**
- [ ] [Конкретное действие 1]
- [ ] [Конкретное действие 2]

**Owner:** [DPO / Юрист / IT Security / др.]
**Deadline:** [DD.MM.YYYY — реалистичный с учётом effective date]
**Estimated effort:** [часов / дней / недель]
**Risk if not done:** [штраф / иск / репутационный]

**Dependencies:**
- [Если нужно coordinate с другими отделами]

Шаг 7. Final output

markdown
[МАРКИРОВКА]

# Reg Gap Analysis: [Название регулирования]

**Дата анализа:** [DD.MM.YYYY]
**Регулирование:** [Полное название + citation]
**Effective date:** [DD.MM.YYYY]

---

## Executive Summary

**Applies to us?** Да / Нет / Частично

[Если "Нет"]
[Объяснение почему — конкретные основания]

[Если "Да" или "Частично"]
**Gaps found:** [N]
- 🔴 Critical: [N]
- 🟡 High: [N]
- 🟢 Medium / Low: [N]

**Estimated total effort:** [hours / days / weeks]
**Deadline (earliest):** [DD.MM.YYYY]

---

## Scope check

[Какие части регулирования applies к нам, какие нет, с обоснованием]

---

## Gaps

### Critical

[List of critical gaps с remediation plans]

### High

[...]

### Medium / Low

[...]

---

## Remediation roadmap

| Sequence | Action | Owner | Deadline | Status |
|----------|--------|-------|----------|--------|
| 1 | [...] | DPO | [date] | ☐ |
| 2 | [...] | IT Security | [date] | ☐ |
| ... | | | | |

---

## Sign-off

После remediation — DPO + GC sign-off на закрытие gap'ов.

Common РФ reg changes (примеры)

ФЗ-266 от 14.07.2022

Введение обязательной ОВПД (ст.18.1). Все operator'ы должны проводить.

ФЗ-420 от 30.11.2024

Существенное увеличение штрафов РКН:

  • Утечка ПДн (>10 тыс субъектов): до 18 млн руб
  • Утечка спец.категорий: до 25 млн руб
  • Локализация (ст.18 ч.5): до 18 млн повторно
  • Cross-border без уведомления: до 18 млн

Постановление Правительства РФ от 04.07.2025 №1071 (примерное)

Новые требования к обезличиванию ПДн.

Приказы РКН (несколько в год)

  • Обновление перечня стран надлежащего уровня защиты для cross-border
  • Методические рекомендации по проведению ОВПД
  • Требования к содержанию политики обработки ПДн

Что этот skill НЕ делает

  • Не реализует remediation сам — только plan
  • Не fetch'ит regulatory texts automatically (если pravo-mcp не подключён)
  • Не делает legal opinion при сложной интерпретации — GC review
  • Не следит за изменениями автоматически — это работа regulatory-monitor agent (Phase 2)

Attribution

Adapted from privacy-legal/reg-gap-analysis by Anthropic (Apache 2.0).

Изменения от оригинала:

  • Workflow universal (категория A)
  • РФ regulatory landscape examples — actual recent changes (ФЗ-266, ФЗ-420, ПП РФ 1119, приказы РКН)
  • Citations format — РФ норма structure (статья, пункт, ПП РФ номер)
  • Path: → ~/.ru-legal/profiles/data-protection/PROFILE.md

Original copyright: © 2026 Anthropic PBC, licensed under Apache License 2.0. Adapted by: ru-legal contributors, 2026-05-18.


Disclaimer

Этот skill производит gap analysis для DPO + GC. Не legal advice. Final remediation plan утверждается + tracked DPO.


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

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

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

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

Frequently asked questions

What does the Reg Gap Analysis AI skill do?

Diff'ит новую или изменённую норму (152-ФЗ изменения, приказы РКН, ПП РФ, письма регулятора) против current политики и practice — outputs gap list и план remediation с owners и сроками. Используй когда вышел новый ФЗ-XXX, "влияет ли на нас [нормативный акт]", "gap analysis для [приказ РКН]", "compliance check против [регулирование]", или пользователь paste'ит regulatory text.

Why use Reg Gap Analysis on TypingMind?

Because you install it once and use it with any model. Reg Gap Analysis 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 Reg Gap Analysis in TypingMind?

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

Which AI models can use Reg Gap Analysis?

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 Reg Gap Analysis?

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

Is the Reg Gap Analysis 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 👇