name: video-script description: Write the script of an explainer, for TikTok or YouTube: the facts and sources, the narration in the shape the platform skill gives, split into scenes with what is on screen and the word that cues it. Use before writing a spec, or when a video's story, pacing or retention needs work. user-invocable: false
Write the script
The script is the narration, scene by scene, with what is on screen and the word that cues it. It becomes the spec's scenes. The craft shared by both platforms is in knowledge/explainer/; the shape and the length come from the platform skill (tiktok-video or youtube-video), which names its own notes.
Steps
- Facts. Gather what the video claims, from primary sources: the web for news, the code and its docs for a software project. For code an agent wrote, its own account of the work is a claim too: take each one from the code, a test or a command's output (
knowledge/explainer/documenting-systems.md§4). Keep each source URL or file path; they go in the spec'ssources. Politics or news: readknowledge/explainer/topics-and-neutrality.mdfirst. Done when every claim you plan to make has a source. - Shape. Pick the one question the video answers and lay out its parts in the platform's shape:
- TikTok: hook → context → escalation → payoff → loop, about a minute (
knowledge/explainer/format-anatomy.md,knowledge/tiktok/tiktok-scripting-storyboard.md). - YouTube: cold open → promise and chapter map → 3–7 chapters, each question → concept → example → why it matters → bridge → payoff → end screen (
knowledge/youtube/long-form-structure.md,knowledge/youtube/youtube-scripting-storyboard.md). - A teach or documentation purpose (
make-video, "Purpose"): the mode's chapters and scenes inknowledge/explainer/documentation-videos.md§3, whatever the frame: the conclusion first, chapters named by their question, pause points; no hook, re-hook or loop. For a series, one video per question, and say which video comes before and after.
- TikTok: hook → context → escalation → payoff → loop, about a minute (
- Narration. Read
knowledge/explainer/script-writing.md(sentences for the ear, numbers, abbreviations and punctuation the TTS reads well) and write the lines; the hook comes from the platform's hook note (tiktok-hooks.md,youtube-hooks.md). Done when its §10 checklist passes line by line, minus the loop ending on YouTube. - Scenes. Split the narration into scenes: one idea, one TTS line of 15–30 words. Write each into its scene file (
videos/<slug>/scenes/NN-<chapter>/NN-<id>.json) with its narration alone ({ "narration": "…" }: the file's name gives the scene its id), and keep the script as thenotesofvideo.json(angle, sources, the question answered). The voice can start now (make-video, building step 2). - Pictures and cues. Once the treatment exists (
video-direction), write for each scene what is on screen, taken from it (rules inknowledge/explainer/visual-language.md), and the cue words: the spoken word on which each element appears. A reveal lands on its word; the picture changes as often as the platform's retention note asks (tiktok-retention-editing-captions.md,youtube-retention-editing-captions.md).- Put a scene's first content on an early word, never its only content near the end of the line: until then the frame shows only its backdrop and labels (
checkwarns past 60 % of the scene, where the contact sheet takes it). - A word said twice:
@wordtakes the first time; write@word#2for the second (checkwarns when a cue's capital matches a later time only, like@Everyfor "Every file…" after "check every word").
- Put a scene's first content on an early word, never its only content near the end of the line: until then the frame shows only its backdrop and labels (
A script is done when: the hook is spoken where the platform skill says (TikTok: the first 3 s; YouTube: the cold open; a teach or documentation video: its answer or conclusion in the first 30 s instead), every scene has narration, a visual and at least one cue word, every number or claim on screen has a source, and the ending is the platform's (TikTok: the last line loops to the first; YouTube: a payoff that calls back to the cold open, then the next video named).