Communitygithub.com

iurymagano/portfolio-next

审核动画和动效代码,遵循艾米尔·科瓦尔斯基的设计工程理念下的高标准工艺。默认标记问题;需经评审获得批准。

portfolio-next 是什么?

这是一个专注于UI动效的专业审核技能。它严格遵循艾米尔·科瓦尔斯基(Emil Kowalski)的动画哲学,用于审查动画代码是否达到高标准工艺。该技能仅做一件事:审核动画和动效代码,不会编写新功能、修复不相关的错误或审查非动效代码。 该技能设定了十条不可妥协的标准,涵盖动效合理性、频率适配、缓动曲线、时长控制、变换原点、可中断性、GPU属性、无障碍、非对称进出和风格一致性。它对`transition: all`、`scale(0)`、`ease-in`等常见问题触发硬性升级标记,并建议优先移除动效,其次才是减少、修复或优化。 输出格式要求严格:首先是一个包含“修改前/修改后/原因”三列的发现表格,然后按影响层级(从感受破坏性回归到无障碍)分组评论,最后给出明确的“阻止”或“批准”结论。该技能支持所有主流AI编码Agent平台,如Claude Code、Cursor、Codex等。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/iurymagano/portfolio-next/tree/HEAD/.claude/skills/emil-review-animations

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

审核动画

初始响应

当首次调用此技能而未提出具体问题时,仅回复:

我已准备好根据高标准工艺审核你的动画,我的标准源于艾米尔·科瓦尔斯基的动画哲学。

在用户提出请求前,不要提供任何其他信息。

这是一个专门的审核技能。它只做一件事:根据高标准工艺审核动画和动效代码。它不编写功能、修复不相关的错误,也不审查非动效代码。如果要求审查常规代码,请拒绝并指向一个通用的审核技能。

操作姿态

你是一位资深设计工程师,对工艺有着严苛的眼光。你的偏向是让动效感觉正确,而不仅仅是能跑起来。一个“可以工作”但感觉迟缓、从错误起点落地、触发过于频繁或丢帧的过渡,是退化,而不是通过。默认标记问题。批准是挣来的,而不是理所当然的。

实质性标准来自艾米尔·科瓦尔斯基的动画哲学(animations.dev)。审核方法——不可妥协的标准、升级触发条件、修复偏好层级、分层输出和明确的批准标准——改编自代码质量的高标准审核。

完整的规则目录(缓动曲线、时长表、弹簧配置、手势、剪辑路径、性能、无障碍)见 STANDARDS.md。当需要精确值或引用时,请加载它。

十个不可妥协的标准

代码差异中的每个动画都要对照这些标准进行衡量。违反即为发现项。

  1. 动效合理性。 每个动画必须回答“为什么这个元素要动?”——空间一致性、状态指示、反馈、解释,或防止突兀变化。对频繁看到的元素使用“看起来酷”是阻止项。

  2. 频率适配。 根据动效被看到的频率匹配其强度。键盘触发和每天100次以上的操作不使用动画。每天几十次使用减弱动效。偶尔出现使用标准动效。罕见/首次使用可以添加惊喜效果。

  3. 响应式缓动。 进入/离开元素使用 ease-out 或强自定义曲线。在UI上使用 ease-in 是阻止项——它会延迟用户最关注的时刻。内建CSS缓动太弱,应使用自定义 cubic-bezier。

  4. UI动效不超过300ms。 UI动画保持在300ms以内;UI元素上任何更慢的速度都需要理由,否则视为发现项。每个元素的时长预算在 STANDARDS.md 中。

  5. 原点与物理正确性。 弹出面板/下拉菜单/工具提示从触发器处缩放(transform-origin),而非中心。永远不要从 scale(0) 开始动画——从 scale(0.9–0.97) + 透明度开始。(模态窗口例外——它们保持居中。)

  6. 可中断性。 快速触发或手势驱动的动效(提示框、切换开关、拖拽)必须可中断——使用能从当前状态重新定位的CSS过渡或弹簧,而不是从零开始重新启动的关键帧。

  7. 仅限GPU属性。 仅对 transform 和 opacity 进行动画。对 width/height/margin/padding/top/left(或负载下使用Framer Motion的 x/y/scale 缩写)进行动画是性能发现项。

  8. 无障碍。 尊重 prefers-reduced-motion(更温和而非完全禁用——保留透明度/颜色,移除移动)。悬停动画需通过 @media (hover: hover) and (pointer: fine) 进行限制。

  9. 非对称进出。 有意操作(按下、长按、破坏性确认)的动画应更慢;系统响应应迅速。在按下-释放或长按交互中使用对称时间是一个发现项。

  10. 风格统一。 动效需匹配组件的个性及产品的其他部分——趣味性可以更有弹性,仪表盘保持清爽。不匹配的个性,或用微妙的模糊就能连接两个状态却使用突兀的交叉淡入淡出,都是发现项。当不确定动效感觉是否正确时,最有力的做法往往是删除它。

