Work out and design every state a screen can be in — first run, empty, loading, partial, error, denied, offline, stale, overflowing, after-action — and write the copy for each. Use when building or reviewing any screen that loads data or accepts input, and when a bug report describes a blank page, a spinner that never stops, or an unhelpful error.
The happy path is one state out of about ten. It gets designed, built, demoed
and tested. The other nine are discovered by users.
This is the cheapest quality work available on any interface: enumerate the
states before building, because each one is a five-minute decision in advance
and a support ticket afterwards.
1. The matrix
For every screen, list and every meaningful component, decide all of these. Most
have a sensible default; the point is that you chose it.
State
When
The mistake to avoid
First run
The account is new; this has never had data
Showing the empty state, which implies something was lost
Empty
Data is possible, there is none right now
A blank area with no explanation
Empty after filter
Their query matched nothing
Identical to empty, so they think the data vanished
Loading, first
Nothing on screen yet
A spinner where a skeleton would show the shape
Loading, refresh
Content is on screen, updating
Replacing content with a spinner; the page jumps
Partial
Some of it loaded, some failed
Showing the successful half as if it were the whole
Error, retryable
Network, timeout, 5xx
"Something went wrong" with no action
Error, terminal
Validation, conflict, gone
Offering a retry that cannot work
Denied
Signed in, not allowed
Treating it as an error, or as not-found with no explanation
Offline / stale
No connection, or data from cache
Showing old numbers with no indication they are old
Overflow
10,000 rows; a 200-character name
Layout breaks, or the browser hangs
In flight
The action is submitting
A double-submittable button
After action
It worked
No confirmation, so they do it again
Destructive pending
They are about to lose something
A confirm dialog where an undo would be kinder
Write the matrix as a table in the design or the ticket. A screen with ten
states and three designed is a screen that is 30% done, and the table is what
makes that visible before it ships.
2. Empty is an invitation, not an absence
An empty state does three things: says what belongs here, says why it is empty,
and offers the action that fills it.
Bad: No results.
Good: No reports yet
Reports you complete will appear here, newest first.
[ Start a report ]
Distinguish the three empties, because they need different words:
First run — "Nothing here yet" plus the primary action.
Empty now — "You have no open items" is a success in many products. Say
so; don't make a clean queue feel like a failure.
Empty after filter — name the filter and offer to clear it. "No sites
match north. [Clear search]"
3. Loading: show the shape, hold the space
Under ~300ms, show nothing. A flash of skeleton is worse than a short wait.
Beyond that, a skeleton in the shape of the content beats a spinner: it tells
the user what is coming and stops the layout jumping when it arrives.
Reserve the space. Content that appears and shoves the page down causes
mis-taps, especially on a phone.
Over ~10 seconds, it needs progress, an estimate, or a way out. A spinner with
no end is indistinguishable from a hang, and users are right to reload.
Never block the whole screen on a non-critical region.
4. Errors say what happened, what it means, and what to do
Three parts. Most error messages have one.
Bad: Error: request failed (500)
Good: Couldn't save your answers
They're saved on this device, so nothing is lost. We'll try again
automatically when you're back online.
[ Try now ]
Rules:
Never lose their input. Not on validation failure, not on a server error,
not on a navigation. This is the one that turns an annoyance into an
abandonment.
Put validation errors next to the field, on blur or submit — not on every
keystroke, which scolds people mid-typing.
Distinguish retryable from terminal, and only offer the retry that can work.
No error codes as the whole message. A code in addition is useful for
support; keep it small and copyable.
Write in the interface's voice, not a person's. Errors do not apologise
repeatedly.
5. Denied is its own state
"You don't have access" is not an error and not a 404. Users hit it constantly
in multi-role products, and treating it as a generic failure sends them to
support.
Say what is restricted, and what to do — usually "ask an admin", ideally with
the admin named. Note the tension with access-control-proof: where confirming
that a resource exists would leak information, "not found" is the correct
response and the honest message is generic. Decide which case you are in
deliberately.
6. Overflow: test with ugly data
The data in the design file is always tidy. Real data is not.
A name with 200 characters, and one with an emoji, and one in a
right-to-left script.
A list with 0, 1, 2 and 10,000 items. Virtualise beyond a threshold and pick
the threshold deliberately.
A number with 11 digits, a negative, a zero, a null.
A field that is legitimately empty versus one that failed to load — those must
not look the same.
The longest translated string, if you have translations.
Seed a fixture with all of this and keep it. It catches more layout bugs than
any amount of reviewing the tidy version.
7. In flight and after
Disable the control and show it working. A button that can be pressed twice
will be.
Give feedback within ~100ms of the press, even if the work takes longer.
Confirm success in a way that survives: a toast that vanishes in three seconds
is not a receipt. For anything consequential, the state of the page should
show it.
Optimistic updates need a visible, non-destructive rollback. If you show it as
done before it is, you must be able to take it back clearly.
8. Destructive actions: prefer undo to confirm
Confirm dialogs are dismissed reflexively and stop working after the third one.
An undo window is better for almost everything that can be soft-deleted.
Where a confirmation is genuinely required, make it specific — name the thing
being deleted and what else goes with it — and never make the destructive button
the default focus.
9. Write the copy at the same time as the state
The copy is the state. A state designed without its words gets "Error" by
default, and a placeholder that ships. Put the actual sentence in the design.
Keep it plain, in the second person, and about the user's situation rather than
the system's internals. "We couldn't reach the server" tells them nothing they
can act on; "You're offline — your work is saved here and will sync" does.
Checklist
The state matrix written out for each screen, with a decision per row
Three empty states distinguished, each with an action
Skeletons over spinners; space reserved; a way out beyond ~10 seconds
Errors say what happened, what it means and what to do
Input never lost on error or navigation
Denied handled as its own state, or deliberately made generic to avoid leaking
Tested with an ugly-data fixture: long, empty, huge, zero, null, RTL
In-flight controls disabled; success visible in page state, not just a toast
Optimistic updates have a visible rollback
Undo preferred over confirm; confirmations name the thing
Real copy written for every state, not placeholders
1---2name: ux-state-coverage3description: Work out and design every state a screen can be in — first run, empty, loading, partial, error, denied, offline, stale, overflowing, after-action — and write the copy for each. Use when building or reviewing any screen that loads data or accepts input, and when a bug report describes a blank page, a spinner that never stops, or an unhelpful error.4---56# State coverage78The happy path is one state out of about ten. It gets designed, built, demoed9and tested. The other nine are discovered by users.1011This is the cheapest quality work available on any interface: enumerate the12states before building, because each one is a five-minute decision in advance13and a support ticket afterwards.1415## 1. The matrix1617For every screen, list and every meaningful component, decide all of these. Most18have a sensible default; the point is that you *chose* it.1920| State | When | The mistake to avoid |21|---|---|---|22| **First run** | The account is new; this has never had data | Showing the empty state, which implies something was lost |23| **Empty** | Data is possible, there is none right now | A blank area with no explanation |24| **Empty after filter** | Their query matched nothing | Identical to empty, so they think the data vanished |25| **Loading, first** | Nothing on screen yet | A spinner where a skeleton would show the shape |26| **Loading, refresh** | Content is on screen, updating | Replacing content with a spinner; the page jumps |27| **Partial** | Some of it loaded, some failed | Showing the successful half as if it were the whole |28| **Error, retryable** | Network, timeout, 5xx | "Something went wrong" with no action |29| **Error, terminal** | Validation, conflict, gone | Offering a retry that cannot work |30| **Denied** | Signed in, not allowed | Treating it as an error, or as not-found with no explanation |31| **Offline / stale** | No connection, or data from cache | Showing old numbers with no indication they are old |32| **Overflow** | 10,000 rows; a 200-character name | Layout breaks, or the browser hangs |33| **In flight** | The action is submitting | A double-submittable button |34| **After action** | It worked | No confirmation, so they do it again |35| **Destructive pending** | They are about to lose something | A confirm dialog where an undo would be kinder |3637Write the matrix as a table in the design or the ticket. A screen with ten38states and three designed is a screen that is 30% done, and the table is what39makes that visible before it ships.4041## 2. Empty is an invitation, not an absence4243An empty state does three things: says what belongs here, says why it is empty,44and offers the action that fills it.4546```47Bad: No results.4849Good: No reports yet50 Reports you complete will appear here, newest first.51 [ Start a report ]52```5354Distinguish the three empties, because they need different words:5556- **First run** — "Nothing here yet" plus the primary action.57- **Empty now** — "You have no open items" is a *success* in many products. Say58 so; don't make a clean queue feel like a failure.59- **Empty after filter** — name the filter and offer to clear it. "No sites60 match *north*. [Clear search]"6162## 3. Loading: show the shape, hold the space6364- Under ~300ms, show nothing. A flash of skeleton is worse than a short wait.65- Beyond that, a skeleton in the shape of the content beats a spinner: it tells66 the user what is coming and stops the layout jumping when it arrives.67- Reserve the space. Content that appears and shoves the page down causes68 mis-taps, especially on a phone.69- Over ~10 seconds, it needs progress, an estimate, or a way out. A spinner with70 no end is indistinguishable from a hang, and users are right to reload.71- Never block the whole screen on a non-critical region.7273## 4. Errors say what happened, what it means, and what to do7475Three parts. Most error messages have one.7677```78Bad: Error: request failed (500)7980Good: Couldn't save your answers81 They're saved on this device, so nothing is lost. We'll try again82 automatically when you're back online.83 [ Try now ]84```8586Rules:8788- **Never lose their input.** Not on validation failure, not on a server error,89 not on a navigation. This is the one that turns an annoyance into an90 abandonment.91- Put validation errors next to the field, on blur or submit — not on every92 keystroke, which scolds people mid-typing.93- Distinguish retryable from terminal, and only offer the retry that can work.94- No error codes as the whole message. A code *in addition* is useful for95 support; keep it small and copyable.96- Write in the interface's voice, not a person's. Errors do not apologise97 repeatedly.9899## 5. Denied is its own state100101"You don't have access" is not an error and not a 404. Users hit it constantly102in multi-role products, and treating it as a generic failure sends them to103support.104105Say what is restricted, and what to do — usually "ask an admin", ideally with106the admin named. Note the tension with `access-control-proof`: where confirming107that a resource exists would leak information, "not found" is the correct108response and the honest message is generic. Decide which case you are in109deliberately.110111## 6. Overflow: test with ugly data112113The data in the design file is always tidy. Real data is not.114115- A name with 200 characters, and one with an emoji, and one in a116 right-to-left script.117- A list with 0, 1, 2 and 10,000 items. Virtualise beyond a threshold and pick118 the threshold deliberately.119- A number with 11 digits, a negative, a zero, a null.120- A field that is legitimately empty versus one that failed to load — those must121 not look the same.122- The longest translated string, if you have translations.123124Seed a fixture with all of this and keep it. It catches more layout bugs than125any amount of reviewing the tidy version.126127## 7. In flight and after128129- Disable the control and show it working. A button that can be pressed twice130 will be.131- Give feedback within ~100ms of the press, even if the work takes longer.132- Confirm success in a way that survives: a toast that vanishes in three seconds133 is not a receipt. For anything consequential, the state of the page should134 show it.135- Optimistic updates need a visible, non-destructive rollback. If you show it as136 done before it is, you must be able to take it back clearly.137138## 8. Destructive actions: prefer undo to confirm139140Confirm dialogs are dismissed reflexively and stop working after the third one.141An undo window is better for almost everything that can be soft-deleted.142143Where a confirmation is genuinely required, make it specific — name the thing144being deleted and what else goes with it — and never make the destructive button145the default focus.146147## 9. Write the copy at the same time as the state148149The copy *is* the state. A state designed without its words gets "Error" by150default, and a placeholder that ships. Put the actual sentence in the design.151152Keep it plain, in the second person, and about the user's situation rather than153the system's internals. "We couldn't reach the server" tells them nothing they154can act on; "You're offline — your work is saved here and will sync" does.155156## Checklist157158- [ ] The state matrix written out for each screen, with a decision per row159- [ ] Three empty states distinguished, each with an action160- [ ] Skeletons over spinners; space reserved; a way out beyond ~10 seconds161- [ ] Errors say what happened, what it means and what to do162- [ ] Input never lost on error or navigation163- [ ] Denied handled as its own state, or deliberately made generic to avoid leaking164- [ ] Tested with an ugly-data fixture: long, empty, huge, zero, null, RTL165- [ ] In-flight controls disabled; success visible in page state, not just a toast166- [ ] Optimistic updates have a visible rollback167- [ ] Undo preferred over confirm; confirmations name the thing168- [ ] Real copy written for every state, not placeholders
Run npx skillmds@latest add chinthakat/ux-state-coverage in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Work out and design every state a screen can be in — first run, empty, loading, partial, error, denied, offline, stale, overflowing, after-action — and write the copy for each. Use when building or reviewing any screen that loads data or accepts input, and when a bug report describes a blank page, a spinner that never stops, or an unhelpful error. It is listed under Docs & Writing on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Capability flags: docs only. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
chinthakat (@chinthakat) published this skill. Their other Agent Skills are listed on their SkillMD profile.