Skip to content
Back to skills

Tvideo

ASecurity

Turn a real web app into polished how-to / tutorial videos — Playwright records the actual UI with a visible cursor, then a Hyperframes edit adds an intro card, step captions (any language, Thai included), zoom + highlight ring on the control to press, click sounds, music and optional TTS narration, rendered to 1080p MP4. Use this whenever someone wants a tutorial video, how-to video, training video, onboarding video, walkthrough, user guide video or "วิดีโอสอนใช้งาน / คลิปสอน / วิดีโอแนะนำกา...

  • 2 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added October 9, 2026
documentationgoshellbashnodeawsdebuggingdatabase

Works with

  • cursor
  • cli
  • mcp

Security analysis

A100/100

Pro scans all 16 files and shows the line behind each finding

Scanned November 10, 2026

npx -y skills add JiramedFirst/TVideo --skill tvideo --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Tvideo?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Tvideo
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jiramedfirst-tvideo/badge)](https://www.skillsdirectory.com/skills/jiramedfirst-tvideo)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: tvideo
argument-hint: "[setup | record | dub]"
description: Turn a real web app into polished how-to / tutorial videos — Playwright records the actual UI with a visible cursor, then a Hyperframes edit adds an intro card, step captions (any language, Thai included), zoom + highlight ring on the control to press, click sounds, music and optional TTS narration, rendered to 1080p MP4. Use this whenever someone wants a tutorial video, how-to video, training video, onboarding video, walkthrough, user guide video or "วิดีโอสอนใช้งาน / คลิปสอน / วิดีโอแนะนำการใช้งานระบบ" of a website or web app, wants to replace live user training with downloadable videos, or wants to re-record such videos after the UI changed — even if they don't say "Playwright" or "Hyperframes".
---

# TVideo — tutorial videos from a real web app

You are producing short videos that teach end users how to do one task in a web
app. The viewers are not technical: every frame must be calm, readable and real.
The pipeline has two halves that meet at three files:

```
recorder (Playwright)  ──►  video.webm + timeline.json + clicks.json  ──►  editor (Hyperframes)  ──►  MP4
```

- **Recorder** (`templates/recorder/`) drives the real app, draws a visible
  cursor, and logs when each step starts/ends and when every click lands.
- **Editor** (`templates/editor/build.mjs`) lays the footage on a branded canvas,
  holds a still wherever the viewer needs time to read, zooms + rings the control
  to press, puts a click sound on every click, and renders.

Because the edit is generated from those files, a re-record after a UI change is
just: record → `new-clip.mjs` → build → render. Rings follow the control (they
come from the recorder's click boxes), so nothing needs re-measuring. Keep it that
way — never hand-edit `index.html` or `compositions/`; change `plan.json` / `tvideo.config.json` and
rebuild.

`<skill>` below means this skill's directory (the folder holding this SKILL.md).

## Starting at one stage

A mode applies only when the argument's first word is `setup`, `record` or `dub`
(any case, trailing punctuation ignored); the rest is the request (e.g.
`/tvideo record the "create order" flow on staging`). What the request asks for
explicitly wins over a mode's default ("record … with Thai narration" gets narration).
Any other argument is the request itself — run the full flow. Name the mode you picked
in your first line, so a misread is caught before any work.

| Argument | Do | Stop after |
|---|---|---|
| *(none / anything else)* | Phases 0–6 | final render |
| `setup` | Phase 0 only: report each check as found/missing and fix the gaps, except Chromium — don't install it outside the recorder; its `npm i` brings the matching build | the tools are ready |
| `record` | Phases 0–6, but don't offer narration in the brief (music stays as configured) | final render without narration |
| `dub` | Narration on a clip already made — see below | the narrated render |

`dub`:
1. Phase 0, then find the clip project (the folder with `plan.json` and
   `timeline.json`). None → say so and suggest `/tvideo record`. Several → ask
   which, or all (then run steps 2–5 per clip).
2. Copy `captions.srt` / `captions.vtt` to `captions-no-voice.srt` / `.vtt`: every
   rebuild rewrites them with the narrated timings, and the captions-only render
   needs its own.
3. `node build.mjs` once *before* writing narration: a plan/timeline mismatch must
   fail here, not after TTS credits are spent.
4. `references/narration.md`. Re-check the lines against the Phase 1 safety rules:
   the voice must not say a value that is masked on screen.
5. Phase 5 steps 3–4, then Phase 6 steps 1–3 — in step 3 use
   `-o renders/<clip-name>-narrated.mp4`, never the existing `<clip-name>.mp4`.
   Skip Phase 6 step 4: this session recorded nothing, so there is nothing to clean up.

## Phase 0 — Preflight

Run these checks at the start of every session — alongside your first reply if
you are asking brief questions, so the user isn't kept waiting — and fix gaps
before recording; a missing tool found mid-recording wastes a take.

| Need | Check | Fix |
|---|---|---|
| Node ≥ 20 | `node -v` | install Node |
| ffmpeg / ffprobe | `ffmpeg -version` | `brew install ffmpeg` / apt |
| Hyperframes CLI + skills | `npx hyperframes --version` | `npx hyperframes skills update general-video` (also installs `media-use`, `hyperframes-audio`) |
| Chromium for Playwright | installed by the recorder's `npm i` (postinstall) | `npx playwright install chromium` |

TVideo is tested with Hyperframes 0.8.x. Tell the user the version you found;
on a different major/minor, build and draft-render the first clip before
recording the rest, since a Hyperframes change can break the generated
composition.

Read `references/hyperframes-notes.md` once if you have not used Hyperframes in
this session (composition rules the build script already follows, and why).

## Phase 1 — Brief (ask, don't assume)

Collect, in one short round, what changes the work:

1. **App URL** and environment. Prefer a staging/UAT/demo environment. Recording
   drives the app for real: forms submit, records get created, emails go out.
   Say this plainly and get a yes before recording against anything shared.
2. **Login**: a dedicated *demo* account (username/password via env vars — never
   pasted into chat or written to files). If login needs OTP/2FA, plan for the
   user to paste the code during the run (see `references/recording.md`).
3. **The flows**: one video per task. Split "how to use the system" into clips of
   30–120 s each (sign in, create X, edit/cancel X, download Y…). Ask for the
   order the viewer should watch them in.
4. **Language** of the UI and captions (`TV_LOCALE`, `lang`), and the **OS and
   browser** the audience uses — the date/month picker mocks copy Chrome; tell the
   user when their audience's picker looks different (`references/recording.md`).
5. **Brand**: logo file, a `theme` (`navy`, `purple`, `teal`, `blue`) or 1–2 colors,
   or a reference frame to match (see `references/editing.md`), font if the language needs one (bundled
   IBM Plex Sans Thai covers Thai + Latin). Defaults are a neutral navy/green.
6. **Audio**: captions + click SFX are the default. Music: bundled CC BY track or
   none. Narration is optional (HeyGen or Google Cloud TTS) and costs TTS
   quota — see `references/narration.md`.

### Safety decisions (settle these in the brief, before any recording)

These videos get distributed, and recording performs real actions. Explain the
trade-off, recommend the safe option, and let the user decide — then follow it.

- **Whose data is on screen.** Nothing the audience must not see: other customers'
  names, real orders, personal emails/addresses/phone numbers, internal test
  labels. Recommend a fictional demo account. If the user insists on a personal or
  real account, say exactly what will be visible, get an explicit OK, and plan
  `mask`s for every personal value (check them on snapshots). If you're unsure
  whether a value is real, ask.
- **Seed and fixture data.** A fictional account can still show real people: local and
  staging databases are often filled from repo seeds or fixtures copied from production
  exports. If you can read the app's repo, grep the seeds/fixtures that feed the screens
  you'll record for real-looking names, emails, phone numbers and customer codes. If any
  turn up, seed a dedicated fictional dataset for the recording (e.g. `example.com`
  emails) rather than masking frame by frame. With only a URL, ask where the data came from.
- **Irreversible or financial steps** (pay, transfer, send to a real third party,
  delete, publish). Never complete a real payment or other irreversible action
  just to film it. Prefer a sandbox/test mode (test card, staging gateway); if
  there is none, record up to the final confirmation screen, stop there, and let
  the last caption explain the final click. Say this in the brief.
- **Production vs staging.** Recording on a live production site needs an explicit
  yes *after* you've listed what it will create (orders, emails, stock changes)
  and how it will be cleaned up. Prefer flows that are read-only or reversible there.
- **Credentials.** Passwords and OTPs go in env vars / a local file the user
  controls, never in chat or in files you create. A username/email the user
  already typed is not a secret, but don't repeat it into files beyond `TV_USERNAME`.
- **Third-party sign-in (Google, Microsoft, SSO, captcha).** Automated login there
  usually hits bot checks or 2FA. Have the user sign in once by hand in a headed
  browser (`npx playwright codegen --save-storage=.auth/state.json <login URL>`),
  then record with that saved session and leave `TV_USERNAME` unset.
- **Publishing.** Before delivering, re-watch for personal data, and keep the
  music credit on the outro (CC BY requires attribution). Public pages are a
  stricter audience than internal training — apply the privacy rules strictly.

## Phase 2 — Discover and rehearse

1. Create a working folder per project, e.g. `tvideo-work/<app>/`, then copy
   `templates/recorder/` → `recorder/` and `npm i` there. If the app's login only
   works through its own repo's Playwright fixtures (signed cookies, seeded
   sessions), run the clips inside that project instead — see
   `references/recording.md`, "Embed in an existing Playwright project" — and import
   takes from the `recordings/` next to that config.
2. **Discover**: open each page of a flow (Playwright MCP / browser tools, or a
   throwaway script) and pick stable selectors — prefer roles/labels/test-ids
   over CSS classes. Note things that won't film well (see recording.md: native
   `<select>` popups, date pickers, instant scroll jumps, booking windows).
