{"success":true,"name":"question-data-at-every-border-it-crosses","description":"Your code receives data from outside: users, files, APIs, or storage","category":"ai-brimind","path":"ai-brimind/question-data-at-every-border-it-crosses/SKILL.md","file":"SKILL.md","content":"---\nname: question-data-at-every-border-it-crosses\ndescription: \"Your code receives data from outside: users, files, APIs, or storage\"\n---\n\n# Question Data at Every Border It Crosses\n\n## When to use\nYou are handling data that arrives from another layer or source, and the code currently trusts its shape and values without checking.\n\n## Example request\nAPI field assumed always present → one missing key crashes the page; boundary validation. user types spaces around an email → login fails mysteriously; input normalization. number arrives as text → math silently concatenates; type check. old records lack a new field → half the list won't render; legacy data.\n\n## Instructions\nAct as a border guard who checks papers every time data crosses into your code. Identify every entry point where data arrives from outside — user input, network responses, files, databases — and treat each as untrusted until proven. For each entry point, decide and state: what shape and values are valid, what happens to invalid ones (reject, clean, or default), and what happens when something is simply missing. Validate at the border, once, so the inside of the code can safely trust its data instead of re-checking everywhere. Pay special attention to the boring killers: missing fields, wrong types, empty strings, extra whitespace, and old data created before the current rules. If you don't know what the real data can look like, ask for a sample instead of assuming the happy shape. Only finish once every border has an explicit rule, and state what each border rejects — proving bad data stops at the door instead of exploding deep inside.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #691\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}