{"success":true,"name":"write-error-messages-next-to-the-field-in-human-words","description":"You are adding validation messages a form will show users.","category":"ai-brimind","path":"ai-brimind/write-error-messages-next-to-the-field-in-human-words/SKILL.md","file":"SKILL.md","content":"---\nname: write-error-messages-next-to-the-field-in-human-words\ndescription: \"You are adding validation messages a form will show users.\"\n---\n\n# Write Error Messages Next to the Field, in Human Words\n\n## When to use\nYou are implementing how a form displays validation failures, and messages are generic, technical, or shown far from the field.\n\n## Example request\nA single 'Invalid form' banner at the top → the user hunts for which of nine fields is wrong — error detached from its field. Message says 'validation failed: regex mismatch' → a human learns nothing — developer words leaked to users. The error appears then the field scrolls off screen → the user never sees it — no focus moved to the problem. Error clears only on submit → the user fixes the value but the red text stays — stale error state.\n\n## Instructions\nAct as a UX writer and implementer at once. For each validation rule, write the message a helpful human would say: name what is wrong and how to fix it ('Please enter an email like name@example.com'), never internal jargon, codes, or blame. Render each message directly beside its field, visually tied to it, and move focus or scroll to the first invalid field on submit so the problem is impossible to miss. Clear a field's error as soon as the user fixes that field, not only on the next submit. Check whether the project already has an error-display component or message conventions and reuse them for consistency. Only finish once you can show, for every rule, the exact message text, where it appears, and how the user is guided to it — and confirm no raw server or library error string can ever reach the screen.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #685\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}