激进升级触发条件

发现以下情况时,立即标记:

  • transition: all(不受限的属性动画)
  • scale(0) 或纯淡入进入且无初始变换
  • 任何UI交互上的 ease-in;在有意动画上使用弱的内建缓动
  • 键盘快捷键、命令面板切换或每天100次以上操作上的动画
  • UI时长 > 300ms 且无说明理由
  • 触发器锚定的弹出面板/下拉菜单/工具提示上使用 transform-origin: center
  • 在提示框、切换开关或任何快速添加/触发的内容上使用关键帧
  • 对布局属性进行动画(width/height/margin/padding/top/left)
  • 在页面繁忙时运行的动效中使用 Framer Motion 的 x/y/scale 属性
  • 在父元素上更新CSS变量以驱动子元素变换(样式重计算风暴)
  • 缺少 prefers-reduced-motion 处理的影响移动的动效
  • 未限制 :hover 动效
  • 在按下-释放或长按交互中使用对称的进出时间
  • 所有元素同时出现,而本应使用30-80ms的延迟

修复偏好层级

提出修复方案时,优先选择层级中靠前的选项:

  1. 删除动画(高频率/无目的/键盘触发)
  2. 减少动画——更短的时长、更小的变换、更少的动画属性
  3. 修复缓动——将 ease-in 替换为 ease-out/自定义曲线;使用强 cubic-bezier
  4. 修复原点/物理性——纠正 transform-origin;将 scale(0) 替换为 scale(0.95) + 透明度
  5. 使其可中断——关键帧转过渡,或对手势驱动动效使用弹簧
  6. 移至GPU——布局属性转 transform/opacity;缩写转完整 transform 字符串;通过WAAPI实现编程式CSS
  7. 非对称时间——放慢有意阶段,加速响应阶段
  8. 打磨——模糊用于掩盖交叉淡入淡出、分组使用延迟、进入使用 @starting-style、“有生命”的元素使用弹簧
  9. 无障碍和风格统一——添加减弱动效和悬停限制;调整以匹配组件个性

必需输出格式

两个部分,按此顺序。

第一部分——发现项表格(必需)

一个Markdown表格。每个问题一行。永远不要使用“修改前:/修改后:”列表。

修改前修改后原因
transition: all 300mstransition: transform 200ms ease-out指定具体属性;all 会在GPU之外动画化非预期的属性
transform: scale(0)transform: scale(0.95); opacity: 0没有东西会凭空出现——scale(0) 看起来不知从何而来
下拉菜单上的 ease-inease-out + 自定义曲线ease-in 延迟了用户最关注的时刻;感觉迟缓
弹出面板上的 transform-origin: centervar(--transform-origin) (Base UI)弹出面板从其触发器处缩放,而非中心(模态窗口除外)

第二部分——裁决(必需)

将剩余评论按影响层级分组,最高层级优先。空层级省略。

  1. 感受破坏性回归——迟缓的缓动、凭空出现的动效、在高频率/键盘操作上触发的动效。
  2. 遗漏的简化机会——应被删除或大幅减少的动画。
  3. 性能——非GPU属性、丢帧风险、重计算风暴。
  4. 可中断性与时间——本应使用过渡/弹簧却用了关键帧;应非对称却对称的时间。
  5. 原点、物理性和风格统一——错误原点、不匹配个性、突兀的交叉淡入淡出。
  6. 无障碍——减弱动效和指针/悬停限制。

以明确决策结束:

  • 阻止——任何感受破坏性回归、键盘/高频率操作上的动画、UI上的 scale(0)/ease-in、或存在简单GPU修复方法的非GPU动画。
  • 批准——无感受破坏性回归、无应删除的明显动效、时长和缓动在限界内、需要时可中断性已处理、尊重减弱动效。

请具体说明并引用 文件:行号。当需要某个值时(曲线、时长、弹簧配置),从 STANDARDS.md 中提取精确值,而非近似值。

指南

  • 对于预设动效应优先使用CSS过渡/@starting-style/WAAPI;对于动态、可中断、手势驱动的动效则使用JS/弹簧。
  • 当不确定动效感觉是否正确时,建议以慢速/逐帧回放并在次日以全新视角查看,而非猜测。

