The Part of Your Prompt That Actually Matters

The Part of Your Prompt That Actually Matters

Leon Lin, the guy behind the taste skill with almost 117,000 stars on GitHub, just wrote up exactly how he prompts Claude Code to build good-looking demos. His article on X is called "how I prompt AI to build good-looking demos," and the most surprising thing in it is this: the wording of your prompt barely matters. The references carry most of the quality. An image shows how the light, the colors, and the materials look, and that's really hard to describe. For a website, it also shows how the sections are laid out and how much space sits between things.

So if you've been obsessing over the perfect phrasing, you can stop. Here are the eight lessons that actually make the difference, pulled from Leon's 11 tips, plus how to set each one up for a website. Then I'll show you cook, the free skill he made that runs the whole workflow as one loop, and it works the same in Codex or whatever coding agent you use.

Lesson 1: Keep Your Prompt Short and Give the Agent Strong References

Leon's words: "The most important thing I learned is that the references carry most of the quality in your prompt. The text stuff barely matters." So where does he get his references?

For websites and apps, he mostly uses Mobin. It's a library of screens and sections from real professional products. His other source is just X.

Now, Leon doesn't mention these next ones, but they're good extra options. The simplest is Dribbble. It's a site where designers post their work. Screenshot the part you want and paste it into your agent.

If you don't want to do that by hand, check out Inspo. It's an MCP server, which is basically a plugin that gives your agent new tools. This one is full of real websites. Each one is captured on desktop and mobile with its colors and fonts pulled out. It's free and open source, and you install it with one command:

npx -y inspo-mcp install

Then, whenever you give your agent an app idea, it looks through that library before it writes any UI. And if there's a real app out there that's close to what you're building, you can just name it in your prompt. Your agent will look at it with its web tools.

But if you want the agent to actually use the site like a visitor would, use agent browser. It's a free tool from Vercel Labs. It lets your agent open any website, click around, and take screenshots. You just say something like: "Use agent browser to study the design of this site and build something similar."

Lesson 2: Make the Target First

The agent needs a goal before it builds anything. For his 3D demos, Leon makes the target by generating the reference images first, and then he asks Opus to build that in code.

For a web page, a good way to do this is a mockup. That's a quick version of your page. The agent builds it as one simple HTML file from your references. And you don't have to copy your references exactly. You can ask for the same quality and mood in your own style, so the page still looks like your product.

Here's the setup. Ask your agent: "Build three different HTML designs for a landing page for my app and open them side by side in one viewer."

Then look at each one. Check how it looks on a phone size screen, too. Pick the one you like and ask your agent to build that. And if you want changes, ask for them now while it's still cheap.

Lesson 3: Set the Bar with a Number

If you just say "make it look really good," the agent has no idea how close it needs to get. A number fixes that.

Leon's prompts say: "Match the references as closely as possible. Aim for 99.9%." He admits that number probably isn't realistic. He uses it anyway because it tells the agent the job isn't done the moment the page first works.

But there's a catch. Models score their own work way too high. So Leon tells the agent his own estimate. In his words: "If it says it's at 90% and I think it's at 60 to 70%, I tell it exactly that so it knows how high my expectations are."

To try this, paste the link of a site you like. Then say something like: "Copy the style of this website for my landing page and it should match 99%."

Lesson 4: Give It Time

In Leon's words: "The same model gives you something completely different in 20 minutes versus 20 hours." So he always gives it a time budget. For demos, it's a minimum. His prompt says: "This task should take at least 8 hours. If you are done after 2 hours, something is wrong."

For your landing page, that's just one line. Something like: "Build the landing page for my app. It should feel like an experience, not just a landing page. Take as long as you need, but I need the highest quality." Then it stops rushing.

Now a long run eats your plan. So Leon puts his usage limits in the prompt, too. "Use about 99% of the 5-hour limit in those 5 hours, but never hit 100." Otherwise, in his words, "it burns everything in 2 hours and waits for 3 hours."

And since a long run is meant to keep going without you, he adds one more line: "If you have questions, ask me now. Otherwise, start building."

Lesson 5: Ban the Slop