3. Write one spec per clip in `recorder/clips/NN-name.spec.ts`, following
   `clips/01-example.spec.ts`: `createTimeline` first; each viewer-visible step
   is `tl.step('<caption text>', …)` ending in an `expect`; every click via
   `tap()`/`typeInto()` (they smooth-scroll to off-screen controls and log the
   control's box for the editor); `glideTo()` only to show something below the
   fold that isn't clicked; `hold()` after key moments; `await tl.save()` last.
   Pick values the way a user would — choose from dropdowns/calendars rather
   than typing codes. Put the control a step is *about* as its first `tap` — the
   editor rings the first tap by default.
4. **Rehearse**: `TV_REHEARSE=1 npx playwright test` — no video, no pauses. Fix
   every failure here; it costs seconds instead of a ruined take.

## Phase 3 — Record

`npx playwright test` (or one clip: `npx playwright test clips/02-`). Each clip
writes `video.webm`, `timeline.json`, `clicks.json`, `sync.json`; after every
real (non-rehearsal) run they are copied to `recorder/recordings/<timestamp>/<clip>/`,
so the next run's wipe of `test-results/` can't lose a take.

A failing step means the app did something unexpected (validation, a business
rule, slow load). Read the failure screenshot, fix the spec or the data, re-run
that clip. Never loosen an assertion just to get a take; a green take of a broken
flow teaches users the wrong thing.

## Phase 4 — Set up the edit

One Hyperframes project per clip, next to the recorder (e.g. `tvideo-work/<app>/clip-02/`).
One command creates it (or refreshes it after a re-record — your `plan.json` and
`tvideo.config.json` are kept): `hyperframes init` if needed, the editor template,
the imported recording (re-timed to the footage via the sync flash) and the stock
SFX.

```bash
ls recorder/recordings/*/                     # the clip's folder name is long — find it here
node <skill>/scripts/new-clip.mjs clip-02 recorder/recordings/<ts>/<that-folder>
```

In `tvideo.config.json`: set `lang` and `readingCharsPerSec` (≈15 English, ≈12
Thai — slower scripts read slower), the `theme` or brand colours (a brand colour
overrides the theme's), and `logo` (a path, or
`null` for text-only cards). Keep `music.credit` — the bundled track is CC BY.

`plan.json` steps map **1:1, in order** to the recorder's `tl.step`s (the build
refuses a mismatch). Captions in plan.json are what the viewer reads — keep them
short instructions ("Click “Save”"), not narration. Usually the `tl.step` labels
are already good captions; copy them over.

