agentsclimarketplace

Anonymization alternative

Skill onfire7777/universal-ai-skills-library/skills/anonymization-alternative

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 anonymization-alternative

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

Evaluates anonymization as a retention alternative under GDPR Recital 26, applying the WP29 Opinion 05/2014 techniques including randomization and generalization. Validates anonymization effectiveness using k-anonymity, l-diversity, and t-closeness metrics. Activate for anonymization, de-identification, k-anonymity, retention alternative queries.

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

16.0 KB, as published. Nobody here has run it

Anonymization as Retention Alternative

Overview

Anonymization transforms personal data into a form that no longer identifies or can reasonably be used to identify a natural person. Under GDPR Recital 26, truly anonymized data falls outside the scope of the regulation, meaning it can be retained indefinitely without a legal basis, without data subject rights applying, and without counting toward retention period obligations. However, achieving genuine anonymization — as opposed to mere pseudonymization — requires rigorous application of techniques validated against re-identification risk. This skill provides the assessment framework, implementation techniques, and validation methods for using anonymization as an alternative to deletion when retention of aggregate or statistical data serves a legitimate purpose.

Legal Foundation

GDPR Recital 26 — Anonymized Data Outside GDPR Scope

"The principles of data protection should therefore 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. This Regulation does not therefore concern the processing of such anonymous information, including for statistical or research purposes."

The critical test: whether the data subject is identifiable, taking into account "all the means reasonably likely to be used" either by the controller or "any other person" to identify the natural person.

Article 29 Working Party Opinion 05/2014 on Anonymization Techniques (WP216)

Adopted 10 April 2014, this Opinion establishes that effective anonymization must prevent:

  1. Singling out: Isolating some or all records which identify an individual in the dataset.
  2. Linkability: Linking at least two records concerning the same data subject (within the same dataset or between two separate datasets).
  3. Inference: Deducing, with significant probability, the value of an attribute from the values of a set of other attributes.

The Opinion evaluates randomization and generalization techniques against these three risks.

ICO Anonymization Code of Practice (Updated Guidance)

The ICO provides guidance on anonymization, emphasizing the "motivated intruder" test: could a reasonably competent person with access to resources such as the internet, public libraries, and public records re-identify individuals in the dataset?

Anonymization vs. Pseudonymization

CharacteristicAnonymizationPseudonymization
GDPR statusOutside GDPR scope (Recital 26)Still personal data (Art. 4(5))
ReversibilityIrreversible — no means to re-identifyReversible — additional information can re-identify
RetentionCan be retained indefinitelySubject to retention schedule
Data subject rightsDo not applyFully apply
Legal basisNot requiredRequired
Risk of failureIf anonymization is broken, data reverts to personal data status retroactivelyN/A — always personal data
TechniqueRandomization, generalization, suppression, data masking (irreversible)Tokenization, encryption, key-based substitution (reversible)

WP29 Anonymization Techniques

Technique 1: Randomization

Randomization alters the truthfulness of data to break the link between the data and the individual:

MethodDescriptionSingling OutLinkabilityInferenceSuitability
Noise additionAdd random noise to numerical values (e.g., age ± 3 years, salary ± 5%)Partially mitigatesPartially mitigatesMitigatesStatistical analysis where exact values are not critical
PermutationShuffle attribute values within a dataset so that values are no longer linked to the correct recordPartially mitigatesMitigatesPartially mitigatesDatasets where attribute distributions must be preserved but linkages broken
Differential privacyAdd calibrated noise to query results ensuring that the inclusion/exclusion of any single record does not significantly change the outputMitigatesMitigatesMitigatesAggregate analytics, machine learning training data

Technique 2: Generalization

Generalization reduces the granularity of data to prevent identification:

