agentleFS
AlexisAMZAlexisAMZ/claude-presenter-video/skills/presenter-video/SKILL.md

presenter-video

Skill0 starsChanged 2 months agoMITView on GitHub

Turn a script or a topic plus one authorized photo into a publish-ready AI presenter (talking-head) video with fal.ai - narration, lip-synced avatar, word-timed captions, loudness-normalized master and share files, and QA. Use when the user wants a talking-head, spokesperson, avatar or presenter video, a Short, Reel or TikTok with a speaking person, or asks to resume, recaption, repair lip sync or re-export an existing presenter-video job.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. EmbeddedLLM/nice-skills★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repositoryOne other file it gives its agents.

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 5 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Three strikes: After three rejected paid candidates for the same shot, stop.

    line 20
  2. Distinctive:

    Read references/production.md first.

    line 45
  3. Very specific:

    Use --script file.md instead of --topic if the user has a script.

    line 52
  4. Very specific:

    Ask the consent questions in one round and record the answers under input.

    line 55
  5. Very specific:

    If preflight says the photo aspect differs from the video, frame it and record the result in presenter.prepared_image:

    line 57
  6. Very specific:

    Write docs/SCRIPT.md (beats and intent) and docs/NARRATION.txt (the exact spoken words, nothing else, with numbers written the way they are …

    line 63
  7. Distinctive:

    If the user supplied a script, improve its breath and pronunciation only.

    line 64
  8. Distinctive:

    Read references/fal-models.md for input templates and limits.

    line 69
  9. Very specific:

    Check the speech: run speech-to-text, then captions.py diff --script docs/NARRATION.txt --asr ….

    line 77
  10. Very specific:

    Run the remaining segments under the approved quote, each into its own assets/video/segments/seg-NN/.

    line 85
  11. Distinctive:

    If the body motion is good but the mouth is late, repair lip sync with the same audio (see qa-recovery.md) rather than regenerating.

    line 86

≈ “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

Presenter Video

Make a verified presenter video from a script or topic and one photo, with fal.ai models.

One rule organizes everything: the locked narration is the master clock. The presenter is generated from it, captions are timed to it, cuts land on its pauses, and the delivered video lasts exactly as long as it does.

Scripts live in scripts/ inside this skill's base directory (shown when the skill loads). Below, $SKILL stands for that directory and $JOB for the job folder. Run scripts with python3 "$SKILL/scripts/<name>.py". Every script prints JSON and exits non-zero on failure.

Non-negotiables

  • Consent before upload. The user confirms they hold the rights to the photo, that the presenter is an adult, and that uploading to fal.ai is fine. Cloning a voice also needs the voice owner's authorization. Never guess a real person's voice from a photo, and never make a real person say something they did not approve.
  • Quote every paid call. Before the first paid call, show a quote built from live prices: files uploaded, endpoint, units, unit price, subtotal, pilot size, retry ceiling. Wait for a clear yes. fal.py run refuses to start without --approved, so pass that flag only for the plan the user approved, and quote again whenever the model, duration or retry count changes.
  • Pilot first. Generate the shortest useful segment, review it, then run the rest.
  • Resume instead of paying twice. Every paid call is logged to $JOB/qa/requests/fal-requests.jsonl. After any interruption, run fal.py wait <request_id> --log … before you consider resubmitting. If a submit fails with a network error before any request id was printed, fal may still have accepted it: have the user check Recent History in the fal dashboard first.
  • Three strikes. After three rejected paid candidates for the same shot, stop. Summarize what failed and propose one variable to change, with its cost.
  • Narration only. Generated clips are muted. The mix contains the locked narration, plus music only if the user asked for it.
  • Prove it before saying done. The final files must pass finalize.py, and you must open the contact sheet and the frames around every cut yourself.
  • Never handle the key. FAL_KEY comes from the environment. If it is missing, point the user to https://fal.ai/dashboard/keys and ask them to export it in their shell. Never ask them to paste it into the chat.

States

Advance job.json → state only when the evidence exists:

intake → content_locked → audio_locked → presenter_generated → composed → verified → delivered

To resume a job, read job.json, the request log and qa/reports/, then continue from the earliest unfinished state. Never regenerate media that was already accepted. If the consent answers in job.json were not given to you in this session, confirm them again with the user before any remote step.

0. Setup check (free)

python3 "$SKILL/scripts/fal.py" doctor

This checks Python 3.9+, ffmpeg/ffprobe, libass (needed to burn in captions), FAL_KEY and that fal.ai is reachable. Fix whatever it reports before going further.

1. Intake → intake

Read references/production.md first.

python3 "$SKILL/scripts/init_job.py" --job-dir "$JOB" --presenter-image photo.jpg \
  --topic "Why our onboarding takes 3 minutes" --aspect 9:16 --duration 45 --language en

Use --script file.md instead of --topic if the user has a script. Use --voice-sample only with an authorized recording. The script copies inputs into the job, so every path in job.json is relative.

  1. Open the photo (Read tool) and record manual_input_review in job.json: one clear adult face, no unwanted text or logos, enough resolution.
  2. Ask the consent questions in one round and record the answers under input.
  3. python3 "$SKILL/scripts/preflight.py" "$JOB/job.json", then fix every error. Nothing remote happens until remote_ready is true.
  4. If preflight says the photo aspect differs from the video, frame it and record the result in presenter.prepared_image: python3 "$SKILL/scripts/compose.py" prep-image "$JOB/assets/source/presenter.jpg" --aspect 9:16 --out "$JOB/assets/source/presenter-framed.png". Open the result to check that the head and shoulders survived the crop, and adjust --anchor if they did not.

2. Script → content_locked

  • Build a topic as hook → promise → 2 to 4 useful beats → synthesis → close. Aim for about 2.5 words per second in English and French (see production.md for other languages).
  • Write docs/SCRIPT.md (beats and intent) and docs/NARRATION.txt (the exact spoken words, nothing else, with numbers written the way they are said).
  • If the user supplied a script, improve its breath and pronunciation only. Flag any factual change for approval.
  • Get approval of NARRATION.txt. From this point the words are locked.

3. Voice → audio_locked

Read references/fal-models.md for input templates and limits.

  1. Choose a stock voice, or clone one if voice_clone_approved is true (fal-ai/minimax/voice-clone returns a custom_voice_id).
  2. Quote: python3 "$SKILL/scripts/fal.py" price <tts-endpoint>. Record the plan in budget.quote.
  3. Generate the whole narration with one voice configuration: python3 "$SKILL/scripts/fal.py" run <tts-endpoint> --input "$JOB/qa/requests/tts.json" --out-dir "$JOB/assets/audio/raw" --log "$JOB/qa/requests/fal-requests.jsonl" --approved
  4. Normalize to assets/audio/final/narration.wav (48 kHz mono) with the ffmpeg line in editing.md, and record its exact duration.
  5. Time the words with forced alignment against NARRATION.txt, then captions.py words … --out assets/captions/words.json.
  6. Check the speech: run speech-to-text, then captions.py diff --script docs/NARRATION.txt --asr …. Listen to every mismatch before regenerating anything, because numbers and names often differ in spelling only.

4. Presenter → presenter_generated

  1. Pick the model. Show the default and two alternates with their live prices, then record the choice in fal.models.presenter.
  2. Plan the segments at natural pauses, under the model's audio limit: python3 "$SKILL/scripts/segments.py" plan "$JOB/assets/audio/final/narration.wav" --max-seconds 30 --out "$JOB/assets/audio/segments/segments.json", then segments.py cut … --out-dir "$JOB/assets/audio/segments".
  3. Pilot: generate segment 1 only, into assets/video/segments/seg-01/. It is part of the final cut, so nothing is wasted. Extract stills with compose.py frames and open them. Check identity, mouth timing on plosives and numbers, bilateral blinks, hands and lighting. Show the user the pilot before anything else is generated.
  4. Run the remaining segments under the approved quote, each into its own assets/video/segments/seg-NN/.
  5. If the body motion is good but the mouth is late, repair lip sync with the same audio (see qa-recovery.md) rather than regenerating.

5. Captions and assembly → composed

Read references/editing.md.

python3 "$SKILL/scripts/captions.py" build "$JOB/assets/captions/words.json" \
  --srt "$JOB/assets/captions/captions.srt" --ass "$JOB/assets/captions/captions.ass" \
  --style bold --width 1080 --height 1920
python3 "$SKILL/scripts/compose.py" render --segments "$JOB/assets/audio/segments/segments.json" \
  --videos "$JOB"/assets/video/segments/seg-*/video.mp4 --audio "$JOB/assets/audio/final/narration.wav" \
  --ass "$JOB/assets/captions/captions.ass" --width 1080 --height 1920 --fps 30 --punch-in 1.06 \
  --out "$JOB/renders/rendered.mp4"
python3 "$SKILL/scripts/compose.py" frames "$JOB/renders/rendered.mp4" \
  --around-cuts "$JOB/assets/audio/segments/segments.json" --out-dir "$JOB/qa/contacts"

Open every still around the cuts. Check captions against the face and platform UI, check that the jump cuts read as deliberate, and check that no frame is frozen or black.

6. Finish and verify → verified, then delivered

Read references/qa-recovery.md.

python3 "$SKILL/scripts/finalize.py" "$JOB/renders/rendered.mp4" "$JOB/outputs" my-video \
  --expect-duration <narration seconds>

This produces -master.mp4, -share.mp4, -contact-sheet.png and -delivery-report.json. Open the contact sheet and read the report's issues. Ask the user to watch the master at normal speed. Then deliver: the file list, the actual spend from the request log and quote, the QA notes, and anything the user should know before posting.

Defaults for minimal input

  • Language: the user's. Format: 9:16, 1080x1920, 30 fps. Use 16:9 for YouTube or slides.
  • A topic becomes 45 to 75 seconds. A supplied script keeps its natural length.
  • Captions: bold for vertical video, clean for landscape. No music and no call to action unless the user asks for them.
  • Program loudness: -16 LUFS (use --lufs -14 if the user wants platform-loud).

References

  • references/fal-models.md: which fal.ai model does what, input templates, limits, and how to check schema and price live.
  • references/production.md: consent, script craft, speaking rates, voice, presenter prompts, pilots.
  • references/editing.md: the timeline contract, audio normalization, caption styles, jump cuts, exports.
  • references/qa-recovery.md: acceptance gates and how to recover from each failure.

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.