Docs Write PRDs

Write a PRD

Start a PRD from a paste or a file, pick the writer agent and the repositories it reads.

You start a PRD with whatever you have: a finished brief, rough notes or a one-line idea. An agent turns it into a PRD in a fixed shape, names it, and reviews its own draft. You never fill in a template or a title; you change the result afterwards by chatting with the agent.

In the portal PRDs › New PRD Member Admin

Before you start

  • You are a member or an admin. A viewer who opens New PRD sees starting, retrying or cancelling a PRD needs a member or an admin instead of the form.
  • The writer agent has a model that answers and can call tools. If it does not, the page says so above the form (see Troubleshooting). See Choose a model.
  • For a draft grounded in your code, the writer agent has the repositories the work touches. See Repositories.

Start a PRD

  1. Open PRDs in the sidebar and choose New PRD, or go to /prds/new.
  2. In Your PRD, notes or idea, paste your text. Or, under or attach a .md or .txt file, choose a Markdown or plain-text file. Use one or the other, not both. Either can be up to 64 KiB.
  3. Optional: open the line that reads reads N repositories and untick any repositories this PRD does not change. They are all ticked at first. Untick them all if it is not decided yet.
  4. Optional: next to Create PRD, pick another agent under written by. The list appears only when more than one agent can write PRDs.
  5. Choose Create PRD.

You land on the new PRD's page, for example PRD-12, with the chip Drafting. The head says what the agent is doing, for example prd-writer is drafting PRD-12 — it reads payments-api, its memory and its tools, then reviews its own draft. The page refreshes by itself and shows version 1 when it lands. You can leave the page; the draft carries on.

Tip

You can write in the PRD's chat while it drafts. Your message waits and the agent answers it once version 1 is saved. See Chat while it drafts.

Who writes it

Almost any agent can write a PRD. The written by list offers every agent except the portal's background-job agents and the security reviewer. It picks one for you, in this order:

  1. The agent that wrote your organisation's latest PRD, if it can still write PRDs.
  2. The organisation's PRD writer, shown as (default) under PRD writer.
  3. Otherwise another agent that can write one.

A new organisation's PRD writer is the agent prd-writer. It comes with two PRD skills, for writing a PRD and for reviewing one. Another agent writes with its own know-how, and uses built-in PRD guidance when it has none of its own.

For admins

To change the PRD writer, open the agent's Settings tab, find Used in and choose Make it the PRD writer. The section then says Default PRD writer — New PRD picks it when no PRD has been written yet; after that, the latest PRD's agent. Choose Stop being the PRD writer to undo it. See Agent settings.

Choose the repositories

