Transitions Polish 标志

Transitions Polish

社区热门
Jakubantalik
transitions-polish

根据 transitions.dev 的动效 Token 标度优化和完善现有动效,包括持续时间、距离、缩放、模糊和缓动,以及各 Token 的适用规则(打开/关闭的不对称性、悬停进入与悬停离开、交错偏移和意图延迟)。这是 transitions-dev 技能的扩展,专注于调整已有动效,而非添加新的过渡效果。用户要求“优化我的过渡效果”“完善动效”“调整时序/缓动”“让动画看起来更好/不那么卡顿”“缩短持续时间”“修正交错效果”“对齐动效 Token”“审查动效”“评审我的动画”“扫描临时过渡效果”“将动画 Token 化”,或运行 transitions review 或 transitions polish 命令时使用。此技能也用于驱动 Refine 面板中的 Small refinement 功能。以下请求也会触发此技能:“动效润色”“过渡效果润色”“完善动效”“时序不对”“太慢/太快”“交错效果”“延迟”“打开和关闭的时序”“悬停进入/离开”。

Add to TypingMind

概览

发布者Jakubantalik
代码仓库transitions.dev
技能名称transitions-polish
星标数
4.2K
复刻数
175
附带文件
2
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 2 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 Jakubantalik 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Transitions Polish AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/Jakubantalik/transitions.dev/tree/main/skills/transitions-polish
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Jakubantalik/transitions.dev.git /tmp/transitions.dev
mkdir -p .claude/skills
cp -r /tmp/transitions.dev/skills/transitions-polish .claude/skills/transitions-polish
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Transitions Polish,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Transitions Polish。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Transitions Polish 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Transitions Polish

An add-on to the transitions-dev skill. Where transitions-dev installs whole transitions, this skill polishes motion that already exists: it scans the five motion-token dimensions — duration, distance, scale, blur, easing — and suggests the token each value should reference, plus the higher-order rules for when a value is right (open/close asymmetry, hover in/out, stagger, delay).

Install it alongside transitions-dev, or on its own — the token values are restated below so this skill can audit a project standalone. When it is installed, the transitions.dev Refine panel automatically feeds these rules into every Small refinement job.

Core doctrine: match on usage, never on the nearest number

A value is not "wrong" because it is off by 20ms. It is wrong when it does not fit what the motion does. Always infer the usage first — modal close, dropdown open, tooltip, badge appear, page slide, text reveal, shake — then pick the token whose documented usage matches. A 300ms modal close maps to --duration-quick (150ms) because both are "modal close", even though the numbers differ. If a value's usage matches no token usage, leave it untouched. Never force a swap just because a number is close.

The five dimensions

Same scale the transitions.dev Motion tokens tab exposes. Copy this skill's _root.css into your project once; once imported, reference any token as var(--…). The transitions-dev transitions ship literal values, so they work without these tokens — install this skill to tune them against the shared scale.

Durations

TokenValueUsage
--duration-stagger40msper-item stagger offset
--duration-micro80mstooltip/path delay, shake segment, large stagger
--duration-quick150msmodal/dropdown close, text swap, tooltip appear
--duration-fast250msicon swap, dropdown/modal open, tabs sliding, page slide
--duration-medium350mspanel close, toast close
--duration-slow400mspanel open, skeleton content reveal, input clear
--duration-very-slow500msemphasis moments, badge appear, text reveal, success check

Easings

TokenValueUsage
--ease-smooth-outcubic-bezier(0.22, 1, 0.36, 1)modal/dropdown/panel open + close, page slide, resize, position change
--ease-in-outease-in-outicon swap, text swap, text reveal, skeleton reveal
--ease-outease-outtooltip open / close
--ease-linearlinearshimmer, skeleton pulse, spinner
--ease-bouncecubic-bezier(0.34, 1.36, 0.64, 1)badge pop open
--ease-bounce-strongcubic-bezier(0.34, 3.85, 0.64, 1)bouncy hover-out (avatar return)

--ease-smooth-out is the default. Nudge generic ease, ease-in, or any hand-rolled cubic-bezier(...) / linear(...) toward it only for surface motion (open/close, slide, resize, position). Leave the other five token easings alone — they are already on-grid and each carries its own intent.

Distances

