How to Vibe Code with Claude: A Beginner's Step-by-Step Guide
You do not need to know how to code to build something with Claude. You need to be able to describe what you want in plain words, read what comes back, and test it like a user would.
Claude is a chat assistant, made by Anthropic, that can write code for you. You open claude.ai, type a description of the app or website you want, and Claude writes the HTML, CSS and JavaScript for it. Then you look at the result and ask for changes in plain words until it works. That loop — describe, look, fix, improve — is vibe coding. New to the idea? Start with What Is Vibe Coding? and How to Vibe Code: Step-by-Step Guide for Beginners.
This post walks through that workflow: what to have ready, a full copyable first prompt, getting the code out and testing it, fixing errors, and improving the design — plus where Claude is the right tool, and its limits: it does not deploy or host your app, and code that looks right can still have bugs.
Table of contents
- What is Claude, and what does vibe coding with it mean
- What you need before you start
- Your first prompt
- Getting the code out and testing it
- Fixing errors with follow-up prompts
- Improving the design
- Claude vs dedicated builders
- Claude vs ChatGPT for vibe coding
- What Claude cannot do
- Mistakes to avoid
- Frequently asked questions
- What to read next
What is Claude, and what does vibe coding with it mean
Claude is an AI chat assistant. You describe what you want in plain words, it answers with code, and you keep talking until the result is right. For vibe coding, the conversation is about code: one page, one job, one audience at a time. You need no install, no coding and no account on a builder.
You describe an app in plain words, Claude writes the code, and you can preview front-end work in the chat.
Claude Code is a separate tool from the chat — a terminal tool for people comfortable with the command line — so beginners should start in the chat, not the terminal.
Vibe coding is building software by describing what you want instead of writing the code yourself. The term was coined by Andrej Karpathy. You still need judgement, though: you decide what the app should do, whether it does it, and whether it is safe to share. Claude writes the code; you stay in charge of the decisions.
That matters because Claude cannot see your screen and cannot test the app the way a real person would. When the result is wrong, the fix is usually a clearer description from you. Claude is also a chat tool, not a builder with hosting built in: Lovable, Bolt.new and Replit Agent cover the journey from prompt to published link, so you will use another tool or host to keep the code and publish it.
What you need before you start
Gather these four things before you open the chat.
An account and a browser. You need a Claude account on claude.ai and an up-to-date web browser. If Claude asks about pricing or a paid plan while you are signing up, check the pricing page — this guide does not state prices, because they change.
One clear idea, written down in a sentence. Before you type anything, write your idea in one sentence: what it is, who it is for, and what it does. For example: "A plant-watering reminder for me, so I remember which plants need water and when." That sentence becomes the spine of your first prompt. How to Write Vibe Coding Prompts That Work teaches the four-part formula behind a good prompt.
A place to keep the code. Claude gives you code in the chat, but the chat is not where your app lives. A plain text file on your computer, saved as an HTML file, is enough for the first build.
A testing habit. Click every button and fill in every form before you call the app done.
Your first prompt
Your first prompt should build something small and complete: one page, one job, one audience. A plant-watering reminder is a good first build because it is useful and small — one list, one date, one reminder. Write the idea in one sentence first, then paste the prompt and send it.
The prompt below is complete and copyable — change the plant names and colours to your own.
That is the 4-part formula in one line: what it is, who it is for, what it looks like, and what it must do — one prompt, one job.
Build a plant-watering reminder web app called "My Plants". It is for me, to remember which of my houseplants need water and when. It should have a form at the top where I type the plant name, choose the plant type, and enter how often it needs water in days, then an Add Plant button. Below that, a list of my plants, each showing its name, days until it needs water, and a Watered button that resets the countdown. Plants that need water today should stand out clearly. My plants should still be there when I close the page and come back. Clean design — white background, green buttons, dark text.
Why it works: it names the app, the user and the exact layout, and lists the actions in order — add a plant, see the list, press Watered. It also says the plants must still be there after the page is closed, the detail beginners most often forget.
Send the prompt and wait for the full answer. Read Claude's short explanation first, then look at the preview: add a plant, press Watered, and check that the countdown changes. If something looks wrong, fix the one wrong thing with a follow-up prompt.
The same shape works for a wedding RSVP page: name the couple, say who the page is for, and list the parts in order — a headline, a short welcome, and a form asking for a name, whether the guest is coming, and how many people are in their party. More copyable prompts are in Vibe Coding Prompts for Beginners and in Vibe Coding Prompts Examples: Copy and Paste Prompts That Work.
Getting the code out and testing it
The preview is not the finished app. To keep it, get the code out of the chat and into a file you control.
You can put it on GitHub and deploy it on Vercel or Netlify — the same hosts the dedicated builders use.
Step 1: Copy the code. In Claude's answer, find the code it returned and copy all of it — a missing line at the end is a common reason a saved app does not work.
Step 2: Save it as an HTML file. Open a plain text editor, paste the code, and save the file with a name ending in .html, for example my-plants.html. The .html ending tells your computer this is a web page.
Step 3: Open it in your browser. Now test it properly: add a plant, press Watered, close the tab, open the file again, and check that your plants are still there. Try it on your phone too.
Step 4: Keep a working copy before you change anything. Once the app works, save a copy with a different name, such as my-plants-working.html, so you always have a version that works to go back to.
If you would rather not manage files by hand, paste the code into a builder instead — Lovable, Bolt.new or Replit — and let that tool host and preview it. How to Use Lovable for Beginners, Bolt.new Tutorial for Beginners and How to Use Replit Agent for Beginners walk through those tools step by step. Whichever route you take, the app is not done until you have tested it outside the chat.
Fixing errors with follow-up prompts
Something will break. That is normal, not a sign you did anything wrong. The fix is a prompt too — and a good fix prompt has three things: what you clicked, what you expected, and what actually happened.
Start with the error message. If your browser shows one, copy it word for word into your follow-up prompt — it is the one line Claude can actually diagnose, so with it the fix usually takes one try. A good fix prompt looks like this:
When I click the Watered button, I expected the countdown to reset, but instead I see this error message: [paste the exact error message here]. Please fix only this problem and do not change anything else.
Why it works: it says what was clicked, what should have happened and what happened instead, and ends with "fix only this problem". Without that line, Claude may rewrite the whole app to fix one button and break two things that were working. One change per message, then test it. The full list of beginner mistakes is in Vibe Coding Mistakes Beginners Make.
If there is no error message, describe the difference between what you see and what you expected. For example: "When I click Add Plant, I expected the plant to appear in the list, but nothing happens at all. There is no error message. Please fix only this problem and do not change anything else."
If you are stuck in a loop — the same fix, three times, still broken — stop and change the words. Describe what you want as if you were explaining it to a friend. If the app is wrong in several ways at once, the first prompt was probably too big: get the page and the list working first, then add the form, then the countdown.
Improving the design
The app works. Now make it look like you meant it. Design prompts work best when they name exact changes — colours, sizes, spacing — instead of "make it look better". A good design prompt looks like this:
Please make this page look cleaner. Change the background to white, the main text to dark grey, and make the headline bigger and bolder. Add more space between the sections and make all the buttons the same size and colour. Do not change any of the features or the wording.
Why it works: every change is exact, and the last line protects the features. If you want a warmer feeling, translate it into concrete choices first — a cream background, dark brown text, orange buttons, rounded corners — and write those choices into the prompt.
Claude vs dedicated builders
Claude is a chat assistant that writes code. Lovable, Bolt.new and Replit Agent are builders: they take your prompt, build the app, preview it and give you a link to share, all in one place. The right choice depends on what you want to do next.
| Tool | What it is best at | What you do after the first build | Best for a beginner who wants to |
|---|---|---|---|
| Claude | Writing and explaining code in a chat, and fixing problems step by step | Copy the code into a file or a builder to keep and publish it | Learn how the code works, and build small front-end apps |
| Lovable | Turning a prompt into a working app with a shareable link, in one place | Keep building in the same tool, and share the link it gives you | Build and share an app quickly without managing files |
| Bolt.new | Turning a prompt into a working app in the browser, with editing built in | Keep building in the same tool, and share or export the result | Build in the browser and change things as you go |
| Replit Agent | Building an app inside a full coding workspace, with a preview and a link | Keep building in the same workspace, and share the link it gives you | Build something bigger, and grow into the workspace around it |
Read the table as a guide, not a ranking. If your goal is to understand what the code does, Claude's chat is a good place to learn, because you can ask it to explain each part in plain words. If your goal is to share a link with a friend today, a dedicated builder is easier, because publishing is built in. Many people use both. Comparisons: Vibe Coding Tools Comparison and Replit vs Lovable vs Bolt.
Claude vs ChatGPT for vibe coding
Beginners often ask whether to use Claude or ChatGPT for vibe coding. The chat workflow is similar in both: you describe the app in plain words, the assistant returns code, you test it and ask for changes. If you can vibe code with one, you can vibe code with the other.
Neither chat assistant deploys or hosts your app — both hand you code in the chat, and the file on your computer is yours to test, keep or publish elsewhere.
The practical difference is smaller than the debate suggests: the in-chat preview, and how each one explains its changes. Claude can show you a preview of front-end work in the chat, so you can see the page before you save the code. ChatGPT also returns code you can copy and test, and its explanations can feel different. Neither difference decides the result — the quality of your prompt, testing after each change, and fixing one thing at a time do.
What Claude cannot do
Claude cannot do three things beginners expect. It cannot preview your app live, host it, or give it a database by itself — the code lives in the chat until you save it to a file. It also cannot see your screen, so describe what you see instead of saying 'it doesn't work'.
These are the limits beginners meet first.
Claude does not deploy or host your app. To publish it, put the code on a host: paste it into Lovable, Bolt.new or Replit and use the link that tool gives you, or host the file on GitHub Pages or Netlify. Until you do that, your app exists only on your computer.
Claude does not give you a database by itself. A plant-watering reminder that saves plants in your own browser works fine, because the data stays on your device. But an app where different people sign in and see only their own data needs a real back end — a database, accounts, and rules about who can see what. Setting that up is a separate job, and it needs a safety check before anyone else's data goes into it. If your app handles other people's names, emails or messages, read Is Vibe Coding Safe? and Vibe Coding Security Risks Beginners Must Know before you publish.
Code can look right and still have bugs. The page usually looks finished, but a button can silently do nothing, a countdown can be wrong, or a list can forget everything on refresh. None of that is visible in the chat. The only way to catch it is to test: click every button, fill in every form, close the page and come back.
Claude Code is a separate tool. Claude Code is a terminal tool for people comfortable with the command line, and it works differently from the chat on claude.ai. This guide is about the chat.
Mistakes to avoid
Most Claude builds fail in the same few ways. Keep this list beside you while you build.
One mistake that is not on the list is skipping the safety check: before you share a Claude-built app, ask it to check for the OWASP Top 10 basics — broken access control, injection and secrets left in code.
Starting with too big an idea. A whole business in one prompt — website, shop, accounts, payments, dashboard — is too much for one conversation. Start with one page and one job, then add the next piece with a new prompt.
Asking for five changes in one message. Five changes means three done, one broken and one forgotten. One change per message, then test it.
Skipping the test outside the chat. The preview in the chat is not the finished app. Save the file, open it in your browser, click everything, and try it on your phone.
Sharing before a safety check. If your app collects names, emails or messages from other people, run a safety check before you publish: ask Claude to check the app for security problems in plain words, read the answer yourself, and fix every problem it lists. See Is Vibe Coding Safe? and Vibe Coding Security Risks Beginners Must Know. An app that works but leaks data is worse than an app that does not work at all.
Frequently asked questions
Do I need to know how to code to vibe code with Claude? No. You describe the app in plain words, Claude writes the code, and you test it. You do need to decide whether it does what you asked — that judgement is your job.
Is Claude free to use for vibe coding? There is a free way to start, and there are paid plans as well. This guide does not state prices, because they change — check the pricing page, and start with the free tier while you learn.
Can Claude publish my app for me? No. Claude writes the code in the chat, but it does not deploy or host your app. To publish, save the code as a file and put it on a host — Lovable, Bolt.new, Replit, GitHub Pages or Netlify — and follow that host's own steps.
What kind of apps can I build with Claude? Small front-end apps and pages work best: a reminder, a tracker, a simple tool, a landing page or a personal website, built with HTML, CSS and JavaScript. Apps that need accounts, a shared database or payments need more setup beyond the chat.
What should I do when Claude's code has an error? Copy the exact error message word for word into a follow-up prompt, say what you clicked and what you expected, and add "fix only this problem".
Is it safe to put real user data in a Claude-built app? Not without a safety check. Do not collect other people's names, emails or messages until you have checked the app for security problems, read the answer yourself, and fixed every problem it lists.
What to read next
- How to Vibe Code a Website: A Beginner's Step-by-Step Guide
- Vibe Coding Prompts for Beginners
- How to Write Vibe Coding Prompts That Work
- Vibe Coding Prompts Examples: Copy and Paste Prompts That Work
- How to Use Lovable for Beginners: Build Your First App Step by Step
- How to Use Replit Agent for Beginners
Written by Samiullah Channa, Vibe Coding Guide. Published 6 December 2026.




Comments
Post a Comment