Skip to content

borghei/Claude-Skills / engineering/interface-refinement

interface-refinement

Verified

Refine an existing interface with named commands (critique, polish, distill, typeset, colorize ...), a product and design context file, and a static detector of generic UI patterns. Use when UI looks generic, cluttered or unfinished.

FileKindSize
SKILL.mdskill md22.1 KB
assets/interface-context-template.mdmarkdown2.6 KB
assets/refinement-report-template.mdmarkdown1.5 KB
assets/sample_context.mdmarkdown3.8 KB
assets/sample_context_flawed.mdmarkdown730 B
assets/sample_detector_report.jsonconfig387 B
assets/sample_detector_report_flawed.jsonconfig48.8 KB
assets/sample_refinement_plan.jsonconfig1.7 KB
assets/sample_refinement_plan_flawed.jsonconfig893 B
assets/sample_ui_flawed.cssother2.5 KB
assets/sample_ui_flawed.htmlother4.5 KB
assets/sample_ui_flawed.tsxother1.1 KB
assets/sample_ui_sound.cssother2.3 KB
assets/sample_ui_sound.htmlother2.6 KB
assets/sample_ui_sound.tsxother1.3 KB
references/command-adapt.mdmarkdown2.7 KB
references/command-animate.mdmarkdown2.6 KB
references/command-audit.mdmarkdown3.5 KB
references/command-bolder.mdmarkdown3.2 KB
references/command-clarify.mdmarkdown2.8 KB
references/command-colorize.mdmarkdown2.7 KB
references/command-critique.mdmarkdown3.5 KB
references/command-delight.mdmarkdown1.8 KB
references/command-distill.mdmarkdown2.3 KB
references/command-document.mdmarkdown3.3 KB
references/command-extract.mdmarkdown3.4 KB
references/command-harden.mdmarkdown2.5 KB
references/command-init.mdmarkdown2.9 KB
references/command-layout.mdmarkdown2.3 KB
references/command-onboard.mdmarkdown2.2 KB
references/command-optimize.mdmarkdown3.4 KB
references/command-polish.mdmarkdown2.8 KB
references/command-quieter.mdmarkdown2.3 KB
references/command-typeset.mdmarkdown2.9 KB
references/craft-floor.mdmarkdown3.7 KB
references/detector-rules.jsonconfig22.6 KB
references/detector-rules.mdmarkdown14.5 KB
references/native-platforms.mdmarkdown4.6 KB
references/review-protocol.mdmarkdown5.2 KB
references/surface-modes.mdmarkdown3.4 KB
scripts/class_checks.pyscript12.3 KB
scripts/command_router.pyscript12.7 KB
scripts/context_linter.pyscript13.4 KB
scripts/css_checks.pyscript12.3 KB
scripts/css_parse.pyscript7.6 KB
scripts/extra_checks.pyscript12.7 KB
scripts/markup_checks.pyscript14.6 KB
scripts/system_checks.pyscript9.4 KB
scripts/ui_rules.pyscript12.5 KB
scripts/ui_slop_detector.pyscript12.1 KB

references/command-clarify.md

View on GitHub
# clarify — interface copy that says what happens

**Job:** rewrite labels, headings, errors, empty states and helper text so people know what
happened, what matters and what to do next, in the product's own terms.

**Run when:** the detector reports `vague-control-label` or `vague-headline`; a critique flags
jargon, generic CTAs or unhelpful errors; before localisation.

## By mode

- **Persuade:** the headline states what the product does for whom; the action names the outcome
  ("Start a free account", "See pricing for 5 seats"), never "Get started" alone.
- **Operate:** labels name verb + object; states and errors are specific and recoverable.
- **Read:** headings answer the reader's question; link text makes sense out of context.

## Change

- **Controls:** verb + object. "Submit" becomes "Send invoice"; "OK" on a delete dialog becomes
  "Delete 3 files". Both the dialog title and the button name the action.
- **Headlines:** replace templates ("Welcome to...", "The all-in-one platform", "Supercharge
  your...") with the product's nouns from the context file's Terms list.
- **Errors:** what failed, why (when known and useful), how to recover. No raw codes as the main
  message; no blame; no jokes when money, data, access or privacy is at stake.
- **Empty states:** tell first use, no results, filtered-out and permission-limited apart, and give
  the next useful action for each.
- **Loading and success:** name the real operation; confirm the outcome briefly; mention a
  consequence only when it changes what the person should do.
- **Forms:** persistent labels (placeholders are examples), requirements stated before submit.

## Do not touch

- Factual claims, legal text, prices and plan names: ask before changing them.
- Domain terms the audience genuinely uses; plain language is not dumbing down.
- Layout and styling. If a rewrite no longer fits, report it to `layout` or `harden`.

## Steps

1. Read the context file's Voice and terms. If there is no glossary, start one with every noun
   and verb the surface uses for the same concept.
2. Walk the whole flow, not isolated strings; copy depends on the moment.
3. For each state decide: the one fact needed now, the next action, context that changes the
   decision, the tone for the stakes.
4. Rewrite. Say each thing once.
5. Keep strings translatable: whole sentences, variables that can move, no concatenated fragments.

## Verify

- Detector `--rules vague-control-label,vague-headline` exits 0 on the target.
- Every button, link and menu item read alone still says what it does.
- Each error string answers what / why / what now.
- German or another long locale (+30%) and 200% zoom do not clip the new strings.
- Accessible names match the visible labels.

## Hand-off

`harden` if strings now overflow at long locales; otherwise `polish`.
brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).Stars: 321kUpdated Claude CodeCodexVerifiedInstall
brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.Stars: 197kUpdated Claude CodeCodexVerifiedInstall
frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.Stars: 197kUpdated Claude CodeCodexVerifiedInstall
mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).Stars: 197kUpdated Claude CodeCodexVerifiedInstall