Legal Audit logo

Legal Audit

Community
waldo-van-der-code
legal-audit

This skill should be used when the user asks to "check privacy compliance", "audit GDPR", "is this legal", "do we need a DPA", "check our privacy policy", "DSGVO check", "is our site compliant", "update the privacy policy", "cookie consent legal", "Datenschutz", "Impressum", "TTDSG", "data protection", "review our terms", "legal compliance", "privacy audit", or asks any question about GDPR, DSGVO, TTDSG, BDSG, data processor agreements, cookie law, or German data protection law.

Overview

Publisherwaldo-van-der-code
Repositorydeutsches-recht-mit-claude
Skill namelegal-audit
Stars
45
Forks
3
Bundled files
4
LicenseMIT
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.

  • 4 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by waldo-van-der-code on GitHub. Read the source before you install it.

Installation

Install the Legal Audit 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/waldo-van-der-code/deutsches-recht-mit-claude/tree/main/skills/gdpr-dsgvo
  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/waldo-van-der-code/deutsches-recht-mit-claude.git /tmp/deutsches-recht-mit-claude
mkdir -p .claude/skills
cp -r /tmp/deutsches-recht-mit-claude/skills/gdpr-dsgvo .claude/skills/legal-audit
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Legal Audit 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 Legal Audit 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 Legal Audit 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.

/legal-audit — German DSGVO Legal Compliance

German-jurisdiction legal compliance for websites and apps. Covers DSGVO, TDDDG, BDSG, DDG, and relevant German case law. Grounds all findings in actual statute via the rechtsinformationen-bund-de MCP when available (see README for setup).

Default jurisdiction: Germany. Supervisory authority defaults to the authority of your Bundesland — see references/law-reference.md for a complete list. Also covers Austria (DSG) and Switzerland (nDSG) where noted.


Step 0 — Route

Parse the invocation args or user intent:

PatternMode
audit <path> or a file/dir path given→ Code Audit
scan <url> or arg starts with http→ URL Scan
flow <path>→ Data Flow Review
draft <type>→ Document Draft
No args or natural-language legal question→ Full Suite (Audit + Scan + Flow → Draft offer)

Check MCP availability: attempt semantische_rechtssuche with query DSGVO Artikel 6. If it responds, use it for every law lookup. If unavailable, fall back to built-in knowledge — note which source was used in each finding.

Display:

legal-audit | Mode: [X] | Target: [Y] | Law source: [MCP / built-in knowledge]


Mode A — Code Audit

Scan the codebase for data collection points and classify each finding by severity.

A1 — Discover

Run these grep patterns (load references/audit-patterns.md for the full list):

bash
# Third-party fetches
grep -r "fetch(\|axios\.\|import.*resend\|import.*nodemailer\|gtag(\|posthog\|supabase\|stripe\|loadStripe" --include="*.ts" --include="*.tsx" --include="*.js" .

# Storage writes
grep -r "document\.cookie\|localStorage\.setItem\|sessionStorage\.setItem\|setCookie\|set-cookie" --include="*.ts" --include="*.tsx" .

# PII field names
grep -rEi "email|phone|iban|firstName|lastName|birthDate|passport|ipAddress" --include="*.ts" --include="*.tsx" .

# Consent gating
grep -r "consent\|cookie_consent\|analytics_storage\|posthog\.init\|opt_out" --include="*.ts" --include="*.tsx" .

A2 — Classify

For each finding, assign severity (🔴 Hoch / 🟡 Mittel / 🟢 Niedrig) and cite the relevant article.

