New: Earn 20% as an AgentAlley affiliate. Share your link and earn on every sale you refer. Join now New: Earn 20% as an affiliate. Join now

Scripted Screencast

Scripted screencast

by dotslashsimran · MIT license · ★ 546 on GitHub

Scripted screencast cover

Turn a browser product demo written as a script (click, type, hover, scroll, zoom, caption) into a polished Screen Studio style recording. You get a smooth human-like cursor, click ripples, automatic zoom on small targets, typing at…

---
name: scripted-screencast
description: Turn a browser product demo written as a script (click, type, hover, scroll, zoom, caption) into a polished Screen Studio style recording. You get a smooth human-like cursor, click ripples, automatic zoom on small targets, typing at human speed, a padded background with a rounded window frame, burned-in captions and an optional 9:16 version that follows the cursor. It is frame-perfect and needs no retakes, and you can re-render it in minutes after the UI changes. Use when the user says "record a demo", "screen recording", "product walkthrough video", "Screen Studio style", "demo video of my app", "make a screencast", or wants to re-record a demo after a UI change.
---

# Scripted screencast

You write the demo as a list of steps. The renderer drives the app in a headless browser on a virtual clock and takes one screenshot per frame. It then adds the cursor, the zoom, the frame and the captions, and encodes the video. Every run of the same script gives the same video.

Setup, once: `cd ~/simcraft && npm i` (Playwright), and ffmpeg on the PATH or in `FFMPEG`.

## Steps

