Internal Investigation logo

Internal Investigation

Community
AlsKozlov
internal-investigation

Backend framework для investigation suite — defines workspace structure, privilege protocols (РФ-specific!), interview templates, evidence chain of custody, дисциплинарные timing rules (ст.192-193 ТК). Sub-skill: вызывается из /investigation-open, -add, -query, -memo, -summary. Не user-invocable.

Overview

PublisherAlsKozlov
Repositoryru-legal
Skill nameinternal-investigation
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 Internal Investigation 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/labor-law/skills/internal-investigation
  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/labor-law/skills/internal-investigation .claude/skills/internal-investigation
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Internal Investigation 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 Internal Investigation 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 Internal Investigation 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.

internal-investigation (framework)

Назначение

Sub-skill / framework. Не вызывается напрямую пользователем. Используется как shared knowledge базой для investigation suite:

  • /investigation-open
  • /investigation-add
  • /investigation-query
  • /investigation-memo
  • /investigation-summary

Этот файл определяет общие РФ-specific protocols, чтобы каждый из выше skills consistently их применял.

1. Workspace structure

Каждое расследование — отдельная папка:

~/.ru-legal/labor/investigations/[matter-id]/
  README.md           ← metadata, status, index, deadlines
  intake.md           ← initial complaint / триггер
  facts.md            ← timeline (append-only)
  evidence/           ← attached documents + sha256 log
  interviews/         ← per-witness notes
  memo.md             ← legal analysis (optional, выпускается /investigation-memo)
  summary.md          ← audience-specific briefings
  status.md           ← status updates

Matter ID format

INV-[YYYY]-[NNN] (например INV-2026-014)

2. Privilege protocols для РФ

Принципиальное отличие от US/UK

В РФ:

  • In-house counsel privilege НЕТ. Communications между сотрудниками и in-house lawyer — не защищены адвокатской тайной.
  • Адвокатская тайна (ФЗ-63 ст.8) — только для outside-адв ФПА (с удостоверением + ордером).
  • Work-product doctrine — нет аналога. Mental impressions in-house counsel не защищены автоматически.
  • Коммерческая тайна (98-ФЗ) — это business secrecy, не privilege от суда. Государственный орган может изъять documents под режимом КТ.

Practical implications

ScenarioЗащита
Investigation by in-house team толькоНЕТ privilege; защита через 98-ФЗ КТ — недостаточно от суда
Investigation under direction outside-адв ФПА с ордеромАдвокатская тайна — full
Memo drafted by in-house, reviewed by outside-адвMixed — privilege может быть, но courts могут pierce
Interview notes от HRНЕ privileged даже если labeled "Privileged"

Best practice

Для serious matters (увольнение high-level, sexual harassment с PR exposure, финансовые нарушения с фrak suit risk, criminal nexus):

  1. Engage outside-адв ФПА с самого начала — с ордером.
  2. Все communications routed через адвоката (CC или письмо на адв.).
  3. Memo drafted адвокатом или под его руководством.
  4. Documents stored в адвокатском досье.
  5. Header на documents: "Адвокатская тайна (ФЗ-63 ст.8). Адв. [ФИО], удост. №, ордер №"

Для routine matters (мелкая дисциплинарка, conflict resolution):

  • Privilege не нужен, работайте под "СЛУЖЕБНАЯ ТАЙНА. 98-ФЗ режим КТ"
  • Don't mislabel "Privileged" — это даёт false confidence

3. Дисциплинарные сроки (ст.192-193 ТК)

Clock 1: "Со дня обнаружения"

  • 1 месяц со дня, когда работодатель узнал о проступке
  • Исключаются периоды:
    • Болезнь работника
    • Отпуск работника
    • Время для учёта мнения профсоюза (ст.373)

Clock 2: "Со дня совершения"

  • 6 месяцев со дня самого проступка (hard cap)
  • 2 года для нарушений, выявленных в результате аудита / inventarisации / financial check

Объяснение работника (ст.193 ч.1)

  • Запрашивается до взыскания письменно
  • 2 рабочих дня на ответ
  • Если не дал — составляется акт об отказе
  • БЕЗ запроса объяснения взыскание автоматически незаконно

Учёт мнения профсоюза (ст.373)

Если работник — член профсоюза, и matter — увольнение по инициативе работодателя (ст.81), кроме исключений:

  • Запрос мотивированного мнения профсоюза письменно
  • 7 рабочих дней на ответ
  • Если мнение отрицательное — дополнительные консультации в течение 3 раб.дней, затем работодатель может принять решение
  • При увольнении — оформить в течение месяца со дня получения мотивированного мнения

Срок ознакомления с приказом

  • 3 раб.дня со дня издания приказа
  • Если работник отказывается — акт об отказе

4. Виды дисциплинарных взысканий (ст.192 ТК — exhaustive list)

