AI2PLAY

Music Video in Code

10 free prompts to direct Claude Code step by step, from the video “Claude Made This Music Video in Code. Here's How I Directed It”

The video goes live on Friday, 13 November, 18:00 (Romania time)Every prompt and free file is ready below, so you can follow along as you watch.
1Have your songA song file you made, or one you have the rights to use.
2Open Claude CodeIn a new folder with your song and our free files.
3Paste the prompts in orderReplace each [word in brackets] with your own.
4One note at a timeWatch each result on your computer, then give the next note.
Claude Code proposes, you decide. One prompt gives you a default video. Asking for options and giving one clear note at a time gives you YOUR video. Our 2:16 music video was made 100 % in code with these steps: six three.js scenes, rendered frame by frame and joined with FFmpeg.

Start: give Claude the files

Using our free files? Send this first, so Claude reads them before your brief.

First message

Put your song and the free files below in one new folder, unzip the Render Kit there, open Claude Code in that folder, and send this before prompt 01.

00

Read the files in this folder first: the Render Kit's README, the checklist and the robot motion guide. Use the Render Kit to render my video. Then wait for my brief.

The 10 prompts

Copy one, change the parts in [brackets], and paste it into Claude Code. Use them in this order.

The brief

Your first prompt: say what you want and what to avoid, before anything is built.

01

Make a music video for my song [song file], made only from code: three.js scenes rendered frame by frame, joined with FFmpeg. It should feel like [a real hip hop music video]: a story, a camera that moves on the beat, [sci-fi machines]. Mood: [dark, epic, clever]. Avoid the usual AI look: no neon glow, no grids, no fake screen labels. Keep every word above the bottom quarter of the frame, where YouTube puts captions, and never cut a word off. Don't build it yet. First show me options.

Options

Before you choose one look: see a few real choices, with your own song.

02

Make [3] different worlds as [12]-second tests on the chorus, with the real song, so I can choose. Put a still of each on one sheet, with a letter.

A note that worked in our videoIt's cute, but a robot arm gets boring after a few minutes. Let's do something new.

Mix

When you like parts of different options: keep the best of each.

03

I like the mood of [A and B] and the [liquid] in [C]. Use them together, one place for each part of the song. Leave out [the person in C].

Character first

Before any scene: get the main character right on its own.

04

Before any scene, design the main character alone: front, side and back, a close-up of the hands, and [3] poses. Matte materials, nothing shiny on the face. Show me [3] different directions on one sheet.

A note that worked in our videoIs the figure a little too stiff? Or should he be a robot, maybe a one-wheel robot?

A note that works

Every time something looks wrong: one problem, the change you want, and what to keep.

05

In [picture 4], [the elbow is above the hand when the arm goes up]. I want [the elbow below the hand]. Keep [everything else].

A note that worked in our videoWhen the hand goes up, the elbow is above it. It looks broken.

Versions

When you are not sure how to fix something: ask for choices, then pick one.

06

Show me [6] versions of [option A], side by side, front and side view.

A note that worked in our videoShow me better versions of 4. The arms bend backwards at the elbow.

Story map

Before you build the scenes: plan the whole song, part by part.

07

Map the song: list every section with its time, give each one its own place and one camera idea, put the cuts on the bar lines, and keep the biggest camera move for the last chorus.

One part at a time

While you build: one part, your notes, then the next part.

08

Make only [the intro and verse 1] first and send me the video. I will give notes, then we move to the next part.

A note that worked in our videoThe first seconds feel static. Can the camera move smoothly with that first sound?

Checks

Before every render: Claude Code finds the beginner mistakes and proves its checks work.

09

Before you render, check and tell me: every word above the caption area, no word cut off, nothing over the words, nothing passing through anything else, cuts on the beat, and a clean sound timeline. Break one check on purpose to prove it catches the problem.

Final render

When every part is approved: the full-size video.

10

Render the whole video at 2560x1440, 30 fps, with smooth edges, and check that every frame is there.

Notes that worked

Real notes from our video, written clean. Short, one problem each, and easy to check.

10 notes from our video

  • It's cute, but a robot arm gets boring after a few minutes. Let's do something new.
  • Is the figure a little too stiff? Or should he be a robot, maybe a one-wheel robot?
  • Show me better versions of 4. The arms bend backwards at the elbow.
  • The wheel is a little too big.
  • Is he touching the ground or floating? Does the wheel roll the right way?
  • When the hand goes up, the elbow is above it. It looks broken.
  • The first seconds feel static. Can the camera move smoothly with that first sound?
  • The ceiling looks like a box, not endless. It lost the realism.
  • The tiny droplets far away look like noise. Make fewer and bigger ones.
  • The outro is a little boring. Try a better composition.

8 tips for a good note

  1. One change per note. Two problems = two notes. Then you can see what each change did.
  2. Say what to keep. "Keep everything else" stops the parts that already work from changing.
  3. Point at it. Name the picture, the letter or the second in the video: "in picture 4", "at 0:42".
  4. Say what you see, then what you want. "The elbow is above the hand. I want the elbow below the hand."
  5. Not sure? Ask. Ask a question ("Is he touching the ground or floating?") or ask for versions and pick one.
  6. Details on your computer, then a phone. Most people will watch it on a phone. Away from your PC? Leave it on, turn on Remote Control and ask Claude for a phone copy.
  7. Check the side view of a character. Some mistakes, like elbows that bend backwards, only show from the side.
  8. You decide. Claude Code proposes. It is your video: say no when it is not what you want.

Free downloads

Five plain text files and our Render Kit. Put them in your video's folder and send the first message, or keep them next to you.

Prompt Pack

All 10 prompts, when to use each one, the notes that worked and 8 tips for a good note.

Download .txt

Checklist

Tick boxes for the words, the motion, the sound and the file, before you render.

Download .txt

Robot Motion Guide

How to make a robot move like it has weight: lean, wheel, eyes, arms, dance on the beat.

Download .txt

Render on Your PC

Speed, graphics memory, slow cards, stills first, and the frozen screenshot we fixed.

Download .txt

The Song: Lyrics and Style

The lyrics with their section tags, the Suno style, the Exclude text and the settings.

Download .txt

Render Kit: Our Code

The code from our video: turns a three.js page into an mp4, plus the robot and a 5-second test scene. MIT licence.

Download .zip