Token导航 LogoToken导航TokenDH.com
待分类操作浏览器github未标认证来源可访问许可证需确认审计异常

animatoranimator 命令行

Agent Skill

animator 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

275

周安装

11

GitHub Stars

9

下载量

89
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:animator(animator 命令行)
来源仓库:https://github.com/changeflowhq/skills
仓库路径:skills/animator
安装命令:
npx skills add https://github.com/changeflowhq/skills --skill animator
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/changeflowhq/skills --skill animator

简介

基于 Playwright 与 ffmpeg 的确定性动画录制工具,输出像素级精准 MP4 视频。

  • 适用于 HTML/CSS/JS 动效验证、Remotion 项目帧捕获及动画性能测试场景。
  • 自动记录渲染异常、内存占用与帧率波动,辅助定位性能瓶颈。
  • 需提前安装 Chromium、ffmpeg 并授予屏幕录制权限,否则无法正常整理。
  • 建议每次任务前读取 LEARNED.md 文件,持续积累团队动画开发经验库。

SKILL.md

animator

Create short mp4 videos from HTML/CSS/JS animations. Frame-by-frame capture using Playwright + ffmpeg. Deterministic, smooth, pixel-perfect 30fps output.

Memory

Read ~/.claude/skills/animator/LEARNED.md at the start of every task. If it doesn't exist, create it with a # Learned header.

Capture learnings when you detect:

  • Corrections: "no, use X", "don't do that", "actually..."
  • Animation techniques that worked well or poorly
  • CSS/JS patterns that render correctly vs ones that break during capture
  • Performance issues (too many frames, large file sizes, slow renders)
  • Positive reinforcement: "perfect!", "exactly right", "that's the way"

Before appending, check:

  • Is this reusable? (not a one-time instruction)
  • Is it already in LEARNED.md? (don't duplicate)
  • Can I extract the general principle? (not just the specific fix)

Format: One line, actionable. Write the rule, not the story.

Don't ask permission. Append and move on.


Workflow

  1. Write an HTML file with the animation
  2. Run the recorder to capture as mp4
node ~/.claude/skills/animator/scripts/record.js animation.html output.mp4

Options: --fps 30 --width 1280 --height 720

Writing Animations

Start from the template: ~/.claude/skills/animator/templates/boilerplate.html

Rules

  1. Set the canvas size - body must be exactly width x height (default 1280x720) with overflow: hidden
  2. Declare config - page must define window.ANIMATION = {fps: 30, totalFrames: N}
  3. Duration - totalFrames / fps = seconds. 90 frames at 30fps = 3 seconds
  4. CSS animations - write them normally. The recorder pauses all animations and steps currentTime per frame. Easing, delays, fill-mode all work.
  5. JS animation (optional) - define window.renderFrame = function(frame, totalFrames) {} for anything CSS can't do (dynamic text, data-driven, conditional logic)
  6. Both together - CSS and JS can coexist. Recorder steps both to the same point in time each frame.

CSS Animation Tips

  • Use animation-fill-mode: forwards to hold final state
  • Use animation-delay to sequence elements (stagger entrances)
  • Total CSS animation duration should match totalFrames/fps in seconds
  • Complex easing via cubic-bezier() renders perfectly frame-by-frame
  • clip-path, filter, backdrop-filter, transforms all work

JS renderFrame Tips

  • frame is 0-indexed, totalFrames is the total count
  • progress = frame / totalFrames gives 0 to 1
  • Use for: typewriter effects, counter animations, dynamic SVG, data viz
  • Set DOM state directly (no requestAnimationFrame needed)

Common Patterns

Staggered entrance:

.item:nth-child(1) { animation: fadeIn 0.5s 0.0s forwards; }
.item:nth-child(2) { animation: fadeIn 0.5s 0.2s forwards; }
.item:nth-child(3) { animation: fadeIn 0.5s 0.4s forwards; }

Typewriter (JS):

window.renderFrame = function(frame, total) {
  const text = "Hello, world";
  const chars = Math.floor((frame / total) * text.length);
  document.getElementById('typed').textContent = text.slice(0, chars);
};

Scene transitions:

.scene-1 { animation: fadeOut 0.3s 2s forwards; }
.scene-2 { animation: fadeIn 0.3s 2.3s forwards; opacity: 0; }

What To Avoid

  • Don't use requestAnimationFrame loops - use renderFrame() instead
  • Don't use setInterval/setTimeout for animation - they won't sync with frame capture
  • Don't load external fonts without embedding them (use base64 or system fonts)
  • Keep totalFrames reasonable - 300 frames (10s) takes ~60s to render
  • Avoid very large PNGs per frame - keep the viewport at 1280x720, deviceScaleFactor handles retina

Output

  • Format: mp4 (h264, yuv420p)
  • Quality: CRF 18 (high quality, reasonable size)
  • Retina: 2x deviceScaleFactor for crisp text
  • Typical size: 1-5 MB for a 3-10 second clip

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.72%
按下载量换算33

Claude

29.48%
按下载量换算26

Cursor

16.73%
按下载量换算15

Gemini CLI

9.93%
按下载量换算9

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills