Back to skills
SKILL.md
Visual Tips
ASecurityImplement or review UI details without trusting numeric equality as visual equality. Use when implementing or auditing interface components and interactions — buttons, pills, navigation and sidebar states, tabs, scrollable lists, hover cards, tooltips, menus, popovers, modals, forms, typography and font metrics, CJK mixed text, icon alignment, spacing and density, colors and themes, layout animation, drag and drop, loading and empty states, destructive actions, notifications — and route to th...
- 92 stars
- 0 votes
- 0 copies
- 0 views
- Added December 4, 2026
Works with
Security analysis
100/100Pro scans all 20 files and shows the line behind each finding
npx -y skills add wibus-wee/cradle-app --skill visual-tips --agent claude-codeAre you the author of Visual Tips?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/wibus-wee-visual-tips)---
name: tips
description: Implement or review UI details without trusting numeric equality as visual equality. Use when implementing or auditing interface components and interactions — buttons, pills, navigation and sidebar states, tabs, scrollable lists, hover cards, tooltips, menus, popovers, modals, forms, typography and font metrics, CJK mixed text, icon alignment, spacing and density, colors and themes, layout animation, drag and drop, loading and empty states, destructive actions, notifications — and route to the matching tip file, which pairs design-perception rules with concrete verification requirements.
---
# UI Implementation Tips
A collection of focused implementation prompts for the visual and interaction
details that decide whether a UI feels correct. Each tip is a self-contained
prompt file: it states the scene you are in, the anti-pattern to reject, the
rules that govern the technique, and the verification matrix the result must
pass.
## How to use this skill
1. Identify which tip matches the work you are about to do — implementing or
reviewing. The index below lists every tip with the scene it applies to.
2. Read the full tip file before writing or changing code. The index table
is a routing index, not a substitute for the rules inside the file.
3. Apply the tip's verification matrix as part of your definition of done.
A tip is not applied unless its verification requirements were checked.
4. When several tips apply, read all of them. They are designed to compose:
for example, pill button spacing depends on typography metrics and optical
density, and a hover menu's geometry depends on shape continuity.
5. Do not treat numeric token equality as the goal. Across these tips the
recurring rule is that visual equality is what matters, and it usually
requires compensating font metrics, shape geometry, and context.
## Tips index
| Technique | File | Applies when you are | Keywords |
| --- | --- | --- | --- |
| Active Navigation Item | [active-navigation-item.prompt.md](./active-navigation-item.prompt.md) | 实现侧边栏或导航列表的 active state | navigation active state, sidebar selection, indicator bar, current page highlight |
| AI Image Progressive Reveal | [ai-image-progressive-reveal.prompt.md](./ai-image-progressive-reveal.prompt.md) | 为 AI 生成图片实现加载与揭示(reveal)过程 | image generation loading, progressive reveal, spinner, loading noise, generation visualization |
| ASCII Dither Halftone | [ascii-dither-halftone.prompt.md](./ascii-dither-halftone.prompt.md) | 实现一个 ASCII 渲染或抖动(dither)效果:把图像、视频或界面元素转成字符网格或网点纹理 | ascii art, dithering, halftone, character grid, retro rendering, shader texture |
| Book Card Physical Metaphor | [book-card-physical-metaphor.prompt.md](./book-card-physical-metaphor.prompt.md) | 实现一个"书本卡片"(book card)效果:卡片在 hover 或激活时像一本实体书被拿起、倾斜、翻开,书脊、书页侧面、封面光泽随之显现 | book card, 3d hover, spine, page edges, cover gloss, physical metaphor, transform perspective |
| Cascade Menu Geometry | [cascade-menu-geometry.prompt.md](./cascade-menu-geometry.prompt.md) | 实现级联菜单(cascade menu / nested submenu):指针悬停在父菜单项上,子菜单从侧边展开,用户斜向移动指针进入子菜单 | cascade menu, submenu, nested menu, safe triangle, pointer path, menu geometry |
| Choice Control Semantics | [choice-control-semantics.prompt.md](./choice-control-semantics.prompt.md) | 为表单或设置界面选择选择类控件:radio、checkbox、switch、segmented control,或在审查既有界面的控件使用 | radio, checkbox, switch, segmented control, form control semantics, control selection |
| CJK Latin Typography | [cjk-latin-typography.prompt.md](./cjk-latin-typography.prompt.md) | 排版或审查中西文混排文本:CJK(中日韩)字符与拉丁字母、数字、标点共处的段落 | cjk typography, mixed script, latin chinese spacing, punctuation compression, line breaking |
| Color Scale Engineering | [color-scale-engineering.prompt.md](./color-scale-engineering.prompt.md) | 构建设计系统的色阶(color scale/ramp)、把品牌色接入界面 token、或用 oklch()/color-mix() 生成一族可计算的色阶 | color scale, oklch, hue shifting, color ramp, chroma, brand color, color tokens, color-mix |
| Concentric Border Radius | [concentric-border-radius.prompt.md](./concentric-border-radius.prompt.md) | 实现嵌套卡片、按钮、输入框、图片或选中态背景——任何内外形状平行嵌套、角部相互呼应的场景 | nested border radius, concentric corners, rounded corners, inset padding, corner alignment |
| Content Image Governance | [content-image-governance.prompt.md](./content-image-governance.prompt.md) | 处理界面中来源不可控的图像:用户上传头像/封面、图库配图、第三方内容缩略图 | duotone, image treatment, color grade, object-position, ugc images, scrim, image cropping |
| Continuous Corner Geometry | [continuous-corner-geometry.prompt.md](./continuous-corner-geometry.prompt.md) | 实现产品界面中的圆角系统:卡片、按钮、图标底板、嵌套容器——尤其是当设计目标指向"连续曲率"的高级感(Apple 风格的 squircle、平滑圆角) | squircle, continuous curvature, corner radius system, smooth corners, curvature continuity |
| Dark Mode System Engineering | [dark-mode-system-engineering.prompt.md](./dark-mode-system-engineering.prompt.md) | 为一个已有浅色主题的产品实现暗色模式,或审查一个"看起来差不多"的暗色主题 | dark mode, dark theme, surface brightness, halation, elevation dark, theme inversion |
| Data Table Density | [data-table-density.prompt.md](./data-table-density.prompt.md) | 设计或审查数据表格:后台列表、财务报表、监控面板——任何以行与列承载结构化数据的界面 | data table, tabular numbers, column alignment, truncation, table density, enterprise table, sorting |
| Delete Animation Neighbors | [delete-animation-neighbors.prompt.md](./delete-animation-neighbors.prompt.md) | 实现列表、网格或消息流中的删除动画 | delete animation, list removal, sibling reflow, exit animation, layout shift |
| Design Token Architecture | [design-token-architecture.prompt.md](./design-token-architecture.prompt.md) | 设计或整顿产品的 design token 体系:色彩、间距、字号、阴影、动效的命名与分层 | design tokens, semantic tokens, primitive tokens, token layers, theming, white label, token naming |
| Drag Direct Manipulation | [drag-direct-manipulation.prompt.md](./drag-direct-manipulation.prompt.md) | 实现拖拽交互:排序、拖放文件、拖动卡片、slider、可拖动的浮层 | drag and drop, direct manipulation, sortable list, slider drag, drag feedback |
| Easing Motion Tokens | [easing-motion-tokens.prompt.md](./easing-motion-tokens.prompt.md) | 为一个产品建立或整顿动效体系 | easing curves, motion tokens, animation duration, cubic bezier, design tokens for motion |
| Editing Discipline | [editing-discipline.prompt.md](./editing-discipline.prompt.md) | 审查 UI 文案、说明文字、错误信息和文档 | ui copywriting, microcopy, error messages, punctuation, capitalization, localization |
| Elevation Shadow System | [elevation-shadow-system.prompt.md](./elevation-shadow-system.prompt.md) | 实现产品界面中的阴影与 elevation 系统:卡片、弹层、下拉菜单、toast、floating action button 的投影 | elevation, box shadow, drop shadow, z-axis, light source, shadow tokens, neumorphism |
| Empty State Design | [empty-state-design.prompt.md](./empty-state-design.prompt.md) | 设计或审查一个空状态(empty state):列表无数据、搜索无结果、新用户首次进入、内容被清空 | empty state, zero data, no results, first run, blank slate, onboarding |
| Figure Ground | [figure-ground.prompt.md](./figure-ground.prompt.md) | 审查信息分组、卡片、浮层、分割线和背景层级 | figure ground, grouping, cards, elevation, dividers, background hierarchy, visual layering |
| Focus Management Keyboard | [focus-management-keyboard.prompt.md](./focus-management-keyboard.prompt.md) | 实现或审查界面中的焦点(focus)行为:浮层开关、列表删除、路由切换、动态内容插入时的焦点去向 | focus management, focus trap, keyboard navigation, roving tabindex, focus visible, inert, focus loss |
| Form Design Validation | [form-design-validation.prompt.md](./form-design-validation.prompt.md) | 设计或审查表单界面:注册、结账、设置、数据录入——任何"用户替系统干活"的场景 | form design, validation timing, error message, input tolerance, autocomplete, inputmode, form errors |
| Grain Noise Engineering | [grain-noise-engineering.prompt.md](./grain-noise-engineering.prompt.md) | 为界面添加噪点/grain 纹理:大面积渐变的抗色带处理、纯色表面的材质活化、或某种"胶片感"氛围 | grain, noise texture, banding, dithering, gradient banding, feturbulence, film grain |
| Hanging Punctuation | [hanging-punctuation.prompt.md](./hanging-punctuation.prompt.md) | 实现左对齐/右对齐文本、引用块、列表、表格或标题,并审查其边缘对齐质量 | hanging punctuation, quote alignment, list markers, text edge alignment, optical margin |
| HOLO Card Material | [holo-card-material.prompt.md](./holo-card-material.prompt.md) | 实现一张"全息闪卡"(holo card):卡面随指针移动呈现彩虹般的虹彩流动与镜面高光,语言来自实体收藏卡(宝可梦闪卡、球星卡)与游戏 UI | holo card, iridescent foil, rainbow gradient, pointer tracking, specular highlight, holographic |
| Hover Card Menu | [hover-card-menu.prompt.md](./hover-card-menu.prompt.md) | 实现 hover card、hover menu、tooltip 或 flyout:指针从 trigger 移向浮动的二维 panel | hover card, hover menu, tooltip, flyout, safe polygon, pointer intent, floating panel |
| Hover Intent Hysteresis | [hover-intent-hysteresis.prompt.md](./hover-intent-hysteresis.prompt.md) | 实现或审查 hover 触发的展开行为——tooltip、mega menu、悬停卡片、悬浮操作列 | hover intent, hover delay, hysteresis, tooltip timing, passing through vs dwelling |
| Icon Family Consistency | [icon-family-consistency.prompt.md](./icon-family-consistency.prompt.md) | 绘制、采购、审查或落地一整套图标(icon set/family) | icon set, keyline, stroke consistency, optical correction, icon grid, icon scaling, pixel alignment |
| Liquid Glass Material | [liquid-glass-material.prompt.md](./liquid-glass-material.prompt.md) | 实现或审查一个“液态玻璃”(liquid glass)材质效果——Apple 2025 年设计系统带火的半透明折射质感 | liquid glass, backdrop blur, refraction, dispersion, translucent material, glassmorphism |
| Loading State Mental Model | [loading-state-mental-model.prompt.md](./loading-state-mental-model.prompt.md) | 设计或实现一个加载状态:点击后等待服务端响应、页面/区块初次取数、提交表单、上传文件、生成内容 | loading state, spinner, skeleton, progress feedback, perceived performance, pending ui |
| Message Bubble Materiality | [message-bubble-materiality.prompt.md](./message-bubble-materiality.prompt.md) | 设计或实现聊天气泡(message bubble)及其动效:发送、接收、状态变化、进入列表 | chat bubble, message list, bubble animation, send receive states, messaging ui |
| Mobile Web Platform Details | [mobile-web-platform-details.prompt.md](./mobile-web-platform-details.prompt.md) | 实现或审查一个必须在移动浏览器(尤其是 iOS Safari / PWA)上正常工作的页面 | mobile safari, ios pwa, viewport height, safe area, scroll bounce, input zoom, 100vh |
| Nested Actions | [nested-actions.prompt.md](./nested-actions.prompt.md) | 实现一个整行/整卡可点击、同时内部还有 secondary action 的组件 | nested interactive elements, clickable card, secondary action, hit target, nested buttons |
| Object Continuity Transition | [object-continuity-transition.prompt.md](./object-continuity-transition.prompt.md) | 实现页面或视图之间的过渡:列表点进详情、缩略图放大成 lightbox、卡片展开成面板、路由切换 | view transition, shared element, hero animation, lightbox zoom, object permanence |
| Optical Density | [optical-density.prompt.md](./optical-density.prompt.md) | 审查组件密度:按钮、输入框、列表项、卡片内部的间距是否"看起来一致" | component density, spacing tokens, optical padding, visual spacing, half leading |
| Overlay Modality Choice | [overlay-modality-choice.prompt.md](./overlay-modality-choice.prompt.md) | 为一段内容或流程选择覆盖层形态:modal dialog、popover、sheet、drawer、或非模态面板,或在审查现有界面的覆盖层使用 | modal vs popover, drawer, sheet, dialog selection, interruption cost, modality |
| Pill Button | [pill-button.prompt.md](./pill-button.prompt.md) | 实现或审查一个"胶囊按钮"(pill button) | pill button, capsule button, icon button spacing, optical padding, border radius padding |
| Progressive Disclosure | [progressive-disclosure.prompt.md](./progressive-disclosure.prompt.md) | 设计复杂表单、设置页、开发工具或仪表盘 | progressive disclosure, collapsible sections, advanced options, settings form, accordion |
| Ring Card Depth Of Field | [ring-card-depth-of-field.prompt.md](./ring-card-depth-of-field.prompt.md) | 实现一个"环形卡片"(ring card)效果:多张卡片围绕一个虚拟圆环排布、可旋转切换,中央卡片清晰、两侧卡片退入景深,常伴随玻璃质感与色散边缘 | ring card, circular carousel, depth of field, 3d rotation, blur depth, card orbit |
| Scroll Driven Card Motion | [scroll-driven-card-motion.prompt.md](./scroll-driven-card-motion.prompt.md) | 实现滚动驱动的卡片动效:列表项随滚动进入/离开视口时位移、缩放或显现,卡片在滚动中与视口产生空间映射关系(sticky 堆叠、视差、进度联动) | scroll driven animation, parallax, sticky stacking, scroll progress, intersection observer |
| Scrollable UI | [scrollable-ui.prompt.md](./scrollable-ui.prompt.md) | 实现横向滚动 tabs 或 chip list | horizontal scroll, tabs overflow, chip list, edge fade, scroll buttons, scrollbar hiding |
| Shape Continuity | [shape-continuity.prompt.md](./shape-continuity.prompt.md) | 实现 tab 与 panel、popover 与 anchor、菜单与 trigger 相连的形状 | tab panel connection, popover anchor, seamless corners, merged outline, shape continuity |
| Shockwave Halo Compositing | [shockwave-halo-compositing.prompt.md](./shockwave-halo-compositing.prompt.md) | 实现一个"冲击波光晕"效果:从某个事件中心扩散出一圈环形波前,沿途扭曲背景、带出色散边缘,常见于点击反馈、音浪可视化、转场冲击 | shockwave ripple, halo effect, click feedback wave, refraction ring, chromatic edge |
| Sidebar Toggle Stability | [sidebar-toggle-stability.prompt.md](./sidebar-toggle-stability.prompt.md) | 实现可折叠 sidebar、app shell、动态 tabs 或面板宽度动画 | sidebar collapse, toggle button stability, layout shift, control position memory |
| Simultaneous Contrast | [simultaneous-contrast.prompt.md](./simultaneous-contrast.prompt.md) | 实现颜色系统、selected state、badge、chart 或 syntax highlight | color contrast, dark theme, selected state colors, alpha blending, simultaneous contrast |
| Skeuomorphic Button Layers | [skeuomorphic-button-layers.prompt.md](./skeuomorphic-button-layers.prompt.md) | 实现一个拟物(skeuomorphic)按钮:有真实材质感的立体制件——塑料、金属、橡胶或玻璃——按下时有明确的机械行程 | skeuomorphic button, layered material, pressed state, tactile button, cmf design |
| Slot Frame | [slot-frame.prompt.md](./slot-frame.prompt.md) | 实现一个包含图标/avatar/dot 和多行文字的提示框、按钮或列表项 | icon text alignment, list item layout, avatar alignment, first line centering, flexbox alignment |
| Spatial Constancy | [spatial-constancy.prompt.md](./spatial-constancy.prompt.md) | 实现布局动画、展开收起、删除插入、tab 切换或拖拽排序 | layout animation, expand collapse, spatial memory, reorder animation, reduced motion |
| State Copywriting System | [state-copywriting-system.prompt.md](./state-copywriting-system.prompt.md) | 撰写或审查界面的状态文案:错误信息、空状态、加载提示、成功确认、按钮标签 | error messages, ux writing, microcopy, voice and tone, button copy, state copy |
| Stop Hiding Close Buttons Behind Hover | [stop-hiding-close-buttons-behind-hover.prompt.md](./stop-hiding-close-buttons-behind-hover.prompt.md) | 实现 tab close、列表删除、卡片 dismiss 或其他 destructive action | close button visibility, destructive action, hover reveal, accidental click, tab close |
| Toast Notification Attention | [toast-notification-attention.prompt.md](./toast-notification-attention.prompt.md) | 为系统反馈选择通知形态:toast、banner、inline message、或系统级 notification,或在审查反馈系统的使用 | toast, notification, banner, inline message, feedback interruption, attention semantics |
| Typo Metric | [typo-metric.prompt.md](./typo-metric.prompt.md) | 处理文字与图标、按钮、输入框或卡片边缘的对齐 | font metrics, cap height, x height, half leading, text alignment, line box, glyph bounds |
| Visual Center | [visual-center.prompt.md](./visual-center.prompt.md) | 居中三角形播放键、箭头、图标、数字、圆形按钮或容器内容 | optical centering, play icon centering, triangle compensation, icon alignment, visual center |
| Visual Weight | [visual-weight.prompt.md](./visual-weight.prompt.md) | 平衡页面或组件构图 | visual weight, composition balance, optical balance, layout asymmetry, attention hierarchy |
| White Space As Structure | [white-space-as-structure.prompt.md](./white-space-as-structure.prompt.md) | 审查页面密度和层级 | whitespace, spacing scale, grouping by proximity, layout density, negative space |
| Wiki Information Architecture | [wiki-information-architecture.prompt.md](./wiki-information-architecture.prompt.md) | 设计或审查一个 wiki/知识库类站点的布局与导航系统 | information architecture, wiki navigation, wayfinding, breadcrumbs, docs layout, sidebar hierarchy |
## Adding a tip
1. Create `<slug>.prompt.md` in this directory, lowercase kebab-case.
2. Start the file with YAML frontmatter:
```yaml
---
title: Sidebar Toggle Stability
description: 你正在实现可折叠 sidebar 或其他布局切换控件
keywords: [sidebar collapse, toggle button, layout shift]
---
```
- `title`: display name for the index.
- `description`: the trigger scene in the established form
`你正在<场景>`. It routes users to the tip, so name the concrete
components or situations it governs.
- `keywords`: lowercase English retrieval keywords. They appear in the
index table's Keywords column, so write them for agent recall —
component names, techniques, symptoms — not as a summary of the tip.
The frontmatter description of SKILL.md is curated by hand; keywords
are not folded into it.
3. Write the body in the established shape: opening trigger statement, the
anti-pattern to reject, numbered rules, and a verification matrix. Include
implementation math or code when the technique has one correct geometric
model.
4. Regenerate this file: `node scripts/generate-skill.mjs`. Commit the tip
and the regenerated SKILL.md together. Do not edit the index or the
frontmatter description by hand.
Files in this skill
- SKILL.md
- active-navigation-item.prompt.md
- ai-image-progressive-reveal.prompt.md
- ascii-dither-halftone.prompt.md
- book-card-physical-metaphor.prompt.md
- cascade-menu-geometry.prompt.md
- choice-control-semantics.prompt.md
- cjk-latin-typography.prompt.md
- color-scale-engineering.prompt.md
- concentric-border-radius.prompt.md
- content-image-governance.prompt.md
- continuous-corner-geometry.prompt.md
- dark-mode-system-engineering.prompt.md
- data-table-density.prompt.md
- delete-animation-neighbors.prompt.md
- design-token-architecture.prompt.md
- drag-direct-manipulation.prompt.md
- easing-motion-tokens.prompt.md
- editing-discipline.prompt.md
- elevation-shadow-system.prompt.md
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.