Lesson 19 ยท Vibe Mastery boss ยท about 60 minutes
๐ฌ VIBE BOSS: Direct the AI Like a Movie Director
A movie director doesn't hold the camera. But the director decides EVERY shot โ and rejects the bad takes. Today you direct the AI through THREE real features on your landing page. This is the boss level of everything you've learned.
๐ฌ Watch first (90 seconds)
You don't hold the camera anymore
Think about how a movie gets made. The director doesn't operate the camera, doesn't hold the microphone, doesn't do the stunts. The crew does all that. So what does the director do?
- Decides what the scene should be โ before anyone films anything.
- Watches every take โ really watches, not half-asleep.
- Says "CUT โ again!" when a take is bad. Even great actors get rejected takes. That's normal.
- Says "that's the one" โ only the director decides when a scene is DONE.
You + AI works exactly the same way. The AI is your super-fast camera crew: it types the code. But YOU decide what gets built, YOU review every take, and YOU reject the bad ones. A director who accepts every take makes a terrible movie. A vibe coder who accepts every AI answer makes a terrible website.
- PLAN ๐ โ Before you prompt anything, write down what you want in plain words. What does it look like? What happens when you click? Which section of the page does it live in? No plan = mystery movie.
- PROMPT ๐ฏ โ Ask for ONE small feature at a time, using your 5-ingredient order from Lesson 16 (what, where, look, behavior, rules). Never "build me everything" โ that's ordering the whole menu and getting soup on your ice cream.
- REVIEW ๐ โ Detective method from Lesson 17, BEFORE the code touches your file. Skim it. Name every id and class the AI invented. Find the thread: which button connects to which element? Never paste in code you haven't skimmed.
- TEST ๐ฑ๏ธ โ Paste it in, save, refresh, and click EVERYTHING. Console open (Lesson 18) so silent bugs can't hide from you.
- COMMIT or REJECT โ โ โ If the take is about 80% right, keep it and ask for the missing 20%: "Great โ now make only the button bigger." If it's confusing garbage, say CUT: delete it and re-prompt with a better order. Takes are FREE. You're the boss.
๐ ๏ธ The mission: three features, three director's loops
practice/landing.html with THREE AI-built features. Run the full Director's Loop for each one. By the end, your landing page has an FAQ, a dark mode, and one dream feature YOU chose โ and you can explain every line of all three.
- PLAN feature 1 โ the FAQ. On paper (or in a comment at the top of your file), write: "An FAQ section with 3 questions. Clicking a question shows or hides its answer." Decide where it goes on your page. You already know the secret engine:
classList.toggle! - PROMPT it. Give your AI teacher a 5-ingredient order. Something like: "Add an FAQ section to my landing page. 3 questions about my product. Clicking a question shows/hides its answer using classList.toggle. Match my page's colors. Plain HTML/CSS/JS, no libraries, and explain each part."
- REVIEW like a detective โ before pasting! Read the take. Say OUT LOUD every id and class the AI invented (
faq-item?open?question?). Follow the thread: which click listener toggles which class on which element? Can't find the thread? Ask "explain line X like I'm 10" until you can. - TEST it. Paste, save, refresh โ Console open. Click all 3 questions. Click them twice (does hiding work too?). Then demand one small change to prove you're the director: "Make only the question text bold when its answer is open."
- Feature 2 โ dark mode. PLAN + PROMPT. The plan: "A ๐ button in my header. Clicking it toggles a class called
darkon the body, and my CSS has.darkrules for dark colors." Prompt exactly that โ you've already decided HOW it should work, so the AI can't wander off. - REVIEW + TEST dark mode. Find the toggle thread: button โ listener โ
classList.toggle("dark")โ.darkCSS rules. Test it: does EVERYTHING go dark, or did the AI forget your cards or your footer? If something stays light, that's your 20% fix: "The footer stays white in dark mode โ fix only that." Then one director's demand: "Make only the moon button bigger." (Watch that it doesn't resize other buttons โ AIs love to over-change!) - Feature 3 โ YOUR dream. Full loop, solo. A photo gallery? A countdown to your birthday? A button that plays a sound? Dream it, PLAN it in words, order it small, review it, test it, demand one change. This one is 100% directed by you.
- The director's cut review. Scroll through everything the AI added to your file. For each id and class, say what it does. Find one you can't explain? You know the drill: "explain this like I'm 10" โ and don't stop until it clicks. Somewhere in these three features, at least ONE take should have been rejected or fixed. If every take was "perfect," you weren't watching closely enough. ๐ฌ
๐น๏ธ Try it right here โ the director's cut
An AI just delivered this dark-mode take. It WORKS โ click the button in the preview and watch the colors flip! But working is not the same as done. You're the director, and you have notes.
- The button just says "Toggle". Boring take! Make the button show ๐ (or at least the word dark) so visitors know what it does.
- Dark mode forgot the headline โ the
<h1>keeps its bright color on a dark page. Add a.dark h1rule to the CSS with a color that glows nicely on dark (trygoldor#7fd4ff). - The AI named the button
id="btn1". Vague names are how bugs hide! Rename it to something readable likemoon-btnโ in BOTH places (the button AND the script), or the thread snaps and the button dies.
๐ You are now a VIBE BOSS
Check every box honestly โ this is your boss-level scorecard:
- โ๏ธ 3 AI-built features shipped on your landing page: FAQ, dark mode, and your dream feature.
- โ๏ธ Every id and class explainable. Point at any name the AI invented and say what it does.
- โ๏ธ At least one bad take rejected (or one 80% take upgraded with a small-change demand).
- โ๏ธ One bug fixed by YOU first โ Console open, clue found, fix tried โ before asking the AI for help.
What's next? Your page lives on your computer... for now. Next adventures: publishing it to the REAL internet so friends can visit it from anywhere, and making it look great on phones. Your movie is ready for the big screen. ๐ฟ
๐ฎ Quiz time
No peeking at the notes above โ trying to remember is what makes it stick!