agentsclimarketplace

Implementing data minimization architecture

Skill onfire7777/universal-ai-skills-library/skills/implementing-data-minimization-architecture

Router-first AI skill system for Codex, Claude, Cursor, Hermes, Paperclip, OpenCode, and local AI stacks: search, preflight-route, and load 1,812 skills on demand without duplicating the corpus.

Install
npx -y skills add onfire7777/universal-ai-skills-library --skill implementing-data-minimization-architecture

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 13 stars13 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Architecture patterns for GDPR Article 5(1)(c) data minimization and Article 25(1) data protection by design. Covers field-level encryption, data masking, aggregation, pseudonymization per Article 4(5), and anonymization per Recital 26. Includes ENISA pseudonymization techniques and a data minimization assessment matrix.

The file declares its own license as Apache-2.0. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

11.6 KB, as published. Nobody here has run it

Implementing Data Minimization Architecture

Overview

Data minimization is a core principle of the GDPR under Article 5(1)(c), requiring that personal data be "adequate, relevant and limited to what is necessary in relation to the purposes for which they are processed." Article 25(1) mandates that controllers implement appropriate technical and organisational measures, such as pseudonymisation, designed to implement data-protection principles effectively and to integrate necessary safeguards into the processing.

The European Data Protection Board (EDPB) Guidelines 4/2019 on Article 25 Data Protection by Design and by Default clarify that data minimization applies across four dimensions: the amount of data collected, the extent of processing, the period of storage, and the accessibility of data. ENISA's 2019 report on pseudonymisation techniques provides the technical foundation for implementing these requirements at scale.

Data Minimization Architecture Layers

Layer 1: Collection Minimization

Reduce data at the point of ingestion before it enters backend systems.

Techniques:

TechniqueDescriptionGDPR BasisImplementation Complexity
Schema enforcementReject fields not explicitly required for the declared purposeArt. 5(1)(c), Art. 25(1)Low
Client-side filteringStrip unnecessary fields in the client SDK before transmissionArt. 5(1)(c)Medium
Progressive collectionRequest additional fields only when a specific feature is activatedArt. 5(1)(c), Recital 39Medium
Purpose-gated formsDisplay only form fields relevant to the selected service tierArt. 5(1)(b), Art. 25(2)Low

Prism Data Systems AG Implementation: Prism Data Systems AG deploys an API gateway validation layer that enforces a strict allowlist of fields per endpoint. The customer onboarding endpoint /api/v2/customers accepts only: email, display_name, country_code, and consent_references[]. Fields like date_of_birth, phone_number, and billing_address are collected only when the customer activates the billing module, implementing progressive collection tied to purpose activation.

Layer 2: Processing Minimization

Reduce the identifiability of data during computation.

Pseudonymization (Article 4(5))

Article 4(5) defines pseudonymisation as "the processing of personal data in such a manner that the personal data can no longer be attributed to a specific data subject without the use of additional information, provided that such additional information is kept separately and is subject to technical and organisational measures."

ENISA Pseudonymization Techniques (2019 Report):

TechniqueReversibilityCollision RiskSuitable For
Counter-based mappingReversible with lookup tableNoneCustomer IDs, transaction references
HMAC-SHA256 with secret keyReversible with keyNegligible (256-bit)Cross-system linkage where re-identification is needed
Format-preserving encryption (FF1/FF3-1)Reversible with keyNoneStructured data (credit card numbers, SSNs) preserving format constraints
Tokenization with vaultReversible with vault accessNonePayment card data (PCI DSS alignment)
Keyed hash with salt rotationComputationally irreversible after rotationLowSession-level analytics where longitudinal tracking is unnecessary

Prism Data Systems AG Implementation: Prism Data Systems AG uses HMAC-SHA256 pseudonymization for all analytics pipelines. Customer identifiers are pseudonymized at the boundary between the transactional database and the analytics data warehouse. The HMAC key is stored in a Hardware Security Module (HSM) managed by the security operations team, physically and logically separated from the analytics infrastructure per ENISA recommended controls.

Anonymization (Recital 26)

Recital 26 states that the principles of data protection should not apply to anonymous information, namely "information which does not relate to an identified or identifiable natural person or to personal data rendered anonymous in such a manner that the data subject is not or no longer identifiable." The Article 29 Working Party Opinion 05/2014 on Anonymisation Techniques (WP216) established three risk criteria:

  1. Singling out — the ability to isolate a record identifying an individual
  2. Linkability — the ability to link two records relating to the same individual
  3. Inference — the ability to deduce the value of an attribute from other attributes

Anonymization Techniques:

TechniqueSingling OutLinkabilityInferenceData Utility
k-Anonymity (k=5)MitigatedPartially mitigatedNot mitigatedHigh
l-Diversity (l=3)MitigatedMitigatedPartially mitigatedMedium-High
t-Closeness (t=0.15)MitigatedMitigatedMitigatedMedium
Differential privacy (epsilon=1.0)MitigatedMitigatedMitigatedConfigurable
Data aggregation (min group=11)MitigatedMitigatedPartially mitigatedLow-Medium