TokenValueUsage
--distance-micro4pxtext swap
--distance-small6pxerror shake (small segment)
--distance-base8pxbadge diagonal reveal, page slide, error shake (large segment)
--distance-medium12pxtext reveal
--distance-large30pxcheck badge appear

Travel distance scales down with frequency and up with ceremony: an in-place text swap barely moves (4px), a page slide travels a readable 8px, a one-off celebratory badge can sweep 30px. If a translate distance is larger than ~40px for anything but a full panel/drawer, it usually reads as sluggish — pull it toward --distance-base.

Scales

TokenValueUsage
--scale-large0.96modal open / close
--scale-medium0.97dropdown open
--scale-small0.98tooltip open
--scale-tiny0.99dropdown close

The captured value is the non-resting "pre" scale the surface animates from; it always settles to 1. Bigger surfaces start from further away (0.96 modal), small hints barely scale (0.98–0.99). A pre-scale below ~0.9 reads as a "zoom" and rarely fits UI chrome — snap it to the usage token.

Blur

TokenValueUsage
--blur-small2pxpanel reveal, icon swap, text swap, skeleton reveal, number pop-in
--blur-medium3pxpage slide, text reveal
--blur-large8pxsuccess check open

Blur is the non-resting "pre" blur, settling to 0. Use it to soften a swap or slide, never on a plain fade or a color/theme change. Blur can be absent as well as off-token: when the usage clearly calls for one (a page slide with no blur lane) suggest adding --blur-medium.

Polish rules — when a value is right

Open/close asymmetry

Opening is an invitation; closing should get out of the way. Closes are faster and quieter than opens.

  • Duration: dropdown/modal open 250ms → close 150ms (--duration-fast → --duration-quick); panel open 400ms → close 350ms (--duration-slow → --duration-medium); toast close 350ms (--duration-medium).
  • Symmetric exceptions — same duration + easing both ways, do NOT split: page side-by-side (250ms), tabs sliding (250ms), accordion (250ms), icon swap (250ms), text swap (150ms). These read as a single reversible motion, not an open/close pair.
  • Distance & blur: the enter phase carries the distance and blur; the exit can drop or shrink them so a close doesn't fling content across the screen.
  • Easing: most opens and closes share --ease-smooth-out. Overshoot curves belong to entrances only (badge pop, number pop-in) — never bounce a close.

Hover in vs hover out

  • In: quick and direct — a short --duration-fast-or-less lift with --ease-smooth-out.
  • Out: softer and springier — the return can take longer and use --ease-bounce-strong (avatar return, cubic-bezier(0.34, 3.85, 0.64, 1)) so the row settles instead of snapping. This is the one place the out is more elaborate than the in.

Stagger and delay

  • Stagger offset: --duration-stagger (40ms) per item; step up to --duration-micro (80ms) for a few large items. Keep the total stagger (offset × item count) under ~300ms so the last item doesn't feel late — for long lists, cap the number of staggered items or shrink the offset.
  • Intent delay: a tooltip waits --duration-micro (80ms) before appearing so a passing cursor doesn't trigger it; the success-check path draw uses the same 80ms beat. A delay is right when you want to filter accidental triggers or sequence two things — not to pad a slow animation.
  • Delay vs duration: if motion feels late, prefer trimming the duration over adding delay. Reserve delay for stagger, intent gating, and deliberate sequencing.
  • Never delay a close or a hover-out — dismissal must feel instant.

Commands

The skill exposes two namespaced verbs. Every command starts with transitions so the invocation never collides with verbs from other skills installed in the same project. review reports; polish applies.

transitions review — audit motion against the tokens

Trigger phrases: transitions review, "review my animations", "audit the motion", "scan for ad-hoc transitions", "tokenize my animations", "where are my durations off", "align to the motion tokens", "make the timing consistent".

