# How to stop AI coding agents from producing generic UI

AI agents produce generic UI when nothing specific is in front of them. Give them rules, real references to look at, and a loop that compares the result.

Published 2026-12-02 by Jeffrey Li · https://supertaster.me/blog/stop-generic-ai-ui

AI coding agents produce generic UI because, with no other input, they build the most typical interface they know. To stop it, put something specific in front of the agent before it writes code: a short rules file, real reference screenshots it can look at, and a loop where it compares its output with those references.

## Why does AI-generated UI all look the same?

AI-generated UI looks the same because a model asked for "a landing page" with no further direction returns the most probable landing page. The model has seen a great many similar pages, and the average of them is what comes out: a centred hero, a gradient, rounded cards in a three-column grid, a familiar sans-serif.

Three things make this worse:

- **Prompts carry little visual information.** "Clean and modern" matches almost anything.
- **Defaults compound.** Popular component libraries and their default themes appear in a great deal of code, so agents reach for them first.
- **The agent often cannot see.** If the agent writes code without rendering it and looking at a screenshot, it never finds out what the page looks like.

The fix is not a cleverer adjective. The agent needs specific input and a way to check its work, the two halves of [designing with AI from your own references](/guides/ai-design).

## What works better: a rules file, a design skill, or real references?

A rules file, a design skill and real references each solve a different part of the problem, and they work best together.

| Approach | What it does | Where it stops |
| --- | --- | --- |
| Rules file | Persistent written constraints the agent reads every session, for example a design file referenced from `CLAUDE.md` or Cursor rules | Text can forbid and require, but cannot show |
| Design skill | A packaged set of design instructions that steers the agent away from its defaults | Everyone who installs the same skill gets the same steer |
| Real references | Screenshots of specific work the agent looks at before building | Needs you to have collected them, and to say what to borrow |

**A rules file** is the cheapest step. Write down your type scale, spacing units, colours, and the things you never want. Keep it short enough that the agent reads all of it.

**Design skills** are a popular answer in 2026. Published examples include [Hallmark](https://dev.to/rams901/hallmark-stop-ai-generated-ui-slop-in-one-command-in-2026-3p9n), Impeccable and [anti-ui-slop](https://raw.githubusercontent.com/github/awesome-copilot/main/skills/anti-ui-slop/SKILL.md). They are worth installing if you have no design opinions of your own to supply, because a considered set of defaults beats an unconsidered one.

**Real references** do something the other two cannot. A generic skill gives everyone the same non-default. Your own references give the agent yours. If the goal is "not generic", a skill may be enough. If the goal is "looks like us", the agent has to see what "us" looks like.

## How do I give an agent screenshots it can look at while it builds?

Give an agent screenshots by putting image files where it can open them, and by telling it which ones matter for the task. Current coding agents can read images.

1. Collect three to five screenshots for the task at hand. More than that and the direction blurs.
2. Put them in the repository, for example in a `references` folder, or attach them to the conversation.
3. For each one, write a line on what to take: "spacing and type scale from this one, ignore the colours".
4. Tell the agent to open and describe the references before it writes any code. The description shows you whether it noticed the right things.
5. Ask it to build, and to say which reference each decision came from.

A folder in the repository works for one project. It becomes awkward when you work across many projects and agents, because the references are copied everywhere and go stale.

The alternative is a reference library the agent [connects to through MCP](/blog/connect-remote-mcp-server). [Supertaster](/) is one: an archive of your references that any MCP-capable agent can search. Before a connected agent designs, it searches your references, looks at the images and tells you which ones shaped the result. Setup for one agent is covered in [how to give Claude your design taste](/blog/give-claude-your-design-taste).

## How do I close the loop so the agent compares its output with the reference?

Close the loop by making the agent look at what it built. An agent that only writes code is designing blind.

1. Have the agent run the app and take a screenshot of the page. Browser automation tools make this possible in most agent setups.
2. Ask it to place its screenshot against the reference and list the differences in concrete terms: heading size, line length, padding, contrast, alignment.
3. Have it fix the three largest differences, then screenshot again.
4. Stop after two or three rounds and look yourself. The agent's judgement of "close enough" is looser than yours.

Two cautions. Ask for comparison on specific qualities, not for a copy. The aim is to borrow the spacing or the hierarchy, not to reproduce someone else's page. And check at more than one screen width, since agents tend to verify only the size they happened to render.

## A short checklist

- A rules file with your real constraints, kept short.
- A design skill if you have no references yet.
- Three to five references per task, each with a note on what to borrow.
- A screenshot-and-compare loop before you accept the result.
- A request, every time, for the agent to name what it used.

None of this needs a particular product. A folder of screenshots and a text file get most of the benefit. The longer-term question is where those references live so that every agent you use can find them, which is the idea behind [a taste archive](/blog/what-is-a-taste-archive).
