Agent skill

Automating Storage Limitation Controls

by mukul975 in mukul975/Privacy-Data-Protection-Skills

Automated enforcement of GDPR Article 5(1)(e) storage limitation principle.

Apache-2.0Auto-check passedLegal & Compliance

Install Automating Storage Limitation Controls

skills CLI
$ npx skills add mukul975/Privacy-Data-Protection-Skills --skill automating-storage-limitation-controls -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install mukul975/Privacy-Data-Protection-Skills automating-storage-limitation-controls --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/mukul975/Privacy-Data-Protection-Skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/privacy/automating-storage-limitation-controls .claude/skills/automating-storage-limitation-controls && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
automating-storage-limitation-controls
GitHub stars
301
Token cost
~2.4k tokens
SKILL.md length
923 words
Files
5 (incl. scripts, references, assets)
Skills in repo
280
Repo updated
First seen
Licence
Apache-2.0

At a glance

Automated enforcement of GDPR Article 5(1)(e) storage limitation principle.

  • Works in 5 steps: Hold initiation — Legal counsel issues a… → Hold registration — The Retention Policy… → Hold monitoring — Monthly review by… → …
  • Tasks that involve Privacy and GDPR
  • SKILL.md covers Overview, Retention Policy Framework, Archival Policies and Implementation Workflow, plus 1 more section
  • Runs Python scripts from its folder

What it does

Automating Storage Limitation Controls is an agent skill from mukul975/Privacy-Data-Protection-Skills. Automated enforcement of GDPR Article 5(1)(e) storage limitation principle. Covers TTL-based deletion, retention policy engines, archival workflows, legal hold exemptions, and lifecycle automation. Includes technical implementation patterns for automated data expiry and defensible deletion across distributed systems.

Its SKILL.md is about 2.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including scripts, reference files and assets (for example `assets/template.md`, `references/standards.md` and `references/workflows.md`).

It sits in Legal & Compliance, covering Privacy and GDPR and Authorization and RBAC. The repository describes itself as: 282+ structured privacy & data protection skills for AI agents. GDPR, CCPA, EU AI Act, HIPAA, LGPD, PIPL, DPDP Act. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Privacy and GDPR
  • Tasks that involve Authorization and RBAC

Example prompts

  • “/automating-storage-limitation-controls”

Requirements

  • Python 3

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Hold initiation — Legal counsel issues a hold notice specifying the scope (data categories, date range, affected subjects) and the matter…
  2. Hold registration — The Retention Policy Engine registers the hold, creating an exemption that overrides TTL-based deletion for matching…
  3. Hold monitoring — Monthly review by legal counsel to confirm the hold remains necessary
  4. Hold release — Legal counsel issues a release notice; the Retention Policy Engine removes the exemption and resumes normal retention…
  5. Catch-up deletion — Records that would have been deleted during the hold period are now evaluated against current retention policies and…

What it can do on your machine

Read from SKILL.md and the folder at commit 9b2ef9e. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Automating Storage Limitation Controls loads about 2.4k tokens when it runs, and up to ~4.9k if it reads all its reference files. Until then it costs about 89 tokens; SKILL.md has 923 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~89
When it runs · the whole SKILL.md, loaded when a task matches
~2.4k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~4.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from mukul975/Privacy-Data-Protection-Skills at commit 9b2ef9e, republished under its Apache-2.0 licence (© mukul975). 923 words, ~2,446 tokens.

Download SKILL.mdSave it as .claude/skills/automating-storage-limitation-controls/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
automating-storage-limitation-controls
description
Automated enforcement of GDPR Article 5(1)(e) storage limitation principle. Covers TTL-based deletion, retention policy engines, archival workflows, legal hold exemptions, and lifecycle automation. Includes technical implementation patterns for automated data expiry and defensible deletion across distributed systems.
license
Apache-2.0
metadata.author
mukul975
metadata.version
1.0
metadata.domain
privacy
metadata.subdomain
privacy-by-design
metadata.tags
storage-limitation, data-retention, ttl-deletion, legal-hold, automated-deletion

