goal: Let Claude Code write a small checker that fails any prompt with a brand name, a timing gap or a hard word, before you pay for a run. meta: 11 minutes | Cost: €0 | +10 XP need: Claude Code in your ai-vids folder | A prompt to check ## Why a checker By video ten your prompts are 10–15 thousand characters. You will miss a brand name hidden in a car description. A script won't. ## What it tests - Brand and model names anywhere (cars, jets, watches, fashion houses, phones) - Timing: scenes run with no gaps and end exactly on the stated length - Every spoken line ends at least 0.2 s before its cut - No silence longer than about 2.5 s - Hard words and slang in spoken lines - The full prompt equals part 1 plus part 2 ## Create the checker 1. Open a terminal, `cd` into ai-vids and type `claude`. 2. Paste the prompt below and press Enter. 3. When it asks to create `scripts/check_prompts.py`, choose `Yes`. copy: Claude Code | Write scripts/check_prompts.py. Usage: check_prompts.py videos/[name]/prompts\nFor every .json file:\n- fail on any word in BRANDS (case-insensitive, whole word)\n- parse scenes[].time "a-bs"; fail on gaps, overlaps or a wrong total length\n- fail if any dialogue[].when window ends less than 0.2s before its scene ends\n- fail if the gap between spoken lines is longer than 2.5s\n- fail on any spoken word in HARD_WORDS or SLANG\n- if full-*.json exists, fail if it differs from part1 + part2 scenes\nPrint every problem and exit 1, or print "0 problems". 4. Ask it to fill the lists: `Fill BRANDS with common car, jet, watch, fashion and phone brands, and HARD_WORDS and SLANG from my lessons file.` ## Run it 1. Type: `Run scripts/check_prompts.py on videos/wedding/prompts.` 2. Read every problem it prints. 3. Fix one at a time: `Fix problem 2 only: replace the car brand in scene 12 with a shape description.` 4. Run it again. Repeat until it prints `0 problems`. done: the checker prints 0 problems for the prompt you are about to paste into Higgsfield. warn: editing the JSON by hand after the check (any edit means running it again) or ignoring a problem because the scene looks fine. tip: When a new brand or word slips through and costs you a run, add it to the list the same day. quiz: When can you paste a prompt into Higgsfield? | When it looks fine | *When the checker prints 0 problems | After two runs || Correct. No 0 problems, no run. win: Module 1 done. | Next module: a lead character people recognise in one frame.