Records real usage of the current project's app for a video: scripted web flows to 60fps mp4 with a step timeline, or simulator captures. Captures the project's actual running app as footage for a demo, launch or tutorial video: starts the dev server, explores the screens, rehearses a scripted Playwright flow until every selector holds, then records it through Chrome's screencast at 60fps CFR h264 with a JSON timeline of each step's time and target box (for a cursor, zooms and captions added later). iOS Simulator and Android emulator captures go through simctl and adb. Use when the user wants a screen recording, 사용 녹화본, 데모 녹화, or walkthrough footage of their app: "우리 앱 사용하는 장면 녹화해줘", "회원가입 플로우 녹화본 떠줘", "데모 영상용으로 대시보드 화면 녹화해", "record a walkthrough of the checkout flow". A full video request goes through video-studio, which calls this. Not for E2E tests (e2e-generator), QA or bug repro (qa), screenshots, or editing existing footage.
Ships in toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Footage of the real product is the proof in a product video, and it only looks good when it was
planned: a flow that fumbles a selector, waits on a spinner or shows test garbage reads as broken.
So the order is always Discover, Rehearse, Record. Script paths below are relative to this SKILL.md's
directory. recordings/ below means the output directory the caller gives (video-studio passes
recordings/<lang>/; default videos/<slug>/recordings/). Run the record script from videos/<slug>/,
so storageState and other paths in a flow file resolve from there. For another language, copy the
flow file into that language's directory and change only locale (and any typed text that should be
in that language).
From the caller or the user: which flows to show, in what order, and for each one what the viewer
must see happen. Missing details: ask, or use a sensible default and state it. Defaults are a
1920x1080 viewport, light theme, ko-KR locale, 60 fps.
package.json scripts (dev, start), a Makefile, docker compose, or
the README. Start it in the background, wait for the port to answer, and note the PID. You stop
exactly what you started at the end.<input>, what the button text is, what loads late. Prefer selectors that
survive restyling: role and text (role=button[name="저장"], text=추가), data-testid, then ids.context.storageState({path}) to
recordings/.auth.json, and pass it as storageState in the flow. Add .auth.json to the
project's .gitignore if it is not covered.One file per flow, recordings/<flow>.flow.json:
{
"url": "http://localhost:3000/login",
"viewport": {"width": 1920, "height": 1080},
"fps": 60, "colorScheme": "light", "locale": "ko-KR",
"storageState": "recordings/.auth.json",
"leadIn": 800, "tail": 1200,
"steps": [
{"label": "이메일 입력", "action": "fill", "selector": "#email", "value": "[email protected]", "typeDelay": 60},
{"label": "로그인", "action": "click", "selector": "role=button[name=\"로그인\"]", "hold": 1200},
{"label": "대시보드 로딩", "action": "waitFor", "selector": "text=이번 주 매출"},
{"label": "아래로", "action": "scroll", "y": 700}
]
}
Actions: goto (url, relative allowed), click, hover, fill (types character by character),
press (key), scroll (y pixels), wait (ms), waitFor (selector, ms timeout). hold
is the pause after a step in ms (default 900): give the viewer time to read what just changed.
Pacing is the main quality lever. A beat the narration talks over needs a longer hold.
deviceScaleFactor (default 1) sets the take's pixel density. Set 2 for a flow the compositor will
zoom past 1.5x: the mp4 is then twice the viewport (1440x900 records at 2880x1800), so a 2x zoom
still shows the source at 1:1. A 2x take loops screenshots instead of the screencast and gets about
13 distinct frames a second, so short hover and fade transitions look stepped. Keep 1 for flows that
stay unzoomed or show fast motion.
NODE_PATH="$(npm root -g)" node scripts/record_web.cjs recordings/<flow>.flow.json recordings/<flow> --rehearse
It runs every step without recording and prints {"ok": ..., "failures": [...]}. Fix each failing
selector or add a waitFor and rehearse again. Do not record until a rehearsal prints "ok": true:
a failure during the real run aborts it. Cannot find module 'playwright' means setup is missing; run
toolkit:video-studio-setup.
NODE_PATH="$(npm root -g)" node scripts/record_web.cjs recordings/<flow>.flow.json recordings/<flow>
Outputs recordings/<flow>.mp4 (h264, CFR at fps) and recordings/<flow>.json:
{"video": "<flow>.mp4", "fps": 60, "size": {"width": 1920, "height": 1080}, "deviceScaleFactor": 1, "duration": 9.15,
"steps": [{"i": 0, "label": "이메일 입력", "action": "fill", "t": 1.227,
"box": {"x": 0.035, "y": 0.156, "w": 0.233, "h": 0.05}}]}
t is seconds from the first frame of the mp4, taken when the pointer reaches the target, which is
when a composited cursor click should land. box is the target in 0..1 of the viewport, so it holds
at any deviceScaleFactor; size stays the viewport in CSS pixels. The system
cursor is not in the video on purpose: the compositor draws an oversized cursor from this timeline.
Check the result before reporting: ffprobe duration within 0.1 s of duration, and look at two or
three frames (ffmpeg -ss <t> -i <mp4> -frames:v 1 <png>) at step times to confirm the UI shows what
the label says.
There is no scripted driver here, so the recording is one long take of the whole flow and scenes pick
segments out of it later. The timeline json has "steps": [], and there is no .flow.json.
When the caller says a platform is shown only as a still (a small phone on an end card), drive to that
screen, save one still (step 3's commands) and report its path with no take: in two measured runs an
Android take that the video used as one still cost 24 and 52 minutes.
simctl and xcodebuild refuse to run against the Command Line Tools. If
xcode-select -p ends in CommandLineTools, prefix every command with
DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer.xcrun simctl list devices available) and use that UDID everywhere;
booted is ambiguous when two are running. Boot it and set a clean status bar:
xcrun simctl status_bar <udid> override --time 9:41 --batteryLevel 100 --cellularBars 4.xcodebuild build-for-testing ... -derivedDataPath <dir> so minutes of compiling are not in the
take, then start the recording, then run xcodebuild test-without-building ... -destination id=<udid> -derivedDataPath <same dir>. Environment variables reach the test only with the
TEST_RUNNER_ prefix (TEST_RUNNER_APP_LANG=ko arrives as APP_LANG). The test's
launchArguments carry the locale (-AppleLanguages (ko) -AppleLocale ko_KR); add them if it
lacks them and the brief's language differs from the simulator's.
A build from an earlier take is reusable when the app has not changed since: copy its
Build/Products folder and run xcodebuild test-without-building -xctestrun <Products>/<scheme>_*.xctestrun -destination id=<udid>, which skips compiling. The test runner
installs before the app opens, so the recording starts on the home screen (16.9 s in one take):
take the first moment from the app launch that measure cuts reports, not from 0.
With no UI test: build and install with the project's own run script or README (an XcodeGen
project needs xcodegen generate first), else xcodebuild build -scheme <app> -destination id=<udid> and xcrun simctl install <udid> <path to .app>. Launch with the locale,
xcrun simctl launch <udid> <bundle id> -AppleLanguages "(ko)" -AppleLocale ko_KR, and ask the user
to tap through while it records.
Setup check before any take over a minute: drive only the setup (names, options, the value the
story must show), take one still (xcrun simctl io <udid> screenshot <png>, Android adb exec-out screencap -p > <png>) and read it against the data the caller asked for. A wrong value found after
an 8 minute slow take costs the whole take again.xcrun simctl io <udid> recordVideo --codec=h264 --force recordings/<flow>.mov, stopped with
SIGINT (Ctrl-C, or kill -INT <pid>) after the driver finishes so the file is finalized. Clear the
status bar override afterwards.adb shell screenrecord --bit-rate 20000000 /sdcard/<flow>.mp4 (180 s cap per file),
stop with Ctrl-C, adb pull. Clean status bar with demo mode, checked on an API 36 emulator
(9:41, full Wi-Fi, full battery, nothing else):
adb shell settings put global sysui_demo_allowed 1
b() { adb shell am broadcast -a com.android.systemui.demo "$@" >/dev/null; }
b -e command enter; b -e command clock -e hhmm 0941; b -e command battery -e level 100 -e plugged false
b -e command network -e wifi show -e level 4 -e fully true # without `fully true` the Wi-Fi icon carries a "!"
b -e command network -e mobile hide # `mobile show -e datatype lte` still drew "3G" and an empty triangle
b -e command notifications -e visible false
Leave it with b -e command exit after the take. Start screenrecord right before the tap that starts the
moment, so the 180 s go to the moment and not to setup. With no instrumented test the driver is a
shell script of adb shell input tap <x> <y>, with coordinates read from adb shell uiautomator dump
on still screens. Its rules, each from minutes lost in a measured run:
adb shell input text sends key codes, so Hangul throws. Put the names in
as data when the debug build keeps them in a SQLite database: stop the app, copy out the database
with its -wal and -shm files (adb exec-out run-as <pkg> cat databases/<db> > <db>, and the same
for <db>-wal and <db>-shm; copying the main file alone drops every commit still in the WAL, which
lost a round and a timestamp in one test), keep a copy as the backup, insert the rows with sqlite3
on the Mac and fold the WAL in (sqlite3 <db> "PRAGMA wal_checkpoint(TRUNCATE);"), delete the
device's <db>-wal and <db>-shm, write the one file back with the whole remote command in quotes
(adb shell "run-as <pkg> sh -c 'cat > databases/<db>'" < <db>; unquoted, the redirect runs outside
run-as and fails with can't create databases/<db>) and relaunch. Restore the backup the same way
when the take is done. That took 1 minute for
a group of 12 and never shows a keyboard. When the names must be typed, send each one's keys on the
keyboard's own layout (adb shell input text alstn types 민수 on a two-set Korean keyboard), which
took 5 minutes for six names with the failed tries. Either way the step 3 still must show them.text equals the label, or whose content-desc does
when text is empty (Jetpack Compose buttons put the label there). Read the label from the dump,
do not guess it: "우리 집(으)로 시작" matched nothing, the screen said "우리 집으로 시작". A substring match on "시작"
tapped "시작 자리 섞기", the round never started and the wait behind it ran 10 minutes.uiautomator dump hangs on it or returns null root node.
Never call it between the start tap and the end screen. For a round of unknown length poll a still:
adb exec-out screencap -p > p.png every 2 s, and read one pixel only the end screen has
(ffmpeg -v error -i p.png -vf crop=1:1:<x>:<y> -f rawvideo -pix_fmt rgb24 - | od -An -tu1).
Take the pixel and its colour from a still of the real end screen in rehearsal; a guessed one fired
on the wrong screen in one take and never fired in the next.adb shell dumpsys gfxinfo <pkg> | grep -E "50th|90th". A 90th percentile far over 33 ms means the
emulator is starved, not the app: a 60 s round took 190 s and ran past the 180 s cap. Restart it
(adb emu kill, then emulator -avd <avd> -cores 4 -memory 4096 -gpu host -no-snapshot -no-window -no-audio) and measure again; 200 ms came back to 30 ms.ffmpeg -i <mov> -vf fps=60 -c:v libx264 -preset veryfast -crf 18 -pix_fmt yuv420p recordings/<flow>.mp4, and write recordings/<flow>.json as {"video": "<flow>.mp4", "fps": 60, "size": {...}, "duration": <s>, "steps": []}. Keep the .mov next to it: the mp4 is for finding
moments, and video-studio cuts clips from the .mov, whose real frame timing the resample loses.ffmpeg -i <take> -vf "fps=1,scale=320:-1,tile=8x8" recordings/<flow>-sheet-%02d.png. <take> is
the .mov (or the pulled Android mp4), and the sheets start while step 6 encodes: the seconds are
the same as the mp4's, they took 26 s for an 8 minute take against 91 s for the encode, and a wrong
value or a round that never started shows before the encode is paid for.
Cells run left to right, top to bottom, so cell k (from 0) of sheet n is second 64 * (n - 1) + k.
(No drawtext timecode: many ffmpeg builds lack it.)
With the HyperFrames plugin installed, get the screen changes from the mp4 before reading sheets:
npx --yes "hyperframes@$(basename "$(ls -d ~/.claude/plugins/cache/hyperframes/hyperframes/*/ | sort -V | tail -1)")" measure cuts "$PWD/recordings/<flow>.mp4"
prints every change (t, change) and the shots between them as JSON, 16 s for that take. A
full-screen push scores highest within a take (three result screens came out at 203 to 212 in one
take, screen changes at 13 to 36 in another, so compare scores inside one take, never against a fixed
number), and a certificate's shot came out at 442.38 to 451.12 where frame-by-frame checks had settled
on 442.5 to 451.0. One transition can come back as several cuts a few hundredths apart: treat cuts
within 0.3 s as one. Segment ends
come from it and the sheets are for naming each shot and for moments inside a moving shot, which it
does not see. Run it on the mp4, never the .mov: on a .mov whose frame rate reads 600 it packed
every cut of a 280 s take into the first 23 s. Its events command is no help here (203 events
in 33 s of a game). Look at the sheets and list the moments worth
showing with their start and end seconds in your report; confirm an exact cut point with a single
frame, ffmpeg -ss <t> -i recordings/<flow>.mp4 -frames:v 1 <png>.
The orchestrator writes those into the storyboard as in, out, speed.recordings/<flow>.taps.json, [{"t": <take seconds>, "x": 0..1, "y": 0..1}].
Sources: a UI test that prints each tapped element's frame with a timestamp, or taps you read off the
contact sheets and single frames. UI test timestamps drift against the recording by a second or more
over a long take, so align each segment by a visible landmark (the frame where a chip appears) rather
than one global offset. Skip it rather than guess.The simulator cannot draw a busy screen (game, physics, Canvas, looping effect) in real time. The app asks for 60 frames a second and the take holds about 30, missing the rest in 0.15-0.25 s gaps, so the clip hitches however it is cut. Codec, a smaller device, the Simulator window and the driver do not change that. What works is running the app's clock at 1/3 speed while recording and playing the clip back 3x: the simulator then draws every tick, and the clip has about 60 real frames a second (measured on an M1 Pro: longest gap 220-250 ms in real time, 45-59 ms at 1/2, 33 ms at 1/3). So every mobile flow whose moments include a moving screen gets a second, slow take of those moments. Screens that are mostly input and navigation (typing, sheets, pushes) stay on the real-time take: the keyboard, system transitions and a UI test's typing run on the wall clock and would play 3x fast.
-recordTimeScale <s>, read once from
UserDefaults.standard (launch arguments land there), compiled out of release builds. Look for it
first. Adding it edits the app: list the files you would touch, say why, and wait for the user's yes.
When video-studio passes app edit approved (auto), add it without waiting and list the changed
files in the report.
With s set:
TimelineView(.animation), CADisplayLink, a shared
frame clock feeding game logic) ticks no faster than 60 * s a second
(.animation(minimumInterval: 1 / (60 * s))) and advances exactly 1/60 s per tick instead of the
wall-clock delta;1 / s times as long: design-system motion constants,
repeating loops (keyframeAnimator, repeatForever), and Task.sleep / asyncAfter / Timer
waits that pace the screen. Missing one shows: a 1 s pulse plays three times a second in the clip.
Window layer.speed does not slow SwiftUI animations (measured), so it is no substitute.-recordTimeScale 0.3333, holding each for 3x the app time the
orchestrator asked for (a 2 s certificate shot needs 6 s of the slow take). A UI test gets it through
TEST_RUNNER_RECORD_TIME_SCALE=0.3333, added to launchArguments in its launch helper, and its
waits (sleep, waitForExistence timeouts) grow by the same factor or it times out mid-take.
Without a UI test, xcrun simctl launch <udid> <bundle id> -recordTimeScale 0.3333 ....recordings/<flow>.slow.mov, then steps 6 and 7 for it
(<flow>.slow.mp4, sheets <flow>.slow-sheet-NN.png), and add "time_scale": 0.3333 to recordings/<flow>.slow.json.(slow).Stop the dev server and any browser you started. Report:
video-studio-record: OK | FAIL
<flow>: recordings/<flow>.mp4 <duration> s <n> steps
moments (mobile): <start>-<end> s <what happens>, ...
still (<platform>): recordings/<lang>/<name>.png (a platform asked for as still only)
slow take (mobile): recordings/<flow>.slow.mp4 time_scale 0.3333 moments <start>-<end> s (slow) ...
FAIL names the flow and the step that failed, with the error line.
| Symptom | Fix |
|---|---|
| Rehearsal passes, recording shows a spinner at a step | Add a waitFor on the content that replaces the spinner; networkidle alone misses client fetches |
| Text looks soft when zoomed in later | A deviceScaleFactor 1 take is the viewport size. Record the flow again with deviceScaleFactor: 2, or keep compositor zooms at 1.5x or less |
| Typing reads too fast or too slow | Tune typeDelay per step (40 to 90 ms reads naturally) |
| Video frozen for long stretches | Nothing changed on screen; that is correct, frames repeat until the page changes |
| Simulator take holds 0.1-0.3 s then jumps, several times a second, on game or animation screens | Two causes. The step 6 fps=60 resample drops frames recordVideo delivered in bursts; video-studio's footage_cut.py cuts from the .mov and keeps them. The simulator also never draws about half the frames of a busy screen; only a slow take brings those back |
Android: uiautomator dump hangs or fails on a game or animation screen | It waits for an idle screen that never comes. On moving screens wait by time or by the pixel poll in Mobile step 5 and tap by coordinates (adb shell input tap x y); use uiautomator only on still screens |
Android: the boot wait runs out and adb devices shows unauthorized | The adb server lost the emulator's key: adb kill-server; adb start-server, then check adb shell getprop sys.boot_completed prints 1. One run waited 5 minutes on this |
| Slow take clip: one effect pulses or spins too fast | That effect runs on the wall clock. Find its duration or loop and scale it by 1 / s under -recordTimeScale |
| Slow take clip: typing or a screen push is too fast | Input and navigation belong on the real-time take; cut that moment from it |
What SKILL.md sets; muted values are Claude Code's defaults
/toolkit:video-studio-recordfrom toolkit
npx claudepluginhub siu9068/ggyul-skills --plugin toolkit49 skills in this plugin
/artifact-build디자인 소스 링크 하나(Claude 아티팩트, Claude Design 캔버스, Claude Docs, Figma, Open Design)를 받아 앱을 처음부터 완성까지 끌고 가는 오케스트레이터. claude.ai 채팅 링크(`claude.ai/chat/...?artifact=...`)나 아티팩트 링크를 붙여넣고 그대로 만들어 달라는 요청이면 링크가 문서인지 캔버스인지 확인하는 일까지 이 스킬이 맡으니 docs 도구로 먼저 가지 말고 이 스킬을 켠다. 모든 페이지를 읽어 스펙을 만들고, 프로젝트가 아직 없으면 project-setup 질문지만 사용자에게 묻고 세팅한 뒤, 나머지 결정은 자동승인 게이트가 내리며 api-creator, screen-creator, android-screen-creator, ios-screen-creator로 병렬 구현하고, 아티팩트 기준 검증에서 FAIL이 0이 될 때까지 갭을 고치고 다시 검증하기를 반복한다. 트리거: "이 아티팩트 링크대로 앱 만들어줘", "claude.ai/artifact/... 이거 보고 완성까지 자동으로 개발해줘", "피그마 링크 줄게 백엔드랑 안드로이드 iOS까지 다 만들어", "디자인 캔버스에 작업목록까지 있으니 끝까지 구현하고 검증해줘", "Open Design 시안대로 처음부터 끝까지". Do NOT use for: 링크 없이 스택만 세팅 (`project-setup`), 이미 있는 스펙 문서 구현 (`spec-implementer`), 한 줄 요청 구체화 후 구현 (`feature-builder`), 아티팩트에서 스펙만 뽑기 (`artifact-build-ingest`), 검증만 (`artifact-build-verify`), 레퍼런스로 토큰만 (`design-system-import`)./artifact-build-ingest디자인 소스 링크(Claude 아티팩트, Claude Design 캔버스, Claude Docs 문서, Figma 파일, Open Design 같은 웹 디자인 도구)의 모든 페이지를 로컬로 받아, 페이지 묶음마다 서브에이전트를 병렬로 돌려 요구사항을 뽑고, 출처 페이지가 달린 spec-creator 형식의 스펙(`docs/specs/` 아래 마크다운)과 소스 매니페스트로 만든다. 아티팩트에 작업목록 페이지가 있으면 그 목록을 작업 표의 뼈대로 쓴다. 트리거: "이 아티팩트 읽어서 스펙으로 뽑아줘", "피그마 링크 전체 페이지 요구사항 정리해줘", "claude.ai/artifact 링크 화면 목록이랑 작업 표로 만들어줘", "이 디자인 캔버스 모든 페이지 보고 docs/specs에 정리". 링크를 받아 세팅, 구현, 검증까지 끝까지 가는 전체 요청이면 `artifact-build` 경유. Do NOT use for: 인터뷰로 스펙을 새로 쓰는 일 (`spec-creator`), 이미 있는 스펙을 구현하는 일 (`spec-implementer`), 구현이 아티팩트를 충족하는지 판정하는 일 (`artifact-build-verify`), 레퍼런스로 디자인 토큰만 뽑는 일 (`design-system-import`, `native-design-system-import`).Other plugins' skills for the same job