Automating Storage Limitation Controls

Overview

Article 5(1)(e) of the GDPR requires that personal data be "kept in a form which permits identification of data subjects for no longer than is necessary for the purposes for which the personal data are processed." This is the storage limitation principle. Controllers must define retention periods for each category of personal data based on the purpose of processing (Article 13(2)(a) requires disclosure of retention periods or criteria).

Automation is critical because manual retention management at scale inevitably leads to compliance gaps. The EDPB Guidelines 4/2019 on Article 25 specifically identify automated deletion mechanisms as an example of data protection by design.

Retention Policy Framework

Retention Period Determination

Each retention period must be justified by reference to the processing purpose, legal requirements, or legitimate business need:

Data CategoryPurposeLawful BasisRetention PeriodRetention TriggerLegal Reference
Customer account dataService deliveryArt. 6(1)(b)Duration of contract + 90 daysAccount closureArt. 5(1)(e), Art. 17(1)(a)
Transaction recordsTax complianceArt. 6(1)(c)10 yearsTransaction dateSwiss CO Art. 958f, EU VAT Directive 2006/112/EC Art. 242
Support ticketsCustomer serviceArt. 6(1)(b)3 yearsTicket closureArt. 5(1)(e), limitation period
Server access logsSecurity monitoringArt. 6(1)(f)12 monthsLog creation dateArt. 5(1)(e), ENISA recommendation
Marketing consent recordsAccountabilityArt. 6(1)(c)Duration of consent + 5 yearsConsent withdrawalArt. 7(1), Art. 5(2)
Employment recordsLegal obligationArt. 6(1)(c)Duration of employment + 10 yearsEmployment endSwiss OR Art. 127-128
Cookie analyticsProduct improvementArt. 6(1)(a)13 monthsData collectionePrivacy Directive Art. 5(3), CNIL guidance
DPIA recordsAccountabilityArt. 6(1)(c)Duration of processing + 3 yearsProcessing cessationArt. 35, Art. 5(2)
TTL-Based Deletion Architecture
┌─────────────────────────────────────────────────────────────┐
│                   Retention Policy Engine                     │
│  ┌───────────────┐  ┌────────────────┐  ┌───────────────┐  │
│  │ Policy Store  │  │ TTL Calculator │  │ Legal Hold    │  │
│  │ (per category)│  │ (trigger+period)│  │ Registry      │  │
│  └───────┬───────┘  └───────┬────────┘  └──────┬────────┘  │
│          └──────────────────┼───────────────────┘           │
└─────────────────────────────┼───────────────────────────────┘
                              │
┌─────────────────────────────▼───────────────────────────────┐
│                   Lifecycle Scheduler                         │
│  ┌──────────────────┐  ┌──────────────┐  ┌──────────────┐  │
│  │ Expiry Scanner   │  │ Archive Mover│  │ Deletion     │  │
│  │ (daily cron)     │  │ (pre-delete) │  │ Executor     │  │
│  └──────────────────┘  └──────────────┘  └──────────────┘  │
└─────────────────────────────┬───────────────────────────────┘
                              │
┌─────────────────────────────▼───────────────────────────────┐
│                   Audit and Verification                     │
│  ┌──────────────────┐  ┌──────────────┐  ┌──────────────┐  │
│  │ Deletion Log     │  │ Verification │  │ Exception    │  │
│  │ (immutable)      │  │ Scanner      │  │ Reporter     │  │
│  └──────────────────┘  └──────────────┘  └──────────────┘  │
└─────────────────────────────────────────────────────────────┘
Deletion Patterns for Distributed Systems
PatternDescriptionUse CaseComplexity
TTL columnsDatabase column storing expiry timestamp; background job deletes expired rowsSingle-database systems, Redis, DynamoDBLow
Event-driven deletionLifecycle event (account closure) publishes deletion command to message queueMicroservice architecturesMedium
Tombstone + compactionMark records as deleted; background compaction physically removes dataAppend-only stores, event sourcingMedium
Cascade deletionDelete propagates across foreign key relationshipsRelational databases with referential integrityMedium
Distributed sagaCoordinated deletion across multiple services with rollback on failurePolyglot persistence, cross-service dataHigh
Crypto-shreddingDestroy the encryption key rendering the data unreadable without physical deletionSystems where physical deletion is impractical (backups, immutable logs)Medium

