Designing with AI
Designing with AI is an exercise in care and constraint.
Disclaimer
A lot of the methods I use and concepts I talk about in this chapter build on technical ideas I explain in the first three chapters: The fundamentals, Moving beyond prompting and Collaboration frameworks.
I'd recommend reading them first so you can understand things such as orchestration, context, MCP, skills, etc.
Which tool I use for each job
Here's what I use for every part of my design workflow(s). I use a lot of these interchangeably depending on the scope of my outcome!
Ideation
When I want full control over the details of a screen, I still design it by hand in Figma.
Paper is a code-based canvas, which means a Fable subagent can write directly to it, 1:1.
Each subagent gets its own personality trait to encourage more divergent outcomes, and each one must use the Mobbin MCP to ground its designs in real-world principles.
Prototyping
When I want to try animations, flows, or just get a feel for my designs, I get my agent to build them on a Next.js server (I use Next.js because I'm familiar with it from my full-stack days).
I can click through screens, test animations, look through hover states, etc.
Agentation lets me point and click at things on my prototype that I want to change. Even now, I'm using it to rewrite the body copy in this table.
My feedback is packaged with the code on screen, so my agent doesn't waste time figuring out what my screenshot is pointing to.
The Figma MCP lets my agent read my frames, and I find it a lot more reliable than asking my agent to design from screenshots.
Still, models struggle with this, and I've found Fable to be the most consistent at recreating my designs from Figma.
If I want to bring Paper designs into my prototype, I just send my agent a link to what I want built. The results usually come out a lot more accurate, because designs in Paper are already made in code.
Sometimes not everything I designed gets mapped correctly to the prototype.
Since I don't have time to check every screen of every flow, I assign one agent to take screenshots of the work it implemented, compare them with the Figma or Paper file, and tell a builder agent what to fix if there's any drift.
Recreating screens
Sometimes I have a very clear vision of precisely how I want to change a prototype. I'd rather do it myself than leave it to my agent to interpret, so I use Figma's Chrome extension to pull a snapshot of the page into Figma.
Do note that not everything gets translated 1:1, and sometimes elements or photos don't load into Figma properly.
Usually smarter agents, such as Opus or Sol, can reliably recreate a screenshot in Paper.
Taking a screenshot of every page in a flow by hand is very time-consuming.
To automate it, I pair a screenshot subagent with a builder subagent. The screenshot subagent uses a browser harness to navigate the flow and capture each page, then sends them to the builder agent to build in sync.
I can also pair another screenshot agent and builder agent to double-check my agent's work.
How I prompt my agents
I'm not really that big of a fan of prompting, and I usually don't have the patience to write out long, really good prompts. I tend to prompt like I text.
Obviously this is not super ideal, because I don't imbue my agent with a lot of context. To compensate, I usually lean on some combination of the following 3 methods:
External tools
Lots of smarter people have designed really great tools that are designed to give you more control over your agents output outside of the chatbot.
Agentation- I'm a huge fan of Agentation. It's a wonderfully novel point-and-click tool that lets you click anywhere and leave feedback. Said feedback then gets coupled with the precise code of that page, so your agent can check the code to see exactly what you're targeting. This helps solve a lot of target ambiguity.
DialKit- Josh Puckett's DialKit. It gives you a set of toggles you can tune to precisely edit values onscreen.
Mobbin MCP- Lets my agent search Mobbin's library of real app screens and flows, so it can pull references instead of guessing what good looks like.
Figma MCP- Lets my agent read my Figma frames directly, so it builds from the actual design instead of a screenshot of it.
Sketches & Annotations
I draw little sketches in Figma! Usually when I have a diagram in mind or a rough idea, or want to annotate an existing drawing. I'm still giving the agent directionality and can move a lot faster.
Orchestrator
I interface through an orchestrator agent. I've been using T3 Code recently, and it's a blast. The TL;DR is that I can send these really short prompts to my agent, and it'll then spin up a subagent to work for me.
That orchestrator agent packages together a nice prompt, which includes not only my initial prompt, expanded, but also some ground rules from the project's memory and my own skills. The resulting output is that I spend a lot less time course-correcting agents and leave all the nitty-gritty to my orchestrator.
I have this one particular Fable subagent that has actually been performing really well and surprising me with the quality of its output. It actually helped me create that flying animation (it was not a one-shot).
I do wonder if I should find a more sustainable way to preserve these subagents, basically what grokbot does with their agents.
Building my skills
Like I talked about in chapter 2, skills are good for repetitive tasks. Most skills I run are guardrails for design, meaning that they are more or less a set of checks for the agent to go through to make sure it's designing somewhat competently, i.e. checking over spacing, WCAG accessibility, typography, etc. Truth be told, 90% of them were inspired by Emil's UI for AI guide!
Aside from that, I also have a line art skill. To build these really great skills, I usually feed the agent a lot of context. For the line art one, I had a small team of agents use a browser harness to take screenshots of Vercel's and Linear's blogs, and then compile a list of recurring practices they found.
I went through the list and went back and forth with my agents, then gave it a couple of mock examples to test it out, and iterated back and forth again. I told the agent what I liked, what I didn't like, and my reasoning.
This rapport built a stronger contextual understanding, which enabled the agent to create a couple of pretty cool things below. That being said, if I were to break that session down, I would attribute it to 50% image references, 20% fine-tuning, and 30% back and forth.
Agents just don't have much ball knowledge, but they can respond to reasoning. By talking back and forth with my model, I was somewhat fine-tuning its own personal taste after my own, which was pretty cool.
ui-nit-fix
/ui-nit-fix {linear ticket link}: the avatar stack clips inside the compact header. Fix it with the design system's own tokens, verify it in the fixture, and don't push.
get-inspo
/get-inspo {figma node link}: how do other products handle the empty state of an inbox? Paste the references onto this board with captions.
ui-build
/ui-build {figma frame link}: build this in Ando on a fresh worktree, using packages/ui and central icons, and show me a local fixture before anything gets pushed.
Workflows
Work in progressMy workflows can be split into 2 main flows: divergence and convergence.
Divergence
The goal of divergence is to rapidly explore a wide range of different iterations to fuel ideation. Whether that's prototyping interactions, drawing different diagrams, or ideating on the flow of screens, meaningful ideation helps me cover ideas I may not have originally considered.
To prevent generic explorations that all look pretty much the same, I use a few guardrails (a guardrail is a set of rules the agent follows to steer it towards good outcomes):
Each exploration is driven by a separate subagent with a different personality trait, to encourage more divergent explorations (see chapter 3).
Each agent uses the Mobbin MCP to ground its ideas in real, existing patterns and general good practices.
There are probably a set of Emil skills I haven't discovered yet that come with their own guardrails.
Generally, I've found it incredibly beneficial to talk with an orchestrator agent and have the subagents do the explorations. My orchestrator can pull in chat context, memory, project context, etc. to put together a much more substantial prompt for my subagents to work with.
Things I may have forgotten, or principles I don't immediately think of as I rapidly prompt, get pulled in and packaged by my orchestrator and handed off.
90% of the time, I use Paper to prototype. I used to use throwaway HTML pages, but I really appreciate that Paper is a canvas tool. It lets me crawl my designs from a bird's-eye view and tweak small things.
This helps when designing different states: I can see what the empty state, filled state, error state, etc. look like next to each other.
Convergence
Divergence usually takes you 50% of the way; convergence takes your designs to 100%. The goal here is to refine the messy ideation and iteration into something you can be proud of!
At this point, I'll ask my agent to build my designs on a web server (usually Next.js, since I'm familiar with it from my full-stack days). If I'm bringing my designs in from Figma, I'll use the Figma MCP. If they're in Paper, I just send a link.
Once the prototype server is set up, I'll ask my agent to install Agentation so I can give instructions on the changes I want right on the page. If I want to handle a change myself, I'll use the Figma plugin to pull my designs from the web and paste them into Figma.
It's important to note that designs pulled into Figma aren't 100% accurate, since bringing code into a vector-based canvas is kinda messy.
From here, convergence becomes extremely subjective and kinda up to your own personal taste. There is no specific method to get to “perfection”, but there are a couple of rules you can get your agent to follow to audit your work: WCAG, typography, accessibility checks, etc.
Either way, convergence largely depends on the scale of what I'm working on; some screens just need minor tweaks, other times I go…