moai-ref-ui-polish
Skill1.2k starsChanged 3 months agoApache-2.0View on GitHub
UI polish and interface-completion reference: the small visual details — concentric border radius, optical alignment, shadow-vs-border, motion easing, typography smoothing, tabular numbers, icon stroke weight, hit areas — that separate polished interfaces from generic ones. Agent-extending skill that amplifies frontend/UI domain work with production-grade "interface taste" rules. NOT for: backend logic, database design, DevOps, security audits, non-UI work.
Trending
Quiet since September.thin dataabout the whole repository
Who's talking about modu-ai/moai-adk
- Ven0m0/claude-config“Add a structured external integration plan to the root TODO backlog”GitHub · Mar 18, 2026 · 4 reactions
- Ven0m0/claude-config“TODO list”GitHub · Jan 31, 2026 · 1 reactions
- sudosubin/agents.nix“agent-skills.github.modu-ai.moai-adk: init at 3.1.2”GitHub · Sep 30, 2026
- anthropics/claude-code“Worktree-isolation Bash check folds command substitutions in quoted-delimiter heredoc bodies but refuses …”GitHub · Sep 7, 2026
- bjw202/minidiscord“docs(t41): moai gate 종료 코드 합류 — upstream 이슈 문안 (제출 안 함)”GitHub · Sep 6, 2026
The biggest 5 of 13 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 13
Talked about on GitHub (13 times).
On GitHub · 13
- Mar 18, 2026Add a structured external integration plan to the root TODO backlog — Ven0m0/claude-config4 reactions · 4 comments
- Jan 31, 2026TODO list — Ven0m0/claude-config1 reaction · 18 comments
- Sep 30, 2026agent-skills.github.modu-ai.moai-adk: init at 3.1.2 — sudosubin/agents.nix0 reactions
- Sep 7, 2026Worktree-isolation Bash check folds command substitutions in quoted-delimiter heredoc bodies but refuses braces there, though such bodies cannot expand — anthropics/claude-code0 reactions
- Sep 6, 2026docs(t41): moai gate 종료 코드 합류 — upstream 이슈 문안 (제출 안 함) — bjw202/minidiscord0 reactions
8 more on GitHub
- Jul 23, 2026Hands-on eval: promote MoAI-ADK to core tier — cameronsjo/spec-compare0 reactions
- Apr 22, 2026Add MoAI-ADK to Collections & Libraries — travisvn/awesome-claude-skills0 reactions
- Apr 22, 2026Add MoAI-ADK to Meta & Orchestration category — VoltAgent/awesome-claude-code-subagents0 reactions
- Apr 22, 2026Add MoAI-ADK — SPEC-first Agentic Development Kit — jqueryscript/awesome-claude-code0 reactions
- Apr 22, 2026Add MoAI-ADK — SPEC-first AI-assisted coding framework — wsxiaoys/awesome-ai-coding0 reactions
- Apr 22, 2026Add MoAI-ADK — SPEC-first Agentic Development Kit for Claude Code — e2b-dev/awesome-ai-agents0 reactions
- Nov 19, 2025Issue #1: Estructura base del proyecto .NET 9 — mjcuadrado/mjcuadrado-net-sdk0 reactions
- Nov 13, 2025fix: resolve conflitos Git + remove hooks SYNC bloqueantes (Windows f… — PedroGiudice/lex-vector0 reactions
In this repository45 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- hns-lsel-applierSkill
- hns-lsel-curatorSkill
- hns-moaiadk-best-practicesSkill
- hns-moaiadk-dev-referenceSkill
- hns-moaiadk-patternsSkill
- hns-oss-docs-i18n-rulesSkill
- hns-oss-docs-readme-syncSkill
- hns-oss-docs-structure-mapSkill
- hns-oss-docs-verifySkill
- hns-workflow-ci-loopSkill
- moai-domain-backendSkill
- moai-domain-databaseSkill
- moai-domain-design-dnaSkill
- moai-domain-frontendSkill
- moai-domain-html-reportSkill
- moai-domain-humanizeSkill
- moai-domain-svg-infographicSkill
- moai-foundation-ccSkill
- moai-foundation-coreSkill
- moai-foundation-qualitySkill
- moai-foundation-thinkingSkill
- moai-harness-learnerSkill
- moai-kanban-foremanSkill
- moai-meta-harnessSkill
- moai-ref-api-patternsSkill
- moai-ref-cross-model-auditSkill
- moai-ref-git-workflowSkill
- moai-ref-llm-securitySkill
- moai-ref-owasp-checklistSkill
- moai-ref-react-patternsSkill
- moai-ref-secopsSkill
- moai-ref-seoSkill
- moai-ref-supply-chainSkill
- moai-ref-testing-pyramidSkill
- moaiSkill
- moai-workflow-dddSkill
- moai-workflow-docs-claim-checkSkill
- moai-workflow-loopSkill
- moai-workflow-projectSkill
- moai-workflow-specSkill
- moai-workflow-tddSkill
- moai-workflow-testingSkill
- moai-workflow-worktreeSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 45
Before suggesting polish changes, identify the project's existing styling system (design tokens, spacing scale, motion library).
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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 |
Elevation and Structure
| Element | Use | Avoid |
Semi-transparent layered box-shadow | Depth, elevation, floating surfaces | Solid borders for depth (they read heavy and flat) |
| Borders | Structure, dividers, separators, selected/focus state | Using shadows for structural separation (ambiguous) |
Motion
| Pattern | Rule | Common Mistake |
| Enter animation easing | ease-out (decelerate) — element arrives calmly | ease-in on enter (element appears to slam into place) |
| Exit animation easing | ease-in (accelerates away), mirroring the enter curve (small fixed translateY) | Full-height collapse, or harsher-than-enter motion |
| Interruptible state changes | CSS transition (can be interrupted mid-animation) | keyframes for interactive states (cannot interrupt) |
| Staged entrances | Stagger semantic chunks ~100ms — only for infrequent staged entrances | Staggering routine, high-frequency interactions (feels sluggish) |
| Contextual icon animation | opacity/scale/blur cross-fade (scale 0.25→1, opacity 0→1, blur 4px→0) | Toggling visibility (jarring, no transition) |
| Press feedback | scale(0.96) on click — always 0.96 | Smaller than 0.95 (reads as a bug, not a press) |
| First-render enter | Skip with initial={false} on AnimatePresence (or equivalent) | Enter animation fires on page load (disorienting) |
| Motion restraint | No custom animation on high-frequency interactions; motion is never the only feedback channel | Animating everything (noise, performance cost, accessibility) |
Motion Easing Values (Web/CSS)
| Case | Value |
| With motion library (Framer Motion et al.) | transition: { type: "spring", duration: 0.3, bounce: 0 } |
| Without motion library (CSS) | cubic-bezier(0.2, 0, 0, 1) for the standard "decelerate" curve |
| Never | transition: all — always specify exact properties (transition-property: scale, opacity) |
Motion Accessibility and Cost
| Rule | Detail |
| Reduced-motion branch (required) | Every non-decorative animation needs a prefers-reduced-motion: reduce path. Vestibular-disorder users are physically harmed by large-displacement and parallax motion. Reduce to an opacity cross-fade or remove the animation — never merely shorten it. The branch is authored at the same time as the animation, not retrofitted |
| Animate the compositor, not the layout | transform and opacity are composited and skip layout and most paint. width, height, top, left, margin, and padding trigger layout on every frame (thrashing), which is why the same visual effect janks when driven by the wrong property. Move with translate, resize with scale |
Motion principles behind these rules — the three decision passes, motion layers, the 1/3 rules, stagger budgets, personality archetypes, Disney-adapted ranges, and the emotion-to-motion map — live in
references/motion-principles.md(L3, load on demand when motion is the substance of the work).
Typography
| Rule | Implementation (Web/CSS) | When |
| Font smoothing | -webkit-font-smoothing: antialiased on root layout | macOS targets (sharper rendering) |
| Tabular numbers | font-variant-numeric: tabular-nums | Dynamically updating numbers (counters, timers, prices) — prevents layout shift |
| Heading wrapping | text-wrap: balance | Headings (prevents orphan words, evens line lengths) |
| Body wrapping | text-wrap: pretty | Body paragraphs (avoids orphan widows) |
Imagery
| Rule | Value |
| Image outline | 1px subtle outline at low opacity |
| Outline color (light mode) | pure black — oklch(0 0 0 / 0.1) |
| Outline color (dark mode) | pure white — oklch(1 0 0 / 0.1) |
| Never | Tinted neutral outlines (read as a color choice, not a separation cue) |
Interaction
| Rule | Value |
| Minimum hit area (touch/mobile) | 44 × 44 px |
| Minimum hit area (dense desktop) | 40 × 40 px (extend with pseudo-element if the visual is smaller) |
| Hit area overlap | Never let hit areas overlap |
| Hover on touch (never load-bearing) | :hover does not exist on touch — anything reachable only by hover is simply gone on a phone. Keep affordances visible by default and gate hover styling behind @media (hover: hover) and (pointer: fine) |
| Hover on pointer (always present) | The inverse rule: on a pointer device every clickable surface needs a distinct hover state, transitioning over ~100-200ms. A pointer resting on a target with no feedback reads as broken |
will-change | Only transform, opacity, filter — and only when first-frame stutter is observed; never will-change: all |
Icons
| Rule | Detail |
| Stroke matches text weight | 1.5px stroke beside regular (400) text; 2px beside semibold (600) text |
| One stroke weight per set | Never mix icon libraries in one interface |
| State via color, not assets | Icons use currentColor; states come from CSS color/opacity — never separate asset files |
| Outline vs fill | Outline variant is default; fill variant marks the active state |
Review Modes
| Mode | Coverage | Finding Cap |
quick | Primary user path, high-traffic states; HIGH/MEDIUM issues only | 5 |
full | Entire scope across all categories (Typography, Surfaces, Motion, Icons, Interaction) | 15 |
Severity
| Level | Meaning |
| HIGH | Makes interaction inaccessible, misleading, unreadable, or repeatedly disruptive |
| MEDIUM | Noticeable usability or consistency problem |
| LOW | Isolated polish issue (full mode only) |
Verdict
| Verdict | Condition |
| Block | Any HIGH finding remains |
| Needs changes | Only MEDIUM or LOW findings remain |
| Approve | No actionable findings remain |
Auditing an existing codebase rather than reviewing a diff?
references/design-audit.md(L3, load on demand) carries the mechanical detection patterns behind the checklists below — motion gaps, accessibility violations, layout-property animation, and the duration/easing inventories that only surface across a whole codebase. It reports into the severity scale and finding caps above, not a separate one.
<!-- moai:evolvable-start id="rationalizations" -->Common Rationalizations
| Rationalization | Reality |
| "The framework handles animations correctly by default" | Framework defaults are generic. Easing, timing, and stagger must be specified per interaction, not inherited. |
| "A solid border is simpler than a layered shadow" | A solid border communicates structure; depth needs transparency. Using a border for elevation reads heavy and flat. |
| "Geometric centering is correct, optical adjustment is bikeshedding" | Geometric center is visually off for asymmetric shapes (icons, play triangles). Optical alignment is the difference users feel but cannot name. |
| "Motion is optional polish, the interface works without it" | Motion is feedback. Without it, state changes are ambiguous (did it register?). But motion must be restrained — animating everything is noise. |
| "Hit area equals visible area" | A 20px icon needs a 44px hit area on touch. Overlapping or undersized hit areas are the most common mobile usability defect. |
"transition: all is convenient" | It transitions properties you did not intend (layout, color), causing unexpected animation. Always specify exact properties. |
<!-- moai:evolvable-end --><!-- moai:evolvable-start id="red-flags" -->Red Flags
- Enter animation uses
ease-in(should beease-out) - Nested elements with mismatched border radii (no concentric relationship)
- Solid border used for depth/elevation instead of semi-transparent shadow
transition: allinstead of specific properties- Hit area smaller than 40×40px, or overlapping hit areas
- Dynamically updating numbers without
tabular-nums(layout shifts on each update) - Icon stroke weight mismatched with adjacent text weight
- Separate icon asset files per state instead of
currentColorrecoloring - Page-load enter animation fires without a skip (
initial={false}) will-change: all, orwill-changeset permanently instead of only on stutter- Animation with no
prefers-reduced-motionbranch (or a branch that only shortens the duration instead of removing the displacement) - Movement driven by
top/left/width/heightwhere atransformwould do (layout thrashing every frame)
<!-- moai:evolvable-end --><!-- moai:evolvable-start id="verification" -->Verification
- Enter animations decelerate (
ease-out); exit animations accelerate (ease-in), and entrances run longer than exits - Every non-decorative animation has a
prefers-reduced-motion: reducebranch - Movement uses
transform/opacity, notwidth/height/top/left - Nested elements follow
outerRadius = innerRadius + padding - Depth uses semi-transparent shadow; structure uses border
- Every
transitionspecifies exact properties (notransition: all) - Hit areas meet 44×44px (touch) / 40×40px (desktop) minimum, no overlap
- Dynamic numbers use
tabular-nums; headings usetext-wrap: balance - Icons use one stroke weight matching text; states via
currentColor, not separate assets - First render skips enter animation (
initial={false}or equivalent) - High-frequency interactions have no custom animation; motion is not the only feedback
<!-- moai:evolvable-end -->Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

