- Practical guide: how to get Claude Code to break a script and shot list into structured prompts for Kling, Runway and Sora, with an instruction template and before/after examples.
Someone in an AI group described a familiar frustration: they asked Claude Code to build a video generator prompt from a ready-made script and shot list, and got back literary text that bore no resemblance to what Kling, Runway, or Sora actually require.
The short answer: Claude Code can absolutely do this, but only after you teach it the exact formula for the target tool. By default it writes a polished description because nobody told it that Kling expects a fixed sequence of four components, that Runway wants a single camera move stated first, or that Sora requires a separate, labeled dialog block. Once that structure is written down once in a project instructions file, Claude Code breaks down a full script into individual shots consistently.
Why Claude Code "doesn't come close to a normal prompt" by default
Claude Code is a general-purpose AI agent: it writes code, analyzes files, builds reports. It was not built specifically for video generators, and it has no built-in knowledge that Kling expects exactly one word from a closed list of camera motion terms, or that Sora restricts a single shot to exactly 4, 8, 12, 16, or 20 seconds.
When you ask it to "write me a video prompt from this script" without specifying a structure, it does exactly what a good language model does in the absence of instructions: it writes a coherent, polished paragraph, in Hebrew or English, in a literary descriptive style. That is precisely the opposite of what a video generator needs. Video generators do not "read" a prompt the way a human reader does; they map specific keywords to technical parameters like camera angle, motion, and duration.
This gap is not closed by a "smarter" model. It is closed by providing the exact structure upfront. That is exactly the job a project instructions file (CLAUDE.md) is designed to do, and I covered it in more detail in my guide How to work with Claude Code.
Three tools, three completely different structures
Before writing a single instruction for Claude Code, it is worth knowing that there is no such thing as a "universal video prompt." Every tool is built differently, and a prompt that works perfectly in Kling can fail in Runway.
| Tool | Official prompt formula | Maximum shot duration |
|---|---|---|
| Kling | Subject + subject motion + scene + camera language (one word from a closed list: push in, pull back, pan left, pan right, tilt up, tilt down, track forward, orbit slowly, static camera) | VIDEO 3.0: 3 to 15 seconds. Earlier models: 5 or 10 seconds only |
| Runway Gen-4.5 | "The camera [motion] as the subject [action]", one action only per prompt, shot type mentioned first | 2 to 10 seconds |
| Sora 2 | Four to five separate blocks: scene description, cinematography (camera angle, lens, mood), numbered actions, and a separately labeled dialog block | Exactly 4, 8, 12, 16, or 20 seconds |
Three points worth remembering from the table: Kling explicitly warns against more than three camera moves in sequence within the same prompt, because it confuses the model. Runway recommends a single action per prompt, not a sequence like "she walks in, sits down, opens her laptop." And Sora requires dialog to sit in a separate, labeled block, not embedded inside the scene description itself. A fuller look at Kling is in my Complete Kling Guide, and a broad comparison of all the major video tools is in my Guide to AI Video Creation Tools.
The method: how to teach Claude Code the right structure
- Choose one target tool before writing a single line. A script written for Kling is not identical to a script written for Sora, because of differences in duration and structure.
- Write the prompt formula in a CLAUDE.md file in the project folder. This is a file Claude Code reads automatically at the start of every session. Instead of re-explaining the structure in every conversation, you write it once.
- Feed the full script and shot list as a text file. The more the shot list is already broken down (location, characters, action per shot), the fewer guesses Claude Code needs to make.
- Ask for a breakdown into individual shots, not one long paragraph. The best instruction: "Go through the script scene by scene, and for each shot produce a separate prompt following the structure in the instructions file."
- Ask for a duration check. Any shot that exceeds the tool's limit (for example, 12 seconds in an older Kling model) should be split into two shots, not crammed into one prompt.
- Review the output shot by shot. Claude Code produces a very good draft; the eye that checks character consistency, lighting, and location across shots is still yours.
An example instructions file that teaches Claude Code Kling's structure
This is a template you can copy into CLAUDE.md and adapt for another tool:
# Instructions for generating Kling prompts
When I ask you to convert a shot from the script into a prompt, always use the following structure, in exactly this order:
1. Subject: who or what is in the frame, in one sentence.
2. Subject motion: one clear action, not a sequence of actions.
3. Scene: location, lighting, and mood, briefly.
4. Camera language: exactly one word from: push in, pull back, pan left,
pan right, tilt up, tilt down, track forward, orbit slowly, static camera.
5. Duration: between 3 and 15 seconds, based on the length of the action in the script.
Do not use more than three camera moves in the same prompt.
Do not write a literary paragraph. Only the five components in sequence, separated by commas.
The same principle, with different components, works for Runway (camera first, then one action only) and for Sora (five separate blocks, including a labeled dialog block). General rules for writing a good prompt, beyond video, are covered in my Guide to Writing a Good Prompt.
Before and after: from a general paragraph to a structured prompt
Before, with no instructions (what Claude Code produces by default):
"In a dark and hazy room, a young woman sits in front of a laptop, the light of the screen reflected on her face as she reads an important message, the tension in the air palpable in every detail..."
That is a pleasant description to read as a human, but Kling has no idea what to do with "tension palpable in every detail," and it contains not a single camera word from the closed list.
After, with a Kling instructions file:
"Subject: woman in her 30s, dark shirt. Subject motion: reading a message on a laptop screen, pressing her lips together. Scene: dark workspace, single cold blue light from the screen. Camera: push in slow. Duration: 5 seconds."
Exactly the same scene, but the second prompt contains only what Kling knows how to translate into actual frames.
How to split a long script into correctly sized shots
A real script is not divided in advance into 5- or 15-second units, and that is the source of most of the problem. When Claude Code receives a full one-minute scene and is asked to produce "a prompt" from it, it tends to compress the whole thing into one long description that the generator cannot execute.
The right approach: ask Claude Code to add an estimated duration column to the shot list, and to flag every shot that exceeds the chosen tool's limit. For example, a shot that describes a character entering a room, sitting down, and opening a conversation is in practice three actions, and therefore three separate shots in Runway (which requires one action per prompt), but it can remain a single shot in Kling VIDEO 3.0 (which supports up to 15 seconds). That difference between tools is exactly why you should choose your target tool before breaking down the script, not after.
Common mistakes
- Asking for "a video prompt" without specifying which tool. Every tool reads a different structure; a generic prompt works partially in all of them and fully in none.
- Letting Claude Code write a marketing paragraph instead of a component list. Without an instructions file, that is what it will do every time.
- Exceeding the tool's duration limit. Requesting a 20-second shot from an older Kling model that supports only 10 seconds simply will not execute as planned.
- Including more than three camera moves in sequence in a Kling prompt. The official documentation warns that this creates confusion along the timeline.
- Writing dialog inside the scene description in Sora, instead of in a separate, labeled dialog block as the official documentation requires.
- Not documenting a fixed physical description for each character in the instructions file, which causes inconsistency from shot to shot.
The bottom line
The problem behind the question asked in the group was not that Claude Code is "not smart enough" for video generators. It was that nobody gave it the formula. Once the target tool's formula sits in an instructions file, Claude Code does exactly what it does best: it takes messy input, in this case a script and a shot list, and returns a consistent, structured output, shot after shot.
Anyone who wants to go through this entire process step by step, from initial idea to a video ready to publish, can use the course AI Video 2026: From Idea to Publishable Video for 9.90 ILS.
Sources
- Kling: Camera Control and Motion Words Guide (checked 2026-09-29)
- Kling VIDEO 3.0: Duration and Narrative Control Guide (checked 2026-09-29)
- Runway: Official Gen-4 Video Prompting Guide (checked 2026-09-29)
- Runway: API Changelog, Gen-4.5 details (checked 2026-09-29)
- OpenAI: Official Sora 2 Prompting Guide (checked 2026-09-29)
