Aia Generation logo

Aia Generation

Community
AlsKozlov
aia-generation

AI Impact Assessment (AIA) — formal documentation для AI use case рассматриваемого как medium/high risk. РФ specifics: AIA combines AI-specific risks с ОВПД framework (152-ФЗ ст.18.1) если processing ПДн. Структура: scope + risks + mitigation + approval. Subject to compliance officer / AI Officer / outside-адв ФПА review.

Overview

PublisherAlsKozlov
Repositoryru-legal
Skill nameaia-generation
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 Aia Generation 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/aia-generation
  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/aia-generation .claude/skills/aia-generation
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Aia Generation 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 Aia Generation 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 Aia Generation 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.

/aia-generation

Назначение

Generate formal AI Impact Assessment document. Required after /use-case-triage classified use case как IMPACT ASSESS level.

Pre-flight

  • /use-case-triage completed — IMPACT ASSESS classified
  • Stakeholders identified (technical, business, legal, security, ethics)
  • Готовы spend several days на полную AIA

AIA structure

markdown
# AI Impact Assessment
# Use case: [name]

**Version:** 1.0
**Date:** [DD.MM.YYYY]
**Authors:** [names + roles]
**Status:** [Draft / Under Review / Approved]
**Privilege framing:** [Privileged через outside-адв ФПА / Business-confidential]

Section 1: Use case description

markdown
## 1. Use case description

### 1.1. Purpose

[What this AI system is supposed to do, who benefits, what value]

### 1.2. Scope