Legal holds suspend automated deletion when data is subject to litigation, regulatory investigation, or audit proceedings.

Legal Hold Lifecycle:

  1. Hold initiation — Legal counsel issues a hold notice specifying the scope (data categories, date range, affected subjects) and the matter reference
  2. Hold registration — The Retention Policy Engine registers the hold, creating an exemption that overrides TTL-based deletion for matching records
  3. Hold monitoring — Monthly review by legal counsel to confirm the hold remains necessary
  4. Hold release — Legal counsel issues a release notice; the Retention Policy Engine removes the exemption and resumes normal retention processing
  5. Catch-up deletion — Records that would have been deleted during the hold period are now evaluated against current retention policies and deleted if expired

Prism Data Systems AG Implementation:

Hold ParameterValue
Hold scope formatJSON document specifying data_categories, date_range_start, date_range_end, subject_identifiers, matter_reference
Hold registryPostgreSQL table with immutable audit trail
Review cadenceMonthly by legal counsel, quarterly by DPO
Maximum hold duration without renewal12 months
Hold release approvalDual approval: legal counsel + DPO
Show full SKILL.md (360 more words)Show less

Archival Policies

Three-Tier Storage Lifecycle
TierStorage TypeAccess PatternEncryptionRetention Phase
HotPrimary database (PostgreSQL)Real-time read/writeAES-256-GCM field-levelActive processing
WarmObject storage (S3-compatible, Glacier Instant Retrieval class)Occasional read, no writeAES-256-GCM object-levelPost-purpose, pre-deletion (legal/audit)
ColdOffline archive (tape/vault)Restore on request (24-48h)AES-256-GCM + envelope encryptionStatutory retention only

Transition Rules for Prism Data Systems AG:

TransitionTriggerAutomation
Hot → WarmPurpose fulfilled (e.g., account closed) + 90 daysDaily lifecycle job
Warm → ColdWarm retention period expires, statutory retention still appliesMonthly lifecycle job
Cold → DeletionStatutory retention period expires, no legal hold activeQuarterly lifecycle job with DPO approval gate
Any → Legal HoldLegal hold registered for matching scopeImmediate suspension

Implementation Workflow

  1. Inventory data stores — Catalog every system that stores personal data, including primary databases, caches, message queues, logs, backups, and third-party integrations.

  2. Map retention requirements — For each data category and processing purpose, determine the retention period based on purpose necessity, legal obligations, and limitation periods.

  3. Implement TTL metadata — Add retention-related columns or metadata to each data store: created_at, retention_trigger_event, retention_trigger_date, ttl_expiry_date, legal_hold_id.

  4. Deploy lifecycle scheduler — Implement a background service that scans for expired records daily, checks for active legal holds, and executes deletion or archival transitions.

  5. Implement deletion verification — After each deletion cycle, run a verification scan to confirm that all targeted records have been removed from primary stores, replicas, and caches.

  6. Configure backup rotation — Ensure that backup retention aligns with the longest applicable retention period. Implement crypto-shredding for backup media where granular deletion is impractical.

  7. Deploy monitoring and alerting — Monitor deletion job success rates, flag records that exceed their TTL by more than 7 days, and alert on legal hold expirations.

Key Regulatory References

  • GDPR Article 5(1)(e) — Storage limitation principle
  • GDPR Article 13(2)(a) — Retention period disclosure requirement
  • GDPR Article 17(1)(a) — Right to erasure when data no longer necessary
  • GDPR Article 25(1) — Data protection by design
  • GDPR Recital 39 — Storage limitation guidance
  • EDPB Guidelines 4/2019 on Article 25 Data Protection by Design and by Default
  • Swiss Code of Obligations Art. 958f — 10-year retention for business records
  • EU VAT Directive 2006/112/EC Art. 242 — Invoice retention requirements

