Vibe Coding Teaching Slides
60-Minute Lesson Grades 6–12 · Beginner
What Makes an App Good?
A Vibe Coding Investigation: Why doesn't our class game feel finished, and how do you tell an AI to fix it?
App Anatomy
Design Critique
Vibe Coding Prompts
STEP 1 · 8 MIN Hook & Comparison
What Is Vibe Coding?
The Definition
You describe what you want in plain English, the AI writes the code, and you test it and keep steering.
Play & Compare
- 1. Play our class catching game (2 min).
- 2. Check out Rainbow Rubble Rebound (1 min).
- 3. Ask: What does that game have that ours doesn't?
Key Takeaway: The AI was the same. The difference was the human directing it.
STEP 2 · 12 MIN App Anatomy
Every App Has Three Layers
Instagram, YouTube, and our catching game all share this same anatomy.
Frontend
The visual layer a user sees, reads, and taps on screen.
In our game: The player, falling objects, and score text.
Backend
The hidden brain and memory that applies rules and tracks data.
In our game: Tracking the score, timer, and checking for catches.
Full-Stack
Frontend and backend working together as one complete app.
In our game: The entire playable catching game built by AI.
STEP 2 · LANGUAGE OF APPS UI vs. UX
What You See vs. How It Feels
UI
User Interface
Everything on screen a user sees and interacts with.
Game examples: Buttons, score display, timer, and game area.
UX
User Experience
What it actually feels like to use the app from start to finish.
Ask yourself: Is it fun, confusing, smooth, or frustrating?
STEP 2 · VOCABULARY Name It to Fix It
Five Words Every Vibe Coder Needs
Component
A reusable piece of UI
Score badge, timer, start button
Layout
Where elements sit on the screen
Where score & timer are placed
Navigation
How users move around the app
How you start, restart, or quit
Feedback
What the app shows/plays when you act
Sound, flash, or pop on a catch
Visual Style
The look, mood, colors, and fonts
Colors, background, typography
STEP 3 · 12 MIN App Autopsy
Dissect the Class Game
Required Labels
1. Player
2. Game Area
3. Score
4. Timer
5. Background
6. Button (missing!)
Spot What's Missing
Use your new vocabulary to call out gaps on your screenshot:
"No feedback here!" · "Missing game-over navigation!" · "Default visual style!"
If you can't name it, the AI guesses—and guesses mean extra fix-it rounds.
STEP 4 · 5 MIN Design Critique
Rate the Game (1 to 3)
Does it WORK?
Does it do what it's supposed to? Did you spot any bugs (like catching off-screen)?
Is it CLEAR?
Would a stranger know how to start, play, and restart without asking?
Is it FUN?
Does it give satisfying feedback and make you want to play again?
Your lowest-scoring question is the best target for your Step 5 upgrade!
STEP 4 · 5 MIN The Originality Formula
Why Does It Feel Generic?
A vague prompt like "make a catching game" gets the average of everything the AI has seen.
01
Vision
The unique idea and twist that only you could imagine.
02
Specs
Your specific choices for colors, rules, and components.
03
Direction
How precisely you instruct the AI using real app vocabulary.
STEP 5 · 10 MIN Design Document
Design First, Prompt Second
Complete these four sections in order—function comes before style.
1. My Idea
What will I change, and why will it make the game better?
2. My Interactions
When ___ happens, the game ___, and the player sees ___.
3. My Style
Colors, fonts, and mood (only after interactions are clear!).
4. My Edge Cases
What could go wrong, break, or be forgotten?
STEP 5 · 5 MIN Prompt Builder
Assemble Your Vibe Coding Prompt
Update the catching game so that [My Idea]. When [event] happens, the game [response], and the player sees [result]. Use [My Style]. Make sure [My Edge Cases].
Example Prompt: "Update the catching game so that catching a Star feels rewarding. When the Player catches a Star, the Score goes up by 10, the Star pops with an animation, and a short sound plays. Use a neon night-sky theme with a bold score badge. Make sure Stars that fall off-screen can't be caught."
LIVE VIBE CODING DEMO · 3 MIN
Watch Your Prompt Come to Life
As we test a volunteer's prompt in Lovable, compare what the AI generates against their Design Document.
"The creativity came from you. The AI only gave you speed."
App Autopsy Worksheet
Step 2 & Step 3 · Student Handout
App Autopsy Worksheet
Name: _______________________
Date: ____________
PART 1 App Anatomy: The Three Layers
After playing the class catching game, identify what belongs in each layer.
1. Frontend
What you see and tap on screen.
Examples in our game:
2. Backend
Hidden brain & memory applying rules.
Examples in our game:
3. Full-Stack
Frontend + backend working together.
Why both matter here:
PART 2 UI & UX Vocabulary Hunt
For each term, write where you see it—or where it is missing—in the class catching game.
| Term |
Meaning |
In Our Game (or Missing!) |
| UI (User Interface) |
Everything on screen a user sees and interacts with. |
|
| UX (User Experience) |
What it feels like to use the app (fun, confusing, frustrating?). |
|
| Component |
A reusable piece of UI (e.g., score badge, timer, start button). |
|
| Layout |
Where elements sit on the screen. |
|
| Navigation |
How users move around (start, restart, quit). |
|
| Feedback |
What the app shows or plays when you act. |
|
| Visual Style |
The look and feel: colors, fonts, spacing, mood. |
|
PART 3 Component Dissection Notes
Pair with your labeled screenshot
Record what you noticed about each required component on your printed screenshot. Remember: If you can't name it, the AI guesses.
1. Player Layer: Frontend / Backend
2. Game Area Layer: Frontend / Backend
3. Score Layer: Frontend / Backend
4. Timer Layer: Frontend / Backend
5. Background Layer: Frontend / Backend
6. Button (or Missing Button) Layer: Frontend / Backend
PART 4 Design Critique Scorecard
1 = Broken/Missing · 2 = Okay · 3 = Great
Does it WORK? Does it do what it's supposed to? Any bugs?
1 2 3
Is it CLEAR? Would a stranger know how to start, play, and restart?
1 2 3
Is it FUN? Does it give feedback and make you want to play again?
1 2 3
My lowest-scoring category (my target for Step 5):
Design Document Prompt Builder
Step 5 · Plan Before You Prompt
Design Document
Name: _______________________
Date: ____________
Vision: Your unique idea
Specs: Colors, rules & components
Direction: Precise AI instructions
Complete these four sections in order. Defining what something does comes before deciding how it looks.
1. My Idea
Target Critique Area: Work / Clear / Fun
What one improvement will you make, and why will it make the game better?
2. My Interactions
Describe what happens when the player acts using the pattern below.
When (event):
the game (logic):
the player sees:
3. My Style
Describe your colors, fonts, and mood (only after your interactions are clear).
4. My Edge Cases
What could go wrong, break, or be forgotten by the AI?
Step 5 · Assemble Your Direction
Vibe Coding Prompt Builder
Prompt Frame
Update the catching game so that [1. My Idea]. When [event] happens, the game [response], and the player sees [result]. Use [3. My Style]. Make sure [4. My Edge Cases].
Example Prompt
"Update the catching game so that catching a Star feels rewarding. When the Player catches a Star, the Score goes up by 10, the Star pops with an animation, and a short sound plays. Use a neon night-sky theme with a bold score badge. Make sure Stars that fall off-screen can't be caught."
My Final Vibe Coding Prompt
Combine your four Design Document sections into one clear, ready-to-paste prompt below.
Pre-Flight Check Before You Paste
Named specific app components
Used When / Game / Sees order
Included an edge case
Vibe Coding Teacher Guide
Educator Playbook · What Makes an App Good?
Vibe Coding Teacher Guide
60 Min (+30 Min Extensions)
Grades 6–12 · Beginner · COPPA Compliant
Learning Targets
- Explain what vibe coding is and why the person directing the AI shapes the result. [Abstraction]
- Name the three layers of an app (frontend, backend, full-stack) and point to each in the class game. [Pattern Recognition]
- Use UI/UX vocabulary to describe specific parts of the game. [Abstraction]
- Evaluate the game with three questions: Does it work? Is it clear? Is it fun? [Abstraction]
- Write a Design Document for one improvement and turn it into a precise vibe coding prompt. [Algorithmic Thinking]
Teacher Prep: Class Game Spec
Host one deliberately unfinished catching game on Lovable, share one link, and print 1 screenshot per student:
- ☐ Works: player moves left/right & catches objects
- ☐ No instructions or title screen
- ☐ No visible feedback on a catch
- ☐ Plain score text in corner, no score badge
- ☐ Timer, but no game-over or restart button
- ☐ Default colors/fonts with no clear theme
- ☐ One small bug (e.g., off-screen catches)
Core Teacher Tips
- Human + AI: Creativity comes from the student; AI provides speed and scale.
- Productive struggle: Let students try naming parts before giving vocabulary.
- Precision habit: When a student says "that blue thingy," ask: "What is the name of that component?"
- No product to grade: Assess thinking, planning, and language today.
- Two design rules: Every action needs visible feedback, and a stranger should know how to start, restart, and quit without asking.
Lesson Flow & Pacing (60 Minutes)
| Step |
Focus |
Time |
Key Teacher Move |
| 1 |
Hook: What is vibe coding? |
8 min |
Play class game (2m); compare with Rainbow Rubble Rebound (1m); log 3–4 differences. |
| 2 |
Learn the language of apps |
12 min |
Teach Frontend, Backend, Full-Stack + 7 UI/UX terms using the class game for every example. |
| 3 |
App Autopsy |
12 min |
Model 1 label; students label printed screenshot + worksheet; debrief & rename Step 1 answers. |
| 4 |
Rate it + Originality Formula |
10 min |
Score 1–3 on Work/Clear/Fun (5m); teach why vague = generic & Vision + Specs + Direction (5m). |
| 5 |
Design Doc to Prompt |
18 min |
Design Doc in order (10m); build prompt (5m); run 1 live Lovable demo on projector (3m). |
Facilitation Notes: App Anatomy & Design Critique
Step 2–3: Grounding Vocabulary
Keep backend conceptual: ask "What must the game keep track of that you can't see?" (score, timer, catch detection). During the Step 3 debrief, translate vague Step 1 notes ("it has more stuff") into precise terms ("it has feedback and a game-over screen").
Step 4–5: Steering to the Prompt
Have students target their lowest Work/Clear/Fun score in Step 5. Enforce the Design Document order (Idea → Interactions → Style → Edge Cases). If short on time, use only My Idea + My Interactions and save the live Lovable demo for next class.
Teacher Background: Why AI Output Looks Generic
- Vague prompts produce average output: LLMs predict likely tokens from training data. "Make a catching game" yields the most common version. Originality comes from specific constraints.
- Precise names help the model: Through self-attention, terms like score badge or collision map to targeted code patterns, reducing wrong guesses and fix-it rounds.
- Event → Logic → State → Output: The When / the game / the player sees frame mirrors how game code is actually structured, yielding more reliable first-try results.
Standards Alignment
AI Literacy: Evaluate an AI-generated app with clear criteria; plan before prompting; use precise vocabulary; analyze AI output vs. human creativity.
ISTE: Innovative Designer 1.4b, 1.4d | Computational Thinker 1.5c, 1.5d CSTA: 2-AP-10, 3A-AP-13
Optional Extensions (Up to 30 Min)
Unplugged System Flow Role-Play (10 min): Assign Player, Collision Detector, Game Logic, Score, Timer, Screen. Act out a catch in order (Event → Logic → State → Output), then write it as one precise sentence.
The Iteration Cycle (5 min): Map Design → Prompt → Generate → Test → Debug → Iterate. Discuss what happens if you skip Design or Test (Instagram & YouTube started simple).
Three More Design Doc Sections (10 min): Add My Screen, My Navigation, and My UI Components.
More Vocabulary (5 min): Test Responsiveness (phone vs. laptop) & Consistency on the class game.
Mechanics, Dynamics, Aesthetics (5 min): What rules exist? What happens? How does it feel?