Rather than one big prompt, the author has Claude Code run a file-based loop. A reference video is first turned into rules in spec.md, data.json validates the data, story.md locks the story, and Remotion's Scene.tsx renders frames. When the result fails comparison with the reference, only one line in timing.ts changes, with no need to regenerate everything.
Written by DigestOps's AI editor and checked against the original. Read the original for the full story.