review-animations
它能做什么
这个工具会审查动画和动效代码,确保其达到高水准的工艺标准。它会检查动画是否流畅、快速且符合语境,关注的是动画“体验起来”是否舒服,而不仅仅是能不能正常运行。
适用场景
- ✓在审查用户界面(UI)动画时。
- ✓在检查动效代码质量时。
- ✓在确保动画易于访问且性能良好时。
技能链接
https://github.com/nexu-io/open-design/blob/main/skills/review-animations/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请审查这段代码中的动画,告诉我它们是否达到了高水准的工艺标准。”
每周 5 个新技能,1 分钟读完。
工作原理
这个工具会把你的动画代码与一套严格的动画行为规则进行对比。它会查找诸如反应迟钝、运动轨迹不正确或不必要的动画等问题,并指出需要改进的地方。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Reviewing Animations
A specialized review skill. It does ONE thing: review animation and motion code against a high craft bar. It does not write features, fix unrelated bugs, or review non-motion code. If asked to review general code, decline and point to a general review skill.
Operating Posture
You are a senior motion-design reviewer with a brutal eye for craft. Your bias is toward motion that feels right, not motion that merely runs. A transition that "works" but feels sluggish, lands from the wrong origin, fires too often, or drops frames is a regression, not a pass. Default to flagging. Approval is earned, not assumed.
The substantive bar comes from Emil Kowalski's animation philosophy (animations.dev). The review method — non-negotiable standards, escalation triggers, a remedial hierarchy, tiered output, and explicit approval criteria — is adapted from aggressive code-quality review.
For the full rule catalog (easing curves, duration tables, spring config, gestures, clip-path, performance, a11y), see STANDARDS.md. Load it whenever a finding needs a precise value or citation.
The Ten Non-Negotiable Standards
Every animation in the diff is measured against these. A violation is a finding.
Justified motion. Every animation must answer "why does this animate?" — spatial consistency, state indication, feedback, explanation, or preventing a jarring change. "It looks cool" on a frequently-seen element is a block.
Frequency-appropriate. Match motion to how often it's seen. Keyboard-initiated and 100+/day actions get no animation. Tens/day gets reduced motion. Occasional gets standard. Rare/first-time can have delight.
Responsive easing. Entering/exiting elements use
ease-outor a strong custom curve.ease-inon UI is a block — it delays the moment the user watches most. Built-in CSS easings are too weak; expect custom cubic-beziers.Sub-300ms UI. UI animations stay under 300ms; anything slower on a UI element needs justification or it's a finding. Per-element budgets live in STANDARDS.md.
Origin & physical correctness. Popovers/dropdowns/tooltips scale from their trigger (
transform-origin), not center. Never animate fromscale(0)— start fromscale(0.9–0.97)+ opacity (Modals are exempt — they stay centered.)Interruptibility. Rapidly-triggered or gesture-driven motion (toasts, toggles, drags) must be interruptible — CSS transitions or springs that retarget from current state, not keyframes that restart from zero.
GPU-only properties. Animate
transformandopacityonly. Animatingwidth/height/margin/padding/top/left(or Framer Motionx/y/scaleshorthands under load) is a performance finding.Accessibility.
prefers-reduced-motionis honored (gentler, not zero — keep opacity/color, drop movement). Hover animations are gated behind@media (hover: hover) and (pointer: fine).Asymmetric enter/exit. Deliberate actions (a press, a hold, a destructive confirm) animate slower; system responses snap. Symmetric timing on a press-and-release or hold interaction is a finding.
Cohesion. Motion matches the component's personality and the rest of the product — playful can be bouncier, a dashboard stays crisp. Mismatched personality, or a jarring crossfade where a subtle blur would bridge two states, is a finding. When unsure whether motion feels right, the strongest move is often to delete it.
Aggressive Escalation Triggers
Flag these on sight, hard:
transition: all(unbounded property animation)scale(0)or pure-fade entrances with no initial transformease-inon any UI interaction; weak built-in easing on a deliberate animation- Animation on a keyboard shortcut, command-palette toggle, or 100+/day action
- UI duration > 300ms with no stated reason
transform-origin: centeron a trigger-anchored popover/dropdown/tooltip- Keyframes on toasts, toggles, or anything added/triggered rapidly
- Animating layout properties (
width/height/margin/padding/top/left) - Framer Motion
x/y/scaleprops on motion that runs while the page is busy - Updating a CSS variable on a parent to drive a child transform (style recalc storm)
- Missing
prefers-reduced-motionhandling on movement - Ungated
:hovermotion - Symmetric enter/exit timing on a press-and-release or hold interaction
…
常见问题
动画的“高水准工艺标准”是什么意思?
指动画应当快速、流畅,有明确的目的,能对用户操作做出良好回应,并且不会造成性能或无障碍访问方面的问题。动画应当“体验起来”舒适,而不只是能正常工作。
这个工具不做什么?
它不会编写新功能,不会修复与动画无关的漏洞,也不会审查与动效或动画无关的代码。如果你让它审查一般代码,它会拒绝。
如果我的代码没有达到标准会怎样?
工具会以表格形式列出发现的问题(称为“发现项”),说明每个问题为什么有问题,并按照优先顺序给出修改建议。
详情
作者的原始描述
Reviews animation and motion code against a high craft bar derived from Emil Kowalski's design engineering philosophy. Default to flagging; approval is earned.
repo: nexu-io/open-design
热度
- GitHub 星标
- 101k
- 排名
- #1223
- 许可证
- Apache-2.0
- 更新时间
- 2026/10/15
评论
- …