What problem does it solve?
Capturing consistent video recordings of Storybook component animations across multiple themes (light, dark, high-contrast light, high-contrast dark) is a repetitive manual task. This Skill automates frame capture and encoding to produce GitHub-compatible H.264 MP4 files for documentation, pull requests, and design reviews.
Core Features & Use Cases
- Multi-Theme Recording: Records a single Storybook story in all four themes (light, dark, hc-light, hc-dark) via the story iframe URL with theme globals.
- Automated Frame Capture: Uses Playwright MCP browser automation to capture PNG frames at ~60fps for a configurable duration and viewport size.
- GitHub-Compatible Encoding: Encodes frames with ffmpeg using libx264, yuv420p pixel format, and faststart flags for inline GitHub playback.
- Use Case: A developer updating an animated progress component records before/after videos in all themes to attach to a pull request demonstrating the visual change.
Quick Start
Record a 20-second video of the Storybook story progress-linearprogress--basic in all four themes and save the MP4 files to the project root with the prefix linear-progress-old.