proceed-video
Skill2 starsChanged 23 days agoMITView on GitHub
处理并深度解析 UI 交互录屏视频。将原子动效视频切片为 4x4 网格对比图与左右残影对比图,并全方位拆解交互细节(光标变形、触发时机、物理曲线)及推荐前端复现技术栈。
1 other project uses a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- niki914/zafiroedited, first seen Oct 13, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- niki914/zafiro★ 34699% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository13 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- add-worktreeSkill
- answer-me-with-htmlSkill
- extract-apkSkill
- grill-meSkill
- grill-with-docsSkill
- handoffSkill
- prompt-engineeringSkill
- release-new-versionSkill
- test-hang-watchdogSkill
- test-triageSkill
- writing-for-agentsSkill
The file
Files
本仓库环境适配
- 随包 hosttools 不含
ffmpeg/ffprobe/ImageMagick/PIL;scripts/proceed_video.py依赖 ffmpeg。- 设备内执行需先装:
zafiro_env(action="shell", cmd="apk add --no-cache ffmpeg");否则请用户在 x86 主机跑脚本。- 帧图产物写
files/tool_output/,再用view_image读取分析。- 无 ffmpeg 时不要编造帧数/时间戳,直接说明所需环境。
UI 交互视频动效解析 (proceed-video)
本技能专为高保真复刻 UI 设计师网页效果打造。通过将录屏视频解析为切片网格与历史残影图,结合多模态视觉直读,精准捕捉微交互中的速度曲线、回弹物理学与光标细节。
一、 输入约束与要求 (Input Constraints)
- 必须为“原子步骤”视频:
- 录屏必须只包含单一阶段的微交互动效,例如:
- 【鼠标从外部移入组件上】(Hover 触发)
- 【鼠标已经在组件上,进行一次点击】(Click 响应)
- 【鼠标拖拽组件松手回弹】(Drag & Release)
- 严禁输入长流程或复合多步骤视频(例如“移入卡片 -> 弹出菜单 -> 点击子项 -> 跳转页面”),复合视频会使切片与残影混合混乱,无法精确定量分析。
- 录屏必须只包含单一阶段的微交互动效,例如:
- 格式支持:MP4, MOV, WebM 等标准视频格式。
二、 核心处理流程 (Execution Workflow)
收到用户的视频路径后,严格按照以下步骤执行:
第一步:运行脚本生成视觉产物
使用内置脚本 proceed_video.py 对视频进行解析与切片处理:
# 自动运动检测模式(推荐常规原子视频使用)
python3 "<skill_dir>/scripts/proceed_video.py" "<video_path>" -o "<output_dir>"
# 若用户明确指定了动效区间或视频较长(例如 2.5s 开始,持续 0.8s)
python3 "<skill_dir>/scripts/proceed_video.py" "<video_path>" -o "<output_dir>" -s 2.5 -d 0.8 --fps 30 --rows 4 --cols 4脚本将默认生成两类核心产物并保存至输出目录:
grid_slice.png(4×4 网格切片图):- 类似电影胶片分镜,按时间序列展开 16 个关键切片,用于横向对比各帧的加速度变化与回弹超调。
ghost_sbs.png(左右对比残影图):- 左侧:正常的清晰静态基准帧(便于了解组件真实外观);
- 右侧:越早越淡、层次清晰的历史残影图(展现运动轨迹、连贯性与位移幅度)。
第二步:多模态直读与双重视图交叉验证
- 直读原视频:
- 优先使用多模态文件查看工具(如
view_file)直接读取原始视频,从全局动态视角把握交互质感与流畅度。
- 优先使用多模态文件查看工具(如
- 查验切片产物:
- 查看生成的
grid_slice.png与ghost_sbs.png,在静态维度下核实微小的时间差(毫秒级)和几何变化(位移像素、旋转角度)。
- 查看生成的
第三步:输出结构化复刻分析报告
完成观察后,用清晰专业的自然语言输出详细报告,报告必须涵盖以下核心模块:
1. 组件视觉层级与初始态 (Visual Hierarchy)
- 描述背景颜色、主组件尺寸、边框风格(Border)、圆角大小(Border Radius)。
- 描述多图层上下层级关系(如前置主卡片与后置隐藏卡片的 Z-index 结构)。
2. 光标特殊形态与变换细节 (Cursor Morphing)
- 鼠标指针在进入组件前后是否有特殊形态变换(例如:常态图标是什么、取得焦点后是否变成特定图标、透镜、放大镜或磨砂玻璃光圈)。
- 光标是否有自定义尺寸、模糊滤镜(
backdrop-filter)或背景透射效果。
3. 触发机制与交互时机 (Trigger Mechanism)
- 明确是无需点击(纯 Hover 触发)还是点击触发(Click)。
- 碰撞盒判定边界(进入边缘即触发,还是有延迟防抖)。
4. 动效物理学与运动曲线 (Motion Physics)
- 过渡总时长:以毫秒(ms)为单位(例如 300ms ~ 350ms)。
- 位移与旋转:X 轴与 Y 轴的具体位移幅度(px)、旋转方向与角度(deg)。
- 回弹与物理曲线 (Spring / Overshoot):
- 是否存在弹簧超调回弹(在何时达到最大形变,随后回弹多少像素)。
- 是否为加速弹出后缓动停靠。
- 移出或反向动效 (Exit / Retract):光标离开后的收回速度与曲线。
5. 推荐技术栈与高保真复现方案 (Tech Stack Recommendation)
- 动效库选择:
- 强烈倾向使用成熟动效库(如 React 环境下的
Framer Motion,使用type: "spring"配置stiffness与damping参数)。 - 避免手动手搓复杂的三次贝塞尔曲线(
cubic-bezier)。
- 强烈倾向使用成熟动效库(如 React 环境下的
- 特殊视觉效果实现:
- 针对磨砂玻璃、高斯模糊等效果,倾向使用原生 CSS 属性(如
backdrop-filter: blur(...))或现成组件库,避免手搓 WebGL 着色器。 - 提供具体的参考代码片段(TypeScript / React / CSS)。
- 针对磨砂玻璃、高斯模糊等效果,倾向使用原生 CSS 属性(如
三、 参数调优指南 (Tuning Reference)
根据用户的录屏节奏,可在调用脚本时灵活微调参数:
| 动效场景 | 建议参数 | 说明 |
| 超快微动效 (100ms ~ 300ms) | --fps 60 --steps 10 | 提高抽帧频率,捕捉眨眼间的弹簧回弹 |
| 慢速缓动动效 (800ms ~ 2s) | --fps 15 -d 1.5 | 降低帧率,拉长持续时间,避免帧与帧之间差异过小 |
| 非标准网格需求 | --rows 3 --cols 3 (9帧) 或 --rows 3 --cols 4 (12帧) | 单图更大,展示更清晰 |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

