跳到正文
cccskills
免费在 GitHub 公开

design-engineering

Apply interface craft when building or reviewing UI - motion, easing, timing, springs, component feel, and visual foundations. Use when building a component, animation, transition, hover or press state, modal, drawer, toast, or when polishing an interface so it feels right. Says "make this feel better", "add an animation", "polish the UI", "review this component".

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md4.6 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

design-engineering

In a world where most software works well enough, feel is the differentiator. Most of what makes an interface feel right is detail the user never consciously notices - the aggregate of small correct choices. Build for that aggregate.

Motion decision framework

Answer these in order before writing any animation.

1. Should it animate at all?

The deciding factor is frequency. The more often a user sees it, the less it should move.

How often the user sees itDecision
100+ times/day (shortcuts, command palette)No animation, ever
Tens of times/day (hover, list nav)Remove or drastically reduce
Occasional (modals, drawers, toasts)Standard animation
Rare or first-time (onboarding, celebration)Room for delight

Never animate a keyboard-initiated action. It repeats all day; animation makes it feel slow and disconnected from the keypress.

2. What is the purpose?

Every animation needs an answer to "why does this move?" Valid ones: spatial consistency (enters and exits the same edge), state change, feedback (a press that confirms the interface heard you), or preventing a jarring appear/disappear. "It looks cool" is not a purpose for anything the user sees often.

3. What easing?

  • Entering or exiting -> ease-out (fast start, feels responsive).
  • Moving or morphing on screen -> ease-in-out.
  • Hover or color change -> ease.
  • Constant motion (marquee, progress) -> linear.

Never use ease-in for UI. It delays the first moment of movement - exactly when the user is watching - so a 300ms ease-in dropdown feels slower than a 300ms ease-out one. The built-in curves are weak; use stronger custom ones:

--ease-out: cubic-bezier(0.23, 1, 0.32, 1);       /* UI interactions */
--ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);   /* on-screen movement */
--ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);    /* iOS-like drawer */

4. How fast?

ElementDuration
Button press feedback100-160ms
Tooltip, small popover125-200ms
Dropdown, select150-250ms
Modal, drawer200-500ms

Keep frequent, interactive UI under 300ms; the modal and drawer range above (up to 500ms) is the deliberate exception for occasional, first-time surfaces. Perceived speed is real: a faster spinner makes a load feel faster at the same load time, and an instant tooltip after the first one makes a whole toolbar feel quick.

Springs

Springs settle on physics, not a fixed duration, so they feel alive and, unlike CSS keyframes, keep their velocity when interrupted. Reach for them on drag and gesture interactions the user can reverse mid-motion, and on decorative, mouse-tracked motion. Keep bounce subtle (0.1 to 0.3) and usually absent - save it for drag-to-dismiss and playful moments, not functional UI.

Component feel

  • Press feedback. Any pressable element gets transform: scale(0.97) on :active with a ~160ms ease-out transition. Subtle (0.95 to 0.98); it makes the interface feel like it is listening.
  • Never animate from scale(0). Nothing real appears from nothing. Start at scale(0.9) or higher plus opacity so the entrance has shape.
  • Scale from the trigger. Popovers and dropdowns scale from their origin, not their center. Modals stay centered.
  • Respect prefers-reduced-motion. Drop or shorten non-essential motion.

Visual foundations

  • One spacing scale, one type scale. Consistency reads as intent; ad-hoc values read as noise.
  • Restrained color: a small palette with clear roles beats many accents.
  • Make every interactive state explicit - hover, active, focus-visible, disabled. A control with no states feels dead.

Review format

When reviewing UI code, output a single markdown table, one row per issue, with Before | After | Why. Do not use separate "Before:" / "After:" lines.

BeforeAfterWhy
transition: all 300mstransition: transform 200ms ease-outName exact properties; avoid all
transform: scale(0)scale(0.95); opacity: 0Nothing appears from nothing
ease-in on a dropdownstrong ease-outease-in reads as sluggish
no :active statescale(0.97) on :activePresses must feel responsive

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Coordinate multiple Claude Code sessions as a team — lead + teammates with shared task lists, mailbox messaging, and file-lock claiming. Patterns for team sizing, task decomposition, and when to use teams vs sub-agents vs worktrees.

中文简介正在准备中。当前显示原文说明。

rohitg00/pro-workflow29232026年9月29日 更新

Auto-configure quality gates, hooks, and settings for a new project. Detects project type and sets up appropriate tooling. Use when onboarding a new codebase.

中文简介正在准备中。当前显示原文说明。

rohitg00/pro-workflow29232026年9月29日 更新

Decompose large-scale changes into independent units and spawn parallel agents in isolated worktrees. Use for migrations, refactors, codemods, and any change touching 10+ files with the same pattern.

中文简介正在准备中。当前显示原文说明。

rohitg00/pro-workflow29232026年9月29日 更新

Capture a user-reported defect as a durable GitHub issue written in the project's own domain language. Explores the codebase in parallel for context but never leaks file paths or line numbers into the issue. Use when the user reports a bug conversationally, runs a QA pass, or says "file an issue", "log this as a bug", "capture this".

中文简介正在准备中。当前显示原文说明。

rohitg00/pro-workflow29232026年9月29日 更新

Smart context compaction with state preservation. Saves critical files, task progress, and working state before compaction, restores after. Use before manual compact or when auto-compact triggers.

中文简介正在准备中。当前显示原文说明。

rohitg00/pro-workflow29232026年9月29日 更新

Master the four operations of context engineering — Write, Select, Compress, Isolate. Manage token budgets, compaction strategies, and context partitioning to keep AI sessions sharp and efficient.

中文简介正在准备中。当前显示原文说明。

rohitg00/pro-workflow29232026年9月29日 更新

查看 rohitg00 的全部技能

报告此技能的问题