Every one of Leon's prompts has a list of things the model isn't allowed to use. His list has beige, glowing orbs, and random serif fonts. It has those little labels above every heading and monospace uppercase text. And it has 01 02 03 counters, shockwave rings popping out of everything, and em dashes. That's the stuff that makes a page look AI-made at a glance.

But a ban list only stops what you name. So you end up adding to the list every single time, and that gets old fast.

Here's the slop detector I use. It's called Impeccable by Paul Bakos. It's free and open source, and it's got about 111,000 stars on GitHub. You install it with:

npm impeccable install

It has a detector with 62 checks for the defaults agents keep reaching for.

Lesson 6: Build It in Steps

This one isn't from Leon's article. Don't ask for the whole animated page in one go. When you do, the agent has to juggle the design and the animations at the same time, and neither one comes out great.

So first, ask for the page with no animations at all so you can focus on getting the design right. Only then ask to add the animation.

Now for the animations themselves, Leon has a great method. He gives the agent reference videos and tells it to analyze every video frame by frame and write down every small effect, transition, and timing in a list. Then it takes inspiration from all of them, but never copies one element exactly.

Lesson 7: Give Specific Feedback

As Leon puts it, "make it better" doesn't work well. Always give the agent something specific to change.

So instead of saying "the colors feel off," you say exactly which color should change and how. Or you take a screenshot, draw on the parts you don't like, and send it back.

And sometimes you can tell something's wrong, but you can't put it into words. For that, Leon asks the agent to describe what it built: how it laid out that section, which fonts, which colors. Once it tells you, you have the words.

Lesson 8: Let Someone Else Judge the Design

In Leon's words: "The agent that built something is the worst judge of its own work." So he lets other agents rate it with zero context. His instruction is: "Rate it with sub agents that have no context. Don't stop before it reaches 9.2 out of 10." And the agent keeps fixing the work until the judges give it that score.

He also says the judge can be a different model. His example is GPT-6.1 Soul judging Opus 5.5's work. So if you have Codex installed alongside Claude Code, you can ask Claude to have Codex review the design.

Cook: The Free Skill That Runs the Whole Loop

Doing all of this by hand every time is a lot. So Leon turned his whole strategy into a skill called cook. Its tagline pretty much sums up this whole approach: "Give your agent a target, a bar, and time, then let it cook."

It's free and open source. It runs every step as one loop from design to review. To install it, run this in your terminal:

npx skills add leon x lnx / cook

To use it, open your agent, type /cook, and tell it what you want to build. First, it asks every question in one message, each with a default: your references, how close it should get, how much time it can take, and your usage limits. Or if you're happy with the defaults, just reply "defaults" and walk away.

Then it goes. If you've connected Inspo, it pulls references from there. It writes a brief into a cook folder inside your project, and that folder holds everything plus a rounds file that logs every round with its scores. Then it builds round one. It sends in fresh judges, and each one reviews the work in its own context. It fixes the weakest part and starts the next round. It keeps going until the work hits the bar you set.

Key Takeaways

  • References carry most of the quality in your prompt. The text wording barely matters. Use Mobin, Dribbble, Inspo, or agent browser to feed your agent strong visual references.
  • Build a mockup target first. Generate three quick HTML designs, pick the best one, and request changes while it's still cheap.
  • Set a numeric bar like 99.9% so the agent knows the job isn't done the moment the page first works. If the agent overestimates its own work, tell it your real estimate.
  • Give it a minimum time budget. The same model gives you something completely different in 20 minutes versus 20 hours. Add usage limits so it doesn't burn everything in the first two hours.
  • Ban the AI slop: beige, glowing orbs, random serif fonts, little labels above headings, monospace uppercase text, numbered counters, shockwave rings, and em dashes. Use a detector like Impeccable to automate the checks.
  • Build the design first with no animations. Then add motion separately, using reference videos analyzed frame by frame.
  • Always give specific feedback. "Make it better" doesn't work. Describe exactly what to change, or ask the agent to describe what it built so you have the right words.
  • Never let the agent that built the work judge it. Use sub agents with zero context and a different model if possible. Don't stop until they score it 9.2 out of 10.

Leon's whole system boils down to three things: a target, a bar, and time. The prompt wording is the last thing you need to stress about. The references do the heavy lifting. Everything else is just giving the agent enough runway and the right constraints so it doesn't settle for the first thing that technically works.