UX Microcopy skill for Claude Code

Labels that say exactly what will happen. Claude rewrites interface strings by component pattern: buttons become verb plus object, errors state what happened and how to fix it without blame, and destructive dialogs name the action and its consequences. It builds a glossary so one concept has one name across the app, uses ICU plurals instead of concatenation and reviews copy in context for truncation and screen reader sense.

Name
ux-microcopy
Size
197 lines · ≈2,000 tokens
Every turn
≈123 tokens · 6% of listing
Files
1
License
MIT
Updated

What Claude sees before loading it

This description is the only part of the skill that sits in context all the time: about 123 tokens on every turn, out of a skill listing budget of roughly 2,000 tokens on a 200K-token model that every installed skill shares. Claude reads it to decide when to load the full playbook below. How many skills fit.

description: Writes and audits interface copy — button labels, form labels and hints, error messages, confirmation dialogs, empty states, success toasts, loading text, tooltips, and onboarding — so it is specific, consistent, accessible, and translatable, with a terminology glossary and voice/tone rules. Use when naming buttons, writing error or empty-state messages, reviewing UI strings or i18n files, making copy consistent across an app, or when users misread what an action will do.

Try asking

  • Rewrite the error messages in our signup flow so people know how to fix them
  • Audit our en.json strings for inconsistent terms and vague buttons
  • Write the confirmation dialog copy for permanently deleting a workspace

What changes with it installed

A common default approach to this work, and what the playbook has Claude Code do instead.

Without the skillWith ux-microcopy
Labels primary buttons OK or Submit, which say nothing about what will actually happen on clickNames every consequential action with a verb and object, like 'Save changes' or 'Create account', kept identical across the flow
Writes errors like 'Invalid input' or 'Oops! Something went wrong' that blame or joke without offering a fixWrites each error as what happened, why, and how to fix it, placed next to the field with no blame
Builds messages by concatenating strings such as 'Delete ' + name + '?', which breaks translation and pluralsUses full messages with placeholders and ICU plural syntax, leaves 30 to 40 percent room for expansion, and gives translators context

Use it when

  • Naming buttons, menus, and actions
  • Writing error, empty-state, or confirmation copy
  • Reviewing UI strings or locale files for consistency
  • Users misunderstand what an action will do

Skip it when

  • You need marketing headlines and value propositions, use landing-page-copy instead
  • You need the layout and logic of empty and error states, use empty-error-states instead
  • You are setting up translation infrastructure, use i18n-localization instead

How to check the result

Every button is understandable on its own, every error names a next step, banned glossary synonyms return zero hits in the locale files, and a German pass shows no truncation.

The common mistake it prevents

Using generic Yes and No buttons in confirmation dialogs, which trains people to click through without reading what they are about to delete.

~/.claude/skills/ux-microcopy/SKILL.md

--- name: ux-microcopy description: Writes and audits interface copy — button labels, form labels and hints, error messages, confirmation dialogs, empty states, success… license: MIT ---

Microcopy is done when every label says exactly what will happen, every message tells users what to do next, the same thing has the same name everywhere, and the strings survive translation and screen readers. Clever copy that makes users pause is a defect.

Ground rules

  • Clear before clever. Delight only where nothing is at stake (empty states, success), never in errors, billing, security, or destructive actions.
  • Name actions with a verb + object: “Delete project”, “Send invoice”. Never “OK”, “Submit”, “Yes” for anything consequential.
  • Use the user’s words, not internal ones (from support tickets, search logs, interviews).
  • Front-load: the most important word first. “Payment failed: card expired” not “We’re sorry, but unfortunately there was an issue processing…”.
  • Sentence case for all UI text (buttons, titles, menus) unless the design system says otherwise. Title Case Everywhere Slows Reading.
  • One term per concept, enforced by a glossary.

Workflow

- [ ] 1. Inventory strings (i18n files or grep) and the flows they appear in
- [ ] 2. Build or update the terminology glossary
- [ ] 3. Rewrite by component pattern (below)
- [ ] 4. Check length, i18n, and accessibility
- [ ] 5. Review in context (screenshots or running app), not in a spreadsheet only

1. Inventory

# common i18n locations
ls src/locales/ public/locales/ messages/ 2>/dev/null
# hard-coded strings in JSX (rough)
grep -rnoE '>[A-Z][a-z]+[^<{]{3,}<' src --include='*.tsx' | head -50
# inconsistent terms
grep -rhoiE '\b(remove|delete|archive|trash)\b' src/locales/en*.json | sort | uniq -c

2. Glossary (decide once)

| Use | Don't use | Meaning |
|---|---|---|
| workspace | org, team, account | Top-level container a customer pays for |
| delete | remove, trash | Permanent; requires confirmation |
| archive | hide, deactivate | Reversible; restorable from Archived |
| sign in / sign out | log in, login (as verb) | Session actions |
| member | user, seat (in UI) | Person in a workspace |

Patterns by component

BeforeAfterWhy
OKSave changesSays what happens
SubmitCreate accountNames the outcome
Yes / No (in a dialog)Delete 3 files / CancelButtons readable without the question
Click hereDownload the invoice (PDF, 120 KB)Link text works out of context (screen readers list links)
Learn moreLearn how billing worksSpecific destination
  • Primary button 1–3 words; up to ~25 characters before translation.
  • Keep the label stable across the flow: if the page CTA says “Start free trial”, the form button says “Start free trial”, not “Continue”.

Form labels, hints, placeholders

  • Label always visible; placeholder is an example, never the label.
  • Hint text states format or constraints before the user errs: “8+ characters, including a number.”
  • Mark optional fields “(optional)” rather than starring required ones when most are required.

Error messages: what happened + why + how to fix

