Przejdź do treści
Biblioteka skilli
Prawo i compliance · Budowanie i kod

privacy-engineering

/privacy-engineering

Buduje oprogramowanie zbierające mniej danych osobowych, znające wszystkie ich kopie i zdolne wykazać zgodę, obsłużyć żądania i zgłosić wyciek w terminie.

Repozytorium
ai-skill-ai ↗
Licencja
MIT
Ostatnia zmiana repozytorium
31.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
5
Skrypty
1
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 31.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co sprawdzić przed instalacją
  • 1 skrypt w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.

Skrypty: scripts/pii_scan.py

Co robi i kiedy

Buduje oprogramowanie zbierające mniej danych osobowych, znające wszystkie ich kopie i zdolne wykazać zgodę, obsłużyć żądania i zgłosić wyciek w terminie.

Oryginalny opis (EN)

Build software that collects less personal data, knows where every copy lives, and can prove consent, answer rights requests, delete on schedule and report a breach in time. Use when a feature stores or shares personal data, when adding sign-up or consent, when logs, prompts, fixtures or exports may hold personal data, or when the user asks about GDPR, UK GDPR, India's DPDP Act 2023 and DPDP Rules 2025, data minimisation, retention, erasure, a data subject or data principal request, pseudonymisation, anonymisation, a DPIA, processors or children's data. Maps each field to a purpose, basis and

Jak działa

  1. When to use and when to stay off
  2. Non-negotiables
  3. Procedure
  4. Self-audit
  5. What this cannot do
Sekcje z nagłówków SKILL.md, w oryginale · 142 linii, 1 584 słów
Podgląd SKILL.md
---
name: privacy-engineering
description: "Build software that collects less personal data, knows where every copy lives, and can prove consent, answer rights requests, delete on schedule and report a breach in time. Use when a feature stores or shares personal data, when adding sign-up or consent, when logs, prompts, fixtures or exports may hold personal data, or when the user asks about GDPR, UK GDPR, India's DPDP Act 2023 and DPDP Rules 2025, data minimisation, retention, erasure, a data subject or data principal request, pseudonymisation, anonymisation, a DPIA, processors or children's data. Maps each field to a purpose, basis and retention period, scans code and logs with scripts/pii_scan.py, keeps consent as evidence, makes deletion reach backups and processors, and writes the breach clock before it is needed. Triggers on GDPR, DPDP, personal data, PII, data minimisation, retention policy, right to erasure, DSAR, consent record, DPIA, breach notification. For cookie banners use web-analytics. For security controls use security-hardening."
license: MIT
metadata:
  version: 1.0.0
  suite: ai-skill
---

# Privacy engineering

Most privacy failures are engineering failures that a policy page cannot fix: a phone number in every
log line, a "deleted" user still in last month's backup and the analytics warehouse, a consent checkbox
stored as a boolean that the next sign-up form overwrites, a support export emailed as a spreadsheet, a
breach found on a Friday with nobody knowing whose clock started. This skill treats personal data as an
inventory with owners, keeps the evidence the law asks for, and builds deletion and breach response as
code paths that are tested like any other.

## When to use and when to stay off

Run when the work decides what personal data a system collects, where it goes, how long it stays, and
how a person can see, correct or remove it: a new feature or table, a sign-up or consent flow, a new
processor or region, a rights request, a retention or deletion job, a DPIA or record of processing, a
breach plan, or a scan of code, logs, fixtures or exports for personal data.

Stay off, and route instead, when:

- The task is a cookie banner, consent mode or which analytics tags may fire. `web-analytics` owns consent for tracking and the cookie rules.
- The task is encryption, access control, secrets or a threat model. `security-hardening` owns those controls; this skill names which data needs them.
- The task is running a live breach: triage, containment, communication. `incident-response` owns the incident; step 8 here prepares the clock and the notices it will need.
- The task is the schema or migration that a deletion job runs against. `data-layer` owns schemas, indexes and migrations on live tables.
- The task is the log pipeline itself. `observability-setup` owns logging, and audits logs with this skill's scanner.
- The task is the wording of a privacy notice or consent text. `ux-writing` owns interface copy, and a lawyer owns the legal text.

