Skip to content

Creating Testable User Stories from PRD and UI Artifacts

Interactive Diagram

새 탭 ↗

A PRD alone isn’t enough, and a screen alone isn’t either

Section titled “A PRD alone isn’t enough, and a screen alone isn’t either”

The architecture decision and explicit requirements from the previous article aren’t yet a “unit of implementation.” Before an AI coding assistant or a developer can actually start working, the requirement has to be broken down into a user story with acceptance criteria.

A common mistake in this transformation is feeding in only the PRD text, or only a link to a UI artifact (Figma, etc.), and asking for stories to be generated. Either source alone always leaves gaps.

SourceWhat it tells youWhat it doesn’t tell you
PRD (text)Business intent, priority, exception-handling rulesThe exact layout, field order, visual representation of state transitions
UI artifact (Figma, etc.)Screen structure, field list, interactions (hover/disable, etc.)Why a field is needed, business rules, exception cases not shown on screen

In short, the PRD tells you “why,” and the UI artifact tells you “what it looks like.” A story is only complete when both are combined. With only one source, an AI fills the gap by guessing, and that guess only surfaces once testing begins.

This article continues with the Event Registration domain from the previous article. Using the common capabilities confirmed in the architecture decision (user/permission, form validation, file management, state management, operator lookup), it walks through turning a single “registration and submission” screen into a story.

When requesting story generation, both of the following must be supplied at the same time.

[Input 1: PRD excerpt]
## Registration and submission
- A registration form is provided; team names must be unique (real-time duplicate check).
- Team member info (name, phone, email) is collected.
- Attachments are optional, and once uploaded must also be deletable.
- Registration is not possible outside the submission window.
[Input 2: UI artifact summary]
- Registration form screen: team name field (with a duplicate-check button), team member
input area (add/remove dynamically), attachment area (drag and drop), submit button
(disabled until all required fields are filled)
- On duplicate check, real-time status text appears below the field, color-coded by
success/failure

Providing both lets the AI reference why the team name must be unique (the PRD) alongside how that check appears on screen (the UI artifact) when drafting the story.

Step 2: Write it as a complete workflow, not a simple screen lookup

Section titled “Step 2: Write it as a complete workflow, not a simple screen lookup”

State the following conditions explicitly when requesting a story.

[Story generation conditions]
- Write it considering the complete business workflow, not just a simple screen lookup
- Every acceptance criterion must cover exception handling, defaults, state
persistence, and permission conditions
- Do not infer non-functional requirements that aren't clearly present in the UI
artifact — mark them "no information available"
- When information is insufficient, output "unknown" or "needs more information"
(do not fill it in arbitrarily)

The last two conditions matter most. An AI tends to fill in what isn’t on the screen with something plausible-sounding. Without stating these conditions explicitly, unverified performance targets or security requirements get mixed into the story as if they were already confirmed.

A story sentence alone can’t be verified. Every story needs acceptance criteria in Given-When-Then form.

## Story: Team name duplicate check
Story: "As a registrant, I want to know immediately whether a team name is
already taken when I type it, so that I don't get rejected at submission
time and can complete my registration."
Acceptance Criteria:
- Given the team name field
When the user enters a team name and moves focus away
Then the duplicate status must be checked in real time
- Given a team name that is already in use
When the user attempts to submit
Then submission must be blocked and the message "this team name is
already taken" must be shown
- Given a unique team name
When the user attempts to submit
Then submission must proceed normally
- Given two users submit the same team name at the same time
When one request is processed first
Then the later request must be rejected by a server-side re-check
(to prevent a race condition)

That last condition (concurrent submission) doesn’t come from the UI artifact alone. It only appears by referencing the architecture decision confirmed in the previous article (“double-guarded by a DB unique constraint”). This is where the traceability from that article actually gets used.

Step 4: Story points are a draft: calibrate with the team’s own data

Section titled “Step 4: Story points are a draft: calibrate with the team’s own data”

Ask an AI to estimate story points and it produces a number for every story. That number should not be fed directly into sprint planning.

An AI’s story point estimate is calculated purely from the number and complexity of the story’s sentences and acceptance criteria. It doesn’t reflect the team’s actual velocity, familiarity with the tech stack, or how long similar work actually took in the past. So the following principle applies.

[Story point operating principle]
1. Treat any story point the AI proposes as a draft only.
2. The team cross-checks how long similarly-sized stories actually took in
past sprints.
3. When the AI's estimate and the team's measured data diverge significantly,
record the divergence itself
(e.g. "AI estimated 5 points, but the team's data shows similar work
averaged 8 points").
4. Final story point confirmation always remains the team's responsibility
(e.g. via planning poker).

An AI applying a consistent scoring standard and that number being accurate are two different things. Consistency in estimation saves meeting time, but accuracy can only be corrected using the team’s own historical data.

Before finalizing a story, check it against the six INVEST criteria.

CriterionQuestion to ask
IndependentCan it be developed without waiting on another story to finish?
NegotiableIs the implementation detail not locked in, and open to discussion?
ValuableDoes it deliver clear value to the user or the business?
EstimableIs it concrete enough for the team to size the work?
SmallCan it fit inside a single sprint?
TestableCan completion be judged objectively via acceptance criteria?

Independent and Small are the two most often broken when an AI auto-splits a story. Bundling “team name duplicate check” and “registration form submission” into one story breaks Independent; splitting too finely, on the other hand, breaks Valuable because each fragment no longer delivers value on its own.

Once the story and acceptance criteria are confirmed, the next step is turning them into actual tests. The next article covers a two-pass test design: document-first scenarios written before code exists, and code-grounded refinement once it does.

→ From User Stories to Test Scenarios and Test Code

PlantUML Diagram