© mukul975, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (scripts, references, assets) in skills/privacy/automating-storage-limitation-controls of mukul975/Privacy-Data-Protection-Skills.

  • SKILL.md
  • assets/template.md
  • references/standards.md
  • references/workflows.md
  • scripts/process.py

Open the folder on GitHubat commit 9b2ef9e

Compare with similar skills

Automating Storage Limitation Controls next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Automating Storage Limitation Controls compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Automating Storage Limitation Controls this skillmukul975/Privacy-Data-Protection-Skills301—~2.4kAutomated safety check: PassApache-2.0
Cis ControlsSushegaad/Claude-Skills-Governance-Risk-and-Compliance9461 repos~4.2kAutomated safety check: PassMIT
Tos Clause Scannerzebbern/claude-code-guide4.7k1 repos~3.3kAutomated safety check: PassMIT
Healthcare Phi Complianceaffaan-m/ECC277k1 repos~1.4kAutomated safety check: PassMIT
Policy OpaAgentSecOps/SecOpsAgentKit2201 repos~3.5kAutomated safety check: PassCustom licence
Fondo Security Basicsjeremylongshore/tons-of-skills-marketplace2.8k—~1.2kAutomated safety check: PassMIT

Similar skills

  • Cis Controls

    Sushegaad/Claude-Skills-Governance-Risk-and-Compliance

    Expert CIS Controls v8 (CIS Top 18) advisor — implementation group scoping (IG1/IG2/IG3), control gap assessments, safeguard-level guidance, asset inventory, software inventory, data protection…

    946 GitHub starsUsed in 1 repo~4.2k tokens
    Legal & ComplianceAuto-check passed
  • Tos Clause Scanner

    zebbern/claude-code-guide

    Audit Terms of Service, user agreements, and privacy policies for consumer risks, producing a structured report that flags unfair clauses, data traps, and liability issues.

    4.7k GitHub starsUsed in 1 repo~3.3k tokens
    Legal & ComplianceAuto-check passed
  • Protected Health Information (PHI) and PII compliance patterns for healthcare applications: data classification, row-level access control, tamper-proof audit trails, schema tagging, and common leak…

    277k GitHub starsUsed in 1 repo~1.4k tokens
    Legal & ComplianceAuto-check passed
  • Policy Opa

    AgentSecOps/SecOpsAgentKit

    Policy-as-code enforcement and compliance validation using Open Policy Agent (OPA).

    220 GitHub starsUsed in 1 repo~3.5k tokens
    Legal & ComplianceAuto-check passed
  • Fondo Security Basics

    jeremylongshore/tons-of-skills-marketplace

    Apply security best practices for Fondo including OAuth token management, financial data protection, SOC 2 compliance, and access control.

    2.8k GitHub stars~1.2k tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • C15t

    c15t/c15t

    Work with c15t consent management docs, APIs, and integrations for Next.js, React, and JavaScript.

    1.9k GitHub starsUsed in 1 repo~1.6k tokens
    Legal & ComplianceAuto-check passed

More from mukul975/Privacy-Data-Protection-Skills

