/design-engine:empty-error-and-loading-statesfrom design-engine
Guides designing visual and interaction behavior for empty, error, loading, offline, permission, partial-failure, success, confirmation, disabled, and retry states, including table components.
Ships in design-engine. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Acknowledgement: Shared by Peter Bamuhigire, techguypeter.com, +256 784 464178.
10-content-design-and-ux-writing/error-empty-and-system-messaging. Use it for copy; use
THIS skill for the layout, illustration, motion, skeleton geometry, and interaction.04-web-and-ui-design/form-ux-design (it owns field anatomy; come here for the
page-level error summary and the form's loading/success states).00-cross-cutting-ops-qa-a11y/performance-as-ux-and-core-web-vitals.| Artefact or context | Source | Required? | Why |
|---|---|---|---|
| Component, flow, and data-source behaviour | Product and engineering | yes | Determines reachable states and recovery paths |
| State inventory, latency, and failure modes | Runtime evidence or specification | yes | Selects loading, retry, and stale-data treatment |
| Voice, illustration, type, and semantic colour systems | Brand and design system | conditional | Keeps non-happy paths consistent and accessible |
references/state-matrix.md to enumerate them — do not guess).references/state-matrix.md against the
component: ideal, empty (and its sub-types), partial, loading (and its sub-types), error
(and its sub-types), success. A state you didn't enumerate is a state you'll ship broken.
This step is the whole point — states are designed up front, as siblings of the happy path,
never patched in after.references/state-matrix.md §Loading. Use skeleton screens that mirror the real layout's
geometry (so there is zero layout shift when content arrives — protects CLS, per
doctrine/references/web-performance-budgets-2026.md), not centered spinners, for content
regions. Spinners only for short, indeterminate, in-place actions (a button submit). Below
~100 ms show nothing; show a skeleton only past the perception threshold so fast loads don't
flash. Stream/progressively reveal where the data allows. Skeletons must animate subtly
(shimmer/pulse) and honour prefers-reduced-motion (WCAG 2.3.3,
doctrine/references/wcag-2.2-criteria.md).doctrine/design-doctrine.md,
the Anti-Slop Charter). When two empty states are equally clean, ship the one a templating
tool would never produce.| Condition | State pattern | Wrong-choice failure |
|---|---|---|
| First use with a meaningful action | Instructional empty state with primary action | Decorative blank slate delays activation |
| Local component fails | Preserve the rest and show local recovery | Page-level error destroys usable context |
| Wait is brief and determinate | Inline progress or skeleton matching geometry | Spinner flash or layout shift feels slower |
| Action is reversible and server-backed | Optimistic state plus rollback | False success silently diverges from truth |
Read and search are required for full state, latency, service, and content contracts. Editing is allowed only for requested implementation. Rendering and execution are required for focus, announcement, timing, rollback, and layout-stability claims.
If required evidence or tooling is unavailable, use the scoped fallback below and mark the result unverified. Without failure and latency semantics, deliver a state matrix and stop before prescribing optimistic success. Without renders, mark assistive, responsive, motion, and layout-shift evidence unverified.
prefers-reduced-motion on shimmer/pulse/success animations.| Artefact | Consumer | Evidence and acceptance condition |
|---|---|---|
| Complete state matrix | Design, engineering, and QA | Every reachable empty, loading, error, success, offline, and permission state is covered |
| Visual, interaction, focus, announcement, and recovery specification | Component implementers | State transitions preserve context and provide honest recovery |
| Render and behaviour evidence | Release owner | Timing, rollback, accessibility, responsive, and partial-failure checks pass |
examples/states-for-a-table-component.md — every state of one real component (a paginated
data table) designed end to end: ideal, first-run empty, no-results-from-filter, loading
skeleton, partial/streaming, row-level and page-level error, offline, and success. Includes
skeleton geometry, recovery affordances, motion, and the a11y notes for each.doctrine/design-doctrine.md — the Mission and the Anti-Slop Charter; states must look
authored, never a defaulted spinner-and-sad-icon.doctrine/references/web-performance-budgets-2026.md — skeletons over spinners, perceived
performance, and CLS (≤0.1): loading-state design is a Core-Web-Vitals lever, and skeleton
geometry that prevents layout shift protects the CLS budget directly.doctrine/references/wcag-2.2-criteria.md — target size 24px (2.5.8), focus order on state
swaps (2.4.3), reduced motion (2.3.3), colour-not-alone (1.4.1), live regions (4.1.3) for each
state.doctrine/references/ai-slop-taxonomy.md — the convergent defaults (centered grey spinner,
generic "No data" empty) this skill exists to replace.references/state-matrix.md — the enumerable set of states every component needs.10-content-design-and-ux-writing/error-empty-and-system-messaging —
owns the words of each state; consult it for copy while this skill owns the visual/
interaction design.04-web-and-ui-design/form-ux-design — field-level validation; this skill owns the
page-level error summary and the form's loading/success states.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
state-design, loading-states, error-states, empty-states, ux-patterns
110 skills in this plugin
/accessibility-wcag-2-2-complianceUse when designing or auditing an interactive UI for WCAG 2.2 AA, keyboard and focus behaviour, accessible names, screen readers, target size, reflow, authentication, or reduced motion. Use inclusive-and-assistive-design for needs beyond the compliance floor./accessible-color-and-contrastUse when verifying or fixing text, UI, focus, border, status, or data colours for contrast and colour-vision accessibility. Unlike color-system-and-palette, this is the focused WCAG/APCA and non-colour-cue gate, not palette creation./advertising-creative-art-directionOther plugins' skills for the same job
npx claudepluginhub peterbamuhigire/chwezi-design-engine --plugin design-engine