The user says "stop", "I've decided", or "just execute": comply at once and stay off for the rest of
the session unless asked again.

## Non-negotiables

These override everything else in this file.

1. No field is collected before it has a purpose, a basis, an owner and a retention period in the inventory. "We might need it later" is not a purpose, and a field nobody reads is deleted.
2. Consent is kept as evidence: an append-only record of who agreed to which purpose, when, through which channel and which notice version. Nothing is pre-ticked, one purpose per choice, and withdrawing takes no more steps than agreeing did.
3. Personal data stays out of logs, URLs, analytics events, error trackers, model prompts and test fixtures unless the inventory names it there. `scripts/pii_scan.py` runs over code, fixtures and sample logs before every release, and every high finding is fixed or explained.
4. Deletion reaches every copy: primary store, replicas, caches, search indexes, warehouses, object storage, processors, and backups by expiry or destroyed keys. A test proves it.
5. Pseudonymised data is personal data. A plain hash of an email or phone number is reversible by trying every value, so tokens use a keyed hash or a vault, and data is called anonymous only after a written re-identification test.
6. The breach clock is written before a breach: who decides that one has happened, GDPR's 72 hours to the authority, and under DPDP notice to the Board and to each affected person without delay with the Board's detailed report within 72 hours. Every legal conclusion goes to a lawyer or the data protection officer.

## Procedure

The provisions behind each duty, with the dates they were checked, are in `references/law-map.md`. The
inventory, retention, consent and rights-request templates and the deletion checklist are in
`references/data-inventory.md`. Minimisation, pseudonymisation, anonymisation and side-channel rules are
in `references/techniques.md`.

### Step 1, name the people, the places and the law

Whose data is it (customers, staff, children, patients), where do they live, and where does the data go?
Each place brings its own law: the GDPR for people in the EU, the UK GDPR, India's DPDP Act and Rules for
digital personal data processed in India or for offering goods or services to people in India. Write the
list; every later deadline comes from it. Data of children or special categories raises every step.

### Step 2, build the inventory

Fill in the inventory table for every field: source, purpose, basis, copies, processors, access,
retention, deletion path and owner. Find copies by reading code paths, not the schema: queues, caches,
exports, analytics calls, error reports and the warehouse. The table becomes the record of processing
and the starting point of any DPIA.

### Step 3, cut what is not needed

For each field ask whether the purpose works without it, with a coarser version, or by asking later.
Derive flags instead of storing source values, truncate IPs, shorten retention. Use
`references/techniques.md` to choose between deletion, coarsening, keyed tokens, a vault and encryption.

### Step 4, scan for leaks

```
python3 scripts/pii_scan.py src/ tests/fixtures/ sample-logs/ --strict
```

It finds card numbers (Luhn and issuer prefix), Aadhaar numbers (Verhoeff checksum), PAN, IBANs (mod 97),
US Social Security numbers, emails, phone numbers and public IPv4 addresses, and prints only masked
values. Names and postal addresses cannot be matched by pattern, so read the free-text fields by hand.
Fix leaks at the source: redact at the logger, move identifiers out of URLs, swap fixtures for synthetic
people. To accept a deliberate test value, put `pii-scan: allow` on its line.

### Step 5, record consent and write the notice

Where consent is the basis, store it as the event record in `references/data-inventory.md`. Show the
notice at the point of collection, standing on its own, listing each item of data and its purpose, with
links to withdraw, to exercise rights and to complain; DPDP Rule 3 requires exactly this, and the GDPR's
Articles 7, 12 and 13 come close. Under DPDP a child is anyone under 18 and needs verifiable consent
from a parent (Rule 10); the GDPR's threshold is 16 or lower by member state.

### Step 6, answer rights requests

Publish how to ask, log each request on arrival, verify identity in proportion to the risk, find every
copy with the inventory, act, reply, and keep a record. The GDPR gives one month, extendable by two; DPDP
Rule 14(3) caps the published response period at 90 days. Automate export and deletion once requests
recur, behind the same identity check.

### Step 7, schedule deletion and retention