Load references/law-reference.md for the full article-to-violation mapping table. Key rules:

  • Third-party script fires before consent check → 🔴 Hoch — TDDDG § 25(1), DSGVO Art. 6(1)(a)
  • Google Consent Mode "advanced" (gtag.js loads before consent and sends cookieless pings, gcs=G100 in /g/collect) → 🔴 Hoch — IP/device data reach Google before any choice; privacy texts usually claim "only after consent". Fix: inject gtag.js only after Accept ("basic" mode); set ad_user_data/ad_personalization too
  • Third-party iframes (Google Maps, YouTube, Google Drive video previews, social embeds) loading on page view → 🔴 Hoch — click-to-load gate; check every page, not just the one the privacy text mentions
  • Operator alert channels (Telegram/Slack/Discord bots, error trackers) receiving customer names/emails → 🔴 Hoch — undisclosed recipient, usually no Art. 28 agreement; send IDs/booking refs only, redact centrally
  • Controller not named with full postal address in the privacy policy → 🔴 Hoch — DSGVO Art. 13(1)(a)
  • Hosting provider (Vercel, Netlify, …) not disclosed, US vendors without DPF/SCC basis, EU entity misnamed (e.g. Stripe Payments Europe Ltd., not Stripe Inc.) → 🟡 Mittel — Art. 13(1)(e)/(f)
  • No retention periods for booking/invoice data → 🟡 Mittel — Art. 13(2)(a); § 147 AO / § 14b UStG (8 years for Buchungsbelege since BEG IV, 10 for books)
  • Privacy section exists in one language only on a multilingual site → 🟡 Mittel — Art. 12(1) (transparent, intelligible)
  • PII collected in form with no Art. 13 disclosure → 🔴 Hoch — DSGVO Art. 13
  • Email send handler, processor not in privacy policy → 🔴 Hoch — DSGVO Art. 13, Art. 28
  • US processor used, no SCC documented → 🟡 Mittel — DSGVO Art. 46(2)(c)
  • Google Fonts loaded from CDN → 🟡 Mittel — LG München I 2022
  • localStorage for consent preference only → 🟢 Niedrig — TDDDG § 25(2) exemption
  • Analytics gated behind consent → 🟢 Niedrig — compliant

Also check:

  • Impressum: DDG § 5 — name, address, contact, VAT ID required on every commercial site. "§ 5 TMG" / "§ 55 RStV" wording is outdated → 🟡
  • DPO threshold: BDSG § 38 — mandatory if 20+ employees regularly process personal data

A3 — Law lookup

For each 🔴 finding, use semantische_rechtssuche to pull the exact statutory language. Quote the article verbatim in the finding output.

A4 — Output format

## Code Audit — [project]  |  [date]  |  Law: [MCP/built-in]

🔴 Hoch — [N]
  [file:line] [issue] — [Article] DSGVO / § [X] TDDDG
  Statutory text: "[quoted text from MCP]"
  Fix: [one-line concrete action]

🟡 Mittel — [N]  ...

🟢 Niedrig / Compliant — [N]  ...

Impressum: [found / missing / partial — list gaps]
DPO threshold: [below / above / unclear]

Summary: 🔴 [N] | 🟡 [N] | 🟢 [N] | Remediation effort: [low/medium/high]

Mode B — URL Scan

Audit the live site as a user agent sees it.

Use WebFetch on the target URL. Extract and analyze:

  1. All <script src="..."> and <link href="..."> tags — classify first-party vs. third-party domains
  2. Cookie consent banner presence — does it block scripts before acceptance?
  3. <form> elements with PII inputs
  4. Presence and reachability of /impressum, /privacy (or /datenschutz), /robots.txt
  5. Privacy page content — does it name every third-party domain found in step 1?
  6. Real-browser network check (required — WebFetch cannot see it): load the key pages in Playwright without any consent decision, scroll to the bottom (lazy iframes), and record every request to third-party hosts. Then click Accept, then reopen the settings and Decline, and list what is left: cookies on the host and parent domain (_ga is often set on .example.de, shared with sibling subdomains), ph_*/_gcl* in local/session storage, and any analytics request sent after Decline (autocapture records the Decline click itself and flushes it seconds later).

Load references/audit-patterns.md for the third-party domain classification table and consent-banner correctness checklist.

Gap check: detected third-party domains vs. domains disclosed in the privacy page. Any detected-but-undisclosed domain is 🔴 Hoch — DSGVO Art. 13.

Output format:

## URL Scan — [url]  |  [datetime]

Third-party scripts: [table: domain | service | data sent | legal basis | DPA required]
Consent banner: [present/absent | scripts blocked before consent: yes/no | reject-all prominent: yes/no]
Required pages: Impressum [✓/✗] | Privacy [✓/✗] | robots.txt [✓/✗]
Gap — detected but not disclosed: [list — 🔴 for each]
Verdict: [compliant / partially compliant / non-compliant] — [1-paragraph assessment]

Mode C — Data Flow Review

Map all PII flows through the system. Produces the Art. 30 VVT (Verzeichnis von Verarbeitungstätigkeiten).

C1 — Discover flows

