better
Interface craft across six domains: accessibility, color, layout, typography, UI polish, and writing. Use for a single-domain question in any of these areas, or for a holistic review of a screen, flow, feature, or product interface. Triggers on: accessibility, a11y, WCAG, aria, focus ring, focus trap, keyboard navigation, tabindex, screen reader, alt text, hit area, touch target, prefers-reduced-motion, skip link, aria-label, form errors; oklch, color conversion, palette generation, contrast ratio, gamut, design tokens, hue drift, dark mode colors, color meaning; layout, spacing, alignment, grouping, visual hierarchy, progressive disclosure, breakpoints, responsive layout, safe area, RTL layout, logical properties; typography, fonts, variable fonts, letter-spacing, line-height, type scale, heading hierarchy, tabular numbers, text-wrap, truncation, underlines, iOS input zoom, font smoothing, smart punctuation; UI polish, "make it feel better", "feels off", stagger animations, border radius, optical alignment, image outlines, box shadows, icon stroke weight, motion restraint; UX writing, microcopy, interface copy, button labels, error messages, empty states, placeholder text, capitalization, voice and tone; and full interface review, holistic UI audit, cross-discipline design review.
- License 许可
- GPL-3.0
- 所属仓库
- UNRULYEON/skills
- 最近更新
- 2026-11-13
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- better
- description
- Interface craft across six domains: accessibility, color, layout, typography, UI polish, and writing. Use for a single-domain question in any of these areas, or for a holistic review of a screen, flow, feature, or product interface. Triggers on: accessibility, a11y, WCAG, aria, focus ring, focus trap, keyboard navigation, tabindex, screen reader, alt text, hit area, touch target, prefers-reduced-motion, skip link, aria-label, form errors; oklch, color conversion, palette generation, contrast ratio, gamut, design tokens, hue drift, dark mode colors, color meaning; layout, spacing, alignment, grouping, visual hierarchy, progressive disclosure, breakpoints, responsive layout, safe area, RTL layout, logical properties; typography, fonts, variable fonts, letter-spacing, line-height, type scale, heading hierarchy, tabular numbers, text-wrap, truncation, underlines, iOS input zoom, font smoothing, smart punctuation; UI polish, "make it feel better", "feels off", stagger animations, border radius, optical alignment, image outlines, box shadows, icon stroke weight, motion restraint; UX writing, microcopy, interface copy, button labels, error messages, empty states, placeholder text, capitalization, voice and tone; and full interface review, holistic UI audit, cross-discipline design review.
02 资源文件 30
- 参考文档accessibility.md8.0 KB
- 参考文档accessibility/focus-and-keyboard.md6.4 KB
- 参考文档accessibility/forms.md3.9 KB
- 参考文档accessibility/hit-areas.md2.8 KB
- 参考文档accessibility/motion-and-zoom.md4.0 KB
- 参考文档accessibility/screen-readers.md5.0 KB
- 参考文档accessibility/semantics-and-aria.md5.2 KB
- 参考文档agents/openai.yaml147 B
- 参考文档colors.md4.9 KB
- 参考文档colors/accessibility-contrast.md4.2 KB
- 参考文档colors/color-conversion.md1.8 KB
- 参考文档colors/color-usage.md4.9 KB
- 参考文档colors/gamut-and-tailwind.md2.4 KB
- 参考文档colors/palette-generation.md3.2 KB
- 参考文档layout.md5.1 KB
- 参考文档layout/grouping-and-alignment.md5.6 KB
- 参考文档layout/spacing-and-adaptivity.md6.6 KB
- 参考文档typography.md11.7 KB
- 参考文档typography/choosing-fonts.md3.2 KB
- 参考文档typography/css-cheat-sheet.md3.9 KB
- 参考文档typography/details-and-accessibility.md4.4 KB
- 参考文档typography/spacing-and-sizing.md4.8 KB
- 参考文档typography/variable-fonts-and-opentype.md4.3 KB
- 参考文档typography/wrapping-and-punctuation.md3.5 KB
- 参考文档ui.md6.3 KB
- 参考文档ui/animations.md12.9 KB
- 参考文档ui/icons.md4.3 KB
- 参考文档ui/performance.md2.9 KB
- 参考文档ui/surfaces.md6.4 KB
- 参考文档writing.md6.7 KB
03 SKILL.md 正文
Review the interface as one system
A strong interface is not six independent audits stapled together. For a narrow, single-domain question — check color contrast, fix a focus ring, tighten a heading scale — read only the matching file below and answer directly; the full six-domain consolidated review format further down applies only to a holistic interface review request, not every invocation.
Accessibility rules live in accessibility.md;
structure in layout.md; copy in writing.md;
type in typography.md; color in colors.md;
visual polish and motion in ui.md. Never duplicate or override
their rules here.
Core Principles
1. Resolve Scope and Mode First
Infer the screen, flow, feature, or repository scope from the request and current workspace. State the resolved scope in the output. Use full when no mode is supplied.
| Mode | Coverage | Finding cap |
|---|---|---|
quick |
Primary user path and highest-traffic states; report only HIGH and MEDIUM issues |
5 |
full |
Entire requested scope across all six domains, including empty, loading, error, and narrow-width states when present | 15 |
If the requested scope is too large to inspect credibly, narrow it to the highest-traffic complete flow and state the boundary. Never imply uninspected surfaces were reviewed.
2. Recon Before Judgment
Identify the framework, styling system, component library, design tokens, supported viewports, and available preview or test commands. Follow the project's established Tailwind, plain CSS, CSS-in-JS, token, and component conventions.
3. Use the Domain Files as the Sources of Truth
Before reviewing, read the matching file(s) below for the scope of the request. In quick mode, inspect all six domains but spend depth only where the primary flow has evidence. In full mode, complete each domain's review before consolidation.
Review in this order so foundational failures are not hidden by polish:
accessibility.mdlayout.mdwriting.mdtypography.mdcolors.mdui.md
Apply each file's principles and references, but ignore any standalone "Review Output Format" language inside them — use the consolidated format, shared severity, and finding cap in this file instead.
When two domains appear to cover the same issue, assign it to the domain that owns the underlying rule and mention secondary effects in the Why cell. Report it once.
4. Require Evidence
Every finding cites path/to/file:line and shows the current implementation. If the review artifact has no source files, cite the exact screen and component. Do not report a code-level finding from visual appearance alone or a visual finding from source code alone when runtime behavior determines the result.
5. Rank by User Impact
Use one shared severity scale:
HIGH: blocks a task, misleads the user, hides content or controls, causes data-loss risk, or creates a repeated systemic failure.MEDIUM: meaningfully harms comprehension, efficiency, adaptability, or consistency.LOW: isolated polish with limited task impact. Include only infullmode.
Within a severity, rank by reach and leverage. A token or shared-component fix outranks the same symptom in one leaf component.
6. Consolidate Systemic Findings
One root cause is one finding. List every confirmed location in the same row rather than producing a row per occurrence. Do not pad the report to reach the finding cap; a short review or no findings is a valid result.
7. Make Restraint Visible
Record candidates considered but deliberately rejected. A candidate is rejected when the owning domain's rules permit the current implementation, evidence is insufficient, the project convention is intentional, or the proposed change would add complexity without user benefit.
8. Verify What Can Be Verified
Run safe, relevant checks available in the project. Inspect the rendered interface when runtime behavior or visual judgment matters. Report the exact command or interaction and observed result. If a check cannot be run, label it Not verified and state what remains; never convert a verification gap into a finding.
9. Review Without Mutating by Default
Treat a review request as read-only. Do not edit source code unless the user also asks to implement the findings. When implementation is requested, preserve the consolidated report as the change scope and re-run the relevant verification afterward.
Common Mistakes
| Mistake | Fix |
|---|---|
| Six disconnected domain reports | Consolidate into one ranked findings table |
| Same issue reported under multiple domains | Assign it to the domain that owns the underlying rule |
| Finding with no exact location | Cite path/to/file:line and the current implementation |
| Visual claim inferred only from source | Inspect the rendered state or mark it not verified |
| Unlimited low-impact polish | Respect the mode cap; omit LOW findings in quick |
| Silent gaps in coverage | Show which domains and states were actually inspected |
| No rejected candidates | Include the required considered-but-rejected table |
| Review silently edits code | Stay read-only unless implementation was requested |
| "Approve" with pending actionable findings | Use Needs changes or Block |
Review Output Format
Always use the following sections.
Scope and Coverage
State the mode, exact scope, stack and styling conventions, and any review boundary. Then show coverage:
| Domain | Evidence inspected | Result |
|---|---|---|
| Accessibility | Files, components, states, or checks | Findings count or Clear |
Include all six domains. Clear means inspected with no actionable finding.
Findings
Use one table ordered by severity, then reach and leverage:
| # | Severity | Domain | Location | Before | After | Why |
|---|---|---|---|---|---|---|
| 1 | HIGH | Accessibility | src/Dialog.tsx:42 |
<button><XIcon /></button> |
Add aria-label="Close" and hide the icon from the accessibility tree |
The icon-only control has no accessible name |
Each row is one root cause. The Domain value is the file name without the .md extension. Respect the mode's finding cap. If there are no findings, omit the table and state "No actionable interface findings."
Considered but Rejected
Include 1–3 candidates in quick mode and 2–5 in full mode:
| Location | Candidate | Rejected because |
|---|---|---|
src/Card.tsx:28 |
Increase the shadow | Existing depth matches the shared surface token; changing one card would reduce consistency |
These are real candidates inspected during the review, not invented filler. If the scope genuinely contains fewer borderline candidates, include the ones that exist and say so.
Verification
List each check or interaction, the exact command or steps, and the observed result. Separate checks that passed from checks marked Not verified.
Verdict
End with exactly one:
Block— one or moreHIGHfindings remain.Needs changes— onlyMEDIUMorLOWfindings remain.Approve— no actionable findings remain and the claimed coverage was verified.
04 同仓库更多 Skills
writing-for-agents
Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.
untangle-codebase
Untangle a whole codebase in one pass, so agents working in it read less per change, break less without noticing, and debug faster.
ui-sh
The ui.sh design system's tools for building and adapting UI: designing new UI from scratch, adding dark mode, generating a brand identity or marketing mockup board, cleaning up Tailwind classes, extracting reusable components, creating dark-mode raster image variants, comparing UI options in-browser with the ui.sh picker, making an existing UI responsive across breakpoints, and converting a screenshot, Figma export, mockup, or wireframe into semantic unstyled markup. Triggers on: design new UI, build a page or section, dark mode, add dark mode, brand kit, visual identity, marketing mockup, canonicalize Tailwind classes, clean up Tailwind, componentize, extract components, dark-mode image variant, ui.sh picker, compare UI options, make responsive, breakpoints, mobile/tablet/desktop layout, markup from image, screenshot to markup, Figma export to code, wireframe to markup.
transitions
Production-ready CSS transitions for web apps, plus tuning for motion that already exists. Use when implementing notification badges, dropdowns, modals, panel reveals, page transitions, card resizes, number pop-ins, text swaps, icon swaps, success checks, avatar group hovers, error state shakes, search/input clear, skeleton loaders, shimmer text, sliding tabs, tooltips, staggered text reveals, card hover tilt, plus-to-menu morph, or accordions. Triggers on "add a transition", "animate the dropdown", "make the modal open smoothly", "swap icon", "page slide", "stagger animation", "open / close transition", "make it animate", "fade between", "success animation", "form error", "shake on invalid", "hover lift", "avatar stack hover", "clear the search", "skeleton loader", "loading shimmer", "shimmer text", "sliding tabs", "segmented control", "tooltip", "reveal text", "tilt card", "3D hover tilt", "cursor glare", "plus to menu", "FAB morph", "accordion", "collapsible", "expand / collapse", "disclosure". Also covers polishing motion that already animates — "polish my transitions", "refine the motion", "tune the timing / easing", "make the animation feel better / less janky", "tighten the durations", "fix the stagger", "align to the motion tokens", "audit the motion", "review my animations", "scan for ad-hoc transitions", "tokenize my animations", "timing feels off", "too slow / too fast", "open close timing", "hover in out". Also the commands transitions reveal, transitions review, transitions apply, transitions polish.
simplify
Use this skill automatically when you feel your code is ready for human review, and whenever writing or reviewing code comments. Ready means the code works and achieves a stated goal, verified by your own tests and/or, if you deem it necessary, human testing.
review-pr
Review a pull request or local branch diff for correctness, security, lifecycle, error handling, tests, and meaningful performance risks. Use when asked to review PR changes, a branch, a commit range, or the current working tree and return a structured review.