Skip to content
PathGuided

The Model Already Knows Your Design Principles

Language models can recite every textbook UX principle and still produce flat, confusing screens. Effective agent guidance names the default habit, contrasts concrete examples, and ends with a checkable question.

3 min read
Email

"Maintain a clear visual hierarchy." "Use intuitive affordances." "Reduce cognitive load."

Any modern language model can recite these principles, explain their history, and write an essay defending them. Moments later, that same model will generate a screen where three competing buttons share identical visual weight. Repeating design principles in a prompt accomplishes very little because the model was never short of principles. What it lacks is an explicit trigger for what to do differently on the specific screen in front of it.

Anatomy of a Working Strategy Card

To bridge that gap, we structure our UX guidance as short cards inspired by Christopher Alexander's A Pattern Language: a recurring tension, the forces involved, and a direction that leaves the builder free to craft the actual implementation. Each card contains four concrete elements:

  1. The situation and its boundary. When the strategy applies, and just as critically, when it does not. Example: "A destructive-feeling action whose effect can be reversed. Not for payments, permanent deletion, or revoking access."
  2. The model's default habit. Named plainly. Example: "A generic 'Are you sure?' confirmation dialog on every archive and remove action." In practice, this section does the heaviest lifting. Positive rules compete weakly against trained habits; naming the habit makes it recognizable right as the model is about to emit it.
  3. A concrete bad-and-good pair. Written with realistic domain content:
  • Bad: Clicking Archive opens a modal reading "Are you sure? This item will be archived" with Cancel and Confirm buttons.
  • Good: Clicking Archive removes the row immediately and shows "Archived 'Q3 vendor review'" with an Undo action.
  1. One verifiable review question. Example: "For every confirmation dialog on this screen: is the action irreversible?" If a reviewer cannot answer the question simply by looking at the rendered screen, the card is a platitude dressed up as a process.

Build the Library From Corrections, Not Textbooks

The most tempting mistake when building a strategy library is to open a UX textbook and convert every chapter into a card. That exercise reproduces the exact generic prose the model already ignores, only now split into separate files.

A useful library grows exclusively from real corrections. Every time a human fixes a defect on an AI-generated screen, trace how the library handled it:

No card existed Existed, not chosen Chosen, ignored Human fixes a defect on an AI-built screen Sort the defect type Rendering or product fact bug UX strategy failure Fix via screenshot review or product spec Was a card available? Write a card from this exact failure Sharpen the trigger line for the planner Improve bad/good pair or reduce card count

Notice the first branch in that triage. When we sorted our own review records, a large share of defects were not strategy failures at all. Clipped text and buttons pushed below the fold are rendering bugs; a header count that contradicts the list beneath it, or an admin panel shown to a non-admin, are product-specification bugs. Cards cannot fix either category. Rendering bugs require screenshot inspection, and product facts require clear requirements in front of the builder.

Retire What Does Not Change Outcomes

A strategy card that is never selected—or is selected repeatedly without changing what the builder produces—still taxes the planner's attention every time it scans the catalogue. Remove it. The value of a design library is measured strictly by the defects it prevents, not by how many cards sit on the shelf.

Join the PathGuided Closed Beta

Onboard your repositories with local-to-cloud spec execution, split-tier model routing, and commit-bound Work Tours.

Request beta access