Lewitt: Turning Taste into Rules You Can Check
I have lost count of how many times I have handed a coding agent a palette and a type scale, and gotten back a page that looks like every other AI-built site. The hex values match. The font sizes are close enough. Something is still off, and it is usually the same few mistakes: too many gradients, accent colour on every surface, headlines shouting in bold. The agent followed the spec sheet. It ignored the taste.
That is why I made lewitt.
Taste is not a list of values. It is a set of decisions about what not to do. Sol LeWitt wrote precise instructions for wall drawings and let other people execute them. “The idea becomes a machine that makes the art.” I wanted the same kind of instruction set for a website: not just the tokens, but the refusals, written clearly enough that an agent can follow them, and strictly enough that a check can catch when it doesn't.
What lewitt is
lewitt is an agent skill. You give it a URL. It looks at the live pages in an isolated browser, writes down what it actually measured, and turns that into a Design DNA: tokens, a readable taste document, a live preview, and a list of hard rules a coding agent has to follow.
Every finding is tagged Observed, Inferred, Proposed, or Unknown. A guess from a screenshot is never written as if it were a measured CSS value. If a principle could have been written without looking at this particular site, it does not belong.
The skill works in Codex and Claude Code.
Stripe, as a worked example
I ran it on stripe.com. The interesting part is not that Stripe uses indigo. It is how little indigo they use, and where.
The brand colour, #533AFD, covers about 0.2% of the surface, and only on things you can click: the filled button, the outlined button, linked words. No indigo headers, no indigo section backgrounds. There is one gradient, and it is spent on the hero. Everything below is flat white or a pale tint. Display type at 48, 32, and 26px is all weight 300. A light face leaves the artwork loud; a bold headline would fight it.

Those are not vibes. They are choices: this, not that. One of the extracted principles is "Colour is a once-per-page event." Stripe chose a single decorative gradient confined to the hero, over the usual fintech habit of gradient text, gradient buttons, and gradient section backgrounds. Another is "One indigo, only where you can click." At that 0.2% share, indigo always means "do something." A larger share would turn the page into a brand poster.
Each restraint carries a lint check. If an agent building in this language starts pouring gradients over section backgrounds, or painting a card indigo, the check fails. The same idea shows up in the Linear sample, where the extracted restraint is that white is the only action colour, and depth is a hairline, not a shadow, so a class like shadow-lg gets rejected.
This is the part I care about as a designer. I do not have to stand over the agent's shoulder and say "too much purple" for the twentieth time. The refusal is already written down.

Two modes
The default is DNA mode. It inspects the entry page plus up to three representative subpages, then renders a self-contained preview, a taste document, a token file, and an agent-rules.md with the "must not" list pinned at the top—usually in one to two minutes. Full mode adds a runnable reference site built from the same tokens: component states, a few real compositions, stress toggles, and a side-by-side comparison with the source.
That comparison doesn't sugarcoat mismatches. On the Stripe sample, visual fidelity is recorded as partial, with the deviations written down rather than hidden. lewitt never pretends to be a one-to-one clone.
One file is authored by hand: dna.json. The preview, the taste document, the CSS tokens, and the agent rules are all generated from it, in about 33 milliseconds. If someone later edits the markdown by hand, a check catches the drift.
How to use it
You do not have to run the pipeline yourself. Clone the repo, link it into Codex and Claude Code, and run the setup script once so the browser capture can work:
git clone https://github.com/CClishan/lewitt-skill.git ~/Projects/skills/lewittln -s ~/Projects/skills/lewitt ~/.codex/skills/lewittln -s ~/Projects/skills/lewitt ~/.claude/skills/lewittcd ~/Projects/skills/lewittbash scripts/setup.shRendering and linting need Python 3.10+. Then you can just ask:
Use lewitt to analyze https://stripe.comUse lewitt to analyze https://stripe.com --fullWhen you are building, give the agent agent-rules.md and tokens.css, and lint the UI against the extracted restraints before you ship:
python3 scripts/lint_output.py --dest runs/stripe.com --check-code ./srcStill early
v0.1.0 is out, with sample runs for stripe.com, linear.app, and binance.com already in the repo. I still treat this as a test. If you try it, I want the feedback, especially the cases where a rule is too tight, or not tight enough.
The measure-to-pattern-to-taste chain, and the discipline of banning empty adjectives, come from Senlin's taste-skill. The evidence ledger, token layering, and verification table come from DiqingWWW's website-design-system. lewitt is the merge.
The repo is here: github.com/CClishan/lewitt-skill. I also wrote a shorter note about it on X.
Acknowledgements
Built with Gemini / DeepSeek, with a little help from yours truly.