Skill

Design and Audit Data Retention Policies

A skill for designing, implementing, and auditing data retention policies across GDPR, HIPAA, SOX, and FERPA requirements.

Works with githubkubernetes

78
Spark score
out of 100
Updated 21 days ago
Version 1.0.0
Models

Add to Favorites

Why it matters

Automate the design, implementation, and auditing of data retention policies across diverse regulatory frameworks and technical systems.

Outcomes

What it gets done

01

Map data retention requirements to regulatory frameworks like GDPR, HIPAA, and SOX.

02

Generate policy structure templates and classification matrices.

03

Implement automated retention systems using Python and SQL.

04

Orchestrate cross-system data retention processes in microservices environments.

Install

Add it to your toolbox

Run in your project directory:

curl -fsSL https://spark.entire.vc/get/vb-data-retention-policy | bash

Overview

Data Retention Policy Expert агент

A skill for designing, implementing, and auditing data retention policy - regulatory mapping across GDPR, HIPAA, SOX, and FERPA, a data classification matrix, automated retention and disposal logic, and compliance reporting. Use it to build or audit a risk-based retention policy and its enforcing systems - not a keep-everything default, since purpose limitation ties retention strictly to the original collection purpose.

What it does

This skill designs, implements, and audits data retention policy across regulatory frameworks, industries, and technical systems. Its core principles are purpose limitation (retain data only as long as the original collection purpose requires), proportionality (retention periods matched to business need and legal requirement), data minimization (keep only what's genuinely needed, not everything that might be useful), and transparency (clear documentation of what's retained, for how long, and why). Its risk-based approach classifies data by sensitivity (public, internal, confidential, restricted), accounts for legal-hold and disclosure obligations, balances storage cost against compliance risk and business value, and factors in cross-border transfer restrictions.

It maps specific regulatory requirements: under GDPR, personal data is retained no longer than necessary and tied to its lawful basis, with individual rights to erasure, portability, and rectification; special categories of data get only strictly necessary retention with additional safeguards and immediate deletion on consent withdrawal; children's data gets enhanced protection, the shortest possible retention period, and required parental consent. Industry-specific periods it names: healthcare (HIPAA) - medical records for 6 years from last treatment, billing records 7 years, audit logs 6 years; financial services - transaction records 7 years under SOX, customer communications 3-7 years, audit trails 7 years, anti-money-laundering records a minimum of 5 years; education (FERPA) - student records retained permanently as transcript, disciplinary records 7 years, application records 1 year if the applicant isn't enrolled.

It structures a full policy document - scope and applicability, a data classification matrix mapping category to retention period, disposal method, and legal basis (for example, customer PII for 7 years after the relationship ends via secure deletion under contract performance, or system logs for 13 months via automated purge for security monitoring) - and defines retention triggers: creation date, last activity, contract end, and legal hold, which suspends normal disposal.

For implementation it describes an automated retention manager that checks legal holds first, computes each record's retention end date from its creation and last-activity dates against policy, and returns a retain, archive, or disposal action - executing secure deletion (crypto-shredding) or anonymization and logging every disposal with the policy version, executor, and a disposal certificate for audit. At the database level it tracks retention metadata (classification, policy id, retention end date, legal-hold flag, disposal method) and runs a cleanup procedure over records past their retention date and not under hold. Across microservices it orchestrates retention execution on a schedule, triggering each service's own retention endpoint. For compliance monitoring it generates a report covering policy coverage, over-retention risk, deletion backlogs, legal-hold status, cross-border compliance, and subject-rights (erasure request) fulfillment.

When to use - and when NOT to

Use it to design, implement, or audit a data retention policy spanning legal and regulatory mapping (GDPR, HIPAA, SOX, FERPA), a classification-driven retention schedule, and the automated systems that enforce it. It is explicitly risk-based rather than keep-everything by default - purpose limitation and data minimization mean data is retained only as long as its original collection purpose requires, not because it might be useful later.

Inputs and outputs

Output spans a policy document with a data classification matrix, regulatory mappings for GDPR categories and named industry retention periods, an automated retention-manager design, database schema and cleanup logic, cross-service orchestration, and a compliance monitoring and reporting layer covering over-retention, deletion backlogs, and subject-rights fulfillment.

Integrations

Its implementation patterns span a relational database (retention metadata table and cleanup procedure), a retention-manager and compliance-monitor service layer, and a Kubernetes CronJob that orchestrates retention execution across microservices by calling each service's own retention API.

Who it's for

Legal, compliance, data governance, and engineering teams who need a defensible retention policy plus the technical systems - database, cross-service orchestration, and compliance reporting - that actually enforce it.

FAQ

Common questions

Discussion

Questions & comments · 0

Sign In Sign in to leave a comment.