Vibe coding prompts: how to prompt AI app builders well

Short answer
- A good app-builder prompt says who the app is for, the one thing version 1 must do, the screens, what the data is, how it should look, what must not change and how you’ll know it’s done.
- Lovable, Bolt, Replit and Base44 all tell you the same thing in their own docs: build one piece at a time, then check it before the next prompt.
- All 4 have a planning mode that talks through a change without editing code. Lovable charges 1 credit per Plan mode message, plus any research it runs.
- Persistent instructions save you repeating yourself: Lovable allows up to 10,000 characters of project instructions, and Bolt has account, project and team knowledge.
- For bugs, give the exact error, where it happens and what you expected. After 2 failed fixes, stop and ask for the root cause, or roll back.
Most bad AI-built apps start with a bad first prompt. “Build me a booking app” gets you a pretty demo with fake data, a login you never asked for and a design you’ll spend 40 prompts undoing.
The fix is boring and it works. Write the prompt the way you’d brief a sharp contractor who’s never met you: who it’s for, what it does first, what it must leave alone, and what “done” looks like.
This piece is part of our guide to what vibe coding is and how it works. Here I go deeper on prompting itself, using what the Lovable, Bolt, Replit, Base44 and Claude Code docs say (checked 6 December 2026), with examples you can copy and a worksheet that turns your idea into a first prompt.
How do you write a good prompt for an AI app builder?
You write it as a short brief with 6 parts: who it’s for, the one job version 1 does, the screens, the data, the look, and the rules for what must not change.
A prompt (the message you type into the builder’s chat box) is the only thing the AI knows about your idea. Every gap gets filled with a guess, and the guesses are generic.
Here’s the structure I’d use for any first prompt:
- Who and why. One sentence on the user and the problem. Base44’s own prompt guide calls this the who, what and why of your app.
- The first slice. The single action version 1 must handle from start to finish. Book a slot. Log an expense. Check a stock level.
- Screens. A numbered list of pages in the order a user meets them.
- Data. The things the app stores and the fields on each. “Bookings: customer name, phone, service, date, time, status.”
- Look and feel. 2 or 3 specific words and a colour. “Calm, minimal, white background, one teal accent” beats “modern”.
- Rules and done-when. What not to build yet, what must stay untouched, and the test you’ll run to call it finished.
Bolt’s prompting guide tells you to be explicit about what should and shouldn’t change. Lovable’s prompting guide says the same: say what to build, where it goes and what to leave alone.
Replit’s prompting page adds a twist: phrase the request as the result you want. “Load the bookings list in under a second for 500 rows” gives the AI something to aim at. “Don’t make it slow” doesn’t.
What should your first prompt include? A worked example
Your first prompt should define the whole of version 1 in one go, but keep version 1 tiny: one user type, one core action, real sample content.
Here’s a vague prompt and a better one for the same idea.
Vague: Build an app for my dog grooming business where customers can book appointments.
Better: Build a mobile-friendly web app for Paws & Suds, a one-person dog grooming business. Customers are dog owners who rebook every 6 to 8 weeks. Version 1 does one thing: a customer picks a service, picks a free slot and books it.
Screens: 1. Services list (Full groom, Bath and tidy, Nail trim, each with its price). 2. Calendar of free 1-hour slots, Tuesday to Saturday, 9am to 4pm. 3. Booking form (owner name, phone, dog name, breed). 4. Confirmation screen.
Data: Bookings with service, date, time, owner name, phone, dog name, breed, status.
Look: calm and minimal, white background, one teal accent, large tap targets for phone use.
Not yet: no payments, no customer accounts, no admin dashboard. Use sample data for now.
Done when: I can book a slot on my phone and that slot disappears from the calendar.
Before you build, ask me any questions you need to understand this fully.
Every line in the better version cuts out a guess. The “Not yet” line stops the AI bolting on logins and Stripe. The “Done when” line gives you a test to run before your next prompt.
That last line comes from Lovable’s prompting guide, which suggests ending a prompt by asking it to question you first, so misunderstandings surface before any code is written. Lovable also recommends real content over placeholder text, because real words show layout problems early.
If you’re starting from nothing and the idea is still fuzzy, do the planning before the prompt. Our guide to planning an app walks through choosing that first slice.
Prompt brief worksheet
Turn your app idea into a first prompt
Fill in each part of the brief from this guide. The preview builds your first prompt as you type, scores it, and tells you the biggest gaps. Copy it into Lovable, Bolt, Replit, Base44 or any other AI app builder.
What do Lovable, Bolt, Replit and Base44 say about prompting?
They agree on almost everything: plan first, build in small steps, keep persistent instructions, and be able to roll back.
| Tool | Planning without code changes | Persistent instructions | Headline prompting advice | Undo |
|---|---|---|---|---|
| Lovable | Plan mode. “Never modifies your code.” 1 credit per message plus any research it runs. Chat mode, for talking options through, typically costs a fraction of a credit. | Project, workspace and personal instructions, up to 10,000 characters each | Prompt by component, one change per prompt, verify in the preview | Version history with bookmarks. Reverting restores code. Database data stays as it is. |
| Bolt | Plan Mode. Can read your database but can’t change it. | Knowledge at account, project and team level | Start with the architecture, add features one at a time with small, specific prompts | Not covered on the prompting page. For stuck requests it says split them up and confirm each change works. |
| Replit | Ask Agent to plan in plain language, or use /plan | Not covered on the prompting page | Plan first, be specific, use positive language, show examples | Automatic checkpoints. Rollback leaves the development database alone unless you select Database. |
| Base44 | Plan mode (a fraction of a credit per message) and Discuss mode (agree a plan without spending credits on changes) | Not covered on the prompt guide | Who, what, why. Build one piece at a time. Don’t assume it remembers other chats. | Not covered on the prompt guide |
| Claude Code | Ask it to interview you and write a spec first | CLAUDE.md file in the project | Name the file, describe the symptom, say what “fixed” looks like | /rewind rolls the code, the conversation or both back to an earlier prompt |
Sources, all checked 6 December 2026: Lovable Plan mode, Lovable project instructions, Lovable best practices, Bolt Plan Mode, Bolt prompting, Replit prompting, Replit checkpoints, Base44 prompt guide, Claude Code best practices.
The line to tattoo somewhere: rolling back code doesn’t roll back your data, on Lovable or (by default) Replit. So a prompt that changes your database deserves more care than one that moves a button.
Bolt can also rewrite your prompt for you: type it, open the plus menu in the chat box, answer its questions, and it hands back a longer prompt you can edit before sending. I’d read every line of it, because anything you didn’t answer is still a guess.
Still choosing a tool? Our roundup of the best AI app builders compares them, and the AI app builders directory lists current prices.
Should you use one big prompt or lots of small ones?
Use one clear first prompt to set up version 1, then small prompts that each change one thing.
Base44’s guide puts it plainly: packing a whole app into one prompt makes the result harder to get right and harder to fix. Lovable’s best-practice page says one change per prompt, check it in the preview, then move on. Bolt warns against overwhelming the model with too many instructions at once.
Small prompts also make bugs cheaper. Change 1 thing and you know what broke it. Change 5 and you’re guessing, along with the AI.
A good follow-up prompt is short and names the exact spot:
On the confirmation screen, add a button that saves the booking to the phone’s calendar. Keep everything else on that screen the same.
Both Lovable and Bolt let you click an element in the preview and attach it to your prompt (Lovable calls it the preview toolbar, Bolt calls it Select). That’s faster and more precise than describing “the second card from the left”.
For a whole feature, ask for stages: “Build the admin bookings list in 3 stages and wait for me to confirm each one.” Lovable’s best-practice page recommends exactly that.
How do you give the AI context it can’t see?
Put anything that’s true for the whole project into the tool’s persistent instructions, and paste screenshots, error text and sample data straight into the prompt.
In a long conversation, tools like Bolt summarise earlier messages to keep going, and details fall out. Bolt’s guide says that if it forgets earlier details, restate them or clear the context. Base44 lists “assuming the AI remembers other chats” as a common mistake.
Persistent instructions fix most of that. Lovable’s project instructions (it used to call them Knowledge) are always included in context and take up to 10,000 characters. Lovable suggests putting in what the app does, who uses it, the key database tables, design rules and any security or compliance needs. Bolt’s knowledge works the same way at account, project and team level.
A short set of project instructions for the grooming app might read:
Paws & Suds is a booking web app for a one-person dog groomer. Users: dog owners (book), the groomer (manages bookings). Tables: services, slots, bookings. Design: calm, minimal, white with teal accent, big tap targets. Always show dates as day, month, year. Never show another customer’s name or phone number to a customer.
On a coding agent like Claude Code or Cursor, the same job is done by a file in the project. Anthropic’s Claude Code best practices say that when a session goes wrong, it’s almost always because the AI was missing information it couldn’t get from the code, or had no way to check its own work. So tell it the command that proves the change works, and ask for the evidence.
Show beats tell, too. Replit recommends sample data or screenshots, and Base44 suggests importing a Figma design. A screenshot with “match this layout, use my colours” saves a dozen rounds of description.
How do you prompt an AI to fix a bug?
Describe what’s broken, where, what you expected and what happened, and paste the exact error message.
Lovable’s debugging guide sets out a 4-step order: press Try to fix once or twice, then describe the bug clearly, then switch to Plan mode to find the root cause, then revert if the fixes have tangled things up. It also notes you get 10 free fixes, each available again 24 hours after use.
Here’s the difference in practice:
Weak: Nothing works, fix it!
Better: On the Book page, when I tap a slot on Saturday, the confirmation screen loads but the slot still shows as free in the calendar. I expected it to disappear. Bookings on Tuesday to Friday work. Here’s the console error: [paste]. Don’t change the booking form or the design. What’s the root cause?
Replit’s guide lists the same ingredients: the exact error, the file names, your goal and what you’ve already tried.
The bit that saves the most money is knowing when to stop. Lovable says repeated blind fixes pile up code that hides the real problem, and to move to Plan mode after 1 or 2 failed attempts. Anthropic’s advice for Claude Code is almost word for word: after 2 failed corrections, clear the conversation and write one better prompt that folds in what you learned.
3 prompts that help when you’re stuck:
- “What is the root cause of this error? Don’t change any code yet.”
- “What fixes have we already tried for this, and why didn’t they work?”
- “Is the problem in the bookings list connected to the change we made to the calendar?”
If you’re deep in a loop on Lovable specifically, our guide to fixing Lovable when it isn’t working covers the common failure modes one by one.
When should you use plan mode instead of build mode?
Use plan mode before any change that touches several screens, your data structure, logins or payments, and any time a fix has failed twice.
Plan modes talk the change through without editing anything. Lovable’s Plan mode investigates your project, often asks clarifying questions, then drafts a plan you can edit. It switches to Build mode only when you approve. Bolt’s Plan Mode can read your data and structure but can’t create, edit or delete anything, and Bolt says planning first saves tokens by avoiding rework.
Planning isn’t free on every tool. Lovable charges 1 credit per Plan mode message, plus more for deeper research, and its Chat mode typically costs a fraction of a credit. Base44 says its Plan mode costs a fraction of a credit per message. But compare that with a build prompt that rewrites 6 files in the wrong direction and then needs 4 more prompts to undo. If you’re watching your spend, our breakdown of Lovable pricing and credits shows where credits go.
A planning prompt I’d use before adding customer accounts:
I want to add customer accounts so people can see and cancel their own bookings. Before changing anything, explain how you’d do it: which tables change, which screens change, what happens to the bookings already in the database, and what could break. List anything you need me to decide.
If the plan changes a table holding real customer data, bookmark or checkpoint first.
What prompts should you use for security before launch?
Ask the builder to review your app’s security, ask specific questions about who can see what, and treat the answer as a first check, never a sign-off.
Lovable runs automatic checks before you publish, including database rules (row-level security, meaning rules that decide which rows of a table each signed-in user can read or change). Its security page says you can type “Review my app’s security” in the chat for a conversational review, which uses credits like any build request. The same page says plainly that its checks can’t guarantee your app is secure and that you’re still responsible.
Specific questions get better answers than “is it secure?”:
- “Can a signed-in customer read or change another customer’s bookings? Show me the rule that stops it.”
- “List every place this app stores or shows a phone number or email, and who can see each one.”
- “Are any API keys or secrets in the code that runs in the browser?”
If you didn’t ask for it, assume it isn’t there. A prompt builds what it’s told to build, and “only the owner can see this” is rarely in a first prompt. Our guide to whether vibe coding is safe covers the risks in more depth.
For apps that handle sensitive data or critical tasks, Lovable itself suggests a review by a security professional. Health details and payments are the obvious cases, and that’s where a second pair of human eyes earns its fee.
Is vibe coding the same as prompt engineering?
No. Prompt engineering is the craft of wording instructions to any AI model, and vibe coding is building software mainly by prompting and testing the result instead of reading the code.
Everything in this piece is prompt engineering applied to one job. The difference shows up after the prompt: a vibe coder judges the result by using it, while careful engineers test against cases written down in advance.
Borrow that habit. Write your “done when” line before each prompt, then test against it.
For the bigger picture (where the term came from, which tools do what, and when vibe coding is the wrong choice), head back to our full guide to vibe coding. And if you’ve hit the point where prompting can’t get you further, here’s how to tell when to bring in a developer.
FAQ
What is the best first prompt for Lovable or Bolt?
There’s no single best prompt. A strong first prompt names the user, the one action version 1 handles, the screens, the data, the look, what not to build yet and how you’ll test it. Ending with “ask me any questions first” catches misunderstandings before any code is written.
How long should a vibe coding prompt be?
A first prompt can run to 150 to 250 words because it sets up the whole first version. Follow-up prompts should be a sentence or two and change one thing at a time, which is what Lovable, Bolt, Replit and Base44 all recommend.
Does plan mode cost credits?
On Lovable, yes: each Plan mode message costs 1 credit plus the cost of any research it runs, while Chat mode typically costs a fraction of a credit. Base44 says its Plan mode costs a fraction of a credit per message, and Bolt says its Plan Mode saves tokens by avoiding rework.
Why does the AI keep forgetting what I told it?
Long chats get summarised and detail drops out, and new chats start fresh. Put anything that’s always true into the tool’s persistent instructions (Lovable allows up to 10,000 characters) and restate key details when you pick a project back up.
What should I do when the AI can’t fix a bug?
After 1 or 2 failed attempts, stop asking for fixes. Ask for the root cause without code changes, check what’s already been tried, and roll back to your last working version if the fixes have piled up.
Can I ask the AI to check my app’s security?
Yes. On Lovable you can type “Review my app’s security” to run its checks, but Lovable says those checks can’t guarantee your app is secure. Ask specific questions about who can see which data, and get a professional review for sensitive data.
Last Updated on December 6, 2026 by Ian Naylor