ТК предусматривает только 3 вида:

  1. Замечание
  2. Выговор
  3. Увольнение по основаниям ст.81 (соответствующие ground'ы — п.5, п.6, п.7-10)

За одно нарушение — только одно взыскание (ст.193 ч.5).

Что НЕ является дисциплинарным взысканием (но иногда применяется отдельно)

  • Лишение премии — если положением об оплате предусмотрена depremation за нарушения. Не взыскание, но связано.
  • Удержание из зарплаты — только для материального ущерба по ст.137 ТК (не "штраф" за поведение).
  • Перевод на нижеоплачиваемую — только по ст.72.1 с согласия работника.

Что незаконно делать

  • Штрафы за опоздание ("$50 за каждое")
  • "Строгий выговор" (нет в ТК)
  • Объявления в чате с переходом на личность
  • Депремирование "за всё" без формального положения об оплате
  • Парные взыскания за одно нарушение (например, замечание + лишение премии за тот же случай — могут оспорить)

5. Interview protocols

Витнесы / subject в РФ

  • Рабочее время — interview в рабочее время по умолчанию; иначе требует consent / overtime pay
  • Право на представителя — работник может прийти с представителем профсоюза / адвокатом / coworker (соглашение по practice)
  • Перевод — если работник плохо говорит русский, ensure перевод
  • Recording — только с consent (УК ст.137 — приватность). Best practice: notes only, не record audio без consent.

Subject (потенциальный subject дисциплинарки)

  • Inform что cooperation воluntary (но отказ может быть основанием для самостоятельного взыскания если есть должн.инструкция)
  • Объяснение по ст.193 ч.1 — отдельный formal step, не заменяется interview notes. Подписывается work-ом.
  • Право молчать имеется (Конст.ст.51 — не свидетельствовать против себя)

Confidentiality

  • Сообщить — "to extent possible" — не promise total secrecy если matter может привести к суду / ГИТ
  • Объяснить privilege framework честно (in-house = ограниченная защита в РФ)

6. Evidence handling

Chain of custody

Для каждого attached evidence:

  1. Source identified (who, when produced)
  2. SHA256 hash calculated на момент receipt
  3. Storage location logged
  4. Access log maintained
  5. Если digital — copy preserved в original form, working copy separately

ПДн в evidence

Documents часто содержат ПДн третьих лиц. Для investigation:

  • Cross-reference legal basis processing (ст.6 152-ФЗ) — обычно "законные интересы" (ст.6 ч.1 п.7)
  • Disclosure только authorized investigators
  • Retention — purpose-limited (после закрытия matter — review for deletion)

Государственная тайна / банковская / врачебная

Если в materials есть такие сведения:

  • Дополнительные ограничения disclosure
  • Не сообщать outside-адв без separate clearance (для гостайны)
  • Med info — только с consent или по запросу полномочного органа

7. Эскалация thresholds

Triggering conditionAction
Subject — топ-менеджер / член совета директоровNotify Board chair / акционеры
Estimated litigation exposure > 5 млн рубEngage outside-адв ФПА
Criminal nexus (хищение, мошенничество, коммерческий подкуп УК ст.204)Lawyers + decision about reporting to правоохрана
PR / media exposure riskCoordinate с PR + outside-адв
Sanctions touch (US/EU PEPs)Compliance отдельно (если есть pack)
Sexual harassment с physical contactCriminal nexus check (УК ст.131-135) + outside-адв
Discrimination claim под защищ.категорию (ст.3 ТК)Outside-адв + ГИТ exposure analysis

Attribution

Adapted from employment-legal/internal-investigation by Anthropic (Apache 2.0).

Категория B (medium adaptation):

  • Privilege protocols fundamentally разные от US ACP — РФ требует outside-адв ФПА
  • Disciplinary timeline framework пересмотрен с ТК ст.192-193 (1 мес / 6 мес / 2 года)
  • Виды взысканий — 3-tier exhaustive list по ст.192 (не open-ended как US progressive discipline)
  • Объяснение работника по ст.193 ч.1 — нет US equivalent
  • Профсоюзный учёт мнения (ст.373) — нет US equivalent
  • Interview protocols — РФ ПДн + представитель + recording consent
  • Эскалация thresholds — РФ sums, РФ criminal codes (УК ст.131-135, ст.204), РФ ГИТ exposure

Original copyright: © 2026 Anthropic PBC, Apache 2.0.


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

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

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

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

Frequently asked questions

What does the Internal Investigation AI skill do?

Backend framework для investigation suite — defines workspace structure, privilege protocols (РФ-specific!), interview templates, evidence chain of custody, дисциплинарные timing rules (ст.192-193 ТК). Sub-skill: вызывается из /investigation-open, -add, -query, -memo, -summary. Не user-invocable.

Why use Internal Investigation on TypingMind?

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

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

Which AI models can use Internal Investigation?

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 Internal Investigation?

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

Is the Internal Investigation 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 👇