Skip to content
learnthevibe

modul 1the first production project

the good PRD: what should the agent build?

The specification is the biggest leverage in agentic work: whatever is missing from the PRD, the agent makes up – and not the way you wanted.

12 min · v1.0 · verified: 2026-07-15

why is the PRD the first lesson?

The PRD (Product Requirements Document – the product specification: what we build, for whom, and what counts as done) is the step beginners skip most often – and the most common reason an agent build falls apart. The agent builds everything you ask for. The trouble starts with what you don't ask for: it builds that too, just according to its own defaults.

This site's PRD is public – throughout this lesson we work from it, with live examples.

the three mandatory layers of a PRD

An agent-friendly PRD is not a long document but three sharp boundary lines:

  1. What we build and why – one paragraph, with numbers. Not "a modern webshop", but "a one-page order form that sends the order by email, with 0 Ft of monthly infrastructure cost".
  2. What is explicitly EXCLUDED – this layer is missing from most specifications, yet with an agent it's worth the most. Whatever you don't rule out, the agent will build one day.
  3. The definition of done – verifiable statements: "the build runs without errors", "it doesn't break on mobile at 375px", "the form cannot be submitted with an empty field".

the decision log: the living part of the PRD

A specification isn't written once. Every mid-flight decision (D1, D2, …) is numbered and kept in the PRD – so the agent's next session doesn't reopen questions that are already settled. This pattern lives in this very site's PRD too: every D number is a closed debate.

what it looks like in production

This site was built with exactly this way of working. The replay below is a real session from building the lesson engine (2026-07-14): notice that the agent's first step is not writing code but reading the specification.

real session · 2026-07-14 · lesson-engine build6 steps
  • build the /tanulas lesson page per PRD section 8.6
  • it reads the specification first — the what and the whyread PRD.md
  • then the design rulebook — the how it should lookread DESIGN.md
  • it writes the lesson page according to the specwrite tanulas/[slug]/page.tsx
  • it runs the linter on its own workpnpm lint
  • type check: zero errors — the definition of done holdstsc --noEmit ✓

a real session from this build: ❯ is the typed request, → are the agent's steps, ✓ is the verification.

exercise

exercise — your first own PRD

Write the PRD of your own first production project with the three layers, in one page at most. In the next lesson we hand this PRD to the agent.

0/4 · log in so we can save your progress

changelog

  • 2026-07-15 · free preview lesson of module 1 (per the module-preview rule)
  • 2026-07-14 · first published