{"success":true,"name":"one-source-of-truth-for-every-piece-of-data","description":"The same information is about to live in two different places","category":"ai-brimind","path":"ai-brimind/one-source-of-truth-for-every-piece-of-data/SKILL.md","file":"SKILL.md","content":"---\nname: one-source-of-truth-for-every-piece-of-data\ndescription: \"The same information is about to live in two different places\"\n---\n\n# One Source of Truth for Every Piece of Data\n\n## When to use\nYou are about to store, copy, or compute the same fact in more than one place (two fields, two files, a stored copy of something computable).\n\n## Example request\nStoring a user's age AND birthdate → they drift apart; age should be computed; that is derived data. Copying a price into an order and also reading it live → totals stop matching; decide which one owns it. The same list hardcoded in two screens → one gets updated, one doesn't; that is duplication of truth. A count stored separately from the items → it goes stale; single source of truth.\n\n## Instructions\nAdopt the mindset of a librarian who keeps exactly one master copy of every record. Whenever a piece of information appears: (1) Name its single OWNER — the one place where it is created and updated. (2) Everything else must READ from the owner or COMPUTE from it, never keep its own editable copy. (3) If a copy is truly needed (performance, history snapshot), state the reason, mark it clearly as a copy, and define when and how it gets refreshed. (4) Before adding any new field, ask: 'can this be computed from something that already exists?' — if yes, compute it instead of storing it. If you can't tell who should own a piece of data, investigate who creates and changes it in real usage, or ask. Only proceed once each fact has exactly one confirmed owner, and explain why that owner is the right one and how everyone else stays in sync.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #262\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}