Scan for:

  • Ingress: form handlers, booking creation, auth flows, webhooks
  • Processing: DB writes, email sends, third-party API forwarding, logging with PII, analytics events with PII params
  • Egress: external API calls with PII in body, outbound emails, blob/CDN storage

C2 — Build VVT table

Load references/data-flow.md for the full VVT template, DPA status checklist, and cross-border transfer matrix.

For each processing activity, document:

  • Processing activity name
  • PII categories involved
  • Legal basis (Art. 6 DSGVO — consent / contract / legitimate interest)
  • Processor name + DPA URL
  • Transfer outside EU/EEA? → SCC or adequacy decision
  • Retention period

C3 — DPA checklist

Cross-reference each detected processor against the known DPA URLs in references/data-flow.md. Flag processors with no signed DPA as 🔴 Hoch.


Mode D — Document Draft

Generate ready-to-paste German-law DSGVO document sections.

Load references/document-templates.md for templates and required disclosure elements per document type.

Supported types:

TypeGenerates
privacy-section <processor>Single Art. 13 processor disclosure block (DE + EN)
privacy-pageFull Datenschutzerklärung skeleton
impressumImpressum block per DDG § 5
cookie-bannerConsent banner text (DE + EN), TDDDG § 25 compliant
vvtBlank Art. 30 VVT template
art13-noticeArt. 13 notice for a specific form or data collection point
dpa-checklistProcessor DPA to-do list with links

For each draft, pull required disclosure elements via semantische_rechtssuche (query: Datenschutzerklärung Pflichtangaben Artikel 13). Verify every required element is present before outputting.

Every draft must include:

  1. German version (primary)
  2. English version (secondary, marked as translation)
  3. Inline comments citing the DSGVO article that requires each element
  4. Disclaimer: Dieser Text wurde mit KI-Unterstützung erstellt und ersetzt keine Rechtsberatung.

Mode E — Full Suite

Run all four modes sequentially:

  1. Code Audit (Mode A)
  2. URL Scan (Mode B)
  3. Data Flow Review (Mode C)
  4. Consolidated Gap Report — all 🔴 findings ranked by remediation effort (quick wins first)
  5. Offer: "Draft the privacy policy sections that fix the 🔴 gaps?"

Output Standards

  • Severity: 🔴 Hoch (likely DPA interest, fix immediately) / 🟡 Mittel (fix before next release) / 🟢 Niedrig or ✅ Compliant
  • Citations: every finding cites a DSGVO article, TDDDG section, or BDSG section — no unanchored claims
  • Law source note: if MCP used, state which queries ran; if fallback, note (Gesetzestext aus Trainingsdaten — verifizieren auf gesetze-im-internet.de)
  • Disclaimer: append to every output — Dieser Bericht dient der technischen Orientierung und ersetzt keine Rechtsberatung.

Additional Resources

Load these reference files when needed — do not load all at once:

  • references/law-reference.md — DSGVO/TDDDG/BDSG article table, violation-to-article mapping, key German case law (LG München I 2022, Planet49, Schrems II), supervisory authorities per Bundesland
  • references/audit-patterns.md — grep patterns for code audit, third-party domain classification table, consent banner correctness checklist, framework-specific patterns (Next.js, Astro, React)
  • references/data-flow.md — Art. 30 VVT template, known processor DPA URLs, cross-border transfer matrix
  • references/document-templates.md — required disclosure elements per document type, Art. 13 checklist, Impressum checklist, cookie banner template, data subject rights section

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Legal Audit AI skill do?

This skill should be used when the user asks to "check privacy compliance", "audit GDPR", "is this legal", "do we need a DPA", "check our privacy policy", "DSGVO check", "is our site compliant", "update the privacy policy", "cookie consent legal", "Datenschutz", "Impressum", "TTDSG", "data protection", "review our terms", "legal compliance", "privacy audit", or asks any question about GDPR, DSGVO, TTDSG, BDSG, data processor agreements, cookie law, or German data protection law.

Why use Legal Audit on TypingMind?

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

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/waldo-van-der-code/deutsches-recht-mit-claude/tree/main/skills/gdpr-dsgvo. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Legal Audit?

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 Legal Audit?

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

Is the Legal Audit AI skill free?

Yes. It is published on GitHub by waldo-van-der-code under the MIT license. 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 👇