MethodDescriptionSingling OutLinkabilityInferenceSuitability
AggregationReplace individual values with aggregate statistics (mean, median, count)MitigatesMitigatesPartially mitigatesReporting, trend analysis
K-anonymityEnsure that each combination of quasi-identifiers appears in at least k recordsMitigates (if k sufficiently large)Partially mitigatesDoes not mitigateReleasing microdata for research
L-diversityEnsure that within each equivalence class (k-anonymity group), there are at least l distinct values for sensitive attributesMitigatesPartially mitigatesPartially mitigatesDatasets with sensitive attributes
T-closenessEnsure that the distribution of sensitive attributes within each equivalence class is close to the overall distribution (distance ≤ t)MitigatesPartially mitigatesMitigatesDatasets where attribute distribution is sensitive
Top/bottom codingReplace extreme values with threshold values (e.g., age >90 becomes "90+")Partially mitigatesPartially mitigatesPartially mitigatesProtecting outliers in numerical data
Data maskingIrreversibly replace characters (e.g., postcode "SW1A 1AA" → "SW1A ***")Mitigates (for masked fields)Partially mitigatesPartially mitigatesReducing granularity of quasi-identifiers

Technique 3: Suppression

MethodDescriptionEffectiveness
Record suppressionRemove entire records that are unique or quasi-uniqueEliminates singling out for suppressed records
Attribute suppressionRemove entire columns that serve as identifiers or quasi-identifiersEliminates linkability via suppressed attributes
Cell suppressionReplace specific cell values with null where those values contribute to re-identification riskTargeted mitigation of singling out

Anonymization Assessment Workflow

Step 1: Determine Whether Anonymization is Appropriate

[Data Approaching Retention Expiry]
         │
         ▼
[Is there a legitimate purpose for retaining the data in anonymized form?]
   │
   ├── Statistical analysis / reporting ──► Proceed
   ├── Research purposes (Art. 89) ──► Proceed
   ├── Training ML models ──► Proceed (with separate legal basis assessment)
   ├── Historical archiving ──► Proceed
   ├── No legitimate purpose ──► DELETE (do not anonymize for no reason)
   │
   ▼
[Can the purpose be achieved with anonymized data?]
   │
   ├── Yes ──► Proceed to anonymization
   └── No ──► Consider pseudonymization with extended retention (separate assessment)

Step 2: Select Anonymization Technique

Based on the data type and intended use:

Data TypeRecommended Primary TechniqueSecondary TechniqueValidation Method
Structured numerical (age, salary, amounts)Generalization (aggregation) + noise additionTop/bottom coding for outliersK-anonymity (k ≥ 5)
Structured categorical (gender, region, job title)Generalization (hierarchy-based) + suppression of rare valuesPermutationL-diversity (l ≥ 3)
Free text (support tickets, notes)Full suppression of personal identifiers + generalization of quasi-identifiersNamed entity removal + text generalizationManual review sample + automated NER validation
Transactional (purchase history, usage logs)Aggregation to cohort level + noise additionTemporal generalization (day → week → month)T-closeness (t ≤ 0.15) + k-anonymity (k ≥ 10)
Location dataSpatial generalization (precise coordinates → region/city)Cloaking (minimum area containing k individuals)K-anonymity (k ≥ 20 for location)

Step 3: Implement Anonymization

For Orion Data Vault Corp, the standard anonymization pipeline is:

[Source Data — Personal Data Under Retention]
         │
         ▼
[Step 1: Identifier Removal]
   - Remove all direct identifiers: name, email, phone, address, NI number,
     account number, IP address, device ID
   - Remove any unique IDs that could be cross-referenced with other datasets
         │
         ▼
[Step 2: Quasi-Identifier Generalization]
   - Age: Generalize to 10-year bands (18-27, 28-37, 38-47, ...)
   - Postcode: Truncate to outward code only (SW1A 1AA → SW1A)
   - Date of birth: Remove — use age band only
   - Job title: Generalize to job function category
   - Transaction date: Generalize to month-year
         │
         ▼
[Step 3: Apply K-Anonymity]
   - Ensure each combination of quasi-identifiers appears in ≥ k records
   - Target: k ≥ 5 for standard data; k ≥ 10 for sensitive data
   - Suppress records that cannot achieve k threshold
         │
         ▼
[Step 4: Apply L-Diversity (if sensitive attributes present)]
   - Within each equivalence class, ensure ≥ l distinct values for
     each sensitive attribute
   - Target: l ≥ 3
         │
         ▼
[Step 5: Add Noise (for numerical attributes)]
   - Apply calibrated noise (Laplace mechanism for differential privacy)
   - Epsilon (ε) parameter: ε ≤ 1.0 for standard data; ε ≤ 0.1 for sensitive data
         │
         ▼