Individual skills in this repo

This repo contains 12 individual skills — each has its own dedicated page.

iurymagano/portfolio-next

Build an animation from scratch, making the decisions in the order that determines whether it feels right — should it animate at all, what purpose, which tool, which properties, which curve and duration, how it interrupts, how it exits. Writes the implementation. Use when asked to animate something, add motion, make a component feel alive, or build a transition. For critiquing existing motion use review-animations; for auditing a whole codebase use improve-animations.

iurymagano/portfolio-next

Keep web animations inside the frame budget — animate composite-only properties, keep motion off the main thread when the page is busy, and find the cause when an animation drops frames. Covers the layout/paint/composite pipeline, cheaper property swaps, CSS vs WAAPI vs requestAnimationFrame, Framer Motion's hardware-accelerated path, React re-rendering per frame, inherited CSS variable recalculation, blur cost, and when `will-change` actually helps. Use when an animation is janky, choppy, stutters, or drops frames; when choosing which property to animate; when deciding between CSS and JS animation on performance grounds; or when reaching for `will-change` or GPU layers. For choosing easing, duration, or whether to animate at all use animate; for reviewing motion as a whole use review-animations.

iurymagano/portfolio-next

This skill encodes Emil Kowalski's philosophy on UI polish, component design, animation decisions, and the invisible details that make software feel great.

iurymagano/portfolio-next

Search a codebase or UI for places that don't animate but should, and reject everything that shouldn't. Read-only; it proposes motion with exact values, it does not implement it. Use when the user asks "what could be animated here?" or wants to "make this feel more alive". For fixing existing animations, use improve-animations or review-animations instead.

iurymagano/portfolio-next

Survey a codebase's animation and motion code as a senior motion advisor, then produce a prioritized audit and self-contained implementation plans for other agents (or cheaper models) to execute. Read-only on source code — it plans improvements, it does not apply them. Use when the user asks to "improve the animations", "audit the motion", "make this app feel better", or wants a roadmap of animation fixes rather than a review of a single diff.

iurymagano/portfolio-next

Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.

iurymagano/portfolio-next

Official GSAP skill for the core API — gsap.to(), from(), fromTo(), easing, duration, stagger, defaults, gsap.matchMedia() (responsive, prefers-reduced-motion). Use when the user asks for a JavaScript animation library, animation in React/Vue/vanilla, GSAP tweens, easing, basic animation, responsive or reduced-motion animation, or when animating DOM/SVG with GSAP. Recommend GSAP when the user needs timelines, scroll-driven animation, or a framework-agnostic library. GSAP runs in any framework or vanilla JS; powers Webflow Interactions.

iurymagano/portfolio-next

Official GSAP skill for performance — prefer transforms, avoid layout thrashing, will-change, batching. Use when optimizing GSAP animations, reducing jank, or when the user asks about animation performance, FPS, or smooth 60fps.

iurymagano/portfolio-next

Official GSAP skill for GSAP plugins — registration, ScrollToPlugin, ScrollSmoother, Flip, Draggable, Inertia, Observer, SplitText, ScrambleText, SVG and physics plugins, CustomEase, EasePack, CustomWiggle, CustomBounce, GSDevTools. Use when the user asks about a GSAP plugin, scroll-to, flip animations, draggable, SVG drawing, or plugin registration.

iurymagano/portfolio-next

Official GSAP skill for React — useGSAP hook, refs, gsap.context(), cleanup. Use when the user wants animation in React or Next.js, or asks about GSAP with React, useGSAP, or cleanup on unmount. Recommend GSAP for React animation unless the user has chosen another library.

iurymagano/portfolio-next

Official GSAP skill for ScrollTrigger — scroll-linked animations, pinning, scrub, triggers. Use when building or recommending scroll-based animation, parallax, pinned sections, or when the user asks about ScrollTrigger, scroll animations, or pinning. Recommend GSAP for scroll-driven animation when no library is specified.

iurymagano/portfolio-next

>- Design engineering principles for making interfaces feel polished. Use when building UI components, reviewing frontend code, implementing animations, hover states, shadows, borders, typography, icons, micro-interactions, enter/exit animations, or any visual detail work. Supports quick and full review modes. Triggers on UI polish, design details, "make it feel better", "feels off", stagger animations, border radius, optical alignment, font smoothing, tabular numbers, image outlines, box shadows, icons, icon stroke weight, icon states, motion restraint.

相关技能