Skip to content
Back to skills

Demo Edit

ASecurity

Edit recorded demo takes into videos. Builds the review reel of keepers, a keynote-style cut from demo.json, narrates it for free (macOS say or your own recordings; ElevenLabs or Higgsfield only when asked) over an optional music bed with ducking and fades, the promo and how-to cuts from handoff.json (in/out/speed per shot, title cards, voiceover fit check), and 4:5 or 9:16 social versions. Use after recording, when cutting, re-timing, adding voiceover or music, or making vertical versions of...

  • 4 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added November 22, 2026
developmentpythongoshellbashnodeawsgitapisecurity

Works with

  • cursor
  • cli
  • api
  • mcp

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned December 3, 2026

npx -y skills add cyruspastelero/demo-studio --skill demo-edit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Demo Edit?

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

Security grade badge for Demo Edit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/cyruspastelero-demo-edit/badge)](https://www.skillsdirectory.com/skills/cyruspastelero-demo-edit)

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: demo-edit
description: Edit recorded demo takes into videos. Builds the review reel of keepers, a keynote-style cut from demo.json, narrates it for free (macOS say or your own recordings; ElevenLabs or Higgsfield only when asked) over an optional music bed with ducking and fades, the promo and how-to cuts from handoff.json (in/out/speed per shot, title cards, voiceover fit check), and 4:5 or 9:16 social versions. Use after recording, when cutting, re-timing, adding voiceover or music, or making vertical versions of a demo.
---

# Demo edit

Run every command from the demo folder (`<demo>`, the one with `demo.json`). Start each one with:

```bash
P="${CLAUDE_PLUGIN_ROOT:-$(d=$PWD; while [ "$d" != / ] && [ ! -f "$d/.claude-plugin/plugin.json" ]; do d=$(dirname "$d"); done; [ -f "$d/.claude-plugin/plugin.json" ] && echo "$d" || ls -d ~/.claude/plugins/cache/*/demo-studio/*/ | tail -1)}"
```

Every render script checks its config against `$P/schemas/` first and prints `PROGRESS` and
`OUTPUT <path>` lines. Look rules: `$P/references/style-guide.md`. The bar every cut must pass: `$P/docs/quality-bar.md`.

## Step 0: was the preview approved?

Open the demo's README.md. If "Decisions" has a `Preview approved` line and the plan has not changed
since, go to Step 1. If not (the takes came from elsewhere, or the user asked to "cut it" or change
the look), show a preview before any render: skill `demo-studio`, Step 4b, steps 2 to 7 (with the
takes recorded, the page draws them and its button says "Approve and cut the video"). A cut takes
many minutes; the preview takes about one, so the user corrects the framing, look and wording first.

## Step 1: review reel (always first)

```bash
python3 -I "$P/scripts/review-reel.py" recordings --config demo.json && open recordings/exports/review-reel.mp4
```

Expected: `recordings/exports/review-reel.mp4 (34.2s, 3 takes: ...)`.

| If you see | Do this |
| --- | --- |
| `WARN no keeper for 04-...` | That scene has no `keep` row in `recordings/takes.csv`. Mark one or record it |
| `keeper ... is in takes.csv but not on disk` | Fix the file name in takes.csv or re-encode the take |

Check the reel yourself on a contact sheet, then read the PNG:
`bash "$P/scripts/sheet.sh" recordings/exports/review-reel.mp4 recordings/exports/review-reel-sheet.png 2`.
Then go straight on to Step 2. The reel goes in the final report. Wait for the user here only if
they asked for review gates ("show me the reel before you edit").

## Step 2: keynote cut (from demo.json)

The cut must reach the quality bar in `$P/docs/quality-bar.md` (section 4 is the checklist). The
engine bakes in every look value; your job is the per-scene fields below, then Step 2b proves it.

1. Fill each scene in `demo.json` from the plan (skill `demo-plan`), the scout rects from the
   recording (skill `demo-record`, `recordings/scout/<scene>.json`) and the contact sheets:

   | Field | What to put | Bar |
   | --- | --- | --- |
   | `trim: [in, out]` | Cut the still head and tail to about 0.8 s and any wait | P4: keep 0.6 s of still UI after each result |
   | `speed` | 1.25 to 1.5 for typing and setup; never on the hero moment | |
   | `crop: [x, y, w, h]` | Px of a 1920x1080 take (also for a take encoded at 2880x1620: the build maps it) around the UI that matters; widened to 1.80:1 | W11: **at least 1227 wide**, or the video looks zoomed in; W12: hug the app, at most 30% empty page; W2: no empty panel over 15% of the window |
   | `zooms: [{at, focus: [x, y], dur}]` | `at` = seconds into the scene when the zoom-in starts (on `zooms`, `callouts` and `highlights`, `at` may instead be `{"word": "invite", "nth": 1, "offset": -0.2}`: a word of this scene's `voiceover`, placed by an estimate, see `references/voiceover.md`), `focus` = source px of what it points at, `dur` = hold | Z5: hold 2.4 to 4.5; Z6: about one every 11 s, only on a point the narration makes |
   | `highlights: [{rect: [x, y, w, h]}]` | The scout rect of the element the narration names; leave `at` out and it shows 0.17 s after the next zoom **of that same scene** lands (zooms in other scenes never count), and stays until the zoom has eased back. The rect is fixed in source px, so the page must hold still under it the whole time it shows: check the scroll times in the take log | H7: at most 2 on screen; H8: still, non-empty UI under the box |
   | `callouts: [{at, dur, kind, text}]` | `statement` (at most 6 words) or `person` (`text` name, `role`, `avatar` image path) or `keys` (a shortcut keycap, one key per word: `"⌥ ⌘ ↑"`, about 1 s while the keys are pressed) | C8: 3 to 5 s, one at a time; Z7: never during a zoom |
   | cards: `kind`, `accent` | `hero` (title + subtitle), `section` (one question title), `end` (last item: logo, title, tagline; plus a sweep and outro in a `sweep-logo` look) ; `accent` = the one key word | T9: exactly one accent word |
   | `outro_clip: {file, start}` (top level) | The user's own outro video, when they gave one (skill `demo-plan` Step 7). Played after the last item exactly as given, with its sound; the engine then adds no sweep, lockup or logo | Never edit the clip or its logo: no crop, recolour, overlay, re-timing or re-export |

   Wide first (W9): a scene with a tight crop opens on the whole page for about 1.2 s, then eases
   into the crop. Start its first zoom after that: about 3 s into a scene that follows a card, 2.3 s
   otherwise (earlier shortens the wide hold). Set `"wide": false` only on a part that continues the
   scene right before it.

   No jump on the same page (W13): the framing must never snap in one frame. A `"wide": false` part
   on the same take with another crop glides there from the previous crop (0.8 s). From another take
   it cuts, so keep the previous crop. To show a detail on a page already on screen, prefer a zoom
   over a tighter crop. `plan-lint.py` FAILs a cross-take jump; check frames around every
   `"wide": false` cut either way.

   Zoom only where it helps (Z9): a wide page (dashboard, table) with a small target, at the moment the
   narration makes the point. On a tight crop or a small app that already fills the window, leave
   `zooms` out. If the build prints `zooms[N]: skipped, the crop already shows the UI at ...` or
   `zooms to 1.3x, not 1.5x`, the engine judged the zoom unnecessary: remove it from demo.json (or set
   `scale` only if you really mean to force it).

   Times in a scene are seconds after `trim` and `speed`. Crop width: **1227 to 1920** (UI 2.0x to
   1.2x its size), as tight around the app as that allows: start from the app's own edges (the
   scout `region` rect) plus a small margin. Never go under 1227 to make small text bigger. If a detail is too small, that is what a zoom is for. Before building, run
   `python3 -I "$P/scripts/plan-lint.py" .`: a `FAIL W11` names the scene and the width to widen to. A first-scene pill at `at: 0.76` enters just
   after the window lands. Old fields still build (`zoom` becomes one zoom of up to 1.5x, `caption` a pill)
   but print `WARN`; switch them.

2. Build it **in the background**, and never next to another build, render or test run:
   ```bash
   python3 -I "$P/scripts/build-keynote.py" demo.json
   ```
   Expected: `WARN ...` lines (fix each), `fonts: painted Inter Display Medium, Inter Variable
   (bundled Inter)`, `overlay: N unique frame(s)`, then `recordings/exports/<slug>-keynote-cut.mp4
   (37.2s)` and a `timing:` path. A 40 s cut takes 1 to 3 minutes; graphics are cached, so a
   rebuild after a small edit is faster. Add `--strict` to stop on any warning.

   | If you see | Do this |
   | --- | --- |
   | `WARN ... (C8)` / `(Z5)` / `(T9)` / `(P2)` ... | The id is the quality-bar row. Fix that field and rebuild |
   | `PlanError`-style stop naming `sequence[3] (scene 02).crop` | That field is impossible (outside the take, overlapping pills, zooms overlapping); fix it as the message says |
   | `sequence[N].highlights[K]: no \`at\`, so it follows zoom 1 of its own scene, but its scene has no zoom` | Give that highlight an `at`, or add a zoom to the same scene |
   | `WARN sequence[N].highlights[K]: the take moves under the box (scroll or reflow ...) (H8)` | The page scrolls or reflows while the box shows, so it would land on the wrong element. Re-time `at`/`dur` to a still moment (the message names the moving scene seconds) or re-measure `rect` at that moment (skill `demo-record`, step 8). `--strict` stops on it |
   | `WARN ... the box frames an empty area ... (H8)` / `... stays on screen ... after its scene ends (H8)` | Re-measure `rect` (wrong coordinates) / shorten `dur` so the box leaves before the cut |
   | `keynote-render.mjs failed` / `Could not start Chrome` | `bash "$P/scripts/doctor.sh"`; install Chrome or set `CHROME_PATH` |
   | `Chrome painted [...], not the bundled Inter` | `git -C "$P" checkout assets/fonts`, then rebuild |
   | `raw take ... is missing` | Encode or record that take (skill `demo-record`) |

## Step 2b: run the quality-bar checklist (twice: silent cut, then narrated cut)

Never call a cut finished until this passes. Run it once right after Step 2 on the silent cut for
the picture, and again after Step 3 on the narrated cut for the sound.

1. Run the automatic checks and save the sample frames, from the demo folder:
   ```bash
   # after Step 2 (picture; audio rows such as E6 and the A rows may FAIL here, that is expected):
   python3 -I "$P/scripts/check-cut.py" recordings/exports/<slug>-keynote-cut.mp4 --frames recordings/exports/checklist
   # after Step 3 (picture and sound; this is the run that must show 0 FAIL):
   python3 -I "$P/scripts/check-cut.py" recordings/exports/<slug>-keynote-cut-narrated.mp4 --frames recordings/exports/checklist
   ```
   Expected: one line per item, `PASS`, `FAIL` (with the measured value and the bar) or `LOOK`, and
   a last line like `31 pass, 0 fail, 3 to look at`. Exit code 0 means no FAIL.
   To see a value yourself: loudness `ffmpeg -i <cut> -af ebur128=peak=true -f null - 2>&1 | tail -12`
   (I, LRA, Peak), streams `ffprobe -v error -show_streams <cut>`, one frame
   `ffmpeg -ss <t> -i <cut> -frames:v 1 /tmp/f.png`.
2. Read every PNG in `recordings/exports/checklist/` (the Read tool shows images). For each `LOOK`
   line, check that frame by eye: body text big enough and no empty panel (W2), the cursor is the
   pointing hand (or the arrow for developer tools), never a dot or click circle (K1), boxes sit exactly on the element (H4), boxes and statement pills are in the product's own colour (`brand.accent`, H1/C4: they must look native to the UI, never a stray red), nothing is cut off.
3. Fix and repeat until there is no FAIL and every LOOK is fine:

   | FAIL / LOOK | Fix |
   | --- | --- |
   | `E4` bitrate under 3.5 Mbps | Rebuild (two-pass 5 Mbps is the default); report it if it persists |
   | `A2` loudness / `A3` true peak | Re-run narrate.py (it normalises to -14 LUFS, -2 dBTP); a clipped voice file needs remaking |
   | `A6` bed too loud or quiet | `voice.music_gap_db` (default 13) up to make it quieter, down for louder |
   | `A1` narration under 50% | Lengthen voiceover lines to fill their slots (about 2.9 words a second) |
   | `W1` rest window not found | Very light UI on a light background: check the frame; if it looks right, note it |
   | `W2` text too small / empty panel | Tighten `crop` |
   | `Z2-Z3` / `Z4` | Do not hand-tune: they come from the engine; report a bug if they fail |
   | `C1-C2` pill box wrong | Something covers the pill's spot near the window's bottom (a zoom, or a dark app area under an ink pill); move the callout |
   | `C8/Z7` | Shorten `dur` to 3 to 5 s, or move `at` out of the zoom |
   | `H1-H5` | Leave `at` out so it follows the zoom; check the scout rect. Box colour wrong: set `brand.accent` to the product's primary button colour (skill `demo-plan`) and rebuild |
   | `C4` pill text not in the product colour | Set `brand.accent` from the product and rebuild |
   | `H8` the UI under the box moves / the box frames an empty area | The take scrolls or reflows under the box (it samples the raw take at the box's start, middle and end). Re-time `at`/`dur` to a still moment or re-measure `rect`; if the page must scroll there, re-record that scene with the target still while it is shown |
   | `P2` shot over 8 s | Add a zoom or cut the scene with `trim` |
   | `W12` too much empty page | Set `crop` to the one the line names (it hugs the app) |
   | `W11` zoomed in too far | Widen that scene's `crop` to the width the line names (>= 1227); for a zoom peak over 2.1x, lower its `scale` or leave `scale` out |
   | `W10` crop edge cuts through text | Move that edge of `crop` into a gap between lines or columns. The window widens a crop to its shape, so check the widened edges too |
   | `W9` scene opens straight on a tight crop | Start its first zoom later or lengthen `trim`, so the whole page shows first; `"wide": false` only for a part that continues the scene before it |
   | `W13` a continuing scene jumps to another crop | Same crop as the scene before plus a zoom, or drop `"wide": false` |
   | `K1-K2` no cursor, a dot or a click circle in the footage | The take was recorded with another cursor; re-record with `PROJECT.cursor = 'auto'` |
   | `X2` / `X3` | The last item must be a card (`kind: end`, `outro` > 0) |

## Step 3: narrate (the built-in finish)

1. Every voiced item in `demo.json` needs a `voiceover` line (rules: `$P/references/voiceover.md`).
2. Pick the voice. Check, do not ask, unless the last row applies:

   | Voice source | How to tell it is available | Provider | Cost |
   | --- | --- | --- | --- |
   | Own recordings or MCP files | `<demo>/voiceover/01.mp3` (or .wav, .m4a) exists | `files` | Free, or what the MCP tool charged |
   | ElevenLabs API key | `[ -n "$ELEVENLABS_API_KEY" ] && echo set` prints `set`, or `ELEVENLABS_KEYCHAIN_SERVICE` names a Keychain item | `elevenlabs` | User's plan; cached lines are free |
   | ElevenLabs MCP | The `text_to_speech` tool from an ElevenLabs MCP server is loaded in this session | `files`, via the MCP route below | User's plan |
   | Higgsfield MCP | The `generate_audio` tool from the Higgsfield MCP server is loaded | `files`, via the MCP route below | Higgsfield credits |
   | macOS say | `command -v say` finds it | `say` | Free |
   | None of these | | Ask: record `voiceover/01.mp3`, `02.mp3`..., set an ElevenLabs key, or connect an MCP server | |

   Higgsfield has no key-based route: its public API documents image and video models only, no
   text to speech, so it works through its MCP server.

   Use an MCP or a paid key only when the user asked for that voice or already set it up; otherwise
   take the first free row that applies. `narrate.py` itself never picks ElevenLabs from a key in the
   environment or from `voice.provider` in demo.json (a shared demo must not spend the user's
   credits): pass `--voice elevenlabs` when the user chose it, or they can set
   `DEMO_STUDIO_ALLOW_CONFIG_VOICE=1` to let demo.json choose.

3. **Keys.** Never ask the user to paste an API key into chat, into any file, or into a commit.
   If they want ElevenLabs by key, tell them to run one of these in the shell they start their agent
   from, then restart the session:

   ```bash
   export ELEVENLABS_API_KEY=...                                  # this shell only
   security add-generic-password -a "$USER" -s elevenlabs-api -w  # or keep it in the macOS Keychain (it asks for the key)
   export ELEVENLABS_KEYCHAIN_SERVICE=elevenlabs-api              # ...and tell narrate.py its name
   ```

   `voice.elevenlabs.keychain_service` in demo.json can hold the item name too (never the key); it must start with `elevenlabs` and is used only with `--voice elevenlabs`.
   The environment variable wins. Rendered lines are cached in `recordings/voice-cache/`.

4. **The MCP route** (ElevenLabs MCP or Higgsfield MCP). narrate.py does not call MCP tools; you
   make one audio file per line and narrate.py places them:
   1. Write the line list: `python3 -I "$P/scripts/narrate.py" demo.json --export-lines`. It
      writes `voiceover/lines.json` (per line: `index`, `item`, `label`, `text`, `file`, `start`,
      `budget`, `suggested_words`) and `voiceover/README.txt`.
   2. Read `voiceover/lines.json`. If a line has more words than `suggested_words`, shorten its
      `voiceover` in demo.json first and export again.
   3. For each line, in order, with the same voice every time:
      - ElevenLabs MCP: call `text_to_speech` with `text` set to the line's `text` and
        `output_directory` set to `<demo>/voiceover`. It saves a file under its own name. Move it
        to the line's `file`, for example `mv "<saved path>" voiceover/01.mp3`.
      - Higgsfield MCP: call `generate_audio` with the line's `text` as `prompt` and its default
        speech model, wait for the job with `jobs_wait`, then download the result URL:
        `curl -fsSL -o voiceover/01.mp3 "<result url>"`. Several lines at once:
        `generate_audio_batch`.
   4. Check and render: `python3 -I "$P/scripts/narrate.py" demo.json --voice files --dry-run`,
      then without `--dry-run`. If files are missing it lists every missing `voiceover/NN.mp3`
      with its text and the next command.

5. Check the timing, then render:
   ```bash
   python3 -I "$P/scripts/narrate.py" demo.json --dry-run
   python3 -I "$P/scripts/narrate.py" demo.json                 # add --voice say|elevenlabs|files to force one
   ```
   Expected: `narrate: voice <name>, N line(s), cut 52.4s`, a table of lines, then
   `recordings/exports/<slug>-keynote-cut-narrated.mp4 (52.4s)`.

   | If you see | Do this |
   | --- | --- |
   | `lines run into the next voiced part` | Cut words from that line, lower a scene's `speed`, or lengthen a card; rebuild Step 2 |
   | `the keynote cut ... does not exist yet` | Do Step 2 |
   | `sequence changed since the cut was built` | Re-run build-keynote.py, then narrate again |
   | `needs the ELEVENLABS_API_KEY environment variable` | Use another voice, or ask the user to export the key (step 3) |
   | `Keychain item ... was not found` | The user stores it with the `security add-generic-password` line it prints |
   | `N of M voiceover file(s) are missing` | Make the listed `voiceover/NN.mp3` files (step 4), then run with `--voice files` |
   | `music file not found` | Fix `voice.music` in demo.json or drop `--music` |
   | `WARN placeholder bed, replace before sharing` | The bed came from make-bed.py. Make a real one (step 6) before the cut goes to anyone |

6. **Music bed** (required by the bar, A6). `--export-lines` also writes `music/README.txt` with
   the cut length. Pick a source:

   | Music source | How |
   | --- | --- |
   | Bundled library (default) | Pick a `bed-*` track from `$P/motion/music/README.md`; `ffmpeg -v error -i <track>.mp3 -c:a aac -b:a 192k music/bed.m4a` |
   | ElevenLabs MCP | `compose_music` with a short prompt ("calm modern instrumental for a product demo"), `force_instrumental: true`, `music_length_ms` from `voiceover/lines.json`; move the file to `music/bed.m4a` |
   | User's own file (default when they have one) | Copy it to `music/bed.m4a`. Instrumental, and music they are licensed to use |
   | Higgsfield MCP | `generate_audio` with a music model (for example `suno_music`, instrumental, `duration` in seconds); wait for the job; `curl -fsSL -o music/bed.m4a "<result url>"` |
   | Placeholder only | `python3 -I "$P/scripts/make-bed.py" music/bed.m4a --seconds 60`: sine-pad test tones to check timing and levels, **placeholder bed, replace before sharing**. narrate.py prints `WARN placeholder bed` on every render that uses it; never deliver a cut with it |

   Then set it in demo.json and render again: `"voice": {"music": "music/bed.m4a", "music_dips":
   [{"at": 20.3, "dur": 1.6}]}`. Leave `music_volume` out: narrate.py sets the bed 13 dB under
   the narration (`music_gap_db`), holds it 7 dB lower under each spoken line (easing over 0.25 s,
   staying down through pauses under 1.2 s, so it never pumps), dips it at each `music_dips` moment (pick
   one key visual beat, in cut seconds from the timing file), and with an end card fades it out
   over 4 s so the last 3 s are silent. It prints `loudness: I -14.0 LUFS, true peak -2.1 dBTP`.

   **Sound cues** (subtle, from `motion/sfx-kit`): every scene that opens a new page gets a quiet
   swish just before it lands (`voice.sfx.page_change: false` turns it off,
   `page_change_gain` sets the level, -24 dB default). For a moment the viewer should feel, add
   `"cues": [{"at": 2.0, "name": "success", "gain": -20}]` to the item (`at` in seconds into the
   item, after trim and speed): `pop` for a result appearing, `success` for a task done, `notify`
   for a message. Two or three per cut at most. narrate.py prints `narrate: N sound cue(s)`.

   **Supplied footage** (takes the user recorded, so no click log): find the clicks with
   `python3 -I "$P/scripts/find-clicks.py" <take.mp4>` (add `--region x,y,w,h` for small changes),
   check each candidate on the frames, then `--write 3.6,5.7` to save `<take>.clicks.json`. The
   build maps them onto the cut and narrate.py plays the click sound at each.

   **Supplied voiceover**: never cut one long recording at its pauses into per-scene lines; the
   joins hiccup. Regenerate each line with the same voice and settings (often in the file name):
   `voice.elevenlabs` takes `voice_id`, `model_id`, `stability`, `similarity_boost`, `style`,
   `speed` and `use_speaker_boost`. Each line is sent with the lines around it (`context`, on by
   default), so the read flows like one take.

7. Listen: `open recordings/exports/<slug>-keynote-cut-narrated.mp4`.
8. Open the studio on the demo (Step 6's command, with the demo folder's absolute path) so the user
   sees the video is ready and can watch it, change it or render again there. Give them the
   `http://127.0.0.1:<port>/#edit` link it prints.

## Step 4: promo and how-to (handoff.json, for an editor)

Fill `handoff.json` (shape `$P/schemas/handoff.schema.json`, example `$P/examples/todo-sample/handoff.json`):
`videos` (usually `PROMO` about 1:30 and `HOW-TO` about 3:00), each with `scenes` that have a
`name`, a `voiceover` line and `shots`. A shot is a clip `{source, in, out, speed, screen, text}`,
a card `{card, length, text}`, or `{ref: NAME}` from `shots`. Also `cards`, `brand`, `parts`, `brief`.

```bash
node "$P/scripts/title-cards.mjs" handoff.json             # add --social for caption bands
python3 -I "$P/scripts/build-handoff.py" handoff.json      # add --no-say off macOS
```

Expected: one line per video folder (`<folder>: 12 clips, 1:28.0`) and `voiceover fits`. If it prints
`VOICEOVER PROBLEMS: PROMO line 3 (...) runs 9.1s but has 7.4s`, cut words or lower that shot's `speed`, then
rebuild. On macOS it also writes `reference/<VIDEO>-VOICEOVER-TIMING-PREVIEW.mp4`. Packaging: skill `demo-handoff`.

## Step 5: social versions (4:5 and 9:16)

```bash
python3 -I "$P/scripts/social-cut.py" recordings/exports/<slug>-keynote-cut-narrated.mp4 recordings/exports/<slug>-9x16.mp4 --aspect 9:16 --fit crop --focus-x 0.5
```

| Choice | Default | Other |
| --- | --- | --- |
| `--aspect` | `4:5` (1080x1350) for feeds | `9:16` (1080x1920) for stories and shorts |
| `--fit` | `crop` around `--focus-x`/`--focus-y` (0 to 1), so text reads on a phone | `contain` when the whole screen matters |
| `--fill` | `blur` | `color` with `--color` and a brand hex |

Or list entries under `social` in handoff.json and build-handoff.py makes them. One focus per entry.
If doctor.sh said there is no `drawtext`, run `title-cards.mjs handoff.json --social` first.
Check each with `bash "$P/scripts/sheet.sh" <file> /tmp/s.png 8` for cut-off content.

## Step 5b: gate the other cuts

`check-cut.py` covers the keynote cut. Every other output gets `video-gate.py`, which needs no plan:

| Output | Check |
| --- | --- |
| Keynote cut (silent and narrated) | `check-cut.py` (Step 2b) |
| Promo, how-to, 4:5 and 9:16 social cuts, launch ad | `video-gate.py` |

```bash
python3 -I "$P/scripts/video-gate.py" <cut>.mp4
```

`FAIL` (a blank stretch of 1 s or more, or a file that does not decode to the end): fix the cause and
re-render. `LOOK` (a long frozen or quiet stretch, a short blank beat, no audio): watch that stretch
and keep it only if it is meant.

## Step 6: let a person tweak it (optional)

When the user wants to adjust in and out points, reorder shots or reword text themselves:

```bash
npm --prefix "$P" run studio <demo>        # run_in_background: true; first run: npm install --prefix "$P"
```

It reads and writes the same `handoff.json` and `demo.json`. Re-read both before you change them.
It never writes a file that fails the schema, and keeps `_` keys.

In the editor they can drag on-screen text and caption pills, edit them in place, resize them and pick a
font. What they set is saved on the shot and every export draws it on the same pixels:

| Field | File | Meaning |
| --- | --- | --- |
| `text_pos`, `caption_pos`, callout `pos` | handoff / demo | `[x, y]` centre of the text, 0 to 1 of the frame |
| `text_size` | handoff | px at 1920x1080 (20 to 160, default 44) |
| `text_font`, `caption_font`, callout `font` | handoff / demo | `inter` (default), `inter-display`, `geist`, `geist-mono`, `figtree`, or `fonts/<file>` |

**When the user asks to add their own font** ("use our brand font", "import this font"):

1. Get the font file from them (a path or a download they point to). Use `.woff2`, `.woff`, `.ttf` or
   `.otf`. Check the licence allows embedding in video; if unsure, ask.
2. Copy it into the demo, keeping a readable name (letters, digits, spaces, `. _ ( ) -` only):
   ```bash
   mkdir -p <demo>/fonts && cp "/path/to/Brand Sans-Bold.woff2" "<demo>/fonts/Brand Sans-Bold.woff2"
   ```
3. Tell the user it is in the Font menu of a selected text (the editor lists it as soon as its window
   is focused again). To set it yourself, write `"text_font": "fonts/Brand Sans-Bold.woff2"` on the
   shot (or `caption_font` in demo.json).
4. Done when: `python3 -I "$P/scripts/quick-preview.py" handoff.json <VIDEO>` (or `build-keynote.py`)
   finishes, and a frame of that shot shows the text in the new font.

## Done when

- [ ] `recordings/exports/review-reel.mp4` exists and you checked it on a contact sheet (the user
      sees it in the final report; they approved it first only if they asked for review gates)
- [ ] `build-keynote.py` printed no `WARN` you did not decide to accept (and say why to the user)
- [ ] `brand.accent` is the product's own colour, and every highlight box and statement pill in the checklist frames matches the product (no red or orange that the product does not use)
- [ ] `narrate.py --dry-run` shows no line running long, and the narrated cut plays
- [ ] The narrated cut has a real music bed (compose_music or the user's licensed track, not the make-bed placeholder), or the user chose no music
- [ ] `check-cut.py` on the narrated cut reports 0 FAIL, and you read every frame it saved and
      every LOOK item holds; tell the user the summary line and anything accepted below the bar
- [ ] If an editor is involved: `build-handoff.py` printed `voiceover fits`
- [ ] Each promo, how-to and social cut passed `video-gate.py` with no FAIL, and every LOOK was watched
- [ ] Each social version's contact sheet shows nothing cut off

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 development →

Comments

Loading comments…

Newsletter

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