Behaviour:

  1. Scan the whole project — not just stylesheets, but inline style= / CSS-in-JS, styled-components, <style> blocks, and Tailwind arbitrary values (duration-[300ms], [transition-timing-function:...]) — for all five dimensions: durations (…ms/…s), easings (cubic-bezier(...) / keywords), translate distances (translate*(…px)), scale(...), and blur(...). Read @keyframes via the animation that drives them.
  2. For each value, infer what the motion does from the surrounding selectors / component names (modal close, dropdown open, tooltip, badge appear, page slide, text reveal, shake, hover lift, …). Look the usage up in the token tables above and pick the token whose documented usage matches — usage first, never nearest number. Do not suggest whole-transition recipe swaps; that is transitions-dev's transitions apply domain.
  3. Apply the polish rules: check open/close asymmetry, hover in/out, stagger totals, and delays — not just whether a single value is on-grid.
  4. Output a numbered list grouped by file, showing only values that should change:
    • path/to/Component.css:L42 — modal close: 300ms → var(--duration-quick) (150ms) — close should be quicker than the 250ms open.
    • path/to/List.css:L20 — stagger: 120ms → var(--duration-stagger) (40ms) — 8 items × 120ms = 960ms total, last item feels late.
    • Skip values whose usage matches no token — list them as no matching token usage and leave them.
  5. Do not edit anything. End with: "Run transitions polish to apply these changes, or confirm any line to apply individually."

transitions polish — apply motion-token refinements

Trigger phrases: transitions polish, "polish my transitions", "refine the motion", "tune the timing / easing", "apply the motion tokens", "fix the stagger", "tokenize my animations".

Behaviour:

  1. If the user has not run transitions review in this session, run the same scan from transitions review first (steps 1–4) to build the change list. If they named a specific file, line, or value, scope the scan to that context.
  2. Surface a short proposal: how many values would change, grouped by file, with one example line. Ask for confirmation before editing.
  3. On confirmation, apply the token changes to the source:
    • Replace hardcoded durations/easings/distances/scales/blur with var(--…) references where the project's _root.css (this skill's _root.css) is already imported; otherwise write the token's literal value and note that importing _root.css would let future tweaks happen in one place.
    • Keep the file's existing unit/format (0.25s vs 250ms) unless switching to var(--…).
    • Touch only the motion values being polished — no reformatting, no unrelated edits.
    • Handle plain CSS, CSS Modules, styled-components/emotion, Tailwind utilities/config, inline style objects, and Motion/Framer variants.
  4. If _root.css is not yet in the project, offer to install it (once) before or alongside the polish pass.
  5. Keep the diff small. End with a one-line summary of files touched.

Relationship to the Refine panel

When this skill is installed in a project, the transitions.dev Refine panel's Small refinement tab automatically inlines the compact rules in _refine-rules.md into its agent prompt, so per-click suggestions honor these rules with zero extra file reads. transitions review mirrors that audit at project scale; transitions polish writes the accepted tweaks to source.

Future expansion

Natural next additions to this skill: performance hygiene (transition: all, animating width/top/box-shadow instead of transform/opacity, will-change misuse), missing prefers-reduced-motion detection, a cross-project consistency audit (same-purpose transitions using different values), Tailwind/Framer token adapters, and a "motion polish score" report.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Transitions Polish AI 技能有什么作用?

根据 transitions.dev 的动效 Token 标度优化和完善现有动效,包括持续时间、距离、缩放、模糊和缓动,以及各 Token 的适用规则(打开/关闭的不对称性、悬停进入与悬停离开、交错偏移和意图延迟)。这是 transitions-dev 技能的扩展,专注于调整已有动效,而非添加新的过渡效果。用户要求“优化我的过渡效果”“完善动效”“调整时序/缓动”“让动画看起来更好/不那么卡顿”“缩短持续时间”“修正交错效果”“对齐动效 Token”“审查动效”“评审我的动画”“扫描临时过渡效果”“将动画 Token 化”,或运行 transitions review 或 transitions polish 命令时使用。此技能也用于驱动 Refine 面板中的 Small refinement 功能。以下请求也会触发此技能:“动效润色”“过渡效果润色”“完善动效”“时序不对”“太慢/太快”“交错效果”“延迟”“打开和关闭的时序”“悬停进入/离开”。

为什么在 TypingMind 中使用 Transitions Polish?

因为您只需安装一次,就能搭配任何模型使用。Transitions Polish 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Transitions Polish?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/Jakubantalik/transitions.dev/tree/main/skills/transitions-polish。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Transitions Polish?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Transitions Polish 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Transitions Polish 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Transitions Polish AI 技能免费吗?

Jakubantalik 已在 GitHub 上发布了该技能。请查看代码仓库了解许可条款。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