Skip to content
Skills Library
Law & compliance · Building & coding

data-retention

/data-retention

Implement retention tiers, legal holds, and deletion pipelines that actually delete, including GDPR-style erasure. Use when defining how long data lives or building the machinery that enforces it.

Repository
AI-SKILLS ↗
Licence
MIT
Last repository change
05.09.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 05.09.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Implement retention tiers, legal holds, and deletion pipelines that actually delete, including GDPR-style erasure. Use when defining how long data lives or building the machinery that enforces it.

Original author description

Implement retention tiers, legal holds, and deletion pipelines that actually delete, including GDPR-style erasure. Use when defining how long data lives or building the machinery that enforces it.

How it works

  1. Method
  2. Boundaries
Original SKILL.md headings · 61 lines, 429 words
SKILL.md preview
---
name: data-retention
description: Implement retention tiers, legal holds, and deletion pipelines that actually delete, including GDPR-style erasure. Use when defining how long data lives or building the machinery that enforces it.
---

# Data retention

Retention is a promise in two directions: data the business needs stays
available, and data past its purpose actually disappears, everywhere,
provably. Most organizations keep the first promise and quietly break
the second.

## Method

1. **Classify data with owners and clocks.** Per dataset: class
   (PII, financial, telemetry, derived), business owner, retention
   period with its reason (regulation cites, business need), and the
   clock start (creation, last activity, contract end). This table,
   kept where lineage metadata lives (see data-lineage), is the spec
   everything else implements.
2. **Tier before you delete.** Hot store for the active window,
   warm/cold object tiers for the tail (see cloud-storage-selection),
   delete at the end: lifecycle rules automate the transitions.
   Aggregate-then-drop is the analytics pattern: keep the rollups
   (see warehouse-modeling) with long retention, expire the raw
   events; most "we might need it" arguments are satisfied by
   aggregates at 1% of the cost.
3. **Build deletion as a pipeline, not a script.** Scheduled jobs
   that find expired data by the classification table, delete across
   *all* stores (primary DB, warehouse, lake partitions, search
   indexes, caches, logs), and emit an audit record of what was
   deleted when and by which rule. Partition-aligned layouts (see
   data-partitioning) turn expiry into cheap partition drops instead
   of row-by-row deletes.
4. **Handle erasure requests (GDPR/CCPA) as their own path.**
   Subject-keyed deletion within the statutory window: locate via
   lineage/catalog everywhere the subject's data lives, delete or
   anonymize, and handle the backup problem: either restore-time
   re-deletion (documented, tested) or crypto-shredding (per-subject
   keys destroyed on request; see event-sourcing for the
   immutable-log variant). Log the fulfillment as evidence.
5. **Implement legal hold as an override switch.** Holds pause
   deletion for named scopes (custodian, matter, dataset) above all
   retention rules; release resumes normal expiry. The deletion
   pipeline checks holds before every run; a hold discovered after
   deletion is a sanctions conversation, so this check fails closed.
6. **Audit the machinery quarterly.** Sample expired data and prove
   it is gone from every store; reconcile the classification table
   against reality (new tables appear constantly; see
   data-quality-checks for the scanning muscle); review retention
   periods with legal yearly. Deletion code that never gets audited
   is deletion theater.

## Boundaries

- Retention policy content (how long, what law) is a legal decision;
  this skill builds the enforcement, not the numbers. Get the table
  signed off.
- Derived data (models, embeddings, aggregates) containing personal
  data inherits erasure obligations; whether an aggregate is
  sufficiently anonymized is a privacy-review question
  (see pii-handling), not an engineering assumption.
- Soft-delete flags are UX, not retention compliance; flagged rows
  still exist for every purpose a regulator cares about.

Versions

RepositoryScoreLicence
This page · Amey-Thakur/AI-SKILLS100MIT
TheLobbi/claude84MIT

Database snapshot: 13.11.2026 · package version e331ac32b79b (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 90privacy-retention-and-right-to-delete
    Guides agents through privacy, retention, and deletion workflows in data systems. Use when handling personal data, retention limits, deletion requests, legal holds, or data minimization requirements across pipelines and published datasets.
  • 100data-retention-review
    Review data retention and disposal — retention schedules by record type and legal requirement, retention labels/policies (Purview, Google Vault), backup and log retention, legal holds, and verifiable deletion — to reduce breach impact and meet storage-limitation obligations. Use…
  • 100vercel-data-handling
    Implement Vercel PII handling, data retention, and GDPR/CCPA compliance patterns. Use when handling sensitive data, implementing data redaction, configuring retention policies, or ensuring compliance with privacy regulations for Vercel integrations. Trigger with phrases like…
  • 100gamma-data-handling
    Handle data privacy, retention, and compliance for Gamma integrations. Use when implementing GDPR compliance, data retention policies, or managing user data within Gamma workflows. Trigger with phrases like "gamma data", "gamma privacy", "gamma GDPR", "gamma data retention", "gamma compliance".
  • 100fai-gdpr-compliance
    Review and harden AI data processing and storage for GDPR — data minimization, consent, right-to-erasure, retention, and cross-border transfer controls. Use this skill when handling EU personal data, building data pipelines, or when the user mentions privacy, PII, consent, or…
  • 100intercom-data-handling
    Implement Intercom data handling for GDPR, contact export, data retention, and PII. Use when handling sensitive Intercom contact data, fulfilling a data subject access or deletion request, redacting PII in logs, or setting retention policy for cached Intercom records. Trigger…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.