legal-audit-rf
A skill that checks a website against Russian law: personal data, cookies and trackers, operator details, advertising and login methods
Install
git clone https://github.com/ElexOil/legal-audit-rf.git ~/.claude/skills/legal-audit-rfFor a project install, clone into .claude/skills/legal-audit-rf/, which is the path SKILL.md uses to run the scanner.
This is third-party code. Review the repository files before installing.
What it does
The skill runs an engineering audit of a website against a 16-point checklist: privacy policy, consent in forms, cookie banner and trackers, cross-border transfer, data localization, the Roskomnadzor notice, operator details, ad labeling, age ratings, state language rules, links to banned social networks, public offer, return policy and allowed login methods for users in Russia. First a standard-library Python script collects signals from the project code and the live URL: analytics counters, forms with personal data, prechecked boxes, legal pages and HTTPS. Then the agent walks the checklist and writes a report with each item's status, the legal basis and concrete code fixes, listing owner-side tasks separately. It ships with a penalties reference and templates for an order appointing a data officer and a personal data processing policy.
Who it is for. For developers and owners of Russian websites and online stores preparing for Roskomnadzor checks.
Good fit when
- You need to check a site for Federal Law 152-FZ compliance before launch
- Analytics or pixels load before consent and you need to know what to fix
- You need to check whether the site's login methods are allowed for users in Russia
- You need drafts of a personal data policy and a data officer order
Not a fit when
- You need legal advice or a lawyer's opinion
- The site serves only foreign users and Russian law does not apply
Example request
Audit our site example.ru and the code in this folder for 152-FZ compliance and list the fixesLimitations
This is a checklist, not a legal opinion: a lawyer should review the result. The script matches patterns and can be wrong, and some items, such as whether the Roskomnadzor notice was filed or where the database lives, are invisible to it. Laws and penalty amounts in the references reflect the last repository update and may go stale. The scanner path in SKILL.md assumes installation in the project .claude/skills folder.
How to disable. Delete the legal-audit-rf folder from ~/.claude/skills or the project .claude/skills.
Security check
- Runs a Python script that reads project files
- Makes network requests to the live site URL
README in short
The README presents the skill as an engineering audit of a website under Russian law, paired with a Python scanner. It lists what the scanner looks for: analytics counters, personal data forms, legal pages, links to banned social networks and the live URL protocol. Installation is a clone into the Claude Code skills folder, and the scanner can also run on its own. The roadmap includes an evidence pack for Roskomnadzor and a penalty calculator. MIT licensed, with a disclaimer that it is not legal advice.
SKILL.md
--- name: legal-audit-rf description: Юридический аудит сайта на соответствие законодательству РФ (152-ФЗ о персональных данных, cookie, трансграничная передача, локализация, уведомления РКН). Используй, когда просят проверить сайт на соответствие закону РФ / 152-ФЗ / персональным данным, провести legal-аудит, проверить политику конфиденциальности и согласие. --- # Legal Audit RF — проверка сайта на соответствие законодательству РФ > ⚠️ Это инженерный чек-лист, НЕ юридическая консультация. Итог должен проверить живой юрист, особенно перед подачей документов в РКН. ## Нормативная база (что проверяем) - **152-ФЗ** «О персональных данных» — обработка ПД, согласие, cookie/аналитика, трансграничная передача, локализация (ст.18), уведомление в РКН (ст.22). - **ЗОЗПП** (Закон РФ № 2300-1 «О защите прав потребителей») — обязательная информация о товаре/продавце (ст.8–10), правила возврата в дистанционной торговле (ст.26.1). - **ГК РФ** — публичная оферта (ст.437). - **436-ФЗ** «О защите детей от информации…» — возрастная маркировка (0+…18+). - **347-ФЗ** от 02.07.2021 (поправки в 38-ФЗ «О рекламе») — маркировка интернет-рекламы, ОРД, реестр ЕРИР Роскомнадзора. - **53-ФЗ** + **168-ФЗ** — государственный язык в рекламе (иностранные слова). - **38-ФЗ** «О рекламе» — рекламные материалы и маркетинговые элементы. - **149-ФЗ** «Об информации…» — правила размещения информации в интернете, включая разрешённые способы авторизации пользователей на интернет-ресурсах РФ. - **КоАП РФ ст. 13.55** (ФЗ № 199-ФЗ от 26.06.2026, вступил в силу 07.07.2026) — штрафы за авторизацию пользователей из РФ неразрешёнными способами: граждане 10–20 тыс ₽, должностные лица 30–50 тыс ₽, юрлица 500–700 тыс ₽; повторно — до 40 тыс / 100 тыс / 1,4 млн ₽ (см. `references/authorization-rules-2026.md`). - **ГОСТ Р 52872-2012** — доступность сайта для людей с ограниченными возможностями. - **КоАП РФ ст.13.11** (с 30.05.2025 — части 1–18) — ответственность в области ПД; **УК РФ ст. 272.1, 137** — уголовная (см. `references/penalties.md`). - Meta (Facebook/Instagram) — признана экстремистской, запрещена в РФ. ## Как проводить аудит 1. **Собрать сигналы.** Запусти сканер по папке проекта (и при наличии — по живому URL): ```bash python .claude/skills/legal-audit-rf/scripts/scan.py [путь_к_проекту] [https://сайт] ``` Он находит: трекеры/аналитику, cookie-баннер, формы сбора ПД, юр-страницы (политика/согласие), реквизиты оператора, HTTPS. 2. **Пройти чек-лист** ниже по каждому пункту, опираясь на сигналы + чтение кода (формы, тексты политики/согласия). 3. **Выдать отчёт** по шаблону: статус каждого пункта (✅ / 🔴 нарушение / 🟠 рекомендация), что нашли, норма, что поправить. Отдельно — организационные задачи (РКН), которые делает владелец, а не код.
FAQ
Does the scanner need dependencies?
No, the script uses only the Python 3 standard library.
What happens to the findings?
The skill writes a report with code fixes and organizational tasks, then offers to apply the fixes or draft the data for a Roskomnadzor notice.
Related
NVIDIA's open stack for running OpenClaw, Hermes and LangChain Deep Agents in OpenShell sandboxes with network policy and managed inference
Static code analysis with rules that look like source code, plus a built-in MCP server for AI agents
Trail of Bits skills
Trail of Bits Skills Marketplace
Trail of Bits plugin marketplace for security work: smart contracts, C/C++ and Rust review, Semgrep, CodeQL and fuzzing
Nine skills that let an agent run Strix pentests, fix validated findings and add security scanning to CI