AI AdventureAICreate with AIDay 4
🧑‍🍳 Create with AI · Day 4

Prompt = Recipe

A prompt isn't a magic spell you whisper and hope. It's a recipe — subject + style + mood + details. Vague recipe = generic mush. Specific recipe = you're the boss of the output. This is a real skill people get paid for. Let's cook.

↓ start cooking
🧩 Lab · The Recipe Builder

Build a prompt like a recipe

Tap one chip in each row. Watch the prompt sentence build itself at the bottom — and the poster change look the second you change the style or mood. Then compare it to the lazy version. Same machine, wildly different control.

🎨 SUBJECT — what is it?
🖌️ STYLE — how is it drawn?
🌈 MOOD — how does it feel?
🔍 DETAIL — one extra rule
😐 “make art” (vague)
🎯 your recipe (specific)

The left machine got a lazy prompt, so it guessed. The right one got your spec, so it did what you meant. More detail = more control. That's the whole game.

🐞 Break-It · Garbage In, Mush Out

Make the generator confused

A prompt can be too empty or too contradictory. Tap each button and watch the poster fall apart. Guess what'll happen before you tap!

tap a button ↑
The lesson: an empty prompt gives the machine no target, so it returns generic filler. A contradictory prompt ("happy AND sad, tiny AND giant") pulls it in every direction at once — it smears every style together into brown mush. Good prompts pick a lane.
🏷️ The pro wordsWriting prompts on purpose is called prompt engineering — a real, paid skill. The hidden instructions that set the AI's job ("You are a creative writing helper") are the system prompt (you met these in Module 3). Giving a couple of examples first is few-shot prompting. And telling it what not to do ("no rhyming, keep it short") are constraints / negative instructions. Subject + style + details + constraints + audience = a controllable output.
🎯 Boss · Fix the Prompt

Rescue the lazy prompts

Here's a weak prompt a beginner wrote. Rewrite it into a real recipe: name a clear subject, pick a style, and add a detail. The meter checks your work. Fix 3 to win the badge!

Beginner wrote:
📏 enough detail 🖌️ has a style 🔍 has a detail
Fixed: 0 / 3
🚀 Beyond the Basics

Prompt patterns the pros reuse

Working prompt engineers don't start from scratch every time — they reuse patterns. Here are three you can steal today:

🎭

Give it a role

"You are a patient science teacher…" A role sets vocabulary, tone, and what to focus on before you even ask the question.

📚

Show examples (few-shot)

Paste 2–3 examples of input → output. The model copies the pattern, not just the words. Way more reliable than explaining.

🚧

Add constraints

"In under 20 words. No emojis. Avoid the word 'very'." Telling it the limits is often more powerful than telling it the goal.

🏷️ Pro names to look upThese are prompt patterns: role prompting, few-shot examples, chain-of-thought ("think step by step"), and constraints. Whole jobs exist just for writing and testing these.
🔬 Real Model Lab

Feed your recipe to a REAL writer

This is a real language model (SmolLM2) running 100% on your own machine — no server. It'll write a tiny 2-sentence story two ways: from a lazy prompt ("write something") and from your recipe above. Watch the quality gap for yourself.

not loaded

First load downloads the model from Hugging Face, then it's cached for offline use. On a 4GB laptop give it a minute. ☕

🎉 Day 4 Complete!

You learned the skill pros get paid for: a prompt is a recipe, not a spell. Subject + style + mood + detail + constraints = you steering the machine, instead of hoping. Vague in, mush out. Specific in, magic out.

Day 5: Story Surgery →
Tomorrow: one model that can chop, simplify, and reshape ANY text — summarize, translate, make it fancy. Text goes in, new text comes out. 🔪
AI Adventure · Create with AI · Day 4 — made for young inventors 🚀