moai-ref-ui-polish
Installation
SKILL.md
UI Polish Reference
Target Agents
manager-develop- Applies polish rules during frontend/UI component implementation (cycle_type=tddorcycle_type=dddcontext)/moai review- UI-design review surface; equivalently available as a per-spawnAgent(general-purpose)frontend specialist perarchived-agent-rejection.md§C
Core Philosophy
Great interfaces are a collection of small details that compound into a great experience. AI agents frequently miss these details — an ease-in easing on an enter animation (should be ease-out), a solid border where a semi-transparent shadow reads better, or mismatched radii on nested elements. None of these is catastrophic; together they separate "polished" from "generic".
Before suggesting polish changes, identify the project's existing styling system (design tokens, spacing scale, motion library). Never introduce a second styling system for polish fixes — extend the existing one.
Geometry and Alignment
| Principle | Rule | Rationale |
|---|---|---|
| Concentric Border Radius | outerRadius = innerRadius + padding |
Mismatched radii on nested elements is the most common cause of an interface "feeling off" |
| Optical over Geometric Alignment | When geometric centering looks wrong, align optically | Buttons with icons, play triangles, and asymmetric icons need a manual nudge; geometric center is visually off-center for these shapes |