video-maker-screen-capture
Record the real web UI of the project open in this session with Playwright and turn it into a Video Maker tutorial — a silent 1080p30 screen recording plus a narration script timed to each step, uploaded to the studio for voice, captions, logo, music and render. Also takes clean screenshots of the UI for animated videos. Use it for tutorials, how-tos, onboarding videos, demos and screencasts of any web app, dashboard, backoffice, store or landing page that runs locally or in a test environment; if the project has no web UI, it explains how the user can deliver their own recording.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- video-maker-screen-capture
- description
- Record the real web UI of the project open in this session with Playwright and turn it into a Video Maker tutorial — a silent 1080p30 screen recording plus a narration script timed to each step, uploaded to the studio for voice, captions, logo, music and render. Also takes clean screenshots of the UI for animated videos. Use it for tutorials, how-tos, onboarding videos, demos and screencasts of any web app, dashboard, backoffice, store or landing page that runs locally or in a test environment; if the project has no web UI, it explains how the user can deliver their own recording.
02 资源文件 3
- 参考文档references/recording-guide.md3.4 KB
- 脚本scripts/flow.example.mjs1.9 KB
- 脚本scripts/record.mjs22.5 KB
03 SKILL.md 正文
Screen capture (recorded tutorials)
This skill produces raw material, not the final video: a silent recording (the A-roll) and a timed script. The studio then voices the script, adds captions, logo, music and the intro/outro, and renders.
Talk to the user in their language. Describe steps as "I will record: open invoices → pick a customer → save", never as selectors, flags or file paths.
1. Before recording
- One goal per video. "Create an invoice" and "send it" are two videos unless the user wants one.
- Source of truth: the product docs and the UI itself. The narration never claims what the UI does not do.
- Environment: record a local or test environment, never production with real data. If the flow creates, pays, deletes or emails something, say so and confirm with the user first.
- Run the app the way the repo documents it (README, package scripts, docker compose). Do not change the project's code or dependencies; ask if something is missing.
- Login off camera: credentials only from the repo's environment (
.env,.env.localor exported variables, typically a seeded demo user). Never write them in the flow, the chat or the script. - Presentable data: no real customer names, emails, keys or other companies' brands on screen. Use
seed or demo data, and blur leftovers with the
masklist of the flow config (CSS selectors). - Format: tutorials for a desktop audience are 16:9 (
youtube-16x9, default). Anything watched mainly on a phone (WhatsApp, Instagram, TikTok, Shorts, stories, mobile ads, tutorials sent by messaging apps) is a separate vertical recording (reels-9x16,tiktok-9x16orshorts-9x16), never a crop. For vertical the recording viewport is a mobile one: 540×960 at device scale 2, which records 1080×1920 (the formats already set this; keep it unless the app needs another phone width).
2. Install once
The recorder is scripts/record.mjs in this skill (no dependencies besides Playwright and ffmpeg).
-
Playwright, in this order, stopping at the first that works:
-
the host project already has
playwrightor@playwright/test: nothing to install; -
VIDEO_MAKER_PLAYWRIGHT_DIRalready points at a folder that has it; -
install it outside the repo, so the project is not touched:
npm install --prefix ~/.video-maker/recorder playwright export VIDEO_MAKER_PLAYWRIGHT_DIR=~/.video-maker/recorder npx playwright install chromium
If the permission system blocks an install, do not hunt npm caches or other workarounds: ask the user to run those exact commands once, then continue.
PLAYWRIGHT_CHROMIUM_PATHpoints at an already installed Chromium instead. -
-
ffmpeg on the PATH (or
FFMPEG_PATH/FFPROBE_PATH). Without it the raw.webmis kept untrimmed.
3. Write the flow
Copy scripts/flow.example.mjs to .video-maker/flows/<slug>.mjs inside the host repo (never
flow.mjs at the repo root) and adapt it. The flow is reusable and tells how the video was made, so the
user may commit it: say so. Recordings and takes never go inside the repo. A flow file exports:
| Export | What it is |
|---|---|
config |
slug (kebab-case), baseUrl, format, startPath, optional apiUrl (records its JSON responses to verify effects), viewport, scale, locale, timezoneId, mask, cursorColor, closingSeconds (still screen at the end), pace |
narration |
array of sentences, 1:1 and in the same order as the hito() calls |
login(page, { baseUrl, env }) |
optional, runs in a context that is not recorded; the session is carried into the recording |
onNavigate(page) |
optional, runs after every navigation (dismiss a tour, a cookie banner) |
default |
async function with the steps; returns what it verified |
Inside the default function you get: hito(label) (marks where a narration line starts), lineWindow(n)
(waits long enough for line n to be spoken: words / 2.5 + 0.6 s), click, preciseClick (for targets
inside scrolling containers), type (human typing), goTo(path), pause(ms), air(seconds),
waitUntil(condition, { outputSeconds }) (a slow wait that is sped up in the final video), snapshot(name, { fullPage }) (a PNG for motion videos), page, env and apiJson.
Rules:
- Map the UI in the code first, all at once: grep the components for
aria-label,title, button texts, roles. PrefergetByRole/getByLabelwith case-insensitive regexes (CSS may uppercase text). - One
hito()per scene, called when the scene starts; its sentence goes innarration. - Human cursor and typing only (
click,type); neverfill()on camera. - Verify the effect, not the absence of errors: with
apiUrl, checkapiJsonfor the request that created the thing, and return it.
4. Rehearse once, then record
node <this skill>/scripts/record.mjs .video-maker/flows/<slug>.mjs --rehearsal
node <this skill>/scripts/record.mjs .video-maker/flows/<slug>.mjs
--rehearsalruns the whole flow without recording and prints the milestones and the result. Fix selectors until it passes in one go; do not rehearse step by step.- The take writes to
~/.video-maker/recordings/<slug>/, outside the repo (an--outinside the repo is refused; keep it that way, norecordings/folder in the host project):<slug>.mp4(1920×1080 or 1080×1920, 30 fps, H.264 yuv420p, silent, trimmed to start just before the first milestone),script.txt(one[m:ss] sentenceper line),milestones.jsonandimages/(snapshots). - The command prints a JSON summary with absolute paths and a
verificationblock (orientation, pixel format, fps, increasing marks inside the recording). Exit code 1 means the flow or the check failed. - Look at frames before uploading: the first one, each risky moment and the last one (
ffmpeg -ss <t> -i <file> -frames:v 1 frame.png, orextract_framesonce uploaded). - If only one stretch failed, record a second take from the same state and join them with
joinTakesandwriteTimedScriptexported byrecord.mjs(seereferences/recording-guide.md).
5. Hand it to the studio
- Project in footage mode (
create_project, see the entry skill). upload_assetrolearollwith the absolute path of<slug>.mp4.write_project_texttowork/producer/script.txtwith the content ofscript.txt.- Continue with the entry skill's footage steps (voice → montage with
subtle-lowercaptions → logo and intro/outro → proposal → render → review). - Snapshots for a motion video:
upload_assetroleimageand describe each one in the brief.
6. Narration rules
- The audience's language and register; one idea per sentence; ~2.5 words per second.
- Open with a question or a concrete need; close with what to do next.
- The brand never at the very start or end of a line; numbers as they are said; no URLs or acronyms spelled out.
- If the UI is too fast for a sentence, add
air()after the action; never speed up the voice.
7. Recording is a QA session
If the recording shows something wrong (a broken layout, an error, a text that lies), do not hide it with framing: stop, tell the user what you saw and let them decide. What a tutorial shows becomes documentation.
8. No web UI?
If the project has no recordable web UI (an API, a CLI, a native or mobile app, hardware):
- Prefer a motion video (
video-maker-motion-brief); screenshots or terminal captures can be images. - Or the user records their own screen or device and you upload it as A-roll: see
video-maker-raw-materialfor the exact specs (orientation, 30 fps, silent or with their voice).
Lessons that cut a tutorial from hours to ~40 minutes: references/recording-guide.md.
04 同仓库更多 Skills
video-producer
Productor de video conversacional del Video Maker Studio. Parte de un prompt del usuario y del material que haya en `media/<slug>/raw/` (videos, fotos, pantallas grabadas, locución, música, guion, o nada), acuerda con el usuario qué video hacer y lo produce con las herramientas ya implementadas (guion, voz Piper, montaje, captions, mezcla, render), buscando medios libres solo cuando el usuario lo pide o no hay material. Invocar con `/video-producer media/<slug>` o cuando el usuario pida "armá/generá un video" sobre un proyecto.
tucu-ui-pro
Usar siempre que un frontend React/Next use (o vaya a usar) @e-burgos/tucu-ui — montarlo en Vite, Next 16 o una app con Tailwind propio, elegir ThemeProvider/layout/preset, tematizar con customPaletteColor y tokens --tucu-*, elegir el componente correcto con sus props válidos y esquivar las trampas que rompen en runtime, con o sin el MCP tucu-ui conectado.
setup-graphify
Instala y configura graphify (grafo de conocimiento del repo) para un dev que lo quiera usar. Elige un backend gratuito, valida el modelo con una medición real y construye el primer grafo. Invocar solo si el dev pide habilitar graphify.
sdd-steward
Conserje del kit SDD - puerta de entrada para status del harness, actualización de la librería, arranque de ideas, costos y salud de los arneses. Clasifica cualquier pedido con la tabla de ruteo, ejecuta solo lo que no tiene otro dueño y delega el resto sin bypassear gates. Invocar ante cualquier pregunta u operación sobre el kit en sí.
sdd-reviewer
Skill del Agente Reviewer SDD. Valida la calidad de todo el output del ciclo y ejecuta los gates de cierre. Invocar cuando todas las tasks de implementación del ciclo estén completas.
sdd-planner
Skill del Agente Planner SDD. Convierte historias de usuario en tasks técnicas ordenadas y estimadas. Invocar después del Funcional, en paralelo con el Arquitecto.