A prompt is the instruction or question you give to an AI model to get a response. In vibe coding, prompts are how you tell AI what to build — from a simple 'add a dark mode toggle' to a detailed specification of an entire feature. The quality of your prompt directly determines the quality of the code you get back.
Prompts are the fundamental unit of vibe coding. Instead of writing code character by character, you describe what you want in plain language — and AI translates that into working code.
| Weak Prompt | Strong Prompt |
|---|---|
| "Make a button" | "Create a primary button component with hover and loading states using Tailwind CSS" |
| "Fix the bug" | "The form submits even when email is empty — add client-side validation" |
| "Add authentication" | "Add email/password login using NextAuth.js with a PostgreSQL adapter" |