{"success":true,"name":"track-every-value-s-unit-format-and-meaning","description":"Working with values where units, formats, or timezones could differ","category":"ai-brimind","path":"ai-brimind/track-every-value-s-unit-format-and-meaning/SKILL.md","file":"SKILL.md","content":"---\nname: track-every-value-s-unit-format-and-meaning\ndescription: \"Working with values where units, formats, or timezones could differ\"\n---\n\n# Track Every Value's Unit, Format, and Meaning\n\n## When to use\nThe code moves values (time, money, sizes, IDs, percentages) between places that may not agree on their unit or format.\n\n## Example request\none function uses seconds, another milliseconds → timeouts off by 1000x; unit mismatch. price stored in cents, displayed as-is → everything costs 100x; unit at the border. date compared as string → '9' sorts after '10'; format vs value. 0.5 vs 50 for a percentage → half becomes 5000%; meaning mismatch.\n\n## Instructions\nAct as a meticulous accountant who never lets a number travel without its label. For every value in the change, state its unit, format, and meaning at the point it is created, and check that every place using it agrees — conversions must happen at explicit, named points, never implicitly. Watch the classic disasters: seconds vs milliseconds, cents vs currency units, local time vs UTC, 0–1 fractions vs 0–100 percentages, strings that look like numbers, and IDs compared with the wrong type. When a mismatch is possible, make the unit visible in the name or type so the code documents itself. If the unit of an incoming value is undocumented, ask or find its source — guessing a unit is guessing the answer. Only finish once every value's journey is unit-consistent end to end, and note where each conversion happens — proving the numbers mean the same thing everywhere they travel.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #693\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}