matematicsolutions/awesome-matematic-skills-pl / ochrona-danych/skills/rodo-dpia-pl
rodo-dpia-pl
VerifiedOcena skutków dla ochrony danych (DPIA / OSOD) po polsku, krok po kroku w oparciu o art. 35-36 RODO, wytyczne Grupy Roboczej Art. 29 (WP248 rev.01) i wykaz Prezesa UODO. Prowadzi przez: test czy DPIA jest WYMAGANE (9 kryteriów WP248, reguła co najmniej dwóch kryteriów, wykaz UODO), strukturę OSOD wg art. 35 ust. 7 (opis, niezbędność i proporcjonalność, ocena ryzyka, środki) oraz decyzję o uprzednich konsultacjach z UODO wg art. 36. Składa draft OSOD i rejestr decyzji; decyzję administratora i wniosek do UODO zostawia człowiekowi. Nie dodaje konektorów i sam niczego nie wysyła; wklejony opis systemu trafia do modelu, który masz skonfigurowany. Używaj gdy: "czy potrzebuję DPIA", "ocena skutków RODO", "OSOD dla profilowania/monitoringu/AI", "art. 35 RODO", "uprzednie konsultacje UODO", "DPIA dla nowego systemu".
| File | Kind | Size |
|---|---|---|
| LICENSE | other | 11.1 KB |
| SKILL.md | skill md | 8.0 KB |
| scripts/dpia_screening.py | script | 5.0 KB |
scripts/dpia_screening.py
View on GitHub#!/usr/bin/env python3
"""DPIA screening - deterministic threshold test for GDPR/RODO Art. 35. Offline, zero deps.
Decides whether a Data Protection Impact Assessment is REQUIRED, based on:
- the nine criteria of WP248 rev.01 (Article 29 Working Party; rule of thumb: >=2 met => DPIA
in most cases, sometimes one is enough), and
- the Art. 35(3) mandatory cases (any one => DPIA).
This is a clerical screening aid. A "not required" result is NOT a clearance - the controller
still documents the reasoning, and a single strong criterion can warrant a DPIA. The legal call
stays with the controller / DPO.
The nine WP248 criteria (give the keys that apply with --criteria):
evaluation - evaluation or scoring (incl. profiling and predicting)
automated - automated decision-making with legal/significant effect (Art. 22)
monitoring - systematic monitoring
sensitive - sensitive data or data of a highly personal nature
largescale - data processed on a large scale
matching - matching or combining datasets
vulnerable - data on vulnerable subjects (children, employees, patients)
innovation - innovative use / new technology (AI, IoT, biometrics)
blocking - processing that prevents a right or use of a service/contract
Art. 35(3) mandatory cases (give them with --mandatory):
systematic_eval - systematic and extensive automated evaluation incl. profiling, with decisions
producing legal or similarly significant effects (35(3)(a))
special_largescale- large-scale special-category or criminal data (35(3)(b))
public_monitoring - large-scale systematic monitoring of a public area (35(3)(c))
Usage:
python dpia_screening.py --criteria evaluation,sensitive,largescale
python dpia_screening.py --mandatory public_monitoring
python dpia_screening.py --criteria innovation
"""
from __future__ import annotations
import argparse
import json
import sys
NINE = {
"evaluation": "ocena lub scoring / evaluation or scoring (Art. 35; WP248)",
"automated": "decyzje zautomatyzowane ze skutkiem prawnym / automated decisions (Art. 22)",
"monitoring": "systematyczne monitorowanie / systematic monitoring",
"sensitive": "dane wrazliwe lub wysoce osobiste / sensitive or highly personal data",
"largescale": "duza skala / large scale",
"matching": "laczenie lub zestawianie zbiorow / matching or combining datasets",
"vulnerable": "osoby wymagajace szczegolnej opieki / vulnerable data subjects",
"innovation": "nowa technologia / innovative use (AI, IoT, biometria)",
"blocking": "uniemozliwienie realizacji prawa lub uslugi / preventing a right or service",
}
MANDATORY = {
"systematic_eval": "Art. 35(3)(a) - systematyczna kompleksowa ocena (profilowanie), na ktorej opieraja sie decyzje o skutkach prawnych lub podobnie istotnych / automated evaluation with decisions of legal or similarly significant effect",
"special_largescale": "Art. 35(3)(b) - dane szczegolne/karne na duza skale",
"public_monitoring": "Art. 35(3)(c) - monitoring miejsc publicznych na duza skale",
}
def screen(criteria: list[str], mandatory: list[str]) -> dict:
bad_c = [c for c in criteria if c not in NINE]
bad_m = [m for m in mandatory if m not in MANDATORY]
if bad_c or bad_m:
raise SystemExit(f"error: nieznane klucze {bad_c + bad_m}; patrz --help")
met = sorted(set(criteria))
mand = sorted(set(mandatory))
n = len(met)
if mand:
verdict, basis = "required", "Art. 35(3) - przypadek obligatoryjny / mandatory case"
elif n >= 2:
verdict, basis = "required", f"WP248 - spelnione {n} kryteria (reguła >=2) / {n} criteria met"
elif n == 1:
verdict, basis = "recommended", "1 kryterium - rozwaz DPIA i udokumentuj decyzje / 1 criterion - consider"
else:
verdict, basis = "not_required", "brak kryteriow - udokumentuj brak DPIA / no criteria - document the decision"
return {
"verdict": verdict,
"basis": basis,
"criteria_met": [{k: NINE[k]} for k in met],
"criteria_count": n,
"mandatory_cases": [{k: MANDATORY[k]} for k in mand],
"note": "Wynik to przesiew, nie zwolnienie. Pojedyncze silne kryterium tez moze uzasadniac DPIA. "
"Decyzja i dokumentacja: administrator/IOD. / Screening only - the controller decides and documents.",
}
def _split(s: str | None) -> list[str]:
return [x.strip() for x in s.split(",")] if s else []
def main(argv: list[str] | None = None) -> int:
p = argparse.ArgumentParser(description="DPIA screening (Art. 35)")
p.add_argument("--criteria", help="comma-separated WP248 criteria keys")
p.add_argument("--mandatory", help="comma-separated Art. 35(3) case keys")
args = p.parse_args(argv)
if not args.criteria and not args.mandatory:
p.error("give --criteria and/or --mandatory (see --help for keys)")
print(json.dumps(screen(_split(args.criteria), _split(args.mandatory)), ensure_ascii=False, indent=2))
return 0
if __name__ == "__main__":
sys.exit(main())
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |