Chapter 04 ยท The Conversation

Prompting for Vibe Coders

Your AI can write almost anything โ€” if you ask it right. Here's how to talk so the code listens.

Vibe coding lives or dies on the prompt. The model isn't magic โ€” it's a very fast, very literal reader that does exactly what you describe, and nothing more. The gap between "make an app" and "make a responsive to-do app in React with local storage, a dark-mode toggle, and a confetti animation on task completion" is the gap between a hobby and a working product.

This is the single highest-leverage skill in vibe coding. Get good at prompting and everything else gets easier. Let's break down what actually moves the needle.

01 Why Prompting Is the Whole Game

When you "vibe code," you're not writing code โ€” you're writing instructions for something that writes code. That makes your prompt the blueprint. A vague blueprint gives you a vague building. A sharp blueprint gives you something you can actually ship.

The good news: the principles are simple and learnable. You don't need to be clever or poetic. You need to be specific, structured, and consistent.

The model isn't guessing what you meant. It's reading what you wrote. If the output is wrong, the prompt was first.

02 Anatomy of a Good Prompt

The prompts that get the best results tend to share five ingredients:

๐ŸŽฏ Goal

What are you building? State the end result in one clear sentence.

๐Ÿงฑ Stack

Name the language, framework, and libraries. No ambiguity.

๐Ÿ“‹ Details

The features, the edge cases, the look and feel. Spell them out.

๐Ÿ“ Constraints

What not to do. File names, structure, compatibility limits.

โœ… Before โ†’ After

Weak: make a todo app

Strong: Build a single-page to-do app in React. Use functional components and hooks. Persist tasks to localStorage. Include a dark-mode toggle, the ability to edit and delete tasks, and a confetti animation when a task is marked complete. Make it mobile-responsive.

03 Context Is King

Your prompt doesn't arrive in a vacuum โ€” the AI also reads your existing files, previous messages, and any rules you've set. That whole picture is the context, and the AI can only use what's in it. Give it rich, relevant context and it'll nail the details. Starve it and it'll guess โ€” badly.

Three ways to load the context in your favor:

โš ๏ธ Context rot

In a long session, the context fills with old, stale instructions that quietly drag down quality. When a project shifts focus or you're starting a new feature, open a fresh session and feed it a clean summary. Don't let yesterday's confusion haunt today's code.

04 Iterate Like a Pro

Nobody gets it right on the first prompt. Pro vibe coders treat the conversation as a loop: prompt โ†’ check the output โ†’ refine. The trick is knowing how to correct course without confusing the model.

  1. Be specific about what's wrong. "The button looks off" is unhelpful. "The button should be full-width on mobile and use the accent color" is a fix.
  2. Quote the exact code. Point to the function or line โ€” don't make the AI search.
  3. Ask for the diff. "Show me only the lines you changed" keeps edits reviewable.
  4. Explain the why. "Users will paste long URLs, so truncate at 40 chars" prevents the bug from coming back.
Treat the AI like a brilliant but literal-minded junior dev. The clearer your feedback, the faster it levels up.

05 Prompts That Backfire

๐Ÿšซ "Just make it work"

Hands the model total freedom โ€” which sounds great until you get 400 lines of spaghetti with three competing patterns. Define the shape you want first.

๐Ÿšซ The kitchen-sink prompt

One giant message asking for the whole app, the tests, the docs, and a deployment script. It overwhelms the context and produces shallow work everywhere. Break it into steps.

โš ๏ธ Changing your mind silently

If you switch direction mid-build, say so explicitly. "Actually, drop the auth for now and focus on the dashboard" prevents the AI from quietly re-adding what you removed.

06 A Prompt You Can Steal

Use this skeleton as a starting point and fill in the blanks:

"Build [feature] using [framework + language]. It should [core behavior]. Here are the specifics: [details / edge cases]. Constraints: [don't use X, follow Y pattern, keep it under Z]. Start by reading [relevant files], then show me the changes as a diff."

Want prompting with training wheels?

SaaSClaw keeps full project context so you never have to re-explain your stack every message.

Meet SaaSClaw โ†’