agentleFS
RidhuanDEVRidhuanDEV/claude-skills/shadow-video/SKILL.md

shadow-video

Skill1 starsChanged 7 days agoMITView on GitHub

Use when making narrated tutorials, app demos, GUI recordings, Remotion motion videos, or TTS/ffmpeg MP4 and SRT output.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    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. Distinctive:

    Never skip E2E before recording: a failed recording costs minutes and TTS quota.

    line 32
  2. Very specific:

    Never leave video-env.cjs or browser processes lingering after a video task finishes, and never kill servers belonging to other projects.

    line 70

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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

Shadow Video

Engine and method for narrated tutorial videos and GUI E2E click-throughs of web apps. One scene file drives both: npm run e2e proves every selector in a visible or headless browser; npm run build:video records the same steps with a human-like cursor, Indonesian TTS narration and subtitles. Proven on two production projects (government logistics, university research portal).

Fixed pipeline (same on every agent host)

app source ─► tools/build-NN.py ─► tutorial/NN-*.md  (script, reviewed by the Monarch)
   (traced labels)              └► scenes/NN-*.json  (same narration, Playwright actions)
scenes ─► validate ─► e2e (GUI proof) ─► tts ─► record ─► merge ─► verify ─► final
StepCommandGate (stop if it fails)
Scaffoldnode <skill>/scripts/scaffold.mjs <project>refuses to overwrite an existing video-pipeline/
Readinessnpm ci, npm run doctor, npm run typecheck, npm run selftest -- --e2eevery line OK except items the task does not need
Researchnpm run snapshot -- <ROLE> <route> [steps] + read app sourceevery label/selector cites file:line
Scriptpython tools/build-NN.pynarration lint passes; Monarch approves the .md
Proofnpm run validate, npm run e2e -- <id> [--headed] [--shots] [--trace]E2E PASS; report in output/e2e/<id>/
Previewnpm run build:video -- <id> on ONE short moduleMonarch approves cursor pace and A/V sync
Producenpm run build:video -- <id> per module, in dependency ordernpm run verify -- <id> PASS + frames viewed
Packagenpm run finaltitle cards, thumbnails, per-module and combined MP4 + SRT + YouTube chapters

Never skip E2E before recording: a failed recording costs minutes and TTS quota; a failed E2E costs seconds.

Reference Guide

Load only what the task needs:

TaskRead
Choosing non-tutorial video modes (Remotion/Canvas motion, mobile capture, docs GIF/WebM, multi-language/LUFS audio)Multi-mode video workflows
New project or engine refreshHost capabilities, template README.md
Writing or reviewing narrationNarration style
Writing scenes, choosing selectorsScene authoring
Environment, accounts, captcha, demo data, TTS licenceRecording environment
Using scenes as GUI E2E testsGUI E2E
A run failed or looks wrongTroubleshooting
UI changed after videos existUI change sync
Validating this skill itselfEvaluations

Non-negotiables

  1. The app source is the source of truth. Labels, routes, field order, validation and messages come from code (cite file:line) or snapshot output, never from old manuals or guesses. Where the requested flow differs from the code, script what the code does and record the difference under CATATAN PRODUKSI.
  2. Never production. BASE_URL points to local or staging with a test database; BLOCKED_HOSTS must hold the production host. Recording creates real data: only on disposable data, prefixed Demo – .
  3. Secrets stay out of video, logs and chat. Credentials only as {{PREFIX_EMAIL}} placeholders from .env; use maskText, capture, fetchMail, openUrl so tokens, passwords and inboxes never show. .env, auth/, cache/ are git-ignored and never copied into this skill or shared.
  4. One source for script and scenes. tools/build-NN.py writes both files; never hand-edit narration in one.
  5. Engine stays generic. Project specifics live in video.config.json, .env, scenes/, tutorial/, tools/build-*.py. Change src/ only for a new engine feature, explain it first, then port it back to templates/video-pipeline/ so every project gets it.
  6. Execution approval. Scaffolding into a repo, recording against staging, TTS spend, and deleting demo data are actions the Monarch authorises per project (Shadow Monarch L2/L3). Read-only research and e2e on local pages are in scope once the task is approved.
  7. Mandatory Recording Stack Teardown. Whenever a recording or E2E run starts tools/video-env.cjs (frontend + backend), headed chrome-cdp.ts / Playwright browsers, or ephemeral recording DB containers, track their PIDs/containers and stop ONLY those task-owned resources in finally / immediately after verify & final complete (shadow-monarch/scripts/resource_cleanup.py). Never leave video-env.cjs or browser processes lingering after a video task finishes, and never kill servers belonging to other projects.

Reporting

Report per module with separate evidence lines, using PASS | FAIL | NOT_RUN | BLOCKED: e2e (report path), verify (codec, canvas, fps, audio, duration, SRT, narration current), visual review (which frames or segments were actually watched), and demo data left on staging. A passing verify proves the file is well-formed; it does not prove the video is good. Say "Not measured" for anything not watched.

Related skills

Shadow Browser owns ad-hoc browser checks and 375px layout audits. Shadow Test owns unit/integration suites. Shadow Doc owns written manuals (.docx), which can embed thumbnails from output/. Shadow Monarch defines scope and execution permissions.

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.