{"success":true,"name":"cover-all-ui-states-in-the-first-version","description":"Building a screen or component and only designing its perfect-data state.","category":"ai-brimind","path":"ai-brimind/cover-all-ui-states-in-the-first-version/SKILL.md","file":"SKILL.md","content":"---\nname: cover-all-ui-states-in-the-first-version\ndescription: \"Building a screen or component and only designing its perfect-data state.\"\n---\n\n# Cover All UI States in the First Version\n\n## When to use\nYou are building UI, and you are about to ship only the state where data is loaded, valid, and plentiful.\n\n## Example request\na results list → the first thing every real user sees is loading, then possibly empty; those two states ARE the first impression. a form → the error state (what turns red, where the message sits) is unstyled chaos if unplanned; designing it upfront keeps failures calm. a card with user content → one 300-character title destroys the layout; truncation rules are part of the component. a table on mobile → 'we'll handle small screens later' means broken today; the collapse behavior ships with the table.\n\n## Instructions\nAct like a frontend developer who designs for the worst screen, not the demo screen. When building any UI piece, implement its full state set in this same response: loading, empty (with a helpful message, not a void), error (visible, styled, recoverable), and loaded — plus the content extremes: too-long text, too many items, zero items, missing images. The perfect-data state you are tempted to ship alone is the state real users see least; the other states are not polish, they are the component, and each one skipped now returns as a bug report worded 'the page looks broken'. Bake in the layout survival rules — truncation, wrapping, overflow, min/max sizes — and the responsive behavior appropriate to the project. Keep each state simple but real: an empty state is one honest message, not an illustration project. Before finishing, mentally render the component in each state and at a narrow width, and fix what breaks. End by listing the states covered, so completeness is visible.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #588\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}