Logo Legal Audit

Legal Audit

Cộng đồng
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.

Tổng quan

Nhà phát hànhwaldo-van-der-code
Kho mãdeutsches-recht-mit-claude
Tên kỹ nănglegal-audit
Sao
45
Bản fork
3
Tệp đi kèm
4
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 4 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được waldo-van-der-code công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Legal Audit trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/waldo-van-der-code/deutsches-recht-mit-claude/tree/main/skills/gdpr-dsgvo
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

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
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Legal Audit trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Legal Audit ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Legal Audit với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

/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

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Legal Audit làm được gì?

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.

Vì sao nên dùng Legal Audit trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Legal Audit là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Legal Audit trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/waldo-van-der-code/deutsches-recht-mit-claude/tree/main/skills/gdpr-dsgvo. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Legal Audit?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Legal Audit với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Legal Audit với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Legal Audit có miễn phí không?

Có. Kỹ năng này được waldo-van-der-code phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