Communitygithub.com

vidmoat/motion-graphics

使用 HTML 元素创建设计图形,并在时间轴上对内部对象进行动画处理。适用于动画统计卡片、信息图、图表、UI 原型、Logo 动画片段或在图形中移动对象。

motion-graphics 是什么?

这是一个专注于通过 HTML 元素和时间轴驱动动画来创建动态图形的 AI 技能。它允许用户构建复杂的视觉内容,如动画统计卡、信息图、UI 原型和 Logo 动画,而无需昂贵的图像生成。该技能的核心工作流程强调优先使用预制的“运动组件”(如标题揭示、发言者卡片、进度环等),这些组件可直接编辑且无生成成本。当预制组件不适用时,用户需要先通过 `searchCatalogue` 指令查阅 `addHtmlElement` 的完整创作契约,再编写 HTML。动画必须严格通过所支持的时间轴驱动合约进行,禁止依赖墙钟 CSS 动画,因为后者无法导出。该技能还支持通过 `motion_compile` 编译自定义 TSX 运动组件。主要平台包括 Claude Code 或类似 AI 代理环境。它通过清晰的规则(如容器与子对象的变换区别)和常见陷阱(如内联 SVG 缺少 `xmlns` 会为零像素)来指导用户,确保生成的动画在渲染后能正确工作。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/vidmoat/skills/tree/HEAD/skills/vidmoat/motion-graphics

在你喜欢的 AI 中提问

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

文档

动态图形

addHtmlElement 用于设计容器和布局;文本和字幕命令用于纯文字。

工作流程

  1. 现有组件可能已足够: addMotionComponent 添加一个可编辑的、时间轴驱动的图形,方向与视频一致,且无生成成本(使用 setMotionComponent 更改其文本;通过 searchCatalogue 类型 elements 搜索组件:reveal-title, speaker-card, progress-ring, feature-spotlight, stat-counter, keyword, checklist, chat-bubbles, search-bar, proof-card, icon-card, quote-card)。当发言者说话时,designInserts 会将其与转录内容核对后放置。只有在没有组件适用时才构建 HTML。
  2. 首先阅读契约: 使用 searchCatalogue 类型 commands 搜索确切 ID addHtmlElement,并在编写标记之前阅读其完整的创作契约。
  3. 尺寸由内容和空间决定: 让文案和可用区域决定尺寸、样式和放置位置。下三分之一(lower third)并不总是需要深色面板;统计数字并不总是需要渐变卡片。
  4. 在时间轴上进行动画处理, 使用受支持的时间轴驱动动画合约。壁钟 CSS 动画不是时间轴播放,无法导出。
  5. 容器与子对象: 对一个 HTML 片段进行变换会移动其整个合成,而非其子元素。要移动内部对象,请读取该片段的 HTML 并在时间轴上对目标子元素进行动画处理,或使用单独的独立片段。将附带的细节保持在同一个移动容器中。
  6. 自定义组件: 当脚本可用时,TSX 运动组件可通过 agentWorkspace 动作 motion_compile(工作流 motion-authoring)进行编译。
  7. 验证 在渲染帧的多个时间点上检查对象位置。仅靠摄像机缩放无法满足对象动作的需求。

常见陷阱

  • 内联 SVG 需要 xmlns,否则会以零像素大小渲染,且无任何提示。
  • 一个绘制纯色全屏背景的 HTML 元素会在其整个持续时间内隐藏其下方的所有内容;请确保根元素是透明的。
  • 如果用户说某个更改不存在,请检查保存的结果并更改实际机制,而不是重复相同的关键帧。
  • 设计的 UI、图表和程序化图形可以展示工作流程,而无需付费的图像生成。

相关技能:titles, text-led-video。专家:motion-designer。

Individual skills in this repo

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

vidmoat/caption-styling

Style, time and place captions and subtitles so they read on a phone with the sound off. Sets line length, reading speed, cue timing, size, contrast and platform safe zones, and checks SRT or VTT files against them. Use when the user wants captions or subtitles added, restyled, fixed or made accessible, says captions are too fast, too small or hidden under app buttons, or is preparing TikTok, Reels, Shorts or YouTube video, even if they only ask to "put what I say on screen".

vidmoat/layered-motion

Motion graphics people can edit afterwards: compositions of layers with keyframes, After Effects style. Use for lower thirds, animated titles, kinetic type, stat reveals, logo stings and callouts that the person may want to retime or restyle by hand, and when a composition is already on the timeline.

vidmoat/video-essayist

Video Essayist specialist, tagged @video-essayist or consulted for script-led commentary and analysis: narration locked first, every line matched to a visual that proves it, short annotated clips, quotes with sources, thesis by 60 seconds, chapters. Use when the user tags @video-essayist or asks for a video essay, film analysis or commentary edit.

vidmoat/wedding-filmmaker

Wedding & Event Filmmaker specialist, tagged @wedding-filmmaker or consulted for wedding and event highlight films, teasers and vertical teasers: the couple's own words as the spine, cut to licensed music, slow motion only on peaks, true skin and an unclipped dress. Use when the user tags @wedding-filmmaker or asks for a wedding or event highlight video.

相关技能