data-retention

data-retention is a skill for Claude Code, Codex from Rohit-ATS/Airlock. It costs 34 tokens per session (1,289 once invoked), scanned A, original, MIT.

A procedure for handling a person's request to erase their personal data across multiple systems while identifying records that must remain.

In plain words
What is it for?
Finding matching records, listing what will be deleted, documenting what is excluded, and giving every retained record a reason.
Why use it?
It prevents incomplete deletion plans and avoids removing records that legal or operational rules require you to retain.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Finding matching records, listing what will be deleted, documenting what is excluded…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rohit-ats/airlock/data-retention
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 Rohit-ATS/Airlock --skill data-retention
Clone the repo
git clone --depth 1 https://github.com/Rohit-ATS/Airlock

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/rohit-ats/airlock/data-retention.svg)](https://agentmods.dev/skills/rohit-ats/airlock/data-retention)
Your own site
<a href="https://agentmods.dev/skills/rohit-ats/airlock/data-retention"><img src="https://agentmods.dev/badge/skills/rohit-ats/airlock/data-retention.svg" alt="Measured on agentmods" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,289 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.00034 $0.01289
Opus 5 $0.00017 $0.00645
Sonnet 5 $0.00007 $0.00258
Haiku 4.5 $0.00003 $0.00129

Measured 6d ago against content hash 45da5870e699, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

data-retention 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 6d 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/data-retention/SKILL.md · 139 lines

How it starts

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

Data retention and erasure

An erasure request is not "delete everything matching this person". Some records must be kept, and deleting them is itself a violation. The job is to produce a scope certificate: exactly what is destroyed, exactly what is kept, and why.

This skill encodes a defensible default posture for a demo system. It is not legal advice. A real deployment must have its retention schedule reviewed by counsel, and the reasons in the exclusion list should cite that schedule rather than this file.


1. The shape of the answer

Never produce a list of deletions alone. Always produce both halves:

Half Meaning
Records Everything that will be destroyed, per system, with a real count
Exclusions Everything deliberately retained, per system, each with a stated reason

An exclusion without a reason is not an exclusion — it is an omission. The contract rejects one with an empty reason for exactly that purpose.


2. Find the person before you delete them

Enumerate on a shadow copy first. Follow the foreign keys; do not guess at table names.

-- What actually references users?
SELECT tc.table_name, kcu.column_name, rc.delete_rule
  FROM information_schema.table_constraints tc
  JOIN information_schema.key_column_usage kcu USING (constraint_name)
  JOIN information_schema.referential_constraints rc USING (constraint_name)
  JOIN information_schema.constraint_column_usage ccu USING (constraint_name)
 WHERE tc.constraint_type = 'FOREIGN KEY' AND ccu.table_name = 'users';

delete_rule matters enormously:

  • CASCADE — rows vanish with the parent. They must appear in your record list, or the certificate understates the blast radius.
  • RESTRICT / NO ACTION — the delete will fail until you handle them. Find out now.
  • SET NULL — the row survives, de-linked. Decide whether that counts as erasure.

Count every one of them before proposing anything.


3. Typical retention obligations

Read the full file on GitHub · 139 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. 6d ago First seen · 139 lines · 34 tokens per session scan A 45da5870e699

Subscribe to this mod's changes

data-retention is a skill published in the GitHub repository Rohit-ATS/Airlock (1 stars, last pushed 2d ago), licensed MIT. It adds 34 tokens to every session and 1,289 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-08-31.

Related

Other skills, from other repositories

reweave-operator

Operate a Reweave self-healing web-data fleet — run pipelines, triage structural-drift incidents, review repair proposals, and manage the human approval workflow. Use whenever a monitored source is broken, a heal is pending, or the operator asks about pipeline health or impact.

vnmoorthy/reweave · 62 tokens

resonate-server-postgres

Run the Resonate protocol inside Postgres itself using resonate-pg — one SQL file of stored procedures, with no server process at all. Covers installing the schema, the pgcron timer dependency and its silent-failure mode, reaching the protocol through resonaterpc, starting workflows with resonate.invoke, the…

resonatehq/resonate-skills · 112 tokens

prisma-schema-conventions

Data modeling conventions for Prisma + PostgreSQL in multi-tenant systems — workspace isolation, numeric criticality, idempotent recurrence, document versioning by lineage and decoupled audit via a queue in Postgres itself. Use whenever creating or changing schema.prisma, designing new entities, planning migrations or…

JoaoEquer/Oficina · 76 tokens

postgres-patterns

Provides PostgreSQL patterns for query optimization, schema design, indexing strategies, RLS, and security. Use when working with PostgreSQL SQL files or when the user mentions PostgreSQL, Postgres, pgvector, Supabase, or database optimization.

tranhieutt/software_development_department · 53 tokens

postgres-patterns

PostgreSQL database patterns for query optimization, schema design, indexing, and security. Quick reference for common patterns, index types, data types, and anti-pattern detection. Based on Supabase best practices.

mturac/everything-openai-codex · 45 tokens

agent-harness-fault-injection

Use when an agent workflow needs deterministic recovery evidence for sandbox, MCP/tool, worker, checkpoint, memory, or orchestration failures.

sickn33/agentic-awesome-skills · 34 tokens