Record, check and render a demo clip of a web page, one before-and-after clip or image of a change, or a bug clip for an issue, for a chat message, a team post, a social post or an issue. Use before recording any clip of an app, including a bug's repro for an issue, before attaching before and after screenshots of a change (one stacked before-and-after clip or image replaces them), when a clip looks robotic, shaky, rushed or too polished, and when the owner changes how clips look, move or read.
92%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Low
Low-risk findings worth noting
One recorder makes every demo clip, scripts/clip.ts in this skill's folder, written <skill dir> below. It draws a cursor that lands like a hand, sends pointer input on a steady 60 Hz clock, films at 60 fps, and reviews each take before it renders.
The recorder runs on Bun and ffmpeg. The first time, and whenever <skill dir>/scripts/node_modules is missing, run bun install --cwd <skill dir>/scripts, then bunx --cwd <skill dir>/scripts playwright-core install chromium if Chromium will not launch.
Write a scene, a Bun script that opens the page, sets it up, films the gesture and finishes. Keep it with the work it shows, such as the run's own folder.
import { openClip } from '<skill dir>/scripts/clip.ts'
const clip = await openClip('http://localhost:3000/editor')
// Setup happens here, through clip.page, and stays out of the clip.
await clip.place(700, 500)
await clip.film(process.argv[2])
clip.beat('Draw a note')
await clip.click(clip.page.getByRole('button', { name: 'Note' }))
await clip.drag([300, 200], [470, 310])
await clip.wait(800)
console.log(JSON.stringify(await clip.finish({ x: 200, y: 100, w: 600, h: 400 })))Run bun <scene>.ts <take dir>. It writes clip.webm, trail.json and take.json there.
Run bun <skill dir>/scripts/clip.ts review <take dir> and fix it as Review and fix says.
Run bun <skill dir>/scripts/clip.ts render <take dir> <out.mp4> --tag <tag> --title "<title>". The title bar is the clip's headline, a one-word area tag and what you do in a few lowercase words, such as board / a whiteboard inside your doc. It refuses a take with a FAIL, cuts it, adds the bars, encodes at 60 fps, reviews the file, and writes one still at the end of each caption into <take dir>/stills/, printing a STILL line for each. Its SIGNALS line, saved as <take dir>/signals.json, gives the clip's length, when something first moves, the share of time something moves, how much of the frame the result changes, and the page text's size on a phone.
Read every still before the clip goes anywhere.
A clip shown in a Claude session stays local. A clip an agent makes for a team chat goes out the way that project's chat rule says. Where that rule names a preview route, the clip goes to the owner first as a preview and posts only once the owner approves it there, never straight to a channel.
A change to how something a reader already saw behaves, such as a control, a menu or a gesture that went wrong, shows as one clip made from a take of the old code and a take of the new. A change to how something looks at rest, such as copy, a style or a layout, shows as one image with the old still stacked above the new. Neither goes out as two separate files. A feature with nothing before it gets a plain clip or still.
For a clip:
Export it as Markdown, because render lines the takes up by their captions. Keep the scene in a narrow column with blank page around it, because the replay trims that blank margin and shows less page at a larger size. A take where nothing moves after its result holds it with read(1500), so the viewer can read it.bun <skill dir>/scripts/clip.ts render <after take> <out.mp4> --before <before take>, with the same bar flags as a plain clip. It refuses two takes whose frames differ in size, whose captions differ in number, or that end every step the same. The clip plays the old take whole under a red BEFORE tab and the new take whole under a green AFTER tab. Then the new page shrinks into its copy while the old one slides in beside it, and both replay in step, trimmed to the page area either take uses. They replay in rows, old above new, unless the trimmed area is tall enough that columns, old left of new, show it larger. Its FIXED line gives the arrangement, the replay's zoom and the page text size a phone shows in it.<after take>/stills-compare/.For an image, take both stills at one size and density, then run bun <skill dir>/scripts/clip.ts pair <before.png> <after.png> <out.png> --scale <pixels per CSS px>, with the bar flags when the image goes out as a demo. It crops both to the area where they differ and stacks them, each under its badge. Read the image before you send it.
A bug clip shows a bug for an issue. It is evidence, so render keeps its real time, because a pause can be the bug and the issue's timestamps must match the clip.
openClip(url, { shape: 'repro' }), or { shape: 'repro', size: { width, height } } when the bug needs a narrow or tall window. Caption each step as the issue's Reproduction steps word it, with its keys as keycaps, such as [Shift] [Enter] then type def. End on the wrong state with read(2000) under a caption that says what went wrong, such as Only "ch" keeps the yellow mark. Crop to the editor and whatever the steps click, with room under the editor.bun <skill dir>/scripts/clip.ts render <beta take> <out.mp4> --route <path> --build <commit>. For a reference, add --before <reference take> --names <reference site>,beta. The clip then plays the reference take under a gray tab named for its site, the beta take under a red beta tab, and both stacked.<beta take>/stills/, or stills-compare/ for a reference.The recorder drives Chromium only. A bug that shows only in Safari, Firefox or on a phone gets a person's recording.
These are the parts no check can see.
glide, drag, over, press, click and write. Playwright's page.mouse waits until each move is handled, so a stroke grows in uneven jumps on a smooth video. page.mouse and page.keyboard.type are for setup before film(). During the clip, type with write and press keys with page.keyboard.press. Hold a modifier through a drag with keyDown and keyUp, such as Shift for a circle, because a key held with page.keyboard.down never reaches the clip's mouse events.beat() as each action starts. Its caption says what you do in a few words, such as Draw a note. A keyboard clip shows its keys, such as [N] [Enter], because the video cannot.wait only paces an action. Where a viewer must read something that just appeared, such as a toast or a label, hold with read(ms), about 1 s for a label and 2 to 3 s for a toast, and render keeps that hold whole.{ shape: 'wide' } films 1100 by 720, only for a clip that answers a question in chat and never goes out as a demo.{ storageState: '<file>' }, the Playwright storage state the project's own login helper saves.stroke, which starts already moving, because the minimumJerk curve dwells at the start and pools ink in a blob.{ cursor: false }, so no idle cursor sits on the page.Every take goes through review before anyone sees it, and you fix what it finds without asking.
FAIL lines break a rule. Fix the scene and record again. Never send or show a clip with a FAIL. Each line names its fix.FIXED lines are what render corrected on its own, such as a caption's capital or a crop's odd side. Fix the scene too, so the next take is clean.TRY lines would make the clip better. Apply each one that does, and say which you skipped and why.The owner's latest word wins over this skill and the code. Change this skill's source repository, never an installed copy, in the same turn:
CLIP, a check in scripts/clip.ts (checkTrail, checkCaption, checkTitle, checkPair, reviewTake, reviewFile), or the Clip method that does the motion. A rule that no code can hold goes in Method above.(the owner, 2026-11-19).bun scripts/rules.ts. It rewrites the rule list below from RULES in scripts/clip.ts.scripts/clip.test.ts, then run bun test in scripts/. rules.test.ts fails while this list and the code disagree.CLIP's length and size limits into its own media rules needs a restart after a change to them.When the owner corrects the same thing a second time, make it a check that fails on the take they corrected, rather than another line in Method.
reviewFile, renderClip in scripts/clip.ts)reviewTake, reviewFile in scripts/clip.ts)reviewTake in scripts/clip.ts)reviewTake in scripts/clip.ts)read(ms). (squeezePlan, renderTake in scripts/clip.ts)captionHtml, renderClip in scripts/clip.ts)checkCaption, fixCaption in scripts/clip.ts)captionOverlay in scripts/clip.ts)place parks stays hidden until it first moves. (drawCursor, Clip in scripts/clip.ts)checkTrail in scripts/clip.ts)checkTrail in scripts/clip.ts)checkTrail in scripts/clip.ts)checkTitle, renderClip, renderTake in scripts/clip.ts)fitCrop in scripts/clip.ts){ shape: 'wide' }. Its page text shows at 9 pt or more in a phone's feed, which shows a clip about 312 pt wide. (openClip, reviewTake in scripts/clip.ts)checkBar in scripts/clip.ts)read(ms), and the replay ends holding both results for 1.2 s. Render refuses two takes that end every step the same, and the whole clip keeps the length and size limits. (checkPair, renderCompare, alignBeats, pageColor, contentBox, replayLayout, renderMove, renderReplay, squeezePlan in scripts/clip.ts){ shape: 'repro' }, a 760 by 560 px window at 2× pixels unless size names the window the bug needs. Render keeps its real time and cuts nothing, because a pause can be the bug. Its bar names the browser, the route and the build instead of a title. It ends holding the wrong state at least 2 s, and runs at most 60 s and 100 MB. A bug with a reference page shows as the before-and-after clip of a take on the reference page and a take on beta, each tab naming its site, the reference gray and beta red. (openClip, reviewTake, pageClip, renderClip, renderCompare in scripts/clip.ts)renderPair, changedBox in scripts/clip.ts)udecode/plate
46bed0c
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.