r/ChatGPTCoding • • 7h ago

Resources And Tips I need your help — trying to stop AI coding agents from generating generic UI slop without bloating context

Every time I let an AI coding agent build a frontend with no design instructions, it outputs the exact same purple-gradient SaaS template. When I paste a huge style guide into system rules instead, it ignores half of it and quality actually drops.

To fix this, I've been putting together an open-source stage router that splits UI work into 7 stages (direction, tokens, copy, layout, motion, and a final browser check) so the agent only reads 3–5 focused design files per step instead of hundreds of rules at once.

The 3 screenshots above are what it produced, and I genuinely need outside eyes to improve it:

  1. Where do these 3 builds still look obviously "AI-generated" to you?

  2. What UI rules or edge cases do your coding agents constantly mess up that I should add to the checklist?

If anyone wants to test the repo on their own project and tell me what breaks, let me know in the comments and I'll drop the link.

3 Upvotes

3 comments sorted by

1

u/Longjumping_War_8480 7h ago

Thanks in advance for any feedback! Here is the open-source repo (MIT, free):

https://github.com/landie3310-bot/Design-master

Install in one command:

`npx skills add landie3310-bot/Design-master`

1

u/Ok_Woodpecker_9104 5h ago

mine went wrong most in the tokens step, i built a thing that pulls a design system off a live site. tailwind pads every box-shadow with rgba(0,0,0,0) 0px 0px 0px 0px rings, so if you read computed styles those land in your shadow scale as real layers

picking the background by luminance is another one. a dark page with a few white cards came out white, sentry and shopify and resend all did. text colors by luminance gave black on black. pick by contrast against the background the viewport actually shows

and if the tokens step writes a tailwind v4 theme block, --spacing-4 is the value behind p-4 and gap-4, so if you write that key it resizes every utility in the app

1

u/AIONAPEX 1h ago

Two rules did more for me than any style guide.

One: a closed palette. Three colors, two fonts, and nothing outside the set is legal. A long guide is advice the model weighs against its own taste; a closed set is a constraint it cannot reason around, so the purple gradient disappears because there is no purple.

Two: the final check has to look at the asset at the size it ships, not at full resolution. Every card I make passes at 1800 px and dies in a 270 px thumbnail, where the headline turns into three unreadable words. The gate measures the rendered text and refuses to build below a minimum size, so the failure shows up as a build error instead of a feeling.

What I still see in generated UI is pacing. Everything on one screen at the same weight, no single element that wins. A rule like "one accent per screen and the number gets it" fixes more than a checklist of spacing values.