[Specific functions, boundaries, what it doesn't do]

### 1.3. Stakeholders

| Role | Specific persons | Interest in this AI |
|------|------------------|---------------------|
| Customer | [...] | [...] |
| End user | [...] | [...] |
| Internal team | [...] | [...] |
| Regulator | [Минцифры / ЦБ / ФАС / etc.] | [oversight] |

### 1.4. Stages of usage

- Training / fine-tuning
- Deployment
- Production usage
- Periodic retraining / updates
- Decommissioning

Section 2: Technical details

markdown
## 2. Technical details

### 2.1. Underlying technology

- **Type:** [LLM / classical ML / CV / иное]
- **Vendor or self-hosted:** [...]
- **Model architecture:** [transformer / RNN / classical / иное]
- **Training data:** [source — internal / public / purchased / mixed]
- **Fine-tuning?** [Y/N + on what data]

### 2.2. Input / Output

- **Inputs accepted:** [data types, examples]
- **Outputs produced:** [data types, examples]
- **Decision authority:** [AI alone / AI + human / AI assists]

### 2.3. Performance characteristics

- **Expected accuracy:** [%]
- **Throughput:** [N requests / second]
- **Latency:** [seconds]
- **Failure modes:** [known limitations]

### 2.4. Update / maintenance

- Retraining frequency
- Monitoring metrics
- Performance degradation triggers

Section 3: Legal compliance analysis

markdown
## 3. Legal compliance

### 3.1. 152-ФЗ (если ПДн обрабатываются)

- **Processing roles:** [we as operator / vendor as processor]
- **Categories ПДн:** [...]
- **Legal basis:** [contract / consent / законные интересы / иное]
- **Special category** (ст.10) — health, биометрия, политика и пр.: [Y/N + safeguards]
- **Локализация (ст.18 ч.5):** processing в РФ confirmed
- **Cross-border transfer:** [Y/N + основание]
- **Уведомление РКН подано:** [Y/N + when]
- **ОВПД (ст.18.1) — оценка вреда:** done или not required?

### 3.2. Sectoral compliance

[Если применимо]

- **Финансовое (Банк России):** ФЗ-353 / 218 / 115 — compliance
- **Медицинское (Минздрав):** ФЗ-323 / лицензирование / Росздравнадзор регистрация AI as medical device
- **Образовательное (Минобрнауки):** ФЗ-273
- **Гос.услуги:** ПП 1503 / ФЗ-258 sandbox

### 3.3. Anti-discrimination

- **Risk:** AI может дискриминировать по защищённым категориям (раса, пол, возраст, инвалидность, и пр.)?
- **Mitigation:** [bias testing, fairness metrics, audit logs]
- **Legal basis для defense:** [ст.3 ТК если employment-related; ФЗ-181 если касается инвалидов]

### 3.4. Transparency requirements

- **Disclosure к user:** [что это AI, не человек] — see `/user-disclosure-check`
- **Explanation:** [right to explanation of automated decision — ст.16 152-ФЗ]
- **Documentation publicly available:** [policy / FAQ]

### 3.5. Intellectual property

- **Training data IP:** licensed properly? (см. `/training-data-review`)
- **Output IP:** ownership clear?
- **Copyright risks:** outputs similar к existing works?

Section 4: Risk assessment

markdown
## 4. Risk assessment

### 4.1. Identified risks

| # | Risk | Likelihood (1-5) | Impact (1-5) | Composite | Mitigation |
|---|------|-------------------|----------------|-----------|------------|
| 1 | Hallucination в production user-facing answer | 4 | 3 | 12 | Confidence scoring + disclaimers + human review для high-stakes |
| 2 | ПДн leakage в logs | 2 | 5 | 10 | Encryption + access controls + log redaction |
| 3 | Discrimination в outputs | 3 | 4 | 12 | Bias testing pre-deployment + ongoing monitoring + appeal process |
| 4 | Sanctions-related vendor unavailability | 3 | 4 | 12 | Backup Russian alternative + open-source fallback |
| 5 | Regulatory change requires rework | 3 | 3 | 9 | Periodic regulatory monitoring (см. `data-protection/reg-gap-analysis`) |
| 6 | ... | | | | |

### 4.2. Acceptable residual risk

[After mitigation — is the remaining risk acceptable?]

[Y/N + reasoning]

Section 5: Mitigations + controls

markdown
## 5. Mitigations + controls

### 5.1. Technical mitigations

- [ ] Input validation / sanitization
- [ ] Output filtering / content moderation
- [ ] Rate limiting per user
- [ ] Anomaly detection
- [ ] A/B testing pre-rollout
- [ ] Confidence scoring with thresholds
- [ ] Fallback to human для low-confidence cases

### 5.2. Procedural mitigations

- [ ] Human-in-the-loop для significant decisions
- [ ] Right to human review (ст.16 152-ФЗ если applicable)
- [ ] Appeal / dispute mechanism
- [ ] Periodic accuracy / fairness audits
- [ ] Incident reporting process
- [ ] User feedback channels

### 5.3. Documentation

- [ ] Internal documentation полная
- [ ] User-facing explanations
- [ ] Model cards (industry best practice)
- [ ] Datasheet for training data

### 5.4. Monitoring + alerts

- Performance metrics tracked
- Drift detection
- Adverse outcome notifications
- Quarterly review meetings

Section 6: Stakeholder consultation

markdown
## 6. Stakeholder consultation

| Stakeholder | Date consulted | Concerns raised | Resolution |
|-------------|----------------|-------------------|-------------|
| Legal | DD.MM.YYYY | ... | ... |
| Compliance | DD.MM.YYYY | ... | ... |
| InfoSec | DD.MM.YYYY | ... | ... |
| Affected business unit | DD.MM.YYYY | ... | ... |
| (External) outside-адв ФПА | DD.MM.YYYY | ... | ... |
| (External) AI ethics board | DD.MM.YYYY | ... | ... |

Section 7: Recommendation

markdown
## 7. Recommendation

[APPROVE FOR DEPLOYMENT / APPROVE WITH CONDITIONS / NEEDS REWORK / DO NOT APPROVE]

### Conditions (если applicable)

1. [Concrete condition]
2. ...

### Approvers required

- [ ] AI Officer
- [ ] Compliance Officer
- [ ] CISO (для security implications)
- [ ] Legal (in-house GC)
- [ ] (Material) Outside-адв ФПА review
- [ ] (Material) Board / Executive committee

Section 8: Implementation plan

markdown
## 8. Implementation plan

### Pre-deployment

| Action | Owner | Deadline |
|--------|-------|----------|
| [...] | [...] | [...] |

### Deployment

[Rollout plan — gradual / pilot / full]

### Post-deployment monitoring

[Schedule + metrics + escalation triggers]

Section 9: Review schedule

markdown
## 9. Review schedule

- **Initial review post-deployment:** [DD.MM.YYYY] (1-3 months)
- **Annual review:** [DD.MM.YYYY]
- **Trigger-based review:** [conditions — adverse outcome, regulatory change, material model update]

Workflow

Шаг 1. Set up document

Create AIA document for the specific use case. Pull data from PROFILE.md и /use-case-triage outputs.

Шаг 2. Fill in sections

Sections 1-2 — technical input from product team / data scientists.

Sections 3-5 — legal / compliance analysis. Это major value-add от skill.

Section 6 — track consultations.

Sections 7-9 — recommendations + plan.

Шаг 3. Review + iteration

  • Internal review (legal + compliance)
  • Stakeholder feedback
  • (Material) outside-адв ФПА review
  • Updates based on feedback

Шаг 4. Approval

  • Sign-off от required approvers
  • Document approval chain
  • Store в AIA registry

Шаг 5. Post-AIA monitoring

  • Track that mitigations actually implemented
  • Periodic re-AIA при material changes
  • Incident tracking + reporting

Что НЕ делает

  • Не делает technical AI testing (это data science / ML engineers)
  • Не replaces outside-адв legal opinion для material matters
  • Не выполняет actual implementation — это product / engineering

Attribution

Adapted from ai-governance-legal/aia-generation by Anthropic (Apache 2.0).

Категория B:

  • EU AI Act FRAIA / NIST AI RMF template → adapted к РФ context
  • 152-ФЗ ст.18.1 ОВПД integration — РФ-specific
  • ст.16 152-ФЗ право на review automated decisions — РФ-specific
  • Sectoral overlays РФ (Банк России / Минздрав / Росздравнадзор) вместо US/EU
  • Sanctions risk dimension — РФ-specific
  • Outside-адв ФПА involvement для privilege — РФ-specific

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 Aia Generation AI skill do?

AI Impact Assessment (AIA) — formal documentation для AI use case рассматриваемого как medium/high risk. РФ specifics: AIA combines AI-specific risks с ОВПД framework (152-ФЗ ст.18.1) если processing ПДн. Структура: scope + risks + mitigation + approval. Subject to compliance officer / AI Officer / outside-адв ФПА review.

Why use Aia Generation on TypingMind?

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

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

Which AI models can use Aia Generation?

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 Aia Generation?

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

Is the Aia Generation 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 👇