The repositories fold lists the chosen agent's repositories. The ticks record which repositories this PRD changes, and they are what a developer's coding agent clones when it builds the PRD. Without JavaScript the fold shows a list for each agent (payments's repositories); tick only under the agent you chose, or the form is refused.

  • Tick the repositories the work changes.
  • Untick them all when it is not decided. The agent then reads all of its own repositories to write the draft, and the PRD shows them as the ones its draft read, not chosen.
  • You can change them later on the PRD's page, while it is drafting or ready. See Change the repositories.

What the agent does

When you choose Create PRD, the draft joins your organisation's queue for model work. Then the agent:

  1. Reads the repositories you ticked, or all of its own when you ticked none, at the head of each default branch. It reads at most 5; any others are listed as not read (over the limit).
  2. Reads its own know-how and its memory, and may call its Runs freely tools. Asks first tools are not offered to a draft.
  3. Writes version 1 in the fixed shape (below) and gives the PRD a title.
  4. Checks its answer against the shape. If anything is missing it is told what and tries once more.
  5. Reads its own draft again with no tools and leaves up to 8 review notes in the margin.

While it works, the PRD's page and the list show where it is:

You seeWhat it means
Queued — 2 ahead · about 3 min · waiting 0:40Other model work is ahead of it in your organisation.
Next in lineIt starts as soon as a slot frees.
Reading its memory and toolsThe agent is gathering what it knows.
Writing v1The agent is writing.
Checking its draft (attempt 1 of 3)It is checking its draft against the fixed shape. The attempt number goes up after a failed try.
Reviewing its own draftIt is writing its review notes.
Waiting for a runnerYour organisation runs its work on runners and none is free.

When version 1 is saved, the PRD becomes Ready. Its first entry in History reads, for example, Drafted by prd-writer from Priya's document, or names your file.

The shape of a PRD

Every PRD has the same sections in the same order. The page groups them under four headings.

On the pageSectionWhat it holds
OverviewSummaryThe PRD in one to three sentences.
ProblemWhat is wrong today, and for whom.
How we'll knowHow you will tell it worked.
ScopeThree parts: In scope, Out of scope, Must not change.
Open questionsQuestions for the product person, numbered OQ-001, each with an optional recommendation.
ExperienceExperienceUser journeys (US-001, each with a story, "As a …"), the requirements under each (REQ-001) and the acceptance criteria under each requirement (AC-001).
ApproachApproachAt least two options (Option A: …), exactly one marked chosen, and Why this option.
ArchitectureArchitectureToday (optional), With this change and What changes where. Flows are drawn as diagrams.

A few rules hold for every version:

  • Ids are never reused. Every journey, requirement, criterion and question has an id: its kind plus three digits. An id that is removed stays retired, so AC-004 always means the same criterion. Reviews and coding agents rely on these ids.
  • Gaps are said out loud. When your notes do not say something, the section reads "Not stated: …" and the agent adds an open question, instead of guessing.
  • Diagrams have limits. A flow can have up to 20 boxes and 40 arrows, with box names up to 40 characters. Boxes can be marked new, changed or removed. A bigger flow is shown as text lines instead.
  • Size. The whole document can be up to 128 KiB.

The lean shape

A lean PRD leaves out Approach and Architecture. It has one journey, at most 3 requirements and 3 acceptance criteria, and at most one open question. You do not start a lean PRD from New PRD. It is made when you add a requirement to a review that has no PRD. See Add a requirement to a review.

When the draft stops

Each failure is one attempt. After a failed attempt the page says The first draft hit a problem and Trying again (attempt 2 of 3). The third failure stops the draft. It also stops at once when there is no agent to write it, the agent has no model, or the first request is too large for the model.

A stopped PRD shows Draft stopped and a panel, The first draft stopped, with the reason.

  1. Fix the cause if you can, for example the model on Settings › Models.
  2. Start the draft again in one of two ways:
    • Choose Try again to draft again as before.
    • Or tell the agent what to do differently in the PRD's chat. Its box now reads Tell prd-writer what to do differently. Sending the message starts the draft again at once, with your message as a note. A note can be up to 4,096 characters.

A note stays with the PRD: a later Try again keeps it, and a newer note replaces it. Any member or admin can start a stopped draft again.

How it works

  • The PRD is numbered in your organisation: PRD-1, PRD-2 and so on. The number never changes; the title is the agent's and can change in chat. Titles are cut at 200 characters.
  • Your pasted text or file is kept as given. The PRD's History shows it under What prd-writer was given. A file must be UTF-8 text; line endings are tidied.
  • A draft gets at most 30 rounds of tool calls and 15 minutes of its own work, its self-review included. Time spent waiting in the queue does not count.
  • The agent's memory log records the draft, so the agent remembers it later. See Memory.
  • If the writer agent is deleted, the organisation's default agent takes over the PRD, and the page says so.
  • Each draft has a trace. See See how an answer was made.

What you can and can't do

You can
  • Start from a paste or a .md or .txt file of up to 64 KiB.
  • Pick any agent that is not a background-job agent or the security reviewer.
  • Tick which of that agent's repositories the PRD changes, or none.
  • Message the agent while it drafts.
  • Start a stopped draft again, with or without a note.
You can't
  • Paste text and attach a file at the same time.
  • Attach Word or PDF files.
  • Give the PRD a title. The agent names it.
  • Pick repositories that belong to a different agent.
  • Start a lean PRD from New PRD.

Troubleshooting

You seeWhat to do
Paste your idea or attach a file — not both.Clear the box or remove the file, then create it again.
Paste your document or upload a file.Both were empty. Add your text or a file.
Upload a Markdown or text file (.md or .txt) up to 64 KiB, or the document is over 64 KiBUse a .md or .txt file, or shorten the text.
Choose notes.md again — a browser does not keep a chosen file.The form came back with an error. Pick the file again before you resubmit.
You ticked repositories under another agent. Untick them, or choose that agent.Only the chosen agent's repositories count. Fix the ticks or the agent.
a chosen repository is not one of the agent's — choose its repositories againThe agent's repositories changed while you had the page open. Tick them again.
that agent no longer exists — choose anotherThe agent was deleted. Pick another.
… does one of the portal's background jobs and does not write PRDs — choose another agentBackground-job agents cannot write PRDs. Pick another.
Model … is not answering or Model … cannot call tools, with Fix itThe writer's model will fail the draft. Choose Fix it to open Settings › Models, or pick another agent.