data-retention-policies

data-retention-policies is a skill for Claude Code, Codex from finsilabs/awesome-ecommerce-skills. It costs 33 tokens per session (2,621 once invoked), scanned A, original, MIT.

A guide to deciding how long an online store keeps each kind of order and customer data, when it archives it, and when it deletes or anonymizes it.

In plain words
What is it for?
Use it to create retention schedules, automate archiving and deletion, handle privacy requests, control storage growth, and prepare for audits.
Why use it?
It helps balance record-keeping duties with privacy rules that require data to be deleted when it is no longer needed.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex; mentions Gemini CLI; mentions OpenCode.

Good fit Use it to create retention schedules, automate archiving and deletion, handle privacy requests, control storage growth, and prepare for audits.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/finsilabs/awesome-ecommerce-skills/data-retention-policies
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add finsilabs/awesome-ecommerce-skills --skill data-retention-policies
Clone the repo
git clone --depth 1 https://github.com/finsilabs/awesome-ecommerce-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for data-retention-policies

README.md
[![agentmods](https://agentmods.dev/badge/skills/finsilabs/awesome-ecommerce-skills/data-retention-policies/github.svg)](https://agentmods.dev/skills/finsilabs/awesome-ecommerce-skills/data-retention-policies)
Your own site
<a href="https://agentmods.dev/skills/finsilabs/awesome-ecommerce-skills/data-retention-policies"><img src="https://agentmods.dev/badge/skills/finsilabs/awesome-ecommerce-skills/data-retention-policies/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for data-retention-policies

Your own site · 80×15
<a href="https://agentmods.dev/skills/finsilabs/awesome-ecommerce-skills/data-retention-policies"><img src="https://agentmods.dev/badge/skills/finsilabs/awesome-ecommerce-skills/data-retention-policies.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,621 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00033 $0.02621
Opus 5 $0.00016 $0.01311
Sonnet 5 $0.00007 $0.00524
Haiku 4.5 $0.00003 $0.00262

Measured 9d ago against content hash ff97294c0b06, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

data-retention-policies scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/security-compliance/data-retention-policies/SKILL.md · 254 lines

How it starts

The opening of the file, as written. The whole thing — 254 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Data Retention Policies

Overview

Data retention policies define how long each category of data is kept, when it is archived, and when it is purged. E-commerce stores must balance legal obligations (tax records must typically be kept 5–7 years) against privacy regulations (GDPR's data minimization principle requires deleting data that is no longer needed). The right approach depends on your platform — Shopify handles some retention automatically, while WooCommerce/custom stores require explicit implementation.

When to Use This Skill

  • When implementing GDPR data minimization requirements for a new or existing e-commerce platform
  • When legal or compliance teams request a documented data retention policy
  • When preparing for a data protection audit or SOC 2 Type II assessment
  • When storage costs are growing due to uncontrolled data accumulation
  • When a customer submits a Subject Access Request and you need to know exactly where their data lives

Core Instructions

Step 1: Document your retention schedule first

Before configuring any tool, document a retention schedule. Legal, compliance, and engineering must agree before implementation. This Register of Processing Activities (RoPA) is required under GDPR Article 30 for large processors and recommended for all:

Data Category Retention Period Action After Period Legal Basis
Orders (financial records) 7 years Anonymize PII; keep financial data Tax law (US IRS, EU VAT)
Invoices 7 years Archive to cold storage Tax compliance
Customer accounts 3 years after last activity Delete Legitimate interest
Sessions / login logs 90 days Delete Legitimate interest
Marketing email consent Until unsubscribe Delete on unsubscribe GDPR consent
Abandoned cart data 30 days Delete Legitimate interest
Fraud/security logs 90 days Anonymize Legitimate interest
Analytics events 13 months Aggregate then delete Legitimate interest

Read the full file on GitHub · 254 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 254 lines · 33 tokens per session scan A ff97294c0b06

Subscribe to this mod's changes

data-retention-policies is a skill published in the GitHub repository finsilabs/awesome-ecommerce-skills (52 stars, last pushed 6mo ago), licensed MIT. It adds 33 tokens to every session and 2,621 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

shop-check

This skill should be used when the user asks to "check my online shop", "audit my e-commerce site", "is my shop legal", "Impressum prüfen", "Button-Lösung", "zahlungspflichtig bestellen", "Widerrufsbelehrung prüfen", "AGB prüfen", "PAngV", "Preisangaben MwSt", "Versandkosten angeben", "Widerrufsformular"…

waldo-van-der-code/deutsches-recht-mit-claude · 137 tokens

fedramp

Expert guidance for FedRAMP certification and compliance under CR26 (FedRAMP Consolidated Rules for 2026). Use this skill whenever a user asks about FedRAMP authorization, ATO (Authority to Operate), cloud security for federal government, NIST SP 800-53 controls, CSP compliance, or any of the core FedRAMP document…

Sushegaad/Claude-Skills-Governance-Risk-and-Compliance · 236 tokens

gdpr-compliance

Expert GDPR compliance assistant covering all four core workflows: (1) auditing code and systems for GDPR violations, (2) drafting GDPR-compliant documents such as privacy policies, Data Processing Agreements (DPAs), and consent notices, (3) answering GDPR compliance questions with authoritative article citations, and…

Sushegaad/Claude-Skills-Governance-Risk-and-Compliance · 176 tokens

iso42001

Expert ISO 42001 AI Management System (AIMS) compliance advisor. Use this skill whenever a user asks about ISO/IEC 42001:2023, AI governance, AI management systems, AI risk assessment, AI system impact assessment, Annex A controls for AI, Statement of Applicability for AI systems, AI policy, responsible AI, AI…

Sushegaad/Claude-Skills-Governance-Risk-and-Compliance · 173 tokens

eu-cra

Expert EU Cyber Resilience Act (CRA) advisor for Regulation (EU) 2024/2847 — mandatory cybersecurity and vulnerability handling requirements for all products with digital elements (PDEs) sold in the EU. Use this skill for gap analysis, product classification (Default / Class I / Class II), conformity assessment route…

Sushegaad/Claude-Skills-Governance-Risk-and-Compliance · 133 tokens

nist-800-53

NIST SP 800-53 Rev 5 compliance advisor — all 20 control families (AC, AT, AU, CA, CM, CP, IA, IR, MA, MP, PE, PL, PM, PS, PT, RA, SA, SC, SI, SR), Low/Moderate/High baseline selection, FIPS 199/200 system categorization, control tailoring and overlays, privacy controls (PT family), supply chain risk management (SR…

Sushegaad/Claude-Skills-Governance-Risk-and-Compliance · 177 tokens