/design-engine:error-empty-and-system-messagingfrom design-engine
Writes error, empty, success, loading, offline, validation, toast, banner, permission, destructive-action, and HTTP-status messages. Standardizes system-to-user copy for not-happy-path states.
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.
04-…/empty-error-and-loading-states has laid out the empty/error/loading/success frames and
you now need the actual strings that go in them — written to one voice, one formula, one
severity model.04-…/empty-error-and-loading-states. This skill writes the words that go inside those
frames; build them together but they are different layers.10-…/ux-writing-and-microcopy. This skill is specifically the not-happy-path and
system-to-user channels (error, empty, status). Errors do borrow that skill's button-copy
rules for their action buttons.| Input | Source | Required? | Evidence |
|---|---|---|---|
| Failure/state taxonomy and recovery actions | Product and engineering owners | yes | Cause, severity, recoverability, and next action |
| Voice, terminology, and channel rules | Content governance and design system | yes | Approved tone and component constraints |
| Privacy, security, and localisation constraints | Policy and regional owners | when applicable | Redaction and translation requirements |
04-…/empty-error-and-loading-states (which empty/error/loading/
success/offline states exist and where), so every designed state gets copy and none is left as
raw default text.07/00-…/internationalization-and-rtl-design), because terse English error strings can grow
30–40% in translation and overflow the component.Name the real cause and the real fix before writing a word. For the message in hand,
answer four questions: What happened? Why (in user terms)? Whose fault — and is it actually
the user's? What is the single next action? If you can't answer "what's the fix", the message
will collapse into "Something went wrong" — the signature of an unconsidered error. This
grounding is the whole skill; the wording is downstream of it. See
references/error-message-formula.md.
Write the error to the formula: what + why + how-to-fix, no blame, no jargon. State what
happened plainly, give the reason only when it helps the user act, and give the concrete next
step — ideally as an action they can take right there. Strip three things: blame ("You
entered an invalid…" → "That email doesn't look right — check for a typo?"), jargon / error
codes as the headline (codes go in a copyable detail line for support, never as the message),
and alarm ("FATAL", "❌", "Oops!"). Enforce the inclusive-language bans: never "invalid"
(blaming and ableist) or "illegal" — say what's expected instead; default to singular "they"
and assume no gender/ability/device; keep internal nouns (null, token, exception, raw
codes) out of the prose. Match the doctrine: this is an authored message, not a reflexive
default. (references/error-message-formula.md §1; doctrine/design-doctrine.md §0.)
Write empty states as teaching moments, not apologies. Run the 3-part empty-state
framework (Ben-David) as the content checklist: (1) confirm the void is on purpose (what
this is + why it's empty), (2) motivate filling it (the value, not just "do this"), and
(3) facilitate the action (the real button, not prose). Then set the tone by type:
first-use (onboarding, "Create your first invoice"), user-cleared (affirming, "Inbox
zero — nicely done"; may drop the CTA), and no-results (diagnostic, "No matches for 'xyz' —
try fewer filters"). Never a bare "No data." An empty state is the highest-leverage onboarding
surface in the product; treat it as such. (references/error-message-formula.md §2.)
Write success and confirmation copy proportional to the action. Routine success often needs no message (the result is visible) or a quiet toast — don't celebrate a saved draft. Reserve explicit confirmation for actions that are irreversible, costly, or invisible ("Payment of $40 sent to Aria", "Account deleted — this can't be undone"). For destructive-action dialogs, the formula flips: name the consequence specifically and make the button say the verb ("Delete 3 files" / "Cancel"), never "OK / Cancel". Confirmations that fire for everything train users to ignore them — the boy who cried toast.
4b. Classify each error by interruption — Inline / Detour / Blocking (Podmajersky). Before
choosing a channel, decide how much the error interrupts the person and push it to the least
disruptive level that still works (the downgrade rule: Blocking → Detour → Inline). Inline =
fixable in place → terse, located words (a bad field). Detour = the original path is blocked
but a real alternative reaches the goal → write the alternate-path instruction first, reason
second ("Use another card to finish — your bank declined this one"). Blocking = the flow
halts for a decision → calm, complete, one choice (session expired, 403/404/500, destructive
confirm). This decides message style; the severity map (step 5) then picks the channel — they
almost always agree. See references/error-placement-taxonomy.md.
Match severity to channel — and never mismatch. Map each message to its channel by
stakes and recoverability: inline (field-level, fixable in place) → field error text;
transient (informational, auto-recovers) → toast/snackbar, auto-dismiss; persistent
(affects the session until resolved) → banner, user-dismissible; blocking (needs a decision
or stops the flow) → dialog/full page. The hard rule: information the user must not miss
(data loss, security, money) must never live in an auto-dismissing toast. Over-severity is
as bad as under: a full-page red error for a recoverable hiccup is alarmist. See
references/error-message-formula.md §Severity.
Make every message accessible by construction. Error and status copy is announced to
screen-reader users, so the string itself must stand alone — "Required" floating with no
field name is useless when read out of context; write "Email is required." The message must be
programmatically associated with its field and announced via the right live region: validation
errors via role="alert" / aria-live="assertive", passive status (saving, saved, offline)
via aria-live="polite" / role="status". Never convey error by colour alone — the words and
an icon/text marker must carry it (doctrine/references/wcag-2.2-criteria.md, 3.3.1 Error
Identification, 3.3.3 Error Suggestion, 1.4.1 Use of Colour, 4.1.3 Status Messages).
Offer the suggestion, not just the diagnosis (3.3.3). Whenever the system can guess the fix, write it in: "We couldn't find that account — did you sign up with a different email?", "Card declined — try another card or contact your bank." A diagnosis with no suggestion leaves the user stuck; the suggestion is what turns an error from a dead end into a detour. Don't re-ask for data the user already gave in this flow (3.3.7 Redundant Entry).
Localize within the expansion budget and avoid idiom. Keep strings short and
literal — idioms, puns, and culture-bound humour don't translate and read as flippant in a
failure. Leave layout headroom for ~35% expansion (…/internationalization-and-rtl-design).
Interpolate variables with named placeholders and pluralization rules, never by gluing
fragments ("You have " + n + " errors") — that breaks in most languages.
Assemble the message library and keep it the source of truth. Collect the written strings
into a structured library keyed by state and severity (the examples/error-copy-library.md
shape): the trigger, the channel, the string(s), the action label, the a11y role. Engineering
pulls from this, not from inline literals. Audit existing products into this library — every
"Oops!" and raw code you find is a row to rewrite. This is what keeps a hundred error strings
speaking in one voice. Hand off alongside the visual states from
04-…/empty-error-and-loading-states.
| Condition | Message/channel choice | Wrong-choice failure |
|---|---|---|
| User can fix the issue in place | Inline message beside the source | A global alert disconnects cause from recovery |
| System-wide, persistent, or blocking issue | Persistent banner or blocking state | A toast disappears before action is possible |
| No data exists because the user is new | Teach the first meaningful action | Apologetic empty copy implies failure |
| Sensitive technical detail exists | Explain impact and safe recovery; log detail privately | Exposing internals creates confusion or security risk |
Read and search are required across state taxonomy, system behaviour, voice, and policy. Editing is allowed only when message implementation is requested. Rendering and execution are required to claim timing, announcement, focus, and recovery success; production changes require separate authority.
If required evidence or tooling is unavailable, use the scoped fallback below and mark the result unverified. Without a verified cause or recovery action, stop rather than invent specificity; provide a safe holding message and request the missing system contract. Without rendered-state tests, mark channel, focus, screen-reader announcement, and truncation evidence unverified.
| Artefact | Consumer | Evidence and acceptance condition |
|---|---|---|
| State-keyed message library | Product, design, and engineering | Every message names impact and the safest available next step |
| Channel and severity map | Component and accessibility owners | Persistence, placement, focus, and announcement match severity |
| Review evidence and unresolved-state log | QA and service owners | Representative failures and recovery paths are exercised or marked blocked |
examples/error-copy-library.md structure) keyed by state,
trigger, channel, and severity, with the action label and the a11y role for each — the source
of truth engineering pulls strings from.alert/status), its
field association, and the non-colour marker, ready to drop into the visual states.examples/error-copy-library.md — a real, populated message library for a SaaS app: form
validation, auth/login, payment, network/offline, permissions, 404/500, empty states
(first-use, cleared, no-results), success/confirmation, and destructive dialogs — each row
showing the trigger, placement (Inline / Detour / Blocking), channel, severity, the before
(weak) and after (rewritten) string, the action label, and the a11y role. Detour rows lead with
the alternate action; empty-state rows are worked through Ben-David's 3-part framework. The worked
artifact this skill produces.doctrine/design-doctrine.md — Mission §0 (authored, human-made output over the convergent AI
mean: "Something went wrong" is the slop default; a specific, helpful message is the authored
one) and Anti-Slop Charter §2 (state the intent before producing — here, the real cause and fix
before the wording).references/error-message-formula.md — the what + why + how-to-fix formula, the no-blame /
no-jargon / no-alarm rules with the specific inclusive-language bans ("invalid"=ableist,
singular "they", no internal jargon), the empty-state three-types model plus Ben-David's
3-part framework (confirm-on-purpose / motivate / facilitate), the success-proportionality
rule, and the severity-to-channel map. The core method of this skill.references/error-placement-taxonomy.md — Podmajersky's Inline / Detour / Blocking taxonomy:
classifying an error by how much it interrupts the person and mapping message style to each
(terse-located / instruction-led / decision-framing), with the downgrade rule. Read alongside the
severity map — interruption sets the style, severity sets the channel.doctrine/references/wcag-2.2-criteria.md — Error Identification (3.3.1), Error Suggestion
(3.3.3), Redundant Entry (3.3.7), Use of Colour (1.4.1), and Status Messages (4.1.3): the
accessibility rules that make these strings stand alone and get announced correctly.../../04-web-and-ui-design/interaction-design-patterns/references/error-prevention-and-recovery-patterns.md
— load before writing a message for a recurring error: classify it (slip or mistake) and check
whether a constraint, sensibility check or undo should prevent it so no message is needed.04-…/empty-error-and-loading-states (the visual layer — designs the frames
these words live in; build the two together). Upstream/sibling: 10-…/ux-writing-and-microcopy
(the happy-path microcopy and the button-copy rules the action labels follow);
00-…/internationalization-and-rtl-design (string-expansion budget and idiom avoidance).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
error-messaging, empty-state, system-messages, ux-writing, microcopy, toast-copy
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