Reference screens instead of explanations: examples and AI review as the first design check
- TL;DR
- Product: the company’s design system on shadcn and Storybook, which every product is moving to.
- Problem: more and more interface work gets done without a designer, and only the designer knew how things should be. The first review of such work scored 4.5 out of 10.
- My role: Head of Design. I came up with and built a system of reference screens, rules and AI review, and made all nine reference screens myself.
- Result: under a stricter review, work done without a designer scores about 7 out of 10, the best at 8.3. By our estimate, the review catches about 80% of problems before a designer sees them, and frontend has built it into CI.
The problem
Components live in Storybook and mockups in Figma, but neither answers a developer’s main question: how do I build our screen from these components? A component page shows one button on an empty background. A mockup says nothing about the phone, a long label or closing a window with unsaved changes. Those answers lived only in the designer’s head.
So everyone built screens their own way. In the modal windows of three products I counted seven different close buttons, and not one window that took the whole screen on a phone.
Hypothesis: if developers have a reference and a check that compares their work with it before a designer does, most comments will be gone before the review.
How the system works
Reference screens
Real product screens, built in Storybook only from the system’s components on demo data, with the phone version and open states. When a component changes, the reference changes with it. I built all nine.
Rules
57 patterns, 62 visual rules and 23 recorded departures from shadcn. Every rule links to a reference screen and says how to check it: with a test, a measurement or a designer’s decision.
AI review
A Claude Code skill captures the work and the reference in the same states, measures the screen, reads the code and grades it on eight criteria. It has no rules of its own and reads the documentation every time.
A finding becomes a rule
A finding that keeps coming back turns into a new rule or reference screen, and the review gets stricter without any edits to the skill itself. Frontend built it into CI: a job starts the app on its own and puts the report in the pipeline.
Nine reference screens
Each one is built only from the system’s components on demo data and worked out for the phone.









The same nine reference screens on a 390 px phone.
Modal windows: from finding to reference screen in a week
On October 12, a review of the settings module, moved to the design system without a designer, found a gap: none of the nine modal windows was built to a reference. On October 14, I lined up the windows of three products, built a reference and moved its shell into the system itself: three sizes, the close button in the title row, full screen on a phone, and a “discard changes?” question right at the close button. On October 19, the review of the next module showed that the windows matched the reference almost pixel for pixel.



Result
Developers see the finished screen before they start and don’t have to guess from a mockup, so the first iteration meets expectations more often. After the review, the work can go to production with almost no changes, and the designer is left with a short final check.


What I took away
Interface quality shouldn’t depend on whether a designer took part in the task. Reference screens and rules say how things should be, and the review checks whether they came out that way. Decisions stay with people: what counts as a reference, which rule to write down, where an exception is fine.
Looking back, I would have started with the reference screens before moving products over in bulk: the first migrations went almost without them, and the review had to catch up. Next: review in CI on every change in every product, a dark theme and new reference screens.