Ruler Progress Render

vibe-motion/skills/ruler-progress-render

作者 vibe-motion4c86c0d016a3ba22ee673428a494f3c44f84111f无许可证收录于 2026年10月9日更新于 2026年10月9日

Clone or update https://github.com/sxhzju/ruler-progress-animator and render a ruler progress video with default parameters. Use when users ask for requests like "绘制个尺子进度条", "做个尺子进度动画", "渲染 ruler progress", or ask to export the default demo video from this project.

包含脚本Design & Creative
AI 生成的概览

克隆或更新尺子进度动画仓库,并通过脚本渲染默认的尺子进度视频。

功能
该技能运行自带的 shell 脚本,克隆或更新 ruler-progress-animator 仓库,安装 npm 依赖,并渲染尺子进度动画视频。它可接收可选的工作目录和输出路径,默认使用当前目录和 out/scaffold-demo-defaults-transparent.mov。在 bunx 可用时使用基于 Remotion 的脚手架流程,否则回退到 npx remotion render。脚本会输出并返回最终视频的绝对路径。
适用场景
当用户要求绘制尺子进度条、制作尺子进度动画、渲染 ruler progress,或导出该项目的默认演示视频时使用。
运行要求
需要 git、node、npm,以及用于克隆或更新仓库和安装依赖的网络访问。附带可执行脚本 scripts/render_ruler_progress.sh;bunx 为可选,不可用时回退到 npx。

Ruler Progress Render

Workflow

  1. Use scripts/render_ruler_progress.sh from this skill.
  2. Pass workspace_dir as the first argument when the user specifies a folder; otherwise use current directory.
  3. Pass output_path as the second argument when the user specifies output; otherwise use out/scaffold-demo-defaults-transparent.mov.
  4. Run the script and wait for completion.
  5. Return the final absolute output path printed by the script.

Command

bash
bash scripts/render_ruler_progress.sh [workspace_dir] [output_path]

Behavior

  • Reuse local repo if workspace_dir/ruler-progress-animator exists; otherwise clone from GitHub.
  • Track remote default branch (origin/HEAD) when updating existing repo.
  • Install npm dependencies.
  • If bunx is available, run the new scaffold flow:
    • npm run remotion:ensure-browser
    • REMOTION_OUTPUT=... REMOTION_PROPS_FILE=shared/project/render-presets/default.json npm run remotion:render
  • This flow reuses shared Chrome Headless Shell cache and avoids repeated browser downloads.
  • If bunx is unavailable, fallback to npx remotion render with equivalent defaults as a compatibility path (without shared browser cache optimization).

Requirements

  • git
  • node
  • npm
  • network access for clone/update and dependency install

来源与署名

来源:vibe-motion/skills位于ruler-progress-render提交4c86c0d

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架