{"success":true,"name":"write-error-messages-for-the-human-who-will-read-them","description":"You are writing what happens and what is said when something fails.","category":"ai-brimind","path":"ai-brimind/write-error-messages-for-the-human-who-will-read-them/SKILL.md","file":"SKILL.md","content":"---\nname: write-error-messages-for-the-human-who-will-read-them\ndescription: \"You are writing what happens and what is said when something fails.\"\n---\n\n# Write Error Messages for the Human Who Will Read Them\n\n## When to use\nYou are adding error handling, and the message shown on failure is about to be technical jargon, a vague 'something went wrong', or a raw internal error surfaced straight to the user.\n\n## Example request\n'Error 500: Internal exception' shown to a customer → they learn nothing except that the product is broken; a raw error is a shrug in code form. 'Something went wrong' with no hint → wrong how? Can they retry? Was their work saved? A message that answers none of these creates a support ticket. 'Could not save — check your internet and try again; your text is kept' → what happened, what to do, what is safe; three answers in one line. The details YOU need to debug → belong in the log, not on the screen; two audiences, two messages.\n\n## Instructions\nAct like the person standing next to the user when the failure appears — what would you say out loud? Not a code, not jargon: something human. Every error path you write serves two audiences and needs two outputs: (1) FOR THE USER, on screen: what happened in plain words, whether their work/data is safe, and what they can do next (retry, fix input, wait, contact) — one or two calm sentences, no blame, no internals, no scary raw dumps. (2) FOR THE DEBUGGER, in the logs: the technical detail — what failed, where, with what values — rich enough that the problem can be found without reproducing it live. Never point users at causes they cannot act on, and never say less than they need to protect their work. Audit your failure paths the way you audit your happy paths: trigger each one and READ what appears — if the message would not help your least technical user, rewrite it. Errors are moments of maximum user anxiety; the message is the product's behavior under stress, and it is being judged.\n\n## Metadata\n- role: UX lead\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #371\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}