errors
Installation
SKILL.md
If .ux-profile.md exists at the project root, read it first — especially Brand tone and microcopy voice (Utilitarian vs Warm vs Direct).
Intent
Errors are system conversations, not accusations. Copy should reduce anxiety, preserve trust, and give one clear next step. Users should never feel they "failed"; the product failed to complete their intent and must help them recover.
Hard Rules (Non-Negotiable)
- Never blame the user. Ban phrasing like "You entered an invalid email." Use "Enter an email address like name@domain.com."
- Errors answer three things in fewer than two sentences: (1) what happened in plain language, (2) why it matters to their work or data, (3) the immediate step that recovers state.
- Technical errors: provide a one-click Copy error details action for support. Never dump stack traces, raw HTTP codes, or database errors into the primary UI.
Design Heuristics & Taste Principles
- Lead with recovery, not diagnosis: "Check your connection and try again" before "Network request failed."
- Use neutral subject: "This email isn't valid" or "We couldn't save your changes" — not "Your password is wrong."
- Match severity to surface: inline field errors for fixable input; toasts for transient failures; banners for blocked workflows; full-page only when the entire view is unusable.
- Destructive failure (data loss risk): state what was preserved and what was not.
- Warm voice profiles may add brief empathy ("Something went wrong on our end") but still stay under two sentences and include a recovery step.