Layer 3: Storage Minimization

Limit how much identifiable data persists at rest.

Field-Level Encryption Architecture:

                    ┌────────────────────────┐
                    │   Application Layer    │
                    │  (plaintext in memory) │
                    └──────────┬─────────────┘
                               │
                    ┌──────────▼─────────────┐
                    │  Encryption Service    │
                    │  AES-256-GCM per field │
                    │  Key: KMS / HSM        │
                    └──────────┬─────────────┘
                               │
          ┌────────────────────┼────────────────────┐
          │                    │                    │
 ┌────────▼───────┐  ┌────────▼───────┐  ┌────────▼───────┐
 │  email (enc)   │  │  name (enc)    │  │  country (clr) │
 │  DEK-email-v3  │  │  DEK-name-v3   │  │  (not PII)     │
 └────────────────┘  └────────────────┘  └────────────────┘

Each personally identifiable field is encrypted with a dedicated Data Encryption Key (DEK) wrapped by a Key Encryption Key (KEK) in AWS KMS or Azure Key Vault. This enables selective decryption: analytics queries on country never require decrypting email or name.

Prism Data Systems AG Implementation: Prism Data Systems AG classifies all database columns into four sensitivity tiers:

TierClassificationEncryptionAccess ControlExample Fields
T1Direct identifierAES-256-GCM, field-levelNamed individuals with business justificationemail, full_name, national_id
T2Quasi-identifierAES-256-GCM, field-levelRole-based, loggeddate_of_birth, postal_code, job_title
T3Sensitive attributeAES-256-GCM, field-levelPurpose-restricted, dual approvalhealth_data, financial_score
T4Non-identifyingTransport encryption (TLS 1.3)Standard RBACcountry_code, language_preference

Layer 4: Access Minimization

Restrict who and what systems can access identifiable data.

Data Masking Patterns:

PatternDescriptionUse Case
Static maskingIrreversibly replace PII in non-production databasesDevelopment and QA environments
Dynamic maskingApply masking rules at query time based on the requester's roleCustomer support dashboards
On-the-fly maskingMask data in transit between microservicesInter-service API calls where full PII is unnecessary
Tokenized viewsDatabase views that return tokens instead of raw valuesReporting layers, third-party integrations

Prism Data Systems AG Implementation: Customer support agents at Prism Data Systems AG see dynamically masked data by default: m***[email protected] for email, ***-***-4892 for phone numbers. Only escalation-tier agents can request unmasked access, which requires a ticket reference, is logged in the audit trail, and auto-expires after 30 minutes.

Data Minimization Assessment Matrix

Use this matrix to evaluate each data field against minimization requirements before approving a new processing activity or system design.

Assessment CriterionQuestionScoring
NecessityIs this field required to fulfill the stated purpose?0 = No, 1 = Partially, 2 = Yes
ProportionalityCould a less identifying alternative achieve the same result?0 = Yes (use alternative), 1 = Partially, 2 = No alternative exists
Aggregation potentialCan this field be aggregated or generalized without losing required utility?0 = Fully aggregable, 1 = Partially, 2 = Must remain granular
Pseudonymization feasibilityCan this field be pseudonymized for this processing purpose?0 = Easily pseudonymized, 1 = With effort, 2 = Not feasible
Temporal scopeIs this field needed beyond the immediate transaction?0 = No (delete after use), 1 = Short retention, 2 = Long retention required
Access scopeHow many roles need access to the raw value?0 = None (mask/encrypt), 1 = Limited roles, 2 = Broad access required

Scoring interpretation:

  • 0-4: Strong candidate for elimination, aggregation, or pseudonymization
  • 5-8: Apply masking, field-level encryption, and access controls
  • 9-12: Justified retention with full technical safeguards and documentation

Prism Data Systems AG Implementation: Before any new microservice is deployed, the data architecture review board at Prism Data Systems AG requires a completed minimization assessment for every personal data field. Fields scoring below 5 must be eliminated or pseudonymized before the service passes the privacy gate in the CI/CD pipeline.

Key Regulatory References

  • GDPR Article 4(5) — Definition of pseudonymisation
  • GDPR Article 5(1)(c) — Data minimization principle
  • GDPR Article 25(1) — Data protection by design
  • GDPR Article 25(2) — Data protection by default
  • GDPR Article 32(1)(a) — Pseudonymisation and encryption as security measures
  • GDPR Recital 26 — Scope of anonymous information
  • GDPR Recital 78 — Appropriate technical and organisational measures
  • EDPB Guidelines 4/2019 on Article 25 Data Protection by Design and by Default
  • ENISA Report: Pseudonymisation techniques and best practices (November 2019)
  • Article 29 Working Party Opinion 05/2014 on Anonymisation Techniques (WP216)

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.