## Phase 5 — Build, check

1. Add per step as needed (details in `references/editing.md`):
   - `zoom: true` — zoom in and ring the step's first `tap`. The box comes from
     the recorder, the zoom centres on it, and when that control vanished after
     the click (it navigated away) or moved (the page scrolled) the edit plays the
     step up to that click, freezes on it with the ring, then plays on
     (`holdFirst`, automatic). `zoom {scale, at, ring: 2}` rings the 2nd tap;
     `holdFirst: false/true` overrides the automatic choice;
   - `mask {x,y,w,h,text,after}` to cover a value that must not ship;
   - `chimeAfter: <s>` for a success moment.
2. Only masks, zooms without a ring, and controls not clicked through `tap` need
   pixel coordinates. For those, pull frames:
   `node <skill>/scripts/frames.mjs assets/footage.mp4 frames <t1> <t2> …` (e.g.
   each step's `endMs` − 0.3 s for the settled result) and read the full-size
   PNGs. Coordinates are in the *recording's* pixels (e.g. 1280×800).
3. `node build.mjs` then `npx hyperframes check`. It comes back clean on the
   template's output, so investigate any finding (error, warning or info) before
   rendering — except a contrast warning whose time falls in a caption's 0.4 s
   fade-in, which is expected. The build also
   writes `captions.srt` / `captions.vtt` — deliver them next to the MP4.
4. Verify with your own eyes: `build.mjs` prints where each step lands in the
   OUTPUT timeline (output time ≠ recording time — the intro and holds shift it).
   Snapshot inside those windows — `npx hyperframes snapshot --at <t…> --no-end`,
   one inside each still that has a ring, each mask, each step midpoint — and read
   the contact sheet. Rings must sit on the control, masks must cover exactly,
   captions must match what is on screen.

## Phase 6 — Review and render

1. Open a preview: `npx hyperframes render --quality draft -o renders/draft.mp4`
   and `open` it (Studio preview `npx hyperframes preview --background` also
   works, but its seeking can stutter on long clips; the render never does).
2. Iterate on feedback by editing plan/config and rebuilding — or re-recording
   when the footage itself is wrong (pacing, a jump, wrong data). Fix footage
   problems at the source, not with overlays.
3. Final: `npx hyperframes render --quality delivery -o renders/<clip-name>.mp4`.
   Report path, duration and size, and the `captions.srt` next to it.
4. Clean up what the recording created in the app (demo orders/bookings) if the
   environment is shared, and say what you cleaned.

## When something goes wrong

`references/troubleshooting.md` lists the failures this pipeline has already hit
and their real causes (footage/timeline drift, native selects, booking windows,
clobbered test-results, SFX overlap lint, stutter in preview). Check it before
debugging from scratch.

## Files in this skill

- `templates/recorder/` — Playwright project: `cursor.ts`, `timeline.ts`,
  `otp.ts`, `auth.setup.ts`, `playwright.config.ts`, `teardown.ts`,
  `clips/01-example.spec.ts` (written for the plugin repository's
  `examples/demo-app`, paired with `plan.example.json`)
- `templates/editor/` — `build.mjs`, `plan.example.json`,
  `tvideo.config.example.json`, `assets/fonts` (OFL), `assets/music` (CC BY),
  `assets/vendor/gsap.min.js`
- `scripts/` — `new-clip.mjs`, `import.mjs`, `frames.mjs`, `sfx.mjs`,
  `voice.mjs` (optional TTS) — Node only, no bash needed (on Windows, set env
  vars the PowerShell way: `$env:TV_REHEARSE=1; npx playwright test`)
- `references/` — `recording.md`, `editing.md`, `narration.md`,
  `hyperframes-notes.md`, `troubleshooting.md`

Files in this skill

  • SKILL.md12.6 KB
  • references/editing.md4.3 KB
  • references/hyperframes-notes.md1.6 KB
  • references/narration.md2.1 KB
  • references/recording.md5 KB
  • references/troubleshooting.md3.3 KB
  • scripts/frames.mjs1.6 KB
  • scripts/import.mjs3.9 KB
  • scripts/new-clip.mjs2.1 KB
  • scripts/sfx.mjs1.3 KB
  • scripts/voice.mjs2.6 KB
  • templates/editor/assets/fonts/OFL.txt4.4 KB
  • templates/editor/assets/vendor/gsap.min.js71.1 KB
  • templates/editor/build.mjs23.2 KB
  • templates/editor/plan.example.json813 B
  • templates/editor/tvideo.config.example.json724 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in documentation →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.