Iterowanie nad promptem
Ulepszaj, zamiast zaczynać od nowa — kieruj AI krok po kroku
Iterowanie nad promptem to bezpłatna lekcja Vibe Coding na CoddyKit. To lekcja 4 z 4. Możesz przeczytać całą lekcję poniżej za darmo — a potem ćwiczyć ją interaktywnie w przeglądarce z wbudowanym edytorem kodu i tutorem AI dostępnym 24/7. To część ścieżki edukacyjnej Vibe Coding, a Twój postęp synchronizuje się między webem a aplikacją CoddyKit. Kurs Vibe Coding zawiera 4 lekcji w sumie.
Części tej lekcji nie zostały jeszcze przetłumaczone i są wyświetlane po angielsku.
The First Answer Is a Draft
Beginners often delete everything and start over when the AI's first try isn't perfect. Pros do the opposite: they iterate. They treat the first output as a draft and steer it with follow-up messages.
This is the rhythm of real vibe coding — refine, don't restart. This lesson teaches you how to nudge the AI toward exactly what you want, step by step.
The Iteration Loop
Every build follows a simple loop:
- Prompt — ask for something
- Run — preview the result in Bolt, v0, or your editor
- React — note what's right and what's off
- Refine — give a focused follow-up
You repeat this loop a few times per feature. Each pass gets you closer.
Refine, Don't Restart
The AI remembers the conversation. So you don't re-describe the whole app — you just say what to change. This keeps everything you already liked.
Restarting (wasteful):
"Build the whole todo app again but with bigger buttons."
Refining (smart):
"Make the Add button bigger and move it to the right of
the input."Change One Thing at a Time
When you ask for five changes at once, it's hard to tell which fix helped and which broke something. Iterate in small steps so you can see the effect of each one.
Step 1: "Change the theme color to purple (#7c3aed)."
(check it looks right)
Step 2: "Now add a subtle hover effect to the buttons."
(check again)
Step 3: "Now make it work on mobile widths."Point to What's Wrong
Good iteration feedback names the specific thing that's off and what you want instead. 'It's bad' gives the AI nothing to work with.
Weak feedback: "That's not right, try again."
Strong feedback: "The list items are cramped. Add more vertical
space between them and a thin divider line."Keep What Works
When part of the output is great, say so and protect it. Telling the AI what to keep stops it from rewriting code you already liked during the next change.
"The layout and colors are perfect — keep those exactly.
Only change this: when the list is empty, show the text
'No tasks yet. Add one above!' centered in gray."Iterating on Logic, Step by Step
Iteration works for behavior too. Start with a basic version, then layer on rules. Here's a greeting function after one refinement step — try running it.
// Step 1 result: a simple greeting
// Step 2 refinement: "also handle an empty name"
function greet(name) {
if (!name) return 'Hello there!';
return 'Hello, ' + name + '!';
}
console.log(greet('Sam'));
console.log(greet(''));When to Restart Instead
Iteration is the default — but sometimes a fresh start is faster. Restart when:
- The code has become a tangled mess after many edits
- You realize the approach is fundamentally wrong
- The AI is stuck in a loop, re-breaking the same thing
In that case, write a clean new prompt that includes everything you learned.
Roll Back Bad Steps
Sometimes a refinement makes things worse. Don't try to patch a patch — go back. Most tools let you undo: Cursor and Claude Code track edits, and Git lets you revert to a known-good version.
A clean rollback plus a sharper prompt beats five rounds of damage control.
"That last change broke the layout. Undo it and go back
to how the page looked before. Then instead, just
increase the font size of the headings to 24px."Give Feedback in the AI's Language
Speed up iteration by reacting to concrete things: the live preview, an error message, or a screenshot. Many builders like v0 and Lovable let you click an element and say 'change this'.
The more precisely you point, the fewer rounds you need.
Fast iteration cues:
- "See the red error in the console? Fix that."
- "The button I just clicked — make it full-width."
- "Match the spacing to the screenshot I shared."A Real Iteration Session
Here's how a few turns of refinement feel in practice. Each message is short because the AI remembers the rest.
You: "Build a tip calculator: bill input, tip % buttons, total."
AI: (produces it)
You: "Add a 'split between N people' field."
You: "Round each person's share to 2 decimals."
You: "Keep all that — just make the total bold and bigger."Quick Check
The AI's first version of your app is 90% right — the layout is great but one button is the wrong color. What's the best next move?
Recap: Steer, Don't Restart
Great vibe coding is a conversation, not a single command:
- Treat the first answer as a draft
- Run the prompt → run → react → refine loop
- Change one thing at a time, point to what's wrong
- Keep what works; roll back bad steps
- Restart only when the approach is truly wrong
You've now mastered the core of prompting: structure, specificity, context and iteration. You're ready to build your first real app by talking to AI!
Często zadawane pytania
Czy lekcja „Iterowanie nad promptem” jest bezpłatna?
Tak — pełny tekst „Iterowanie nad promptem” jest dostępny za darmo tutaj w sieci. Aby ćwiczyć ją interaktywnie (wbudowany edytor kodu i tutor AI dostępny 24/7) i odblokować resztę kursu Vibe Coding, przejdź na CoddyKit PRO. Kurs Vibe Coding zawiera 4 lekcji w sumie.
Co nauczysz się w „Iterowanie nad promptem”?
Ulepszaj, zamiast zaczynać od nowa — kieruj AI krok po kroku Ćwiczysz Vibe Coding z praktycznym kodem, który uruchamiasz bezpośrednio w przeglądarce, a tutor AI dostępny 24/7 odpowiada na Twoje pytania podczas pracy nad lekcją.
Czy potrzebuję doświadczenia, aby zacząć Vibe Coding?
Nie wymagamy żadnego doświadczenia. Vibe Coding w CoddyKit jest strukturyzowany dla początkujących i zaawansowanych użytkowników, więc możesz zacząć tutaj lub od początku i uczyć się w swoim tempie. To lekcja 4 z 4.
Ile czasu zajmuje lekcja „Iterowanie nad promptem”?
Większość lekcji CoddyKit trwa około 5–10 minut. Każda lekcja to mały, interaktywny krok, dzięki czemu robisz systematyczne postępy i zawsze wracasz dokładnie do tego samego miejsca — na webie i w aplikacji.
Czy mogę pisać i uruchamiać kod w tej lekcji Vibe Coding?
Tak. Każda lekcja Vibe Coding zawiera wbudowany edytor kodu, więc piszesz i uruchamiasz prawdziwy kod bezpośrednio w przeglądarce i od razu otrzymujesz sprzężenie zwrotne od AI — bez konfiguracji na komputerze.
Wszystkie lekcje w tym kursie
- Anatomia dobrego promptu do tworzenia
- Precyzja
- Przekazywanie AI kontekstu
- Iterowanie nad promptem