Write design rules your AI coding agent can follow
Engineers now build with Cursor or Claude Code open. A Figma frame shows one state of one screen, and the agent fills every gap with a guess. Here are the rules I wrote for Marinade and Kamino, and a test you can run on your own handoff.
Numbers need a rule, not a screenshot
In 2026 the Marinade app showed 54.96 SOL and 5.8045 SOL in one column, and $4.2856 next to $24.1. The app had no written rule for decimals. An agent copying those screens copies the mismatch.
So I wrote the rules down and proposed them to the team:
- SOL: 4 decimals. 0.0001 SOL is about a cent.
- USD: 2 decimals.
- From 10,000 SOL: 2 decimals.
- mSOL follows SOL. USDC follows USD.
- Tiny amounts never show as zero.
- Balances round down. Debts round up.
The last rule carries the reason: never show more than someone can take out, or less than they owe. A reason lets the agent handle a case the list doesn't cover.
Turn spacing into defaults
I took an inventory of the spacing on every Marinade page and listed where pages disagreed. It became one set of defaults: content widths, margins, three gaps (12, 24 and 40), and card radius and padding for desktop, tablet and mobile.
Three gaps is a choice an agent can make. "Use the spacing from the mockups" is not.
One sentence the whole app follows
At Kamino I led product design as part of Humandone. The layout rule was one sentence: data on the left, actions on the right.
From there, 3 to 4 layouts covered 99% of the app, and two components, cards and table rows, carried about 80% of the interface. Engineers worked from named components, not screenshots. A new product meant a new entry in the navigation, not a new shell.
“Harry was the lead designer for 3 of our platform projects — building our design system from the ground up, crafting Kamino’s UX, and following through with front-end devs on execution. His UX and UI leadership played a key part in Kamino’s growth. Comes highly recommended.”

Dawid Snyders
Head of Product & Marketing, Kamino
Test your own handoff
Pick a screen nobody has designed yet. Give your agent only the rules and the component names, and let it build the screen.
- Where did it guess? Decimals, rounding, empty states and spacing are the usual gaps. Each guess is a missing rule.
- Write each rule in one line, with the reason next to it.
- Keep the rules as plain text in the repo, next to the code the agent reads.
The Marinade case study shows the full system work. If your team ships with agents and the UI keeps drifting, see how I work as a fractional designer or book a call.