All 280 skills in this repo
  • Age Gating Services

    mukul975/Privacy-Data-Protection-Skills

    Implements age-gating mechanisms for online services to restrict access based on user age.

    301 GitHub stars~3.7k tokensUpdated 6 mo ago
    Auto-check passed
  • AI Data Retention

    mukul975/Privacy-Data-Protection-Skills

    Manages AI model retention and machine unlearning requirements.

    301 GitHub stars~1.9k tokensUpdated 6 mo ago
    Auto-check passed
  • AI Dpia

    mukul975/Privacy-Data-Protection-Skills

    Conducts Data Protection Impact Assessments for AI and ML systems per EDPB Guidelines 04/2025 on AI processing.

    301 GitHub stars~3.4k tokensUpdated 6 mo ago
    Auto-check passed
  • Dpia Mitigation Plan

    mukul975/Privacy-Data-Protection-Skills

    Structures risk mitigation planning and residual risk tracking for Data Protection Impact Assessments under GDPR Article 35(7)(d).

    301 GitHub stars~846 tokensUpdated 6 mo ago
    Auto-check passed
  • Gdpr Accountability

    mukul975/Privacy-Data-Protection-Skills

    Guides implementation of the GDPR accountability principle under Articles 5(2) and 24, including documentation requirements for policies, DPIAs, RoPA, training records, and breach logs.

    301 GitHub stars~1.9k tokensUpdated 6 mo ago
    Auto-check passed
  • Pia Threshold Screening

    mukul975/Privacy-Data-Protection-Skills

    Conducts pre-DPIA threshold screening to determine whether a full Data Protection Impact Assessment is required under GDPR Article 35.

    301 GitHub stars~880 tokensUpdated 6 mo ago
    Auto-check passed

Questions about Automating Storage Limitation Controls

What does Automating Storage Limitation Controls do?

Automated enforcement of GDPR Article 5(1)(e) storage limitation principle. Automating Storage Limitation Controls is an agent skill from mukul975/Privacy-Data-Protection-Skills. Automated enforcement of GDPR Article 5(1)(e) storage limitation principle.

When should I use Automating Storage Limitation Controls?

Automating Storage Limitation Controls fits situations like: tasks that involve Privacy and GDPR; tasks that involve Authorization and RBAC.

How do I install Automating Storage Limitation Controls in Claude Code?

Run `npx skills add mukul975/Privacy-Data-Protection-Skills --skill automating-storage-limitation-controls -a claude-code`. Or copy the skill folder (skills/privacy/automating-storage-limitation-controls in mukul975/Privacy-Data-Protection-Skills) into .claude/skills/automating-storage-limitation-controls in your project. Claude Code loads it when a task matches its description.

How do I install Automating Storage Limitation Controls in Codex?

Run `npx skills add mukul975/Privacy-Data-Protection-Skills --skill automating-storage-limitation-controls -a codex`. Or copy the skill folder (skills/privacy/automating-storage-limitation-controls in mukul975/Privacy-Data-Protection-Skills) into .agents/skills/automating-storage-limitation-controls in your project. Codex loads it when a task matches its description.

Can I use Automating Storage Limitation Controls in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mukul975/Privacy-Data-Protection-Skills --skill automating-storage-limitation-controls -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/automating-storage-limitation-controls, .gemini/skills/automating-storage-limitation-controls, .github/skills/automating-storage-limitation-controls and .opencode/skills/automating-storage-limitation-controls in your project.

What does Automating Storage Limitation Controls need to run?

Going by SKILL.md and its folder, Automating Storage Limitation Controls needs Python for the scripts in its folder. Our summary lists: Python 3.

Does Automating Storage Limitation Controls access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Automating Storage Limitation Controls safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Automating Storage Limitation Controls use?

Automating Storage Limitation Controls is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Automating Storage Limitation Controls use?

About 2.4k tokens (SKILL.md is roughly 9.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.5k tokens, read only when the agent opens those files.

What are the alternatives to Automating Storage Limitation Controls?

Skills that share tags, products or a category with Automating Storage Limitation Controls: Cis Controls (Sushegaad/Claude-Skills-Governance-Risk-and-Compliance, 946 stars), Tos Clause Scanner (zebbern/claude-code-guide, 4.7k stars), Healthcare Phi Compliance (affaan-m/ECC, 277k stars) and Policy Opa (AgentSecOps/SecOpsAgentKit, 220 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Automating Storage Limitation Controls?

mukul975 (a GitHub user) maintains it in mukul975/Privacy-Data-Protection-Skills, which has 301 GitHub stars. The repository holds 280 skills in this directory. The repository was last updated on March 16, 2026.

Source: mukul975/Privacy-Data-Protection-Skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.