Dashboard

Prompt AI to Turn a Feature Request Into a Spec

A prompt that sorts every line into stated, inferred, or unknown, so you get open questions instead of invented acceptance criteria. Worked through two real request types.

Steve Jefferson
Steve Jefferson
Developer Advocate
28 October 20261 min read

Ask a model to turn "customers want to be able to export their data" into a spec and you get back something impressively complete: CSV and JSON formats, an email-when-ready flow, a 30 day link expiry, rate limits. Every one of those is an invention. Nobody asked for any of it, and so how you prompt for the spec matters more here than which model writes it.

The problem is not that the model is making things up. It is that a spec is supposed to look complete, so completeness is what it optimises for. Hand that draft to an engineer and they will build the guesses, then discover in review which ones were wrong. The fix is to make incompleteness the required output format.

How to prompt for the separation

The useful instruction is structural. Make the model sort every line it writes into one of three bins: stated, inferred, or unknown.

You are turning a raw feature request into a specification draft.

The request is below, between ---. Use ONLY what it contains.

Produce four sections:

1. STATED. Facts explicitly present in the request. Quote the words.
2. INFERRED. Things you assumed to make the feature coherent. Mark each
   with the assumption in brackets. Do not present these as decided.
3. OPEN QUESTIONS. Anything you need answered before this can be built.
   Phrase each as a question with a named decision owner.
4. ACCEPTANCE CRITERIA. Only for behaviour covered by STATED. Write
   them as Given / When / Then. If a criterion depends on anything in
   INFERRED or OPEN QUESTIONS, leave it out and say which question
   blocks it.

Rules:
- Never move an assumption into STATED.
- Prefer an open question over a plausible default.
- If the request supports fewer than three acceptance criteria, say so.

---
{paste the request here}
---

Two things in there do the work. Quoting the words in STATED makes it expensive for the model to smuggle an assumption upward, because a quote either exists or it does not. And requiring blocked criteria to name the question that blocks them converts a vague "needs clarification" into a list someone can actually clear.

What it produces on the export example

Run the same one-line request through that prompt and the shape changes completely.

STATED gets exactly two entries: customers want to export, and the subject is "their data". That is all the request contains.

INFERRED fills with the things the first attempt presented as decisions. Which data: profile only, or everything the account touches. Who triggers it: the customer in the UI, or support on their behalf. Format. Delivery. Whether this is a compliance request dressed as a feature, which changes the deadline and the required scope.

OPEN QUESTIONS is where the value sits, because this list is short, specific, and answerable in a ten minute conversation. "Does export need to include records shared with the account by other users? Owner: product." You cannot build the feature without that answer, and the original spec silently assumed one.

ACCEPTANCE CRITERIA comes back nearly empty, with a note that criteria are blocked on the scope question. That is the correct output. An empty criteria list is information: it tells you this request is not ready, which is a thing you wanted to know before sprint planning rather than during it.

Make the criteria testable

Once the questions are answered, the second pass is worth a separate prompt, because writing good criteria and deciding scope are different jobs.

Given / When / Then is worth using properly rather than as decoration. The Gherkin reference is the canonical description of the format, and the discipline that matters is one behaviour per scenario with a concrete state in the Given. "Given a user with 400 orders" is testable. "Given a user with data" is not, and a model will happily write the second unless you ask for specific values.

A short follow-up instruction that reliably improves output:

For each acceptance criterion, replace every vague quantity with a
concrete value, and add one criterion describing the failure case.
If you do not know a realistic value, make it an open question.

The failure case request is the high-value half. Models write the happy path by default. Asking explicitly for what happens when the export is too large, or the user requests a second one while the first is running, surfaces the design decisions that otherwise arrive as bugs.

The second request type: "we need better reporting"

The export example is easy because it names a feature. The harder input is a request that names a feeling. "We need better reporting" has no object at all, and the same prompt handles it differently in a way worth seeing.

STATED comes back with almost nothing: someone considers current reporting inadequate. That is genuinely the entire content of the request.

INFERRED balloons, because the model has to assume a reader, a decision, and a time period to produce anything at all. Who looks at the report, what they do differently depending on what it says, whether this is about missing numbers or unreadable layout, daily or monthly.

OPEN QUESTIONS becomes the deliverable. The single most valuable question the prompt tends to surface is a version of: what decision is this report supposed to support? That question reframes the request from a formatting job to a product question, and it is usually the one nobody asked the stakeholder.

When the STATED section is this thin, the right response is not to write a spec. It is to take the questions back to the requester, which is why the prompt earns its place even when it produces almost no specification.

Handling a thread rather than a line

Real requests arrive as conversations, with three people adding caveats and one changing their mind halfway down. Paste the whole thread and add:

The input is a conversation, not a single request. Before the four
sections, list each participant and what each one asked for, and flag
any point where two requests conflict or one supersedes another.
Do not resolve a conflict yourself. Name it.

The conflict flagging is the part people miss. A thread where the founder asks for one behaviour and the support lead asks for the opposite is extremely common, and a model given no instruction will quietly pick one, usually the one mentioned last. Surfacing it instead turns a hidden decision into a visible one.

Check the spec against itself

A cheap final pass that catches a surprising amount, run as a fresh request with the draft spec pasted in:

Here is a specification draft and the original request. Find every
statement in the spec that is not supported by the request. For each,
say whether it should become an open question or be deleted.

Asking a model to audit its own earlier output in a new context works better than asking it to be careful in the first pass, because it is now scoring rather than producing, and the two behave differently. Expect it to find two or three assumptions that slipped into STATED.

When not to use this

If the request already arrives with scope decided, this prompt is overhead and the model will dutifully produce an INFERRED section full of nothing. It earns its keep on the one-line request from a stakeholder who has not thought past the outcome, which is most of them.

It also does not replace talking to the person who asked. The output is a better set of questions, not an answer. Treat the open questions list as your agenda for a five minute conversation, and the spec writes itself afterwards.

For the longer-form document that often follows, see prompting AI to write a design doc. If your input is a pile of feedback rather than a single request, turning customer reviews into a feature roadmap is the better starting prompt. Once scope is settled, getting a timeline estimate out of a model is the natural next step, and the general techniques behind all of this sit in our prompt engineering guide.

Frequently asked questions

Why does AI invent acceptance criteria?

Because a specification is a format that looks wrong when it is sparse, and the model is matching the format. Unless you make incompleteness an allowed output, it will fill gaps with plausible defaults.

How do I stop the model presenting assumptions as decisions?

Require quoted evidence for anything in the stated section. A quote is verifiable, so the model cannot promote an inference without visibly breaking the rule.

Should I include the whole conversation or just the request?

Include everything the requester actually said, including the thread. The point is to separate their words from the model's inferences, which only works if their words are all present.

Can the same prompt handle bug reports?

Not well. Bug reports need reproduction steps and environment details rather than scope decisions, so the sections you want are different.

How did this land?

About the author

Steve Jefferson
Steve Jefferson

Developer Advocate

Steve builds something with Swarmz every week and writes up what worked, what broke, and what he'd do differently. Tutorials and hands-on guides are his lane.

Share

Get the next post in your inbox

One email a month. Product updates, engineering posts, and the best of Built with Swarmz.

I agree to receive emails about AI building tips and Swarmz product news. Unsubscribe any time.