1. **Stage the app first.** Run it locally and fill it with believable data under a fictional brand: real-looking names, a day already half done, no empty states and no "test123". Put the staging in the script's `setup` (seeded localStorage, an API call, a login with a demo account) so every render starts from the same state. Never type real credentials into any site.
2. **Write the script** next to the project as `demo.mjs` (or `.json`). Start from [examples/tidy-demo.mjs](examples/tidy-demo.mjs). Use one caption per idea and keep the whole thing between 20 and 60 seconds.
3. **Preview.** This runs at 24 fps and half size, and takes about 30 seconds:
   ```
   node ~/simcraft/skills/video/scripted-screencast/scripts/render.mjs demo.mjs --preview

Overview

You write the demo as a list of steps. The renderer drives the app in a headless browser on a virtual clock and takes one screenshot per frame. It then adds the cursor, the zoom, the frame and the captions, and encodes the video. Every run of the same script gives the same video.

Manual install (npx, ZIP)
Claude Codenpx skills add dotslashsimran/simcraft --skill scripted-screencast -g -a claude-code
Claude Code (degit)npx degit dotslashsimran/simcraft/skills/video/scripted-screencast#main ~/.claude/skills/scripted-screencast
Claude.ai / desktopZip the folder and upload it under Settings → Capabilities → Skills.
Codex, Cursor, other agentsPoint them at SKILL.md. The other files are plain text.

Connects with Agent Alley MCP · agentalley.io/mcp

Files included

  • SKILL.md4.7 KB
Read SKILL.md here
dotslashsimran/main1 file shown
SKILL.md
Show the full text71 lines
scripted-screencast/SKILL.md71 lines · 4.7 KB

Scripted screencast

You write the demo as a list of steps. The renderer drives the app in a headless browser on a virtual clock and takes one screenshot per frame. It then adds the cursor, the zoom, the frame and the captions, and encodes the video. Every run of the same script gives the same video.

Setup, once: cd ~/simcraft && npm i (Playwright), and ffmpeg on the PATH or in FFMPEG.

Steps

  1. Stage the app first. Run it locally and fill it with believable data under a fictional brand: real-looking names, a day already half done, no empty states and no "test123". Put the staging in the script's setup (seeded localStorage, an API call, a login with a demo account) so every render starts from the same state. Never type real credentials into any site.
  2. Write the script next to the project as demo.mjs (or .json). Start from examples/tidy-demo.mjs. Use one caption per idea and keep the whole thing between 20 and 60 seconds.
  3. Preview. This runs at 24 fps and half size, and takes about 30 seconds:
    node ~/simcraft/skills/video/scripted-screencast/scripts/render.mjs demo.mjs --preview
    
    Then check the zoom and framing at a few moments, and look at the stills:
    node .../render.mjs demo.mjs --preview --stills 1,4.5,9
    
    If a step fails, the error names the step and saves failed-step-N.png showing the page at that moment.
  4. Final. This renders 60 fps at 2x pixels into a 1920x1080 video. Add --vertical for a 1080x1920 version as well:
    node .../render.mjs demo.mjs --vertical
    
  5. Report what was staged (data, fake brand, anything faked) and give the output paths.

Script

export default {
  url: "http://localhost:3000",          // or a file path relative to the script
  viewport: { width: 1280, height: 720 }, // 1280x720 keeps text big enough for phones
  look: { background: "peach", title: "Tidy" },
  setup: [ { localStorage: { "tasks": [...] } }, { reload: true } ],  // not recorded
  steps: [
    { caption: "Add a task in seconds" },
    { click: "#newBtn" },
    { type: "Sign the gallery contract", into: "#title" },
    { click: { role: "button", name: "High" } },
    { press: "Enter" },
    { wait: ".toast" },
    { scroll: 400 },
    { zoom: ".chart" }, { pause: 1500 }, { zoom: "off" },
  ],
};

Targets can be a Playwright selector ("#id", "text=Save") or { role, name }, { text }, { label } or { placeholder }. Prefer role and visible text, because they survive redesigns better than CSS classes. The full step list, every option and all the look settings are in reference.md.

Pacing rules

  • Cursor moves take 400 to 900 ms, depending on the distance. This is automatic. Only set moveMs for a deliberate slow move.
  • Hold about 600 ms after each result so people can read it. This is automatic after click, type and press. Use hold on a step for a bigger moment, such as 1200 ms after the main payoff.
  • Zoom only when the target is small. Auto zoom does this for targets under 4% of the screen and stays in while actions are close together. Use an explicit zoom for a result you want people to read, and zoom: "off" before a wide view.
  • Give the opening a second of stillness. The default head does this.
  • One caption per idea, under 8 words, shown before the action it describes.

After a UI change

Run the same command again. The script finds elements by role and text, so most changes need no edits. If a step fails, fix only that target (the error names it and saves a screenshot), preview, then do the final render. To change only the look (background, zoom, captions) without capturing again, render the final with --keep once, then use --compose-only.

Rules

  • Fictional brands and data only. Never record real customer data, real credentials or someone else's product presented as yours.
  • Always preview before the final render and look at the stills yourself.
  • Don't fake speed with pace: if the app is slow, stage the result or wait for it on camera.
1---
2name: scripted-screencast
3description: Turn a browser product demo written as a script (click, type, hover, scroll, zoom, caption) into a polished Screen Studio style recording. You get a smooth human-like cursor, click ripples, automatic zoom on small targets, typing at human speed, a padded background with a rounded window frame, burned-in captions and an optional 9:16 version that follows the cursor. It is frame-perfect and needs no retakes, and you can re-render it in minutes after the UI changes. Use when the user says "record a demo", "screen recording", "product walkthrough video", "Screen Studio style", "demo video of my app", "make a screencast", or wants to re-record a demo after a UI change.
4---
5 
6# Scripted screencast
7 
8You write the demo as a list of steps. The renderer drives the app in a headless browser on a virtual clock and takes one screenshot per frame. It then adds the cursor, the zoom, the frame and the captions, and encodes the video. Every run of the same script gives the same video.
9 
10Setup, once: `cd ~/simcraft && npm i` (Playwright), and ffmpeg on the PATH or in `FFMPEG`.
11 
12## Steps
13 
141. **Stage the app first.** Run it locally and fill it with believable data under a fictional brand: real-looking names, a day already half done, no empty states and no "test123". Put the staging in the script's `setup` (seeded localStorage, an API call, a login with a demo account) so every render starts from the same state. Never type real credentials into any site.
152. **Write the script** next to the project as `demo.mjs` (or `.json`). Start from [examples/tidy-demo.mjs](examples/tidy-demo.mjs). Use one caption per idea and keep the whole thing between 20 and 60 seconds.
163. **Preview.** This runs at 24 fps and half size, and takes about 30 seconds:
17 ```
18 node ~/simcraft/skills/video/scripted-screencast/scripts/render.mjs demo.mjs --preview
19 ```
20 Then check the zoom and framing at a few moments, and look at the stills:
21 ```
22 node .../render.mjs demo.mjs --preview --stills 1,4.5,9
23 ```
24 If a step fails, the error names the step and saves `failed-step-N.png` showing the page at that moment.
254. **Final.** This renders 60 fps at 2x pixels into a 1920x1080 video. Add `--vertical` for a 1080x1920 version as well:
26 ```
27 node .../render.mjs demo.mjs --vertical
28 ```
295. **Report** what was staged (data, fake brand, anything faked) and give the output paths.
30 
31## Script
32 
33```js
34export default {
35 url: "http://localhost:3000", // or a file path relative to the script
36 viewport: { width: 1280, height: 720 }, // 1280x720 keeps text big enough for phones
37 look: { background: "peach", title: "Tidy" },
38 setup: [ { localStorage: { "tasks": [...] } }, { reload: true } ], // not recorded
39 steps: [
40 { caption: "Add a task in seconds" },
41 { click: "#newBtn" },
42 { type: "Sign the gallery contract", into: "#title" },
43 { click: { role: "button", name: "High" } },
44 { press: "Enter" },
45 { wait: ".toast" },
46 { scroll: 400 },
47 { zoom: ".chart" }, { pause: 1500 }, { zoom: "off" },
48 ],
49};
50```
51 
52Targets can be a Playwright selector (`"#id"`, `"text=Save"`) or `{ role, name }`, `{ text }`, `{ label }` or `{ placeholder }`. Prefer role and visible text, because they survive redesigns better than CSS classes. The full step list, every option and all the look settings are in [reference.md](reference.md).
53 
54## Pacing rules
55 
56- Cursor moves take 400 to 900 ms, depending on the distance. This is automatic. Only set `moveMs` for a deliberate slow move.
57- Hold about 600 ms after each result so people can read it. This is automatic after click, type and press. Use `hold` on a step for a bigger moment, such as 1200 ms after the main payoff.
58- Zoom only when the target is small. Auto zoom does this for targets under 4% of the screen and stays in while actions are close together. Use an explicit `zoom` for a result you want people to read, and `zoom: "off"` before a wide view.
59- Give the opening a second of stillness. The default `head` does this.
60- One caption per idea, under 8 words, shown before the action it describes.
61 
62## After a UI change
63 
64Run the same command again. The script finds elements by role and text, so most changes need no edits. If a step fails, fix only that target (the error names it and saves a screenshot), preview, then do the final render. To change only the look (background, zoom, captions) without capturing again, render the final with `--keep` once, then use `--compose-only`.
65 
66## Rules
67 
68- Fictional brands and data only. Never record real customer data, real credentials or someone else's product presented as yours.
69- Always preview before the final render and look at the stills yourself.
70- Don't fake speed with `pace`: if the app is slow, stage the result or `wait` for it on camera.
71 
View all files on GitHub →

Details

License
MIT
Stars on the repo
★ 546
Checked
Source
dotslashsimran/simcraft ↗
Creator
dotslashsimran · 9 listings
View creator

Similar skills

See all →

More from dotslashsimran

Clean Audiodotslashsimran/simcraft · by dotslashsimranClean up voice audio in a video: rumble, electrical hum, background noise and hiss, muddy or harsh tone, sharp S sounds, uneven volume, and loudness for YouTube/Instagram/TikTok. Measures the audio first, picks the strongest cleanup that doesn't make the words less clear, and keeps lip sync exact. Use when the user says "clean up the audio", "fix the sound", "remove background noise", "remove hum", "my audio is too quiet/loud", "make it sound better", or after a rough cut.★ 546 GitHub starsFrom Scratchdotslashsimran/simcraft · by dotslashsimranLearn how something really works by building the smallest working version of it from scratch, Karpathy style, one small step at a time, with the user predicting what each step will do before running it. Works for ML and AI ideas (attention, tokenizers, backprop, RAG, agents), systems (a database, an HTTP server, git, a shell) and anything else that can be coded. Use when the user says "teach me how X works", "build X from scratch", "I want to really understand X", "explain X from first principles", or "implement X without the library".★ 546 GitHub starsImage Gendotslashsimran/simcraft · by dotslashsimranGenerate images with the user's own API keys (Google Gemini "Nano Banana" or OpenAI gpt-image). Use when asked to generate, create or make an image, illustration, icon, cut-out, sticker, thumbnail, texture, mockup or visual asset, to edit an image, or to make several images that stay consistent (same character or object). Also used by the vox-explainer skill for collage cut-outs.★ 546 GitHub starsPerspective Illusiondotslashsimran/simcraft · by dotslashsimranMake a looping illustrated 3D video in the Japanese perspective-illusion style (e.g. @garments__) of any place, such as a street, crossing, station, shop aisle, room, park or rooftop. A clean line-art scene squashed flat by a telephoto lens opens into deep perspective with dolly zooms, swings round to corner views that first read flat and then turn 3D, and objects quietly swap depth while the view is flat. Use when asked for a perspective or optical-illusion video, a "dolly zoom" or "flat to 3D" loop, an isometric-looking illustrated scene that turns out to be 3D, or to recreate one of these clips.★ 546 GitHub starsRepo Timelapsedotslashsimran/simcraft · by dotslashsimranTurn a git repo's history into a video of the project growing. Files appear as a living treemap coloured by language that grows with the code, glows when touched and fades on delete, with a date, a lines-of-code counter, commit messages typing in as captions and an activity sparkline. 16:9 or 9:16, dark or light. Use when the user says "timelapse of my repo", "visualise git history", "build in public video", "show how the project grew", "animate my commits", or wants a video of a codebase evolving.★ 546 GitHub starsReverse Engineer a Videodotslashsimran/simcraft · by dotslashsimranBreak down a reference or viral video clip so it can be remade. Finds every cut and dissolve, times each shot, measures pacing, works out the camera move in each shot (static, pan, tilt, zoom or push in, roll, handheld shake, with speed), finds beats and loudness jumps and checks whether the cuts land on them, and reads on-screen text and speech when the tools are installed. Makes a contact sheet, a timeline strip, breakdown.md with a beat map and a remake plan, and breakdown.json. Also makes side-by-side or stacked comparison videos of a remake against the reference. Use when the user says "break down this video", "reverse engineer this clip", "how was this edited", "shot list from this video", "why does this go viral", "recreate/remake this video", "what camera moves are in this", "do the cuts hit the beat", or "compare my remake with the original".★ 546 GitHub stars