Skip to content
AI Agent & Markdown Files

Write a PRD in Markdown Before You Vibe Code

For when your AI coding agent keeps filling gaps with guesses, adds features you never asked for, or rewrites working code to fix one bug. Answer nine plain questions about what you're building. It writes a one-page PRD.md with a What NOT to build list, edge cases and checkable acceptance criteria, then splits it into small task cards and a first message so Cursor, Claude Code or Lovable builds one story at a time.

Illustration for the AI prompt: Write a PRD in Markdown Before You Vibe Code
Chat promptAI Agent & Markdown FilesClaudeChatGPTGemini
The Prompt
You are a product manager who writes PRDs for people who build with AI coding agents (Cursor, Claude Code, Lovable, Bolt, Codex). I want a short PRD in Markdown that I save as PRD.md in my project and point the agent at every session, before I start vibe coding. I am not a developer, or not much of one. Here is what keeps going wrong without it: every gap in my prompt becomes a decision the agent makes for me without saying so, it fills gaps with guesses and never admits it is unsure, decisions I made in an old chat vanish when the context resets, it "fixes" one bug by rewriting working code I needed, and it adds features I never asked for. I want the PRD to work as a constraint system, not a pitch deck.

HARD RULES:
1. ONE PAGE. Keep PRD.md under about 80 lines. A short PRD the agent re-reads beats a long one it skims. If my input would push it longer, cut the nice-to-haves and list them under CUT.
2. NON-GOALS ARE REQUIRED. Include a "What NOT to build" list. Anything the agent might helpfully add (logins, payments, admin panels, dark mode, analytics, extra pages) that I did not ask for goes here by name.
3. CHECKABLE ACCEPTANCE CRITERIA. Every criterion is something I can test by clicking or by running a command, written as "given / when / then" or as a plain yes/no check. No "works well", "looks clean" or "is fast".
4. EDGE CASES GET THEIR OWN SECTION. Empty states, bad input, no internet, a user doing something twice, the limits of my data. This is where agents guess most, so spell them out.
5. PROTECT WHAT WORKS. Include a "Do not touch" list of files, features or behaviours that already work, and a rule that the agent must ask before changing anything on it.
6. NEVER INVENT. Use only what I tell you. If something is missing, do not fill it with a typical default. Put it under Open questions with the assumption you would make, marked [ASSUMED: ...], so I can accept or change it.
7. WHAT, NOT HOW. Describe behaviour and constraints, not step-by-step implementation. Implementation steps go stale the moment the code changes. Stack and hard constraints are fine; file-by-file plans are not.
8. PLAIN WORDS. Write so a non-developer can check it and an agent cannot misread it. One idea per bullet.

BEFORE WRITING, ask me these in one short batch and STOP:
1. What are you building, in one or two sentences, and who is it for?
2. What problem does it solve for them, and what does "it works" look like from their side?
3. The core features for this version, in priority order. Which single one matters most?
4. What should it definitely NOT do or include in this version?
5. The main screens or steps a user goes through.
6. What data it stores or shows (for example users, tasks, bookings), and any service it connects to (payments, email, maps, an AI API).
7. Tool and stack: which builder or agent you use, and any stack you already have or must use. "No idea" is a fine answer.
8. Is there already working code? If so, which parts work and must not be broken?
9. Anything you have already decided (design feel, naming, pricing, limits) that the agent keeps forgetting.

Then reply using exactly these sections:
PRD.MD: the complete file in one markdown code block, using these headings: # [Project name], ## Problem and user, ## Scope (in this version), ## What NOT to build, ## Core flows, ## Data, ## Constraints (stack, services, Do not touch), ## Edge cases, ## Acceptance criteria, ## Decisions, ## Open questions. Leave out a section only if there is genuinely nothing for it.
TASK CARDS: the scope split into 3 to 8 small cards, one story each, in build order. Each card is a title, one or two lines on what it does, and which acceptance criteria it must pass. I will give the agent one card at a time.
FIRST MESSAGE: a short message I paste into a fresh chat to start card 1. It tells the agent to read PRD.md, investigate, propose a plan and wait for my approval before writing code, to stop and ask instead of guessing on anything not covered, and that "done" means the card's acceptance criteria pass (plus typecheck and lint if the project has them).
RULES SNIPPET: a condensed 5 to 10 line version (non-goals, Do not touch, stop-and-ask rule, done means) I can paste into AGENTS.md, CLAUDE.md or my Cursor rules so it loads every session.
ASSUMED: every [ASSUMED] item, one per line, so I can confirm or change them.
CUT: anything from my answers you left out, one line each, with the reason.
KEEP IT CURRENT: 3 short triggers for when to update PRD.md, and a reminder to log any decision made in chat into ## Decisions before closing that chat.