BeforeAfter
“Invalid input.”“Enter a date in the future.”
“Error 403.”“You need admin access to change billing. Ask a workspace admin.”
“Password does not meet requirements.”“Add at least one number to your password.”
“Oops! Something went wrong :(”“We couldn’t save your changes. Check your connection and try again.”
“You entered an invalid email.”“Enter an email like [email protected].” (no blame)
“Upload failed.”“This file is 32 MB. The limit is 25 MB. Compress it or upload a smaller file.”
  • Place the message next to the field; summarize at the top for long forms.
  • Never blame (“you failed to”), never joke, never expose stack traces; include a reference ID for support on server errors.

Confirmation dialogs (destructive actions)

Title:   Delete "Q3 Forecast"?
Body:    This permanently deletes the project and its 24 files for everyone in the
         workspace. You can't undo this.
Buttons: [Cancel]  [Delete project]   ← destructive style, named action
  • Title is a question naming the action and the object.
  • Body states consequences specifically (what, who is affected, reversibility).
  • Prefer undo over confirmation for reversible actions: “Project archived. [Undo]”.

Empty states

TypeExample
First use“No invoices yet. Create your first invoice or import from CSV.”
No results“No results for ‘acme’ in Paid invoices. Try All statuses or check the spelling.”
Cleared“You’re all caught up.” (with next step if one exists)

See empty-error-states for layout and states.

Success and notifications

  • Confirm the specific result: “Invoice sent to [email protected]” not “Success!”.
  • Toasts ≤ ~80 characters; include Undo or View when useful; no toasts for actions whose result is already visible.
  • Notification emails/pushes: lead with the change and who caused it: “Marco commented on Q3 Forecast”.

Loading and progress

  • Short waits: no text. Long waits: say what is happening and how long: “Importing 1,240 contacts. About 2 minutes. You can leave this page.”

Tooltips

  • Tooltips explain; they do not label. If an icon needs a tooltip to be understood, it probably needs a visible label.
  • ≤ 1–2 short sentences; never put essential information only in a tooltip (not reachable on touch, easy to miss).

Voice and tone

Voice stays constant; tone shifts with the user’s state.

ContextToneExample
Onboarding, successWarm, brief“Your workspace is ready.”
Routine UINeutral, efficient“Save changes”
ErrorsCalm, direct, helpful“We couldn’t connect to your bank. Try again in a few minutes.”
Destructive, security, billingPrecise, serious“This permanently deletes all data for 12 members.”

Avoid: “Oops”, “Uh-oh”, exclamation marks in errors, “simply/just/easy”, “please” in every sentence, double negatives, Latin abbreviations (e.g., i.e.) in UI.

Internationalization and accessibility

  • Never concatenate strings ("Delete " + name + "?"); use full messages with placeholders and ICU plurals:
{ "files.deleteConfirm": "{count, plural, one {Delete # file?} other {Delete # files?}}" }
  • Leave room for 30–40% expansion (German, Finnish); avoid fixed-width buttons.
  • Avoid idioms and wordplay that do not translate.
  • Give translators context: a description per key with where it appears and max length.
  • Screen readers: icon-only buttons need an aria-label written like a button label; status messages go in a live region; link text must make sense alone.
  • Numbers, dates, and currencies through Intl formatting, not baked into strings.

Gotchas

  • Changing a term in one place creates two names for one thing; update the glossary and search all locales.
  • Copy reviewed in a spreadsheet looks fine and breaks in the UI (truncation, line wraps, wrong context). Review screenshots.
  • Generic “Are you sure?” dialogs train users to click through.
  • Humor in error messages reads as mockery when someone just lost work.
  • Placeholder-as-label disappears on typing and fails contrast in most designs.

Verification

  • Every button in the flow passes the “readable alone” test: someone seeing only the button knows what it does.
  • Every error states what to do next.
  • Glossary check: grep locales for banned synonyms; zero hits.
  • Pseudo-localization or a long-language pass (German) shows no truncation.
  • Screen reader pass on key flows: link and button names make sense out of context.

Output contract

| Key | Location / context | Before | After | Chars | Notes |
|---|---|---|---|---|---|
| billing.cancel.confirm | Cancel subscription dialog, primary | Yes | Cancel subscription | 19 | Destructive style |
Glossary changes: "remove" → "delete" (12 strings), "org" → "workspace" (7 strings)

Questions about UX Microcopy

How do you write a good error message in a user interface?

Say what happened, why, and how to fix it, without blame. 'Invalid input' becomes 'Enter a date in the future', and 'Upload failed' becomes 'This file is 32 MB. The limit is 25 MB. Compress it or upload a smaller file.' Place the message next to the field and summarize at the top of long forms. Never joke, never expose a stack trace, and include a reference ID for support on server errors.

Should a destructive action use a confirmation dialog or an undo option?

Use undo for reversible actions and a confirmation dialog only for permanent ones. A toast such as 'Project archived' with an Undo button is faster than a generic 'Are you sure?' prompt, which trains people to click through. For a permanent delete, make the title a question naming the action and object, state in the body what is lost, who is affected and that it cannot be undone, and label the destructive button with the action, such as 'Delete project'.

Can Claude Code audit an i18n locale file for inconsistent UI terms?

Yes. Asking Claude to audit en.json or other locale files loads ux-microcopy, and it greps them for synonym clusters such as remove, delete, archive and trash, builds a glossary with one term per concept, and reports changes as a table of key, context, before, after and character count. Verification is a zero-hit grep for banned synonyms plus a German or pseudo-localized pass for truncation. Pair it with style-guides for the rules behind the glossary, and empty-error-states for layout.

About this skill

Drafted with AI assistance to the site's editorial standard (a selective trigger, a real workflow, known pitfalls and a verification step) and maintained by Atif M.. First published , last updated . MIT licensed.

esc