/product-skills:ux-writingfrom product-skills
Audits interface microcopy in HTML, JSX/TSX, Vue, or strings files for vague labels, blaming errors, empty states, glossary terms, case, and translation overflow. Use when reviewing UI copy or building a voice sheet.
Ships in product-skills. 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.
Point the audit at your UI files and get every weak string quoted with file:line, the rule it broke, and a rewrite you can paste.
Before (assets/flawed_strings.json, excerpt):
"errors": {
"save_failed": "Something went wrong",
"email_invalid": "You entered an invalid email address"
},
"confirm_delete": { "message": "Delete this client? This cannot be undone.", "ok": "OK" }
After python3 scripts/copy_audit.py assets/flawed_strings.json --glossary assets/sample_glossary.json (exit 1, excerpt):
FIX 15 issues
Read assets/flawed_strings.json: files: 1, strings: 14, formats: json
Findings:
1. [destructive-generic-label] assets/flawed_strings.json:20: "OK"
rule: a button that destroys data names the action and the object, not OK/Yes/Confirm (internal heuristic)
fix: Rename "OK" to "Delete client" so the button says what will be lost.
2. [error-no-next-step] assets/flawed_strings.json:9: "Something went wrong"
rule: an error message says what happened and what to do next (WCAG 2.2 SC 3.3.3 Error Suggestion)
fix: Add a next step: "We couldn't finish that. Try again, or contact support if it keeps happening."
3. [error-blames-user] assets/flawed_strings.json:10: "You entered an invalid email address"
rule: error text "You entered" accuses the user of an action; say what the system could not do (internal heuristic)
fix: Rewrite without blame and with a next step: "Enter an email address in the format [email protected]."
The run ends with a paste-ready rewrite table (where, before, after), at most three next actions, and the verdict. The same tool on assets/sample_strings.json prints PASS, exit 0.
Before judging copy, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.
{t('key')} calls._voice.casing overrides it.--budget).Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.
python3 scripts/copy_audit.py assets/flawed_checkout.html --glossary assets/sample_glossary.json
python3 scripts/copy_audit.py assets/sample_strings.json assets/sample_checkout.html # several files at once
python3 scripts/copy_audit.py assets/sample_strings.yml --budget button=24 --expansion-factor 1.5 --format json
python3 scripts/voice_sheet.py assets/sample_glossary.json --output voice-sheet.md
Every command reads your file, says what it read and what it could not, prints findings that quote your
string, name the rule and give a rewrite, then a verdict (PASS or FIX n issues). Add --format json
for the same report as JSON. Exit codes: 0 clean, 1 findings, 2 unusable input (one BLOCKED: line
on stderr, never a traceback). Samples, flawed and malformed inputs live in assets/; assets/contract.json
lists the expected exit code of each run.
Collect the UI source files and the locale file that feeds them. Do not paste copy into chat; point the tool at the files.
Run the audit with your glossary, and --budget for the tightest slots you know of.
python3 scripts/copy_audit.py src/Checkout.tsx locales/en.json --glossary glossary.json --budget button=24
Fix in impact order: destructive buttons, blaming errors, errors with no next step, placeholder-as-label, empty states, then terms, case, punctuation and overflow.
Rerun until it prints PASS. Read the rewrite table, but do not apply it blindly: rewrites are proposals built from your own words and a few fixed patterns.
Validation checkpoint: exit 0, and every remaining dynamic string (not read list) was audited in its strings file.
List the five to ten terms the team argues about, with the variants to retire. Start from assets/sample_glossary.json.
Add a _voice object: tone, person, casing, two or three principles, do and don't lists.
Generate and check the sheet:
python3 scripts/voice_sheet.py glossary.json --output docs/voice-sheet.md
Fix contradictions it reports (a banned variant that is also a preferred term, one variant under two terms, a duplicate term). Then pass the same file to copy_audit.py --glossary.
--budget kind=N.--expansion-factor.references/ux-writing-limits.json against current localization guidance first; its figures are planning ratios.| Rule | Flags | Source |
|---|---|---|
vague-label | Submit, Click here, Go, Learn more as button or link text | WCAG 2.2 SC 2.4.4 for links; internal heuristic for buttons |
destructive-generic-label | OK / Yes / Confirm on a delete or discard dialog | internal heuristic |
error-blames-user | "You entered...", "You must...", "wrong", "illegal" | internal heuristic |
error-no-next-step | An error (or its container) with no action and no button | WCAG 2.2 SC 3.3.3 |
empty-state-no-action | "No invoices yet" with no button or link | internal heuristic |
term-inconsistent | A banned variant from your glossary | your glossary |
case-inconsistent, punctuation-inconsistent | Mixed sentence/title case; final periods on labels; mixed periods in messages | internal heuristic |
overflow-risk | A string likely to outgrow its slot after translation | planning ratios in references/ |
placeholder-as-label | An input whose only label is its placeholder | WCAG 2.2 SC 3.3.2 |
Details, input formats and the rewrite patterns are in references/ux-writing-rules.md.
Mistake: Auditing Checkout.tsx and calling it done when every visible string is a {t('checkout.pay')} call.
Why it happens: The audit passes, because dynamic strings are invisible to a static reader.
Instead: Read the "not read" list in the output, then run the audit on the locale file itself.
Mistake: Pasting every proposed rewrite straight into the strings file. Why it happens: The rewrite table is paste-ready, so it feels approved. Instead: Treat rewrites as a first draft. Check proper nouns, legal wording and anything the product cannot actually do ("contact support" is only true if support exists).
Mistake: Banning "log in" under "sign in" while a third term lists "sign in" as a variant, so every fix flips the next audit.
Why it happens: Glossaries grow by addition and nobody reads the whole file.
Instead: Run voice_sheet.py after every glossary edit; it exits 1 on contradictions.
Mistake: Failing a build because a button is "~33 chars after translation" when it is 33 against a guessed slot.
Why it happens: The ratios look precise and the default budgets are guesses.
Instead: Set --budget from real component widths and replace the ratio with your translation memory's. Only a pseudo-locale or a real translation settles it.
Mistake: "Something went wrong. Please try again." on every failure, including the ones retrying cannot fix. Why it happens: One generic string is cheap, and it passes a blame check. Instead: Say what failed and the one action that can fix it, per error class; keep the generic string only for the unknown case.
In scope: static English UI strings in HTML, JSX/TSX/JS, Vue templates, JSON and a YAML subset; a glossary of terms; a terminology and voice sheet; a length-budget check for translation.
Out of scope: dynamic strings ({t('key')}, bound attributes) until you audit the strings file; translation quality; tone judgement beyond the patterns above; legal copy; marketing copy (see marketing/ skills); visual design; screen-reader testing; non-English source text (the rules are English patterns). The YAML reader understands the subset listed above, not anchors, flow style or multi-document files.
Data constraints: the vague-label, blame, case and punctuation rules are internal heuristics. Expansion ratios and slot budgets are planning figures in references/ux-writing-limits.json: check them against current localization guidance and your own measurements.
scripts/copy_audit.py - the audit (markup and strings files in, findings and rewrite table out)scripts/voice_sheet.py - terminology and voice sheet from a glossary, with a contradiction checkscripts/uxw_*.py - shared helpers (CLI plumbing, extractors, rules); not commandsreferences/ux-writing-rules.md - rule catalogue, input formats, rewrite patterns, sourcesreferences/ux-writing-limits.json - expansion ratios and slot budgets, with sources and a note to verifyassets/ - sample_* (exit 0), flawed_* (exit 1) and malformed_* (exit 2) inputs, contract.jsonREADME.md (opens in a new tab)assets/contract.json (opens in a new tab)assets/flawed_Plans.vue (opens in a new tab)assets/flawed_Settings.tsx (opens in a new tab)assets/flawed_checkout.html (opens in a new tab)assets/flawed_glossary.json (opens in a new tab)assets/flawed_strings.json (opens in a new tab)assets/flawed_strings.yml (opens in a new tab)assets/malformed_Plans.vue (opens in a new tab)assets/malformed_Settings.tsx (opens in a new tab)assets/malformed_checkout.html (opens in a new tab)assets/malformed_glossary.json (opens in a new tab)assets/malformed_strings.json (opens in a new tab)assets/sample_Plans.vue (opens in a new tab)assets/sample_Settings.tsx (opens in a new tab)assets/sample_checkout.html (opens in a new tab)assets/sample_glossary.json (opens in a new tab)assets/sample_strings.json (opens in a new tab)assets/sample_strings.yml (opens in a new tab)references/ux-writing-limits.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ux-writing, microcopy, content-design, error-messages, localization, terminology
npx claudepluginhub borghei/claude-skills --plugin product-skills15 skills in this plugin
/ab-test-setupCheck an A/B hypothesis, size the test, and analyse results from a CSV with data-quality checks (sample ratio mismatch, small counts, multiple variants). Use when planning an experiment, calculating sample size or duration, reading experiment results, or when someone says "let's test that."
/agile-product-ownerAgile product ownership for backlog management and sprint execution. Use when you have an epic to turn into INVEST-checked user stories with acceptance criteria, oversized stories to split, a sprint to load to capacity, or a backlog to prioritize.
/apple-hig-expertApple Human Interface Guidelines expert across iOS, iPadOS, macOS, watchOS, tvOS, and visionOS. Use when designing or reviewing an Apple-platform app, auditing for HIG compliance, picking native components, or validating accessibility. Use when you have a screen inventory (JSON of true/false flags per screen) to audit, or a UX goal to map to a native pattern.
/design-directionTurns a product brief into a design-system spec: style direction, contrast-checked palette, type pairing, tokens, UX rules and chart choices. Use when starting a new product's UI, picking a palette or fonts, or auditing a token file.
/design-system-leadDesign systems leadership across component libraries, design tokens, and design-dev collaboration. Use when you need to generate design tokens from a brand color (with a WCAG contrast check), scaffold a component spec, or audit design system adoption from a per-product CSV.
/product-analyticsProduct analytics checks for metric trees, event taxonomies and retention cohorts. Use when reviewing a North Star and its input metrics, auditing an event inventory for naming, PII and gaps, or reading cohort retention tables for curve shape and trend. Reads your JSON, exits 0/1/2.
Other plugins' skills for the same job