playwright-demo-videolisted
Install: claude install-skill jackzhaojin/ai-builder-kit
# Playwright Demo Video Skill
Generate end-to-end demo videos (MP4) from Playwright specs with on-screen captions, AI voiceover (ElevenLabs), freeze-frame timing, and background music.
## When to Use
- User says "create a demo video", "generate a demo", "playwright demo"
- User wants to convert a Playwright spec into a narrated video
- User wants to add voiceover to an existing video recording
- User wants to auto-discover project features and generate a demo spec
- User wants to extract captions from a Playwright test file
## Prerequisites
| Tool | Purpose | Install |
|------|---------|---------|
| ffmpeg + ffprobe | Video/audio processing | `brew install ffmpeg` |
| Node.js 18+ | Pipeline scripts (native fetch) | Required for Playwright |
| Playwright | Video recording | In target project |
| ElevenLabs API key | TTS voice generation | `ELEVENLABS_API_KEY` in `.env` |
## Quick Start
One command records the spec, captures exact timestamps, generates voiceover, and merges the final MP4:
```bash
node scripts/run-pipeline.mjs \
--record \
--spec path/to/demo.spec.ts \
--grep "Exact Test Title Here" \
--music path/to/background.mp3 \
--output-dir ./demo-output \
--project-dir /path/to/web-project
```
Two non-negotiables before running it:
1. The spec calls `startTimestampRecording()` as its first line (exact video-audio sync)
2. `--grep` matches exactly ONE test (see Multiple `@demo` Specs below)
## Data-First Approach (MANDATORY)
**You cannot narrate what