[Step 6: Validation]
   - Run re-identification risk assessment (see below)
   - If risk > threshold: iterate with stronger parameters
   - If risk ≤ threshold: approve anonymized dataset
         │
         ▼
[Anonymized Dataset — Outside GDPR Scope]
   - Delete source personal data per retention schedule
   - Retain anonymized dataset without retention period constraint
   - Document anonymization process in anonymization register

Step 4: Validate Anonymization Effectiveness

Re-Identification Risk Assessment

TestMethodThresholdAction if Failed
Singling outAttempt to identify unique records using all available quasi-identifiers< 0.05 (5%) probability of singling out any individualIncrease k-anonymity parameter; suppress unique records
LinkabilityCross-reference anonymized dataset with available external datasets (e.g., public records, social media)No successful linkage in test sample (n ≥ 100)Remove additional quasi-identifiers; increase generalization
InferenceAttempt to infer sensitive attribute values from quasi-identifiers within equivalence classesNo attribute can be inferred with > 80% confidenceIncrease l-diversity; apply t-closeness
Motivated intruder test (ICO)Simulate an attack by a motivated individual with access to public resourcesIntruder cannot identify any individual with reasonable effortStrengthen technique parameters; consider full suppression

K-Anonymity Validation Criteria

Dataset SizeMinimum kRationale
< 1,000 recordsk ≥ 10Small datasets are more vulnerable to singling out
1,000 — 100,000 recordsk ≥ 5Standard protection level
> 100,000 recordsk ≥ 3 (minimum); k ≥ 5 (recommended)Larger datasets provide inherent protection
Special category data (any size)k ≥ 10Elevated risk from re-identification of sensitive data
Location data (any size)k ≥ 20Location data is highly re-identifiable (Montjoye et al., 2013: 4 spatiotemporal points sufficient to uniquely identify 95% of individuals)

Anonymization Register

Orion Data Vault Corp maintains a register of all anonymization operations:

ANONYMIZATION REGISTER — Orion Data Vault Corp
(Extract as of 2026-03-14)

┌──────────────┬─────────────────┬────────────┬───────────────┬──────────┬──────────────────┬─────────────┐
│ Anon Ref     │ Source Category  │ Records    │ Technique     │ k-value  │ Re-ID Risk       │ Date        │
├──────────────┼─────────────────┼────────────┼───────────────┼──────────┼──────────────────┼─────────────┤
│ ANON-2025-041│ CAT-005 Web     │ 2.3M       │ Aggregation + │ k=15     │ < 0.01%          │ 2025-12-01  │
│              │ Analytics       │            │ noise addition│          │                  │             │
├──────────────┼─────────────────┼────────────┼───────────────┼──────────┼──────────────────┼─────────────┤
│ ANON-2026-008│ CAT-003 Trans.  │ 450K       │ Generalization│ k=8      │ < 0.02%          │ 2026-02-15  │
│              │ Records         │            │ + l-diversity │ l=4      │                  │             │
├──────────────┼─────────────────┼────────────┼───────────────┼──────────┼──────────────────┼─────────────┤
│ ANON-2026-012│ CAT-009 Support │ 28K        │ Text redaction│ k=5      │ < 0.05%          │ 2026-03-01  │
│              │ Records         │            │ + generalizn. │          │ (manual review   │             │
│              │                 │            │               │          │  validated)      │             │
└──────────────┴─────────────────┴────────────┴───────────────┴──────────┴──────────────────┴─────────────┘

Ongoing Monitoring

Annual Re-Identification Risk Review

Anonymized datasets must be reviewed annually because:

  1. New data sources: Newly available external datasets may enable linkage attacks that were not possible when anonymization was performed.
  2. Technology advances: Improved computation and AI capabilities may reduce the effectiveness of anonymization techniques over time.
  3. Contextual changes: Changes in the population represented by the data may make previously anonymous records identifiable.

If a review determines that anonymization is no longer effective, the organization must either:

  • Apply additional anonymization techniques to restore effectiveness, or
  • Treat the dataset as personal data and apply full GDPR compliance (legal basis, retention schedule, data subject rights).

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.