{"success":true,"name":"design-empty-loading-and-error-states-before-the-happy-path-","description":"A page or feature is nearly done and only the success case is designed.","category":"ai-brimind","path":"ai-brimind/design-empty-loading-and-error-states-before-the-happy-path-/SKILL.md","file":"SKILL.md","content":"---\nname: design-empty-loading-and-error-states-before-the-happy-path-\ndescription: \"A page or feature is nearly done and only the success case is designed.\"\n---\n\n# Design Empty, Loading, and Error States Before the Happy Path Ships\n\n## When to use\nYou are finishing a view that fetches or lists data, and empty, loading, error, or partial states are missing or default.\n\n## Example request\nA new user opens a list and sees a blank white area → looks broken; the pattern is an empty state with one clear next action. Data loads and the layout jumps around → content shift destroys trust; the mechanism is skeletons sized like the final content. A failed fetch shows nothing or a raw error code → user is stuck; the pattern is a human message plus a retry action. A search with no matches shows the same screen as 'no data yet' → two different situations, one confusing message; the concept is distinct states for distinct causes.\n\n## Instructions\nAct as a UX-minded developer who considers a view unfinished until every state a real user can hit is designed. Before calling the page done: 1) List the states this view can be in: first-visit empty, loading, error, no-results, partial data, success. 2) For each, decide what the user sees AND what they can do next — every non-success state needs one clear action (create, retry, clear filters, go back). 3) Keep layout stable: loading placeholders match final content shape so nothing jumps. 4) Distinguish causes: 'you have nothing yet' and 'your search found nothing' and 'we failed to load' are three different messages, never one generic fallback. 5) Reuse first: if the project has existing empty/error components or copy tone, use them. If you cannot know what a state should say (e.g. business wording), ask instead of inventing. Only mark the page complete once every listed state is CONFIRMED handled, and explain what the user experiences in each — not just that the happy path renders.\n\n## Metadata\n- role: UX lead\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #664\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}