Vibe Coding Grew Up: Write the Spec First

AI builds what you said. Not what you meant.
You type "build me a booking app", and Claude Code, Cursor or Lovable builds one, fast. Then you notice the decisions you never made. Who can cancel, and until when? What happens when two people want the last spot? What does the owner see? The AI made every one of those calls for you, silently, and each one looked reasonable on its own.
That gap now has a slogan. In early November, "vibe coding is over" was trending on X, mostly in posts about GitHub's Spec Kit, a free toolkit whose whole idea fits in four words: write the spec first. Some of those posts passed 3,000 bookmarks.
The headline is louder than the change. Nobody is taking the AI tools away. What changes is the order: you write down what you want before the AI writes any code, instead of finding out what you wanted after it has built the wrong thing.
If you build with AI and didn't start as a developer, that's good news. Writing a spec needs no code. It needs what founders and designers already do well: knowing who the product is for, and what it shouldn't do.
By the end of this piece you'll have a one-page spec you can copy, a filled-in example, and the prompts that hand it to any AI tool.
What vibe coding was
Andrej Karpathy, one of OpenAI's founders, named it in a post on 2 February 2025. You describe what you want, accept whatever the AI writes without reading it, paste any error message back in, and repeat until it works. He was clear about the limits: "not too bad for throwaway weekend projects". By November, Collins Dictionary had made "vibe coding" its word of the year.
A year after the first post, Karpathy looked back (4 February 2026). In 2025, he wrote, the models were only good enough for fun projects, demos and experiments. Now professionals build with AI agents (AI tools that work through a task on their own, step by step), but with much more checking along the way. His favourite name for that is "agentic engineering".
You don't need the new name. You need the habit underneath it.
Why it breaks once people use your app
A weekend toy has one user: you. A real app has people who sign up, pay, cancel, forget passwords and use it on phones in ways you never pictured. That's where vibe coding runs out, for three reasons.
The AI fills every gap with a guess. "Add bookings" sounds like one feature. It hides a dozen decisions. Can people cancel, and until when? What happens when two people book the last spot? Which timezone? What does the owner see? If you don't decide, the AI does, silently, and each guess looks reasonable on its own.
Your decisions live in a chat that ends. The choices you did make are scattered across hundreds of messages. Start a new chat, switch tools, or let the conversation run long enough that the tool summarises the oldest parts to make room, and those decisions fade. The next change quietly contradicts the last one.
Nobody defined "done". Without a written list of what the app must do, "it works" means "it worked when I clicked through it once". The bugs live in the paths you didn't click.
None of this means the AI is bad at code. When Karpathy described how much agents had improved later that month, he added that they work best on tasks that are "well-specified and where you can verify/test functionality". A spec gives the AI both: what to build, and how you'll check it.
What actually changes
| Vibe coding | Spec first | |
|---|---|---|
| Who makes the product decisions | The AI, one guess at a time | You, once, in writing |
| Where those decisions live | In a chat that ends | In a file that stays with the project |
| What a new chat or tool knows | Nothing | Everything in the spec |
| How you know it's done | It worked when you clicked through once | Every check on the "done" list passes |
| When you change your mind | Ask, and hope nothing else breaks | Edit the spec, then ask for the change |
| Good for | Weekend toys, demos, testing an idea | Anything a stranger will sign up for |
What a spec is, and what it isn't
A spec, short for specification, is a written description of what the app does, for whom, and how you'll know it works. You write it before the code, and it stays in the project as the thing every change gets checked against.
It isn't a 40-page requirements document. For a first version, one page is enough. The point isn't paperwork. It's making those dozen hidden decisions yourself, once, in writing, so the AI stops making them for you.
The developer tools are catching up to this. GitHub's Spec Kit, open-sourced in September 2025, runs a fixed sequence. You set the project's ground rules and describe what you're building and why. Then the AI writes a technical plan, breaks it into small tasks and builds them one at a time. It works with Copilot, Claude Code, Cursor, Gemini CLI, Codex and dozens of other agents. Amazon's Kiro editor does something similar: every feature gets three files, for requirements, design and tasks.
Both are built for developers and run inside a terminal or a code editor. You don't need either one to get most of the benefit. You need the step they both start with: a clear description of what you're building, written by the person who knows the product.
The one-page spec
Copy this into a file called SPEC.md (or a doc, if your tool is chat-only) and fill it in. Short answers are fine. "Not decided yet" is fine too, as long as you write it down, because it tells the AI to ask instead of guess.
# Spec: your app's name
## 1. What it does
One sentence: who it's for and the problem it solves.
## 2. Who uses it
Each type of user, and what they can and can't do.
- Visitor (not signed in):
- Member:
- Admin:
## 3. Screens
Every screen, one line each: what's on it and what you can do there.
## 4. Data
What the app stores, and who can see or change each thing.
## 5. Rules
The decisions behind each feature: limits, deadlines, what happens
when two things clash, what happens when something fails.
## 6. What "done" means
Checks anyone could run by clicking through the app.
- [ ]
## 7. Not in this version
Features you're leaving out on purpose, so the AI doesn't add them.Here's what sections 5 to 7 could look like for a small class-booking app for a yoga studio:
## 5. Rules
- A class holds 12 people. The 13th person joins a waitlist.
- Members can cancel up to 6 hours before class. After that,
the class still counts against their pack.
- When someone cancels, the first person on the waitlist gets
the spot and an email.
- All times show in the studio's timezone.
## 6. What "done" means
- [ ] Two members book the last spot at the same moment:
one gets it, the other joins the waitlist.
- [ ] A member can't see anyone else's bookings.
- [ ] Cancelling 5 hours before class shows a clear message
and doesn't give the class back.
## 7. Not in this version
- Online payments (the studio sells packs at the front desk)
- A mobile app
- Instructor accountsEvery line under Rules is a decision the AI would otherwise have made on its own. The "done" list is what you check after each build. And the "not in this version" list is the one people skip. It's also the one that stops an eager AI from adding a payment flow nobody asked for.
How to hand it to your AI tool
The spec works with any tool: Claude Code, Cursor, Lovable, Bolt, Replit. The steps are the same.
1. Ask for questions before code. Give it the spec and have it find the gaps first:
Read SPEC.md. Don't write any code yet. List every question you'd
need answered to build this without guessing: missing rules, unclear
permissions, edge cases. Number them.Answer the questions in the spec, not in the chat. That's the whole trick: the spec is the memory, the chat is temporary.
2. Ask for a plan, then read it.
Using SPEC.md, write a build plan: the order you'll build things in,
broken into small steps I can check one at a time. Flag anything in
the plan that isn't in the spec.You don't need to follow the technical parts. Check two things: is there anything in the plan that isn't in your spec, and is anything in your spec missing from the plan?
3. Build one step at a time, and check it against "done". After each step, click through the app and tick the checks that apply. If one fails, paste that check back into the chat. "Two members booked the last spot and both got it" is a far better bug report than "bookings are broken".
4. Change the spec before you change the app. When you change your mind (you will), edit SPEC.md first, then ask: "I've updated section 5 of SPEC.md. Update the app to match." Now the next chat, the next tool and the next person who helps you all know what you decided.
In chat-based builders, paste the spec as your first message, or into the project's instructions if the tool has a place for them. Paste it again whenever you start a fresh chat.
If you use Claude Code, keep the spec next to a CLAUDE.md file, which it reads at the start of every session. Point that file at SPEC.md so every session starts from your decisions. My CLAUDE.md guide covers what else belongs in it.
Where the spec stops
The spec says what the app does. It doesn't say how the app looks, or whether it's safe to launch. Those need pages of their own:
- How it looks: a
DESIGN.mdfile gives the AI a design brief, so your screens don't come out looking like every other AI-built app. - Whether it's safe: a short pre-launch security check before you share the link. Your "done" list checks that the app does what you meant. Security checks catch what nobody meant.
Call it whatever you like
Agentic engineering, spec-driven development, or just thinking before you prompt. You still type in plain English, the AI still writes the code, and you can still build something real in a weekend. You just spend the first hour of that weekend on one page.
Vibe coding asked the AI to guess what you wanted. A spec tells it.


