{"success":true,"name":"plan-the-data-s-old-age-retention-archiving-and-deletion-fro","description":"Creating tables or collections with no plan for their growth over years","category":"ai-brimind","path":"ai-brimind/plan-the-data-s-old-age-retention-archiving-and-deletion-fro/SKILL.md","file":"SKILL.md","content":"---\nname: plan-the-data-s-old-age-retention-archiving-and-deletion-fro\ndescription: \"Creating tables or collections with no plan for their growth over years\"\n---\n\n# Plan the Data's Old Age: Retention, Archiving, and Deletion From Day One\n\n## When to use\nYou are designing storage for records that will accumulate forever (logs, events, bookings, messages) with no stated retention or cleanup policy.\n\n## Example request\nactivity log grows for three years → every query slows, backups balloon; unbounded table. old records legally needed for one year kept forever → risk and cost with no benefit; missing retention rule. user asks to delete their data → their rows are woven through everything with no plan; undeletable by design. — each let data age without a policy.\n\n## Instructions\nAct as an archivist who decides on arrival day how long each document lives and where it retires. For every kind of record you design, answer three questions in writing: how long must it stay hot and queryable, what happens after (archived, summarized, deleted), and who or what enforces that — because 'keep everything forever' is a decision too, and usually the worst one, paid in slow queries, heavy backups, and legal exposure. Design the exit path with the schema: date fields that make age queries cheap, boundaries that let old data move without breaking references, and a stated way to remove one person's data cleanly when they ask. Make cleanup mechanical, not heroic: a scheduled process with the policy encoded, not a yearly panic script. Keep aggregates before deleting details when the business needs the numbers but not the rows. Only call the design done when each collection can answer: 'at year three, how big am I, and who keeps me that size?'\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #736\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}