跪拜 Guibai
← All articles
Frontend · AIGC · AI Programming

Stop Saying "Less AI Slop": UI Lab Gives You Concrete Before/After Design Cases

By 王若风 ·
Read original on juejin.cn ↗ Google Translate ↗ Alt translation

Design feedback to AI coding agents becomes specific and verifiable: a developer can point to a before/after case, state an acceptance condition, and get a change that is testable immediately, instead of relying on vague phrases like "less AI slop."

Summary

UI Lab turns design principles into testable before/after cases. It pulls from classic design books like Refactoring UI and popular GitHub design projects. The library currently holds 401 cases from 12 sources. Each case pairs identical content in two states, so a single change is visible. For example, a monthly mileage card uses grey text for the secondary note on a dark background; switching that line to light blue raises contrast from about 2.7:1 to 6.5:1 while keeping the main number dominant.

Search cuts across projects. Typing "loading" returns skeleton screen fixes from UI Skills Playbook, load-state redesigns from Kill AI Slop, and loading animations from loading.dev. Cases are linkable and language-switchable. Interaction-heavy examples like shadcn/ui's attachment upload or Stageshow's payout flow keep their original timings so you can scrub through the sequence.

The trick for AI-assisted UI work: each case has a "Prompt" tab that copies a Markdown block containing the case link, source, chapter, design points, and acceptance criteria. You hand that to Codex along with your current code, and you get a change that can be verified on the spot. A Skill exists to install into projects that runs `npx skills add wangruofeng/ui-lab --skill ui-lab-ui-improvement` so an agent can fetch matching cases automatically.

Takeaways
— UI Lab contains 401 design cases sourced from 12 books and GitHub design projects.
— One case demonstrates fixing grey text on a dark background, raising contrast from about 2.7:1 to 6.5:1.
— Search by problem finds examples across projects; searching "loading" returns skeleton screens, load indicators, and loading animations from different sources.
— Each case has a permanent URL and supports English, so a link can be shared with a colleague or an agent.
— A "Prompt" tab copies Markdown with case link, source, chapter, design points, and acceptance criteria for instructing AI coding agents.
— The library ships as an open-source MIT-licensed project and provides an npx Skill installation for project-level integration.
Conclusions

A reusable case library makes design judgment legible to code-generation tools, turning a subjective request like "less AI slop" into a reproducible demo and a checkable outcome.

The inclusion of interaction timing in cases like payment flows treats micro-interaction pacing as a design property that can be inspected and tested, not just an aesthetic layer.

Concepts & terms
AI slop
Generic, overpolished interface styling that betrays an AI-generated origin, often including excessive rounded corners, gradient backgrounds, and vague visual layers.
Acceptance criteria
A concrete condition that must be true for a design change to count as done, e.g. "the note text on a dark background reaches 6.5:1 contrast and stays readable."
Source: juejin.cn ↗ Google Translate ↗ Backup ↗