UX.md/playground

Read the article (opens in a new tab)

UX-context design

How does UX context impact AI output?

UX.md gives an AI model various kinds of context, such as: research findings, a user model describing the people using the product, a world model describing their circumstances, and a glossary. I tested their effect by generating sixteen versions of a car insurance claim page.

Each version used Claude Opus 5, the same prompt, and the same visual identity. Only the combination of UX.md sections changed. Use the switches to compare the results.

The prompt

Build a single page where a customer can report a car accident to us.

It should collect everything we need to open the claim, and it should look like it belongs to our product. Keep it to one page.

Every version also used the visual identity of Keystone Mutual, a fictional insurer.

UX.md select the context to compare
Read
Read
Read
Read

Select a version: 1 includes a section, 0 leaves it out

Results

How context changed the output

The model received no example form and was not told which context sections were missing. This lets us compare its own choices with those it attributed to UX.md.

None of the sixteen pages requires an account, and thirteen make the policy number optional. The model made some of these choices without instructions in UX.md.

All eight versions with the research findings put photos first, as instructed. All eight without them put photos near the end. None of the versions without the world model displays a timestamp; that section explicitly required one.

The differences are specific: the research findings changed the order of questions, while the world model prompted details about saving and submission times. Other choices, such as allowing people to report without an account, appeared across all sixteen versions.

Each version has a reasoning log written by the AI during generation. The logs explain which decisions the model attributed to the context and which came from its own judgment. These are static mockups: save messages and timestamps show the proposed design, not working features.

The context

Inside UX.md

Below are summaries of the four UX.md sections and the shared visual identity. The full source files are in context/. Each version's exact UX.md is in context/iterations/.

Research findings

F1 to F5 Research findings and the design requirements they led to.
F1

People rarely have their policy number ready.

Constraint. Let people start without a policy number. Use details they can recall.

F2

People are more likely to finish when photos come first.

Constraint. Ask for photos first. Put the written description last and make it optional.

F3

People want to know what happens next.

Constraint. Explain what happens next before asking for information.

F4

Interruptions cause people to lose progress.

Constraint. Save automatically. Show what is saved and how to resume.

F5

People fear that a mistake could cost them their claim.

Constraint. Allow "I don't know" for every factual question. Explain that answers can be corrected later.

User model

U1 to U4 What research says about the people filing reports.
U1

Most people last filed a report about a decade ago.

Constraint. Guide people through each step. Avoid shortcuts and controls that require prior experience.

U2

People are unfamiliar with insurance terms.

Constraint. Explain each insurance term wherever it appears.

U3

People rarely need to use the service again.

Constraint. Let people file without registering. Omit settings and features intended for frequent use.

U4

Many users are older or have limited vision or dexterity.

Constraint. Use large text and controls. Avoid time limits, dragging, and actions that require hovering.

World model

W1 to W5 Where and under what conditions people file reports.
W1

Most reports come from a phone within an hour of the crash.

Constraint. Design for phones: one column, high contrast, and controls people can use with one hand.

W2

People are shaken and frequently interrupted.

Constraint. Show one decision per screen. Preserve unfinished answers and make it easy to resume after an interruption.

W3

People may not have access to their documents.

Constraint. Let people continue without documents. Make those details optional or ask for them later.

W4

Internet access is unreliable.

Constraint. Save answers on the device and sync when connected. Show when answers have not been sent.

W5

The report is a legal record.

Constraint. Show the report's date and time. Allow corrections after submission and explain how to make them.

Glossary

G1 Preferred terms and the jargon they replace.
SayDo not say
reportFirst Notice of Loss, FNOL, claim submission
crashloss event, incident, occurrence
the other driverthird party, adverse party, claimant
your carinsured vehicle, covered auto, unit
what you paydeductible, unless defined on the spot
the person handling your claimadjuster, claims representative
we got itsubmission received, acknowledgement

The rule. Use familiar words. Explain any policy term you need to include.

Visual identity

included in every version DESIGN.md defines Keystone Mutual's visual style and components.

The shared file specifies Inter type, body text of at least 16px, one primary action per screen, red for errors, visible keyboard focus, tap targets of at least 44px, and US English. It defines the visual style and controls for all sixteen forms.

How the pages were generated

  • Sixteen Claude Opus 5 agents ran independently in parallel, one per version.
  • Each agent saw only its assigned materials. Folder names were shuffled, and agents were not told about the experiment nor the omitted sections.
  • Each agent wrote a reasoning log as it worked, which are available to read.
  • The generated pages have not been adjusted post-generation.