[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AWTA1D5FP895S33GHSA2G5":3,"skill-same:01M7AWTA1D5FP895S33GHSA2G5":46},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M7AWTA1D5FP895S33GHSA2G5","ui-improver",null,"barkleesanders\u002Fclaude-code-starter","barkleesanders","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F30680901?v=4","01M7AW019CGBYWDA8MFJEN1JXC","Barklee Sanders","01M7AW01A5H994ASJ2QZPW67AV",4,"MIT","https:\u002F\u002Fgithub.com\u002Fbarkleesanders\u002Fclaude-code-starter\u002Fblob\u002Fmain\u002Fskills\u002Fui-improver\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: ui-improver\nuser-invocable: true\ndescription: Complete UI improvement workflow combining design intelligence, micro-polish, and code simplification. Use when building, reviewing, or improving any UI — new pages, components, style decisions, accessibility reviews, animation polish, code cleanup after writing frontend code. Triggers on any frontend work: \"make this look better\", \"polish the UI\", \"review this component\", \"improve the interface\", \"simplify this code\", building dashboards, landing pages, forms, modals, buttons, or any visual element.\n---\n\n# UI Improver\n\nA complete UI improvement workflow that runs three phases in order:\n\n1. **Design Decisions** — structural design choices: accessibility, layout, typography systems, color, navigation, forms, animation principles\n2. **Micro-Polish** — details that compound into a great experience: border radius, shadows, typography rendering, animations, image outlines, hit areas\n3. **Code Simplification** — clean up the implementation after writing: clarity, consistency, no unnecessary complexity\n\nRun all three phases on any UI work. Skip phases that clearly don't apply (e.g., skip Phase 1 for a one-line change).\n\n---\n\n## Phase 1: Design Decisions\n\nFollow this priority order — fix CRITICAL issues before MEDIUM ones.\n\n### 1. Accessibility (CRITICAL)\n\n- Minimum 4.5:1 contrast ratio for normal text, 3:1 for large text\n- Visible focus rings on all interactive elements (2–4px)\n- Descriptive `alt` text on meaningful images; empty `alt=\"\"` on decorative ones\n- `aria-label` on icon-only buttons\n- Tab order matches visual order; full keyboard support\n- Use `\u003Clabel for>` on all form inputs — never placeholder-only labels\n- `role=\"alert\"` or `aria-live=\"polite\"` for dynamic error messages\n- `prefers-reduced-motion` — reduce or disable animations when requested\n- Don't convey information by color alone; add icon or text\n- Skip links (\"Skip to main content\") for keyboard users\n- Sequential heading hierarchy (h1→h6, no level skip)\n\n### 2. Touch & Interaction (CRITICAL)\n\n- Min tap target: 44×44pt (Apple) \u002F 48×48dp (Material); extend with pseudo-element if visual is smaller\n- 8px minimum gap between touch targets\n- Use `touch-action: manipulation` to remove 300ms tap delay on web\n- Disable buttons during async operations; show spinner\n- Visual feedback within 100ms of tap\n- Don't rely on hover-only interactions; always provide tap\u002Fclick equivalent\n- Keep primary touch targets away from notch, Dynamic Island, gesture bar, screen edges\n\n### 3. Performance (HIGH)\n\n- Use WebP\u002FAVIF images with `srcset`\u002F`sizes`\n- Declare `width`\u002F`height` or `aspect-ratio` on images to prevent CLS\n- `font-display: swap` to avoid invisible text (FOIT)\n- Lazy load below-fold images (`loading=\"lazy\"`)\n- Use skeleton\u002Fshimmer instead of spinners for loads > 1s\n- Virtualize lists with 50+ items\n- Only animate `transform`\u002F`opacity`\u002F`filter` — never `width`, `height`, `top`, `left`\n- Debounce\u002Fthrottle scroll, resize, input events\n\n### 4. Style & Consistency (HIGH)\n\n- Match style to product type — don't mix flat and skeuomorphic randomly\n- One icon set\u002Fvisual language across the product (consistent stroke width, corner radius)\n- No emoji icons — use SVG (Heroicons, Lucide, etc.)\n- Each screen has one primary CTA; secondary actions are visually subordinate\n- Use semantic color tokens (`primary`, `error`, `surface`) — not raw hex in components\n- Consistent elevation\u002Fshadow scale for cards, sheets, modals\n- Design light and dark variants together\n\n### 5. Layout & Responsive (HIGH)\n\n- Mobile-first; `\u003Cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1\">`\n- No horizontal scroll on mobile\n- Body text minimum 16px on mobile (avoids iOS auto-zoom)\n- Line length: 35–60 chars on mobile, 60–75 on desktop\n- Use `min-h-dvh` instead of `100vh` on mobile\n- Mobile-facing output ships `Skill(mobile-native)`'s Baseline: tap-highlight off, hover gated behind `(hover: hover) and (pointer: fine)`, 16px inputs, `touch-action: manipulation`, `viewport-fit=cover` + safe-area insets, `theme-color` per scheme — verify on a real phone, not device emulation\n- 4pt\u002F8dp spacing system\n- Consistent `max-w` on desktop (`max-w-6xl` \u002F `max-w-7xl`)\n- Fixed navbars\u002Fbottom bars must reserve padding for underlying content\n\n### 6. Typography & Color (MEDIUM)\n\n- Line height 1.5–1.75 for body text\n- Font weight hierarchy: Bold headings (600–700), Regular body (400), Medium labels (500)\n- Avoid text below 12px\n- `tabular-nums` on all dynamically updating numbers (prices, counters, timers)\n- `text-wrap: balance` on headings; `text-wrap: pretty` on paragraphs\u002Fcaptions\n- `-webkit-font-smoothing: antialiased` on macOS root layout\n\n### 7. Animation (MEDIUM)\n\nGate first, then ingredients (the full sequence and per-component recipes are `Skill(animate)`; the strict reviewer is `Skill(review-animations)` — run it before declaring motion work done):\n\n- **Frequency gate:** 100+\u002Fday or keyboard-initiated actions (⌘K, shortcuts) get **no** animation; tens\u002Fday near-imperceptible; occasional (modal\u002Fdrawer\u002Ftoast) standard; rare\u002Ffirst-time is the only delight budget\n- **Name the purpose** — feedback, spatial consistency, state indication, preventing a jarring change, explanation — or don't animate\n- Duration: press 100–160ms · tooltip 125–200 · dropdown 150–250 · modal\u002Fdrawer 200–500; **UI stays under 300ms** unless there's a stated reason\n- `ease-out` for entering (strong custom curve — the project's `--ease-out` token, else `cubic-bezier(0.23, 1, 0.32, 1)`); exits shorter (~75%) and may accelerate away via the project's `--ease-in` token; **never `ease-in` on an entrance or anything the user waits on**\n- Always interruptible — CSS transitions (retarget from current value) for anything triggerable twice a second; keyframes only for one-shot page-load sequences\n- Stagger list\u002Fgrid entrance 30–80ms per item, ≤ ~500ms total, never blocking interaction\n- Springs **only after a momentum gesture** (drag, flick, sheet release); default `bounce: 0`; no overshoot on a menu that just faded in\n- Never `scale(0)` entrances (`scale(0.95)` + opacity), never `transform-origin: center` on a trigger-anchored popover (modals exempt), never Motion's `x`\u002F`y` shorthands on motion that runs during load (full `transform` string)\n- Every animation must express meaning — not just decoration; when unsure, delete it\n\n### 8. Forms & Feedback (MEDIUM)\n\n- Visible label per input (not placeholder-only)\n- Error message below the related field; include cause + how to fix\n- Loading → success\u002Ferror state on submit\n- Mark required fields\n- Validate on blur, not on every keystroke\n- Semantic input types (`email`, `tel`, `number`) for correct mobile keyboard\n- Confirm before destructive actions\n- Auto-dismiss toasts in 3–5s; use `aria-live=\"polite\"` so screen readers catch them\n\n### 9. Navigation (HIGH)\n\n- Bottom nav: max 5 items with icon + label; top-level only\n- Back navigation must be predictable; preserve scroll and state\n- Current location highlighted in navigation\n- Modals must have a clear close affordance; don't use modals for primary navigation flows\n- Support system gesture navigation (iOS swipe-back, Android predictive back)\n- After page transition, move focus to main content region\n\n### 10. Charts & Data (when applicable)\n\n- Match chart type to data (trend → line, comparison → bar, proportion → pie\u002Fdonut ≤5 categories)\n- Always show a legend; provide tooltips on hover\u002Ftap with exact values\n- Accessible color palettes — don't rely on red\u002Fgreen alone\n- Provide a table or `aria-label` summary for screen readers\n- Show skeleton\u002Fshimmer while chart data loads\n- Respect `prefers-reduced-motion` for chart entrance animations\n\n---\n\n## Phase 2: Micro-Polish\n\nThese details compound into a \"just feels right\" experience.\n\n### Concentric Border Radius\n\n`outerRadius = innerRadius + padding`\n\n```css\n\u002F* Good *\u002F\n.card { border-radius: 20px; padding: 8px; }\n.card-inner { border-radius: 12px; }  \u002F* 20 - 8 = 12 ✓ *\u002F\n\n\u002F* Bad — same radius on both *\u002F\n.card { border-radius: 12px; padding: 8px; }\n.card-inner { border-radius: 12px; }\n```\n\nTailwind: `rounded-2xl p-2` outer → `rounded-lg` inner.\n\n### Optical Alignment\n\n- **Buttons with icon**: `icon-side-padding = text-side-padding - 2px`\n- **Play triangles**: shift SVG 2px right (`margin-left: 2px`)\n- **Asymmetric icons** (stars, arrows): fix directly in the SVG viewBox\n\n### Shadows Over Borders\n\nReplace depth\u002Felevation borders with layered `box-shadow`:\n\n```css\n\u002F* Light mode *\u002F\n--shadow-border:\n  0px 0px 0px 1px rgba(0,0,0,0.06),\n  0px 1px 2px -1px rgba(0,0,0,0.06),\n  0px 2px 4px 0px rgba(0,0,0,0.04);\n\n\u002F* Dark mode *\u002F\n--shadow-border: 0 0 0 1px rgba(255,255,255,0.08);\n```\n\nDon't apply to dividers or layout separators — those stay as borders.\n\n### Image Outlines\n\n```css\n\u002F* Light mode — MUST be pure black, not slate\u002Fzinc\u002Fetc. *\u002F\nimg { outline: 1px solid rgba(0,0,0,0.1); outline-offset: -1px; }\n\n\u002F* Dark mode — MUST be pure white *\u002F\nimg { outline: 1px solid rgba(255,255,255,0.1); outline-offset: -1px; }\n```\n\nTailwind: `outline outline-1 -outline-offset-1 outline-black\u002F10 dark:outline-white\u002F10`\n\nNever use a tinted neutral — it reads as dirt on the image edge.\n\n### Font Smoothing\n\n```css\nhtml { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }\n```\n\nTailwind: `\u003Chtml className=\"antialiased\">` on root layout. macOS only; safe to apply globally.\n\n### Tabular Numbers\n\n```css\n.counter, .price, .timer { font-variant-numeric: tabular-nums; }\n```\n\nApply to: counters, prices, timers, scoreboards, table columns. Not needed on static display numbers.\n\n### Text Wrap\n\n```css\nh1, h2, h3 { text-wrap: balance; }   \u002F* Tailwind: text-balance *\u002F\np, li, figcaption { text-wrap: pretty; }  \u002F* Tailwind: text-pretty *\u002F\n\u002F* Leave long text (10+ lines) default *\u002F\n```\n\n### Interruptible Animations\n\n- CSS `transition` for interactive state changes (hover, toggle, open\u002Fclose) — interruptible by design\n- CSS `@keyframes` only for one-shot sequences (page enter, loading)\n\n### Staggered Enter \u002F Subtle Exit\n\n- Split content into semantic chunks (title, description, buttons) and stagger 30–80ms apart (≤ ~500ms total)\n- Combine `opacity`, `translateY(12px)`, `blur(4px)` for enter\n- Exit: `translateY(-12px)`, shorter duration (~150ms vs ~300ms enter)\n- `AnimatePresence initial={false}` to skip enter animations on first render (for default-state elements)\n\n### Contextual Icon Animations\n\nWhen icons swap on state change:\n- `scale: 0.25 → 1`, `opacity: 0 → 1`, `filter: blur(4px) → blur(0px)` — use exactly these values\n- With Framer Motion: `transition: { type: \"spring\", duration: 0.3, bounce: 0 }` — bounce always `0`\n- Without motion library: keep both icons in DOM, cross-fade with CSS, use `cubic-bezier(0.2, 0, 0, 1)`\n- Check `package.json` for `motion`\u002F`framer-motion` before choosing approach\n\n### Scale on Press\n\n```css\n.button:active { scale: 0.96; }\n\u002F* Never below 0.95 — it feels exaggerated *\u002F\n```\n\nAdd a `static` prop pattern to disable when motion is distracting (form submits, etc.).\n\n### Never `transition: all`\n\n```css\n\u002F* Bad *\u002F\n.button { transition: all 150ms ease-out; }\n\n\u002F* Good *\u002F\n.button { transition-property: scale, background-color; transition-duration: 150ms; }\n```\n\nTailwind `transition` shorthand = `transition: all` — use `transition-[scale,opacity]` bracket syntax instead.\n\n### `will-change` — Sparingly\n\nOnly for `transform`, `opacity`, `filter`. Never `will-change: all`. Add only when you notice first-frame stutter. Each layer costs memory.\n\n---\n\n## Phase 3: Code Simplification\n\nAfter writing UI code, review for clarity and consistency. The goal is readable, explicit code — not the fewest lines.\n\n### Rules\n\n1. **Preserve functionality** — never change what code does, only how\n2. **Reduce nesting** — flatten conditionals and component hierarchies where possible\n3. **Eliminate redundancy** — remove duplicated logic, consolidate related state\n4. **Clear naming** — rename variables and functions so comments become unnecessary\n5. **No nested ternaries** — use `if\u002Felse` or `switch` for multiple conditions\n6. **Explicit over clever** — `if (isLoading) return \u003CSpinner \u002F>` beats a dense inline expression\n7. **Scope only recent changes** — only touch code modified in this session unless asked\n\n### Common Simplifications in UI Code\n\n| Pattern | Fix |\n|---------|-----|\n| Nested ternary in JSX | Extract to variable or early return |\n| Inline styles that repeat | Extract to CSS class or Tailwind utility |\n| `className` string concatenation | Use `cn()` \u002F `clsx()` |\n| Handler that only calls another function | Remove wrapper, pass directly |\n| Boolean prop `isVisible={true}` | Use shorthand `isVisible` |\n| State that mirrors props | Derive from props instead |\n| `useEffect` with no dependencies | Move logic outside component |\n| Component with 10+ props | Extract sub-components or use composition |\n\n---\n\n## Review Output Format\n\nPresent all changes as a **Before\u002FAfter table**, grouped by principle:\n\n```markdown\n#### Concentric border radius\n| Before | After |\n| --- | --- |\n| `rounded-xl` on card + `rounded-xl` on inner | `rounded-2xl` on card, `rounded-lg` on inner |\n\n#### Tabular numbers\n| Before | After |\n| --- | --- |\n| `\u003Cspan>{count}\u003C\u002Fspan>` | `\u003Cspan className=\"tabular-nums\">{count}\u003C\u002Fspan>` |\n```\n\nInclude every change. Omit tables for principles where nothing needed to change.\n\n---\n\n## Quick Checklist\n\n**Phase 1 — Design**\n- [ ] Contrast ≥ 4.5:1 on all text\n- [ ] All interactive elements keyboard-accessible\n- [ ] Touch targets ≥ 44×44px\n- [ ] No horizontal scroll on mobile\n- [ ] One primary CTA per screen\n- [ ] Form errors below the relevant field\n\n**Phase 2 — Polish**\n- [ ] Nested rounded elements use concentric border radius\n- [ ] Icons optically centered\n- [ ] Shadows instead of borders for depth\u002Felevation\n- [ ] `text-wrap: balance` on headings, `pretty` on paragraphs\n- [ ] `-webkit-font-smoothing: antialiased` on root\n- [ ] Tabular numbers on dynamic values\n- [ ] Image outlines with pure black\u002Fwhite (no tinted neutrals)\n- [ ] Buttons scale to `0.96` on press\n- [ ] `AnimatePresence initial={false}` on default-state elements\n- [ ] No `transition: all`\n- [ ] `will-change` only on transform\u002Fopacity\u002Ffilter\n\n**Phase 3 — Simplify**\n- [ ] No nested ternaries in JSX\n- [ ] `cn()` for className logic\n- [ ] No wrapper handlers that just call through\n- [ ] State doesn't mirror props\n- [ ] Components have clear, single responsibilities\n","# UI Improver\n\nA complete UI improvement workflow that runs three phases in order:\n\n1. **Design Decisions** — structural design choices: accessibility, layout, typography systems, color, navigation, forms, animation principles\n2. **Micro-Polish** — details that compound into a great experience: border radius, shadows, typography rendering, animations, image outlines, hit areas\n3. **Code Simplification** — clean up the implementation after writing: clarity, consistency, no unnecessary complexity\n\nRun all three phases on any UI work. Skip phases that clearly don't apply (e.g., skip Phase 1 for a one-line change).\n\n---\n\n## Phase 1: Design Decisions\n\nFollow this priority order — fix CRITICAL issues before MEDIUM ones.\n\n### 1. Accessibility (CRITICAL)\n\n- Minimum 4.5:1 contrast ratio for normal text, 3:1 for large text\n- Visible focus rings on all interactive elements (2–4px)\n- Descriptive `alt` text on meaningful images; empty `alt=\"\"` on decorative ones\n- `aria-label` on icon-only buttons\n- Tab order matches visual order; full keyboard support\n- Use `\u003Clabel for>` on all form inputs — never placeholder-only labels\n- `role=\"alert\"` or `aria-live=\"polite\"` for dynamic error messages\n- `prefers-reduced-motion` — reduce or disable animations when requested\n- Don't convey information by color alone; add icon or text\n- Skip links (\"Skip to main content\") for keyboard users\n- Sequential heading hierarchy (h1→h6, no level skip)\n\n### 2. Touch & Interaction (CRITICAL)\n\n- Min tap target: 44×44pt (Apple) \u002F 48×48dp (Material); extend with pseudo-element if visual is smaller\n- 8px minimum gap between touch targets\n- Use `touch-action: manipulation` to remove 300ms tap delay on web\n- Disable buttons during async operations; show spinner\n- Visual feedback within 100ms of tap\n- Don't rely on hover-only interactions; always provide tap\u002Fclick equivalent\n- Keep primary touch targets away from notch, Dynamic Island, gesture bar, screen edges\n\n### 3. Performance (HIGH)\n\n- Use WebP\u002FAVIF images with `srcset`\u002F`sizes`\n- Declare `width`\u002F`height` or `aspect-ratio` on images to prevent CLS\n- `font-display: swap` to avoid invisible text (FOIT)\n- Lazy load below-fold images (`loading=\"lazy\"`)\n- Use skeleton\u002Fshimmer instead of spinners for loads > 1s\n- Virtualize lists with 50+ items\n- Only animate `transform`\u002F`opacity`\u002F`filter` — never `width`, `height`, `top`, `left`\n- Debounce\u002Fthrottle scroll, resize, input events\n\n### 4. Style & Consistency (HIGH)\n\n- Match style to product type — don't mix flat and skeuomorphic randomly\n- One icon set\u002Fvisual language across the product (consistent stroke width, corner radius)\n- No emoji icons — use SVG (Heroicons, Lucide, etc.)\n- Each screen has one primary CTA; secondary actions are visually subordinate\n- Use semantic color tokens (`primary`, `error`, `surface`) — not raw hex in components\n- Consistent elevation\u002Fshadow scale for cards, sheets, modals\n- Design light and dark variants together\n\n### 5. Layout & Responsive (HIGH)\n\n- Mobile-first; `\u003Cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1\">`\n- No horizontal scroll on mobile\n- Body text minimum 16px on mobile (avoids iOS auto-zoom)\n- Line length: 35–60 chars on mobile, 60–75 on desktop\n- Use `min-h-dvh` instead of `100vh` on mobile\n- Mobile-facing output ships `Skill(mobile-native)`'s Baseline: tap-highlight off, hover gated behind `(hover: hover) and (pointer: fine)`, 16px inputs, `touch-action: manipulation`, `viewport-fit=cover` + safe-area insets, `theme-color` per scheme — verify on a real phone, not device emulation\n- 4pt\u002F8dp spacing system\n- Consistent `max-w` on desktop (`max-w-6xl` \u002F `max-w-7xl`)\n- Fixed navbars\u002Fbottom bars must reserve padding for underlying content\n\n### 6. Typography & Color (MEDIUM)\n\n- Line height 1.5–1.75 for body text\n- Font weight hierarchy: Bold headings (600–700), Regular body (400), Medium labels (500)\n- Avoid text below 12px\n- `tabular-nums` on all dynamically updating numbers (prices, counters, timers)\n- `text-wrap: balance` on headings; `text-wrap: pretty` on paragraphs\u002Fcaptions\n- `-webkit-font-smoothing: antialiased` on macOS root layout\n\n### 7. Animation (MEDIUM)\n\nGate first, then ingredients (the full sequence and per-component recipes are `Skill(animate)`; the strict reviewer is `Skill(review-animations)` — run it before declaring motion work done):\n\n- **Frequency gate:** 100+\u002Fday or keyboard-initiated actions (⌘K, shortcuts) get **no** animation; tens\u002Fday near-imperceptible; occasional (modal\u002Fdrawer\u002Ftoast) standard; rare\u002Ffirst-time is the only delight budget\n- **Name the purpose** — feedback, spatial consistency, state indication, preventing a jarring change, explanation — or don't animate\n- Duration: press 100–160ms · tooltip 125–200 · dropdown 150–250 · modal\u002Fdrawer 200–500; **UI stays under 300ms** unless there's a stated reason\n- `ease-out` for entering (strong custom curve — the project's `--ease-out` token, else `cubic-bezier(0.23, 1, 0.32, 1)`); exits shorter (~75%) and may accelerate away via the project's `--ease-in` token; **never `ease-in` on an entrance or anything the user waits on**\n- Always interruptible — CSS transitions (retarget from current value) for anything triggerable twice a second; keyframes only for one-shot page-load sequences\n- Stagger list\u002Fgrid entrance 30–80ms per item, ≤ ~500ms total, never blocking interaction\n- Springs **only after a momentum gesture** (drag, flick, sheet release); default `bounce: 0`; no overshoot on a menu that just faded in\n- Never `scale(0)` entrances (`scale(0.95)` + opacity), never `transform-origin: center` on a trigger-anchored popover (modals exempt), never Motion's `x`\u002F`y` shorthands on motion that runs during load (full `transform` string)\n- Every animation must express meaning — not just decoration; when unsure, delete it\n\n### 8. Forms & Feedback (MEDIUM)\n\n- Visible label per input (not placeholder-only)\n- Error message below the related field; include cause + how to fix\n- Loading → success\u002Ferror state on submit\n- Mark required fields\n- Validate on blur, not on every keystroke\n- Semantic input types (`email`, `tel`, `number`) for correct mobile keyboard\n- Confirm before destructive actions\n- Auto-dismiss toasts in 3–5s; use `aria-live=\"polite\"` so screen readers catch them\n\n### 9. Navigation (HIGH)\n\n- Bottom nav: max 5 items with icon + label; top-level only\n- Back navigation must be predictable; preserve scroll and state\n- Current location highlighted in navigation\n- Modals must have a clear close affordance; don't use modals for primary navigation flows\n- Support system gesture navigation (iOS swipe-back, Android predictive back)\n- After page transition, move focus to main content region\n\n### 10. Charts & Data (when applicable)\n\n- Match chart type to data (trend → line, comparison → bar, proportion → pie\u002Fdonut ≤5 categories)\n- Always show a legend; provide tooltips on hover\u002Ftap with exact values\n- Accessible color palettes — don't rely on red\u002Fgreen alone\n- Provide a table or `aria-label` summary for screen readers\n- Show skeleton\u002Fshimmer while chart data loads\n- Respect `prefers-reduced-motion` for chart entrance animations\n\n---\n\n## Phase 2: Micro-Polish\n\nThese details compound into a \"just feels right\" experience.\n\n### Concentric Border Radius\n\n`outerRadius = innerRadius + padding`\n\n```css\n\u002F* Good *\u002F\n.card { border-radius: 20px; padding: 8px; }\n.card-inner { border-radius: 12px; }  \u002F* 20 - 8 = 12 ✓ *\u002F\n\n\u002F* Bad — same radius on both *\u002F\n.card { border-radius: 12px; padding: 8px; }\n.card-inner { border-radius: 12px; }\n```\n\nTailwind: `rounded-2xl p-2` outer → `rounded-lg` inner.\n\n### Optical Alignment\n\n- **Buttons with icon**: `icon-side-padding = text-side-padding - 2px`\n- **Play triangles**: shift SVG 2px right (`margin-left: 2px`)\n- **Asymmetric icons** (stars, arrows): fix directly in the SVG viewBox\n\n### Shadows Over Borders\n\nReplace depth\u002Felevation borders with layered `box-shadow`:\n\n```css\n\u002F* Light mode *\u002F\n--shadow-border:\n  0px 0px 0px 1px rgba(0,0,0,0.06),\n  0px 1px 2px -1px rgba(0,0,0,0.06),\n  0px 2px 4px 0px rgba(0,0,0,0.04);\n\n\u002F* Dark mode *\u002F\n--shadow-border: 0 0 0 1px rgba(255,255,255,0.08);\n```\n\nDon't apply to dividers or layout separators — those stay as borders.\n\n### Image Outlines\n\n```css\n\u002F* Light mode — MUST be pure black, not slate\u002Fzinc\u002Fetc. *\u002F\nimg { outline: 1px solid rgba(0,0,0,0.1); outline-offset: -1px; }\n\n\u002F* Dark mode — MUST be pure white *\u002F\nimg { outline: 1px solid rgba(255,255,255,0.1); outline-offset: -1px; }\n```\n\nTailwind: `outline outline-1 -outline-offset-1 outline-black\u002F10 dark:outline-white\u002F10`\n\nNever use a tinted neutral — it reads as dirt on the image edge.\n\n### Font Smoothing\n\n```css\nhtml { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }\n```\n\nTailwind: `\u003Chtml className=\"antialiased\">` on root layout. macOS only; safe to apply globally.\n\n### Tabular Numbers\n\n```css\n.counter, .price, .timer { font-variant-numeric: tabular-nums; }\n```\n\nApply to: counters, prices, timers, scoreboards, table columns. Not needed on static display numbers.\n\n### Text Wrap\n\n```css\nh1, h2, h3 { text-wrap: balance; }   \u002F* Tailwind: text-balance *\u002F\np, li, figcaption { text-wrap: pretty; }  \u002F* Tailwind: text-pretty *\u002F\n\u002F* Leave long text (10+ lines) default *\u002F\n```\n\n### Interruptible Animations\n\n- CSS `transition` for interactive state changes (hover, toggle, open\u002Fclose) — interruptible by design\n- CSS `@keyframes` only for one-shot sequences (page enter, loading)\n\n### Staggered Enter \u002F Subtle Exit\n\n- Split content into semantic chunks (title, description, buttons) and stagger 30–80ms apart (≤ ~500ms total)\n- Combine `opacity`, `translateY(12px)`, `blur(4px)` for enter\n- Exit: `translateY(-12px)`, shorter duration (~150ms vs ~300ms enter)\n- `AnimatePresence initial={false}` to skip enter animations on first render (for default-state elements)\n\n### Contextual Icon Animations\n\nWhen icons swap on state change:\n- `scale: 0.25 → 1`, `opacity: 0 → 1`, `filter: blur(4px) → blur(0px)` — use exactly these values\n- With Framer Motion: `transition: { type: \"spring\", duration: 0.3, bounce: 0 }` — bounce always `0`\n- Without motion library: keep both icons in DOM, cross-fade with CSS, use `cubic-bezier(0.2, 0, 0, 1)`\n- Check `package.json` for `motion`\u002F`framer-motion` before choosing approach\n\n### Scale on Press\n\n```css\n.button:active { scale: 0.96; }\n\u002F* Never below 0.95 — it feels exaggerated *\u002F\n```\n\nAdd a `static` prop pattern to disable when motion is distracting (form submits, etc.).\n\n### Never `transition: all`\n\n```css\n\u002F* Bad *\u002F\n.button { transition: all 150ms ease-out; }\n\n\u002F* Good *\u002F\n.button { transition-property: scale, background-color; transition-duration: 150ms; }\n```\n\nTailwind `transition` shorthand = `transition: all` — use `transition-[scale,opacity]` bracket syntax instead.\n\n### `will-change` — Sparingly\n\nOnly for `transform`, `opacity`, `filter`. Never `will-change: all`. Add only when you notice first-frame stutter. Each layer costs memory.\n\n---\n\n## Phase 3: Code Simplification\n\nAfter writing UI code, review for clarity and consistency. The goal is readable, explicit code — not the fewest lines.\n\n### Rules\n\n1. **Preserve functionality** — never change what code does, only how\n2. **Reduce nesting** — flatten conditionals and component hierarchies where possible\n3. **Eliminate redundancy** — remove duplicated logic, consolidate related state\n4. **Clear naming** — rename variables and functions so comments become unnecessary\n5. **No nested ternaries** — use `if\u002Felse` or `switch` for multiple conditions\n6. **Explicit over clever** — `if (isLoading) return \u003CSpinner \u002F>` beats a dense inline expression\n7. **Scope only recent changes** — only touch code modified in this session unless asked\n\n### Common Simplifications in UI Code\n\n| Pattern | Fix |\n|---------|-----|\n| Nested ternary in JSX | Extract to variable or early return |\n| Inline styles that repeat | Extract to CSS class or Tailwind utility |\n| `className` string concatenation | Use `cn()` \u002F `clsx()` |\n| Handler that only calls another function | Remove wrapper, pass directly |\n| Boolean prop `isVisible={true}` | Use shorthand `isVisible` |\n| State that mirrors props | Derive from props instead |\n| `useEffect` with no dependencies | Move logic outside component |\n| Component with 10+ props | Extract sub-components or use composition |\n\n---\n\n## Review Output Format\n\nPresent all changes as a **Before\u002FAfter table**, grouped by principle:\n\n```markdown\n#### Concentric border radius\n| Before | After |\n| --- | --- |\n| `rounded-xl` on card + `rounded-xl` on inner | `rounded-2xl` on card, `rounded-lg` on inner |\n\n#### Tabular numbers\n| Before | After |\n| --- | --- |\n| `\u003Cspan>{count}\u003C\u002Fspan>` | `\u003Cspan className=\"tabular-nums\">{count}\u003C\u002Fspan>` |\n```\n\nInclude every change. Omit tables for principles where nothing needed to change.\n\n---\n\n## Quick Checklist\n\n**Phase 1 — Design**\n- [ ] Contrast ≥ 4.5:1 on all text\n- [ ] All interactive elements keyboard-accessible\n- [ ] Touch targets ≥ 44×44px\n- [ ] No horizontal scroll on mobile\n- [ ] One primary CTA per screen\n- [ ] Form errors below the relevant field\n\n**Phase 2 — Polish**\n- [ ] Nested rounded elements use concentric border radius\n- [ ] Icons optically centered\n- [ ] Shadows instead of borders for depth\u002Felevation\n- [ ] `text-wrap: balance` on headings, `pretty` on paragraphs\n- [ ] `-webkit-font-smoothing: antialiased` on root\n- [ ] Tabular numbers on dynamic values\n- [ ] Image outlines with pure black\u002Fwhite (no tinted neutrals)\n- [ ] Buttons scale to `0.96` on press\n- [ ] `AnimatePresence initial={false}` on default-state elements\n- [ ] No `transition: all`\n- [ ] `will-change` only on transform\u002Fopacity\u002Ffilter\n\n**Phase 3 — Simplify**\n- [ ] No nested ternaries in JSX\n- [ ] `cn()` for className logic\n- [ ] No wrapper handlers that just call through\n- [ ] State doesn't mirror props\n- [ ] Components have clear, single responsibilities\n",{},"main","e7b39d448c7d905feed2b044d3ccdf60822596ab","skills\u002Fui-improver",0,"https:\u002F\u002Fgithub.com\u002Fbarkleesanders\u002Fclaude-code-starter","https:\u002F\u002Fgithub.com\u002Fbarkleesanders","barkleesanders.com","Stay Hungry, Stay Foolish","2026-11-06 08:47:06",{"source":7,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add barkleesanders\u002Fclaude-code-starter --skill ui-improver",{"tool":38,"command":39},"bunx","bunx skills add barkleesanders\u002Fclaude-code-starter --skill ui-improver",{"tool":41,"command":42},"pnpm","pnpm dlx skills add barkleesanders\u002Fclaude-code-starter --skill ui-improver","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fbarkleesanders\u002Fclaude-code-starter\u002Fblob\u002Fmain\u002Fskills\u002Fui-improver\u002FSKILL.md",true,[],[47,53,60,67,74,81],{"skillNo":48,"name":49,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":18},"01M7AWV75B37B6YKG7ZKGZ783F","zi-search","https:\u002F\u002Fgithub.com\u002Fbarkleesanders\u002Fclaude-code-starter\u002Fblob\u002Fmain\u002Fskills\u002Fzi-search\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":18},"01M7AWTZA3JGK1T7V1HS543FG7","visualise","Render inline interactive visuals — SVG diagrams, HTML widgets, charts, and explainers — directly in the conversation. Use this skill whenever the user asks to visualize, diagram, chart, illustrate, or explain something visually, or when an explanation would genuinely benefit from a spatial\u002Finteractive diagram rather than text. Also triggers for: flowcharts, architecture diagrams, data visualizations, interactive explainers, comparison layouts, UI mockups, and any request containing 'show me', 'draw', 'map out', 'visualize', or 'diagram'. Even when the user doesn't explicitly ask for a visual, use this skill proactively when the topic has spatial, sequential, or systemic relationships that a diagram would clarify better than prose.","https:\u002F\u002Fgithub.com\u002Fbarkleesanders\u002Fclaude-code-starter\u002Fblob\u002Fmain\u002Fskills\u002Fvisualise\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"01M7AWTR056C3P9R3VS8YVM2WX","video","When the user wants to create, generate, or produce video content using AI tools or programmatic frameworks. Also use when the user mentions 'video production,' 'AI video,' 'Remotion,' 'Hyperframes,' 'HeyGen,' 'Synthesia,' 'Veo,' 'Runway,' 'Kling,' 'Pika,' 'video generation,' 'AI avatar,' 'talking head video,' 'programmatic video,' 'video template,' 'explainer video,' 'product demo video,' 'video pipeline,' or 'make me a video.' Use this for video creation, generation, and production workflows. For video content strategy and what to post, see social-content. For paid video ad creative, see ad-creative.","https:\u002F\u002Fgithub.com\u002Fbarkleesanders\u002Fclaude-code-starter\u002Fblob\u002Fmain\u002Fskills\u002Fvideo\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M7AWTHTWBMTYZPMHHEYX3TTG","manim-video","Production pipeline for mathematical and technical animations using Manim Community Edition. Creates 3Blue1Brown-style explainer videos, algorithm visualizations, equation derivations, architecture diagrams, and data stories. Use when users request: animated explanations, math animations, concept visualizations, algorithm walkthroughs, technical explainers, 3Blue1Brown style videos, or any programmatic animation with geometric\u002Fmathematical content.","https:\u002F\u002Fgithub.com\u002Fbarkleesanders\u002Fclaude-code-starter\u002Fblob\u002Fmain\u002Fskills\u002Fvideo-use\u002Fskills\u002Fmanim-video\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M7AWTCXDJ9NWFQW51ENM8A2Z","video-use","Edit any video by conversation. Transcribe, cut, color grade, generate overlay animations, burn subtitles — for talking heads, montages, tutorials, travel, interviews. No presets, no menus. Ask questions, confirm the plan, execute, iterate, persist. Production-correctness rules are hard; everything else is artistic freedom.","https:\u002F\u002Fgithub.com\u002Fbarkleesanders\u002Fclaude-code-starter\u002Fblob\u002Fmain\u002Fskills\u002Fvideo-use\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M7AWT85JWDAJHWW1EVKJSRNP","token-usage","Analyze Claude Code token usage across all projects and sessions","https:\u002F\u002Fgithub.com\u002Fbarkleesanders\u002Fclaude-code-starter\u002Fblob\u002Fmain\u002Fskills\u002Ftoken-usage\u002FSKILL.md",[],[]]