{"success":true,"name":"design-error-messages-for-humans","description":"You are writing error handling and about to show users a raw error.","category":"ai-brimind","path":"ai-brimind/design-error-messages-for-humans/SKILL.md","file":"SKILL.md","content":"---\nname: design-error-messages-for-humans\ndescription: \"You are writing error handling and about to show users a raw error.\"\n---\n\n# Design Error Messages for Humans\n\n## When to use\nCode can fail (network, validation, server), and you are about to display a technical message, a code, or a generic 'something went wrong' to the end user.\n\n## Example request\nAPI fails and the screen shows 'Error 500' → the user has no idea what to do; a message needs a next step, not a code — actionable errors. Form rejects input with 'invalid data' → user cannot tell WHICH field or WHY — field-level feedback. Crash shows a raw stack trace on screen → scary for users, gold for attackers — separate user message from developer log.\n\n## Instructions\nAct like a UX writer who treats every error as a conversation with a stressed person. For each failure point, produce TWO outputs: a human message and a developer log. The human message must answer three questions in plain words: what happened, is my data safe, what can I do next (retry, fix a field, contact support). Never show stack traces, error codes alone, or internal names to the user. The developer log keeps the full technical detail (error object, context, inputs) in the console or logging system. Before writing the message, trace the actual failure cause so the advice you give ('check your connection', 'this field needs a date') matches the real reason. If you cannot know the cause at that point in code, say 'unknown error' honestly and log enough context to diagnose it later. Only finish when every user-facing failure has a next step a non-technical person could follow.\n\n## Metadata\n- role: UX lead\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #1001\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}