Plain text outside the code block, no intro, no pep talk.

Here are my details (answer what you can now, or leave blank and answer the questions):
What I'm building and for whom: [FILL IN]
Tool or agent I use: [FILL IN]
Existing code that works: [FILL IN OR "starting from scratch"]

Start with the questions.
Open directly inChatGPTClaudeGemini

How to use this chat prompt

Paste it directly into a new chat, replace anything in [BRACKETS] with your context, and send. Re-use it whenever the task comes up, or save it as a text-expander snippet.

Example output

Non-developer building a habit tracker in Cursor (Next.js, Supabase), streaks already working, all nine questions answered.

Plain ChatGPT answer

# Habit Tracker PRD. Overview: an app to help users build habits.

Features: user accounts, habit tracking, streaks, reminders, analytics dashboard, social sharing.

Tech: Next.js and Supabase. Follow best practices and keep the code clean.

With this prompt

PRD.MD: ## What NOT to build: social sharing, reminders, analytics, dark mode. ## Constraints: Do not touch lib/streaks.ts, ask first.

## Edge cases: two check-ins on one day count once; a missed day resets the streak to 0.

## Acceptance criteria: given 3 daily check-ins, when I open the home screen, then the streak shows 3.

TASK CARDS: 1. Add a habit. 2. Daily check-in. 3. Streak display. 4. Delete a habit.

FIRST MESSAGE: "Read PRD.md. Investigate card 1, propose a plan, wait for my approval before writing code."

ASSUMED: one user per account, no shared habits.

FAQ

Frequently asked questions

What should a PRD for AI coding include?

Less than a classic product PRD, and more about limits. The sections that matter most for an agent are scope, a What NOT to build list, edge cases, constraints such as your stack and files it must not touch, checkable acceptance criteria and open questions. Edge cases and non-goals do the heavy lifting, because those are the gaps an agent otherwise fills with confident guesses. This prompt writes all of them and leaves out implementation steps, which go stale as soon as the code changes.

How long should a PRD for vibe coding be?

About one page. A short PRD the agent re-reads every session tends to beat a long one it skims, and a five-page document is a common way for key rules to get lost. The prompt caps PRD.md at roughly 80 lines and lists anything it cut, so you can decide whether a nice-to-have belongs in a later version.

How do I give the PRD to Cursor, Claude Code or Lovable?

Save it as PRD.md in your project (the root or a docs folder) and reference it at the start of each chat, for example "Read PRD.md, then work on card 2". Work one task card at a time in a fresh chat rather than one endless conversation. For the rules that should load every session, paste the condensed RULES SNIPPET into your AGENTS.md, which you can build with the AGENTS.md generator, or into CLAUDE.md or your Cursor rules.

Why write the PRD in Markdown instead of a doc or a long prompt?

Markdown lives in the repo next to the code, so the agent can open it any time instead of relying on a chat that resets. Headings and bullets are easy for both you and the model to scan, and the file can be versioned and edited when a decision changes. Before you commit it, paste it into a Markdown previewer to check the headings and lists render the way you expect.

Do I need a PRD for every change?

No. For a small, easy-to-undo change such as a copy edit or a colour tweak, a clear one-line request is enough. A PRD earns its keep when you're starting an app or a feature with several screens, data or edge cases. It also reduces regressions rather than eliminating them, so still review the diff and test the acceptance criteria before you call a card done.

Keep going

What's next