A scheduled job enforces each retention period, logged and alerting on failure. Under DPDP, keep logs
of processing for at least one year (Rule 8(3)); large e-commerce, gaming and social media platforms
erase dormant users after three years with 48 hours' warning (Third Schedule). Prove deletion with an
end-to-end test that creates a person, touches every path, deletes them and checks each store.

### Step 8, prepare for a breach

Write the runbook before it is needed: who can declare a personal data breach, who drafts the notices,
the GDPR's 72-hour authority notice and the high-risk notice to people, and the DPDP notices to each
affected person and to the Board, with the detailed report due within 72 hours. Keep access logs that can
answer "whose data, which fields, from when to when". `incident-response` runs the incident itself.

### Step 9, check processors and transfers

List every processor with its region, contract (GDPR Article 28), sub-processors and deletion route. A
new processor or region is a change to the inventory and, for EU data leaving the EEA, needs a transfer
mechanism. Under DPDP, check whether the government has restricted the destination country (s.16).

## Self-audit

- Every personal data field has a purpose, basis, owner, retention period and deletion path in the inventory, with copies and processors filled in.
- `pii_scan.py --strict` over code, fixtures and sample logs shows no high findings, and every medium one is fixed or recorded as intended.
- Consent is an append-only record with the notice version, and withdrawing takes no more steps than agreeing.
- A rights request can be answered from every copy within the shortest deadline that applies, and the log shows the received date.
- The deletion test covers each store and processor, and backups expire or use destroyed keys.
- The breach runbook names the decision maker and both regimes' clocks, and every law cited carries the date checked.

## What this cannot do

It cannot give legal advice or decide a lawful basis. It maps provisions to engineering duties and
writes the questions; the answer comes from a lawyer or the data protection officer.

It cannot find every kind of personal data by pattern. Names, addresses, health details in free text,
images, voice and documents need people reading them, and data inside a database is seen only through
an export or a query.

It cannot prove data is anonymous in general; it can only record that a stated re-identification attempt
failed on a stated date.

It cannot see a processor's systems. Their deletion and security rest on the contract and their reports.

Ask a data protection lawyer: "We process these categories of personal data about people in these
countries, for these purposes, with these processors and transfers. Which lawful basis applies to each
purpose, what must our notice and consent record contain, how long may we keep each category, and what
must we notify, to whom and by when, if there is a breach?"
Pliki w paczce (5)
  • SKILL.md 10 KB
  • references/data-inventory.md 5 KB
  • references/law-map.md 8 KB
  • references/techniques.md 4 KB
  • scripts/pii_scan.py 25 KB

Wersje

RepozytoriumWynikLicencja
Ta strona · devpilotX/ai-skill-ai100MIT
magnus919/agent-skills100MIT
briiirussell/cybersecurity-skills100MIT

Migawka bazy z 13.11.2026 · wersja paczki c6d2f0e1d446 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 2 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100dpdp-compliance-engineering
    Ocenia, wdraża i weryfikuje w kodzie mechanizmy ochrony prywatności według indyjskiej DPDP: zgody, powiadomienia, prawa osób, usuwanie i zgłoszenia naruszeń.
  • 90gdpr-by-design
    Wbudowuje w kod zgodność z RODO: mapowanie danych osobowych, minimalizację, okresy przechowywania, usuwanie i żądania dostępu.
  • 100privacy-review
    Przegląda funkcję lub kod pod kątem prywatności: buduje inwentarz danych, śledzi dane przez modele i logi, sprawdza minimalizację i żądania osób według RODO i CCPA.
  • 100compliance-auditor
    Audytuje specyfikacje funkcji pod kątem indyjskiej ustawy o ochronie danych osobowych DPDP: sekcja danych osobowych, maskowanie, retencja i zgody.
  • 100dpdpa
    Doradza w zgodności z indyjską ustawą o ochronie danych osobowych DPDPA 2023: obowiązki administratora, prawa osób, zgoda, zgłaszanie naruszeń i transfery transgraniczne.
  • 90audit
    Przeprowadza pełny audyt prywatności zgodny z DPDP i RODO: dane osobowe, przepływy danych, zgody, prawa i ocenę skutków.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.