好文集ChatGPT Plus¥119

how we use AI agents for product design in 2026.

文章目录

部分视频或图片暂未收录,已在正文保留提示;需要时可查看原文。查看原文 ↗

we asked Claude to add a screen to our Figma file.

it came back completely wrong. black fallback colours behind every token, icons with five different stroke weights, frames clipping content they shouldn’t.

not because Claude is bad at this, but because everything that makes our work feel right lived in our heads. Claude had no way to see it. here’s how we fixed that.


the project

we’re building Underlay. our own product. an all-in-one workspace for agencies: projects, tasks, chat, invoices, contracts, meetings.

490 screens. desktop and mobile.

the setup: our designers owned every screen. our product lead wrote a 24-page brief. Claude Code sat next to them inside Figma through the plugin API, editing the file directly.

not generating images. not “suggesting” layouts. when our designers said build this screen, Claude built it. when something was wrong, our designers caught it. Claude fixed it and wrote the rule so it never happened again.

every decision came from the team. Claude just meant one person could do the work of five.

文章配图

@tryunderlay


the fix wasn't better prompts. it was files.

5 things specifically.


1. a token system Claude can't break

every colour in the file is a Figma variable. Claude only binds to tokens. never types a hex value.

foundations → raw palette (244 variables) theme → one brand colour, 12-step scale tokens → what a value is FOR. text/sub-600, bg/weak-50, state/error/base

first real issue: Figma stores a fallback colour when you bind a variable. Claude was writing black.

it looked fine in screenshots, because screenshots resolve variables. our designers opened the actual file: "there are a lot of problems like this, don't you see them?"

// before
{ type: 'SOLID', color: { r: 0, g: 0, b: 0 } }
// after
const { r, g, b } = token.resolveForConsumer(node).value

one fix. rule written. never happens again.

文章配图

token system


2. one markdown file as Claude's memory

sessions end. context compresses. Claude forgets.

every decision goes into one file. design-system.md. every new session starts from it.

one sentence each. the reason. the date.

real examples:

  • 44px buttons: 18px icon, 8px gap. set after icon sizes drifted across mobile.

  • sheet top edge: 54px or 102px. never in between. anything else cuts the iOS nav bar in half.

  • light brand colours: if it can't hit 4.5:1 contrast against white, the button gets darker. a yellow brand still needs to be readable.

the reason matters more than the rule. when Claude hits a case nobody wrote down, the reason is what it works from.

文章配图

design-system.md


3. blocks from real screens, not theory

we didn't build a component library upfront.

our designers drew real screens. noticed what kept getting rebuilt. only then did we name it.

6 blocks ended up carrying almost every mobile screen:

  • list card → invoices, contracts, clients, meetings, notes

  • sheet → menus, pickers, filters

  • form sheet → fields + full-width primary button at the bottom

  • dock → summary left, next action right

  • bottom bar → replaced a floating card after our designers said it looked like "a box inside a box"

  • empty state → icon, one title, one sentence, one button max

once a screen is a stack of named blocks, Claude builds it the same way every time.

文章配图

mobile screens


4. an audit after every batch

this is the one most people skip. don't.

Claude's screenshots don't catch everything. a wrong fallback looks correct in a screenshot because screenshots resolve variables.

so after every batch, Claude runs the same script over the whole file:

  • fallback colours match token values

  • no raw hex anywhere

  • every text node uses a text style

  • icon strokes follow icon size

  • clip only on frames with effects

  • buttons match size, radius, padding rules

real output from the contracts section (7 screens):

fallback colours    0
unbound colours     0
icon strokes       18 → fixed
clip               32 → fixed

one pass caught 112 icon vectors with the wrong stroke weight. another found clip incorrectly set on 858 frames.

our designers stopped hunting for pixel problems. started spending time on whether the design was actually right.

文章配图

audit output


5. every correction becomes a permanent rule

when our team pushes back, 4 things happen:

  • Claude fixes the screen

  • writes the rule + reason into the markdown file

  • adds an audit check if it can be automated

  • applies it to every screen already drawn

"pull the gaps to 8px" → rule written. 59 buttons updated across all mobile pages. audit check added.

we never say the same thing twice. corrections compound. that's the actual speed-up.

文章配图

designer feedback


the numbers

244 desktop frames. 246 mobile frames.

meetings module alone: 44 mobile screens. lobby, the call, notes, scheduling, empty states, error states. section by section, audit after each.


the honest part

Claude handled the volume. it did not make a single design decision.

taste, judgement, "this doesn't feel right" - all our team.

what changed is where that judgement goes. into files Claude reads every session, instead of the same comment written over and over.

our designers spend time on decisions. not fixing pixels.

that's what AI agents are actually good for in 2026.

文章配图

human judgement


if you want to try this:

  1. variables only. agent never touches hex values.

  2. one rule file. one sentence each, reason + date.

  3. draw real screens first. name what you keep rebuilding.

  4. audit what screenshots can't catch. run it after every batch.

  5. when Claude gets something wrong, fix the rule. not just the screen.

the slow work of writing things down is what makes everything after it move fast.

文章配图

rules first

全文完
查看原文