agentleFS
Hive-AcademyHive-Academy/ptah-extension/.claude/skills/video-showcase/SKILL.md

video-showcase

Skill29 starsChanged 2 months agoMITView on GitHub

Records and renders narrated marketing videos from automated UI walkthroughs (Playwright capture, Remotion render). Use to create or edit a product demo, showcase, feature tour or scene, adjust camera or branding, or port the pipeline to another repo.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    All branding is centralized in apps/<studio>/src/brand.config.ts (BRAND): wordmark, productName, tagline, ctaLabel, and theme (colors + …

    line 59

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Video Showcase

Turns automated UI walkthroughs into polished marketing MP4s. It is two halves joined by JSON manifests — capture is deliberately dumb (flat footage + data), all cinematography is a post-process, so you re-render endlessly without re-recording.

┌── CAPTURE (Playwright) ──────────┐        ┌── RENDER (Remotion) ─────────────┐
│ Director drives the real app     │        │ render-all.mjs builds props      │
│ records raw.webm (flat, no zoom) │ beats  │ ShowcaseVideo composition applies│
│ emits beats.json + shots.json  ──┼──json──▶ virtual camera (zoom/pan),       │
│ (+ narrate → wav, caption → json)│ shots  │ amber ring, captions, audio, mux │
└──────────────────────────────────┘  json  └───────────────▶ out/<scene>.mp4 ─┘

Golden rule: zoom and highlight borders are NOT in the recording — the Director only records element rectangles + timestamps into shots.json. Everything cinematic happens at render time. So visual/camera fixes never need a re-capture, only a re-render.

The three engine units (what's reusable/portable)

UnitPath (this repo)Role
Remotion appapps/ptah-video-studioCompositor + render-all.mjs, narration/caption scripts, camera grammar
Shared typeslibs/showcase-manifestbeats/shots manifest types — the contract between capture & render
Capture harnessapps/ptah-electron-e2e/src/showcase/_harnessDirector + Playwright fixtures (web + Electron launchers)

Project-specific (authored per app): scene specs (*.scene.ts), narration scripts (scripts/<scene>.json), and branding (brand.config.ts).

Workflow

  1. Author a scene — a *.scene.ts (Playwright walkthrough using the Director) + a scripts/<scene>.json (ordered narration lines). See reference/scene-authoring.md.
  2. Capture — run the showcase Playwright project → writes dist/apps/<e2e>/recordings/<scene>/{raw.webm, beats.json, shots.json}.
  3. Narrate — npm run narrate (ElevenLabs) → wav/NNNN.wav + durations.json (drives audio-locked pacing).
  4. Render — node apps/ptah-video-studio/scripts/render-all.mjs --scene <slug> → out/<scene>.mp4.
  5. Preview/iterate — cd apps/ptah-video-studio && npm run studio opens Remotion Studio to scrub the camera frame-by-frame without a full render.

Quick commands

# Render one scene / all scenes
node apps/ptah-video-studio/scripts/render-all.mjs --scene dashboard-tour
node apps/ptah-video-studio/scripts/render-all.mjs
# Higher-res output (supersamples from the capture)
node apps/ptah-video-studio/scripts/render-all.mjs --scene X --out-res 1080p
# Interactive preview
cd apps/ptah-video-studio && npm run studio

Videos land at dist/apps/ptah-electron-e2e/recordings/<scene>/out/<scene>.mp4; the raw un-styled capture is raw.webm in the same folder.

Camera behavior (the part people tweak most)

The virtual camera follows shots.json under a "grammar" enforced in render-all.mjs applyCameraGrammar: a full-frame establishing opener, minimum spacing between punch-ins, and — critically — a release shot after each punch-in so the camera zooms back OUT to full-frame instead of freezing on one element. Tunables: HOLD_MS (dwell before releasing, 2600), RELEASE_MIN_GAP_MS (skip release if the next punch is closer, 1400), ESTABLISH_MS, MIN_SHOT_MS. Full details + troubleshooting (frozen zoom, ring on empty space, edge-pan black gap) in reference/camera-and-render.md.

Re-skin for a different brand

All branding is centralized in apps/<studio>/src/brand.config.ts (BRAND): wordmark, productName, tagline, ctaLabel, and theme (colors + font). Editing that one file re-skins every video. See reference/brand-and-runtime.md.

Port into another Nx workspace

Copy the three engine units, rename the @ptah-extension/showcase-manifest package alias, add the deps, set brand.config.ts, and pick the capture runtime (web via browser-fixtures.ts, Electron via showcase-launcher.ts — both ship). A generated, copy-pasteable kit can be produced with node apps/ptah-video-studio/scripts/export-kit.mjs. Step-by-step in reference/install.md.

Reference

  • reference/scene-authoring.md — full Director API + how to write a scene + narration script
  • reference/camera-and-render.md — shots/beats model, coordinate system, camera grammar, render pipeline, troubleshooting
  • reference/brand-and-runtime.md — brand.config.ts fields + web vs Electron capture
  • reference/install.md — porting the pipeline into a new Nx workspace

For heavy authoring or a full record→render pass, delegate to the video-director subagent.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.