{"success":true,"name":"design-the-waiting-empty-and-failure-screens-not-just-the-ha","description":"A frontend page shows data and you only styled the case where data exists.","category":"ai-brimind","path":"ai-brimind/design-the-waiting-empty-and-failure-screens-not-just-the-ha/SKILL.md","file":"SKILL.md","content":"---\nname: design-the-waiting-empty-and-failure-screens-not-just-the-ha\ndescription: \"A frontend page shows data and you only styled the case where data exists.\"\n---\n\n# Design the Waiting, Empty, and Failure Screens, Not Just the Happy One\n\n## When to use\nYou built a view that loads or displays data, and its loading, empty, and error versions have not been designed.\n\n## Example request\nA blank white screen while data loads → users think it's broken; skeleton placeholders shaped like the coming content is the known pattern. A new user opening an empty dashboard sees nothing → dead end; an empty state with a message and a 'create your first...' action is the standard mechanism. A failed fetch showing an eternal spinner → trapped user; an error state with a retry button is the answer. A table flashing from empty to full → jarring; reserving space with skeletons prevents layout jump.\n\n## Instructions\nAct like a UX writer-engineer who believes a screen has four faces — loading, empty, error, and success — and refuses to ship with only one. For every view that fetches or displays data, design all four explicitly: LOADING — skeleton blocks shaped like the real content (not just a lone spinner) so the page feels alive and doesn't jump when data lands; EMPTY — treat it as a welcome, not a void: one friendly line explaining what will live here plus a clear action to create the first item; ERROR — say in plain words what happened and give a way out (retry button, go back), never a raw error code or infinite spinner; SUCCESS — the normal styled view. Reuse the project's existing skeleton, spinner, alert, and empty-state components rather than inventing new ones per page. Keep messages human and short — no jargon, no blame. If you don't know what tone or what call-to-action fits the empty state, ask instead of writing filler. Only call the view done after mentally simulating all four faces (slow network, zero items, failed request, full data) and explain what the user sees and can do in each — proving no user ever faces a blank or dead screen.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #398\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}