Impeccable: 62 Deterministic Rules for AI-Generated UI, and the 40 It Found on My Own Blog — aniketkarneai.com | aniketkarneai.com
Wednesday, November 11, 2026 Field notes on autonomous systems ● Amsterdam, NL
daily

Impeccable: 62 Deterministic Rules for AI-Generated UI, and the 40 It Found on My Own Blog

Impeccable ships a Rust engine that detects the visual tells of AI-generated frontends with 62 rules and no LLM in the loop. I installed the 22MB binary, ran it against aniketkarneai.com, and it returned 40 anti-patterns plus 6 advisories — then found my own prose cadence in the em-dash rule.

The number that made me sit up was 40. I pointed Impeccable’s detector at aniketkarneai.com — this site, the one you are reading — and it came back with 40 primary anti-patterns and 6 advisory notes. Not “a few suggestions.” Forty, of which 20 were the same rule firing on different elements: low-contrast, catching text at ratios from 3.4:1 to 4.0:1 against backgrounds where WCAG AA wants 4.5:1.

Impeccable is a design skill for AI coding agents, and the interesting part is not the skill. It is the 22 MB Rust binary underneath, which detects the visual fingerprint of AI-generated frontends using 62 hardcoded rules and no LLM anywhere in the loop. You can run it in CI. It exits non-zero when it finds something. It works on a URL, a local file, or a running Electron app’s DevTools port.

That combination — deterministic rules, machine-checkable exit codes, an engine that a CI runner can invoke — is a genuinely different shape of tool from “ask the model to be tasteful.” I pulled the binary, ran it, and the findings are specific enough to argue with.

The engine is 62 rules and a rule registry

The engine ships as impeccable-linux-x64, 21,984,304 bytes, static-pie linked, stripped. I fetched it from the engine-v0.1.18 release and it runs standalone with no Node runtime:

$ /tmp/impeccable --version
0.1.18+engine

$ /tmp/impeccable detect --list-rules --quiet | wc -l
62

The catalog splits cleanly: 31 rules in the slop category (AI tells) and 31 in quality (accessibility and craft problems). Severity splits three ways — 44 warning, 16 advisory, 2 error. The two errors are script-error and content-hidden-at-rest, which is the one that matters most for agent-generated code:

A large share of the page text sits at opacity 0 or visibility hidden even after every reveal handler had a chance to run. This is the failed-reveal signature: the content shipped but never becomes visible.

That is a failure mode that only exists because code is written by a model that assumed its JS ran. An agent writing a scroll-reveal animation and getting the intersection observer wrong ships a page whose content is invisible, and nothing in a screenshot review catches it because the screenshot is of the rendered page and the content is simply absent.

The registry itself lives in crates/foundation/src/registry.rs and is a port of an earlier JavaScript registry — the JS file itself is gone from the tree, though the Rust file still carries /// JS \skillSection`doc comments pointing at the fields it inherited. Each rule is a static struct withid, category, scopes, severity, name, description, plus two optional fields pointing back into the skill prose — skill_sectionandskill_guideline`. So the rule registry and the prompt that tells the agent how to fix it are the same source of truth, not two files that drift.

What makes the rules good is that they are written as specific artifacts, not vibes. side-tab fires on “thick colored border on one side of a card — the most recognizable tell of AI-generated UIs.” icon-tile-stack fires on “a small rounded-square icon container above a heading,” which the description calls “the universal AI feature-card template — every generator outputs this exact shape.” dark-glow catches “a zero-offset chromatic halo on any background, or any colored blurred shadow on a dark background.”

There is a gpt-thin-border-wide-shadow rule and a codex-grid-background rule. Both are advisory, and both are named after the model whose output taught the author the tell.

What it found on my blog

Desktop viewport, 1280x800:

PRIMARY findings: 40
   20  low-contrast
   13  undersized-ui-text
    2  line-length
    1  blinking-cursor
    1  italic-serif-display
    1  hero-eyebrow-chip
    1  cream-palette
    1  marquee
ADVISORY: 6
    5  unbalanced-heading
    1  codex-grid-background

At 390x844, the mobile pass: 23 primary (12 undersized-ui-text, 8 low-contrast, plus blinking-cursor, cream-palette, marquee) and 1 advisory.

Let me be specific about the contrast findings, because they are the ones I am changing. The muted ink color in my palette is #857d6d, and the page background is #f3f0e8 — a contrast ratio of 3.58:1. The secondary paper #faf7f0 against the same ink gives 3.81:1. WCAG AA for body text wants 4.5:1. My accent orange #e8480f on #faf7f0 is 3.66:1, and white on that orange is 3.91:1 — which means my orange buttons fail AA for their own label text. (The off-white #fff6ee on that orange is 3.67:1, and the orange-on-cream pairing is the one I had written down wrong.) I have been shipping that on every post card for months. Nobody on a phone in sunlight is going to tell me about it.

The undersized-ui-text rule is the one with the most honest prose attached to it. It has an 11px floor for functional text and a 10px floor for non-interactive legal smallprint, and the description contains a line that reads like it was written specifically to close an escape hatch:

Being ON the DESIGN.md size ramp does not exempt a value here: adding 8px to the ramp launders the token but not the legibility problem, and that is exactly the escape hatch this rule closes.

Nine of my meta rows and legends sit at 10.4px — “Articles published”, “Years in DevOps & AI”, “Solutions Architect” among them — and four more at 10px, all under the 11px floor. The rule is right. My DESIGN.md declares a ramp and I put a token on it that is below the floor.

Two of the slop hits are worth naming because I made those choices on purpose and the rule is still correct. italic-serif-display fired on my 90px Fraunces italic h1: “Oversized italic serif (Fraunces, Recoleta, Playfair, Newsreader-italic) as the primary hero headline reads as taste in isolation but has become the universal AI-startup landing page hero.” The rule even acknowledges the escape: “Editorial / magazine register may legitimately want this — judge by context.” My site is an editorial magazine register, and I have made a deliberate choice here. That is exactly the kind of finding the advisory severity exists for. It is still a warning, though, which tells me the author does not fully trust the context argument.

cream-palette fired on rgb(243, 240, 232). The rule’s description: “A warm cream or beige page background has become the default ‘tasteful’ AI surface, reached for by reflex.” Also a deliberate choice, also flagged.

The marquee rule is the one I am not going to argue with. My ticker scroller runs an infinite horizontal loop animation. The rule’s reasoning: “Continuously auto-scrolling content demands attention it has not earned and hides half its content at any moment.”

The em-dash rule found my own prose

Here is the part I did not expect to write about. The detector has a rule for prose, not just pixels. em-dash-overuse is advisory, and it fires on density, not count — “at least 8 em-dashes (— or —) at a density near one per 500 characters of body text.”

I ran it on the built pages of my own posts. The REA post from October 20 came back with 82 em-dashes in body text — one advisory note, and 192 findings overall on that page. The Lasagna post from the day before: no em-dash finding at all, though it had 87 other findings. So the rule discriminates.

I have written a couple hundred posts with em-dashes in them. The rule exists because em-dash saturation is a recognizable LLM cadence tell, and my writing has it. The rule is advisory rather than a warning on purpose — the author notes “humans use em-dashes legitimately.” Fair. But the tool is reading my posts and finding the thing it was built to find, and the thing it found is me.

So I ran it on this post before publishing it. The built page came back with 43 em-dashes in body text and the same advisory note, alongside 115 findings on the page. I could have trimmed them and I did not, because a post about a detector that reads your writing should not pretend the writing passes. The advisory is the honest outcome: the rule fired, and the exit code stayed at 2 because the page has primary findings of its own — the advisory did not move it.

Two designs, one detector

To check whether the rules actually discriminate or just fire on everything, I built two control pages. The first was a deliberate pile of tells: purple-to-cyan gradient body, Inter, gradient-clipped heading, cards nested inside cards, a TRUSTED BY TEAMS eyebrow chip, and copy reading “Unlock enterprise-grade productivity for modern teams.”

6 anti-patterns found.
   2  gradient-text
   1  overused-font
   1  nested-cards
   1  marketing-buzzword
   1  ai-color-palette

Six findings on six planted sins. The second control was a plain page — a readable measure, a real heading hierarchy, IBM Plex Sans, no cards, no gradients:

$ /tmp/impeccable detect clean.html
$ echo $?
0

Zero findings, exit 0. That is the whole claim of the tool in one invocation: it is a linter that happens to have opinions, and on a page with no opinions to violate it says nothing.

ai-color-palette is worth a second look, because it charges on a gradient alone but escalates on a combination: “A gradient in one of those hues is the tell on its own; flat neon ink on a dark ground is charged once a second tell hue joins it.” And marketing-buzzword reported 3 buzzword phrases, the snippet being “EAMS Why Us Empower your team to do” — which is my own quoted control-page copy of “Empower your team to do more.” The rule fires on the phrase “empower your team” and reports the surrounding window, which is a little rough around the edges but correct about the phrase.

It refuses to guess when the page is not the page

One detail I did not expect to like this much. Scanning perplexity.ai and replit.com returned:

Error: the page is a bot challenge, not the site (HTTP 403, cf-mitigated: challenge, title "Just a moment..."). Findings would describe the challenge page, so none are reported.

The browser engine has a validity gate that classifies what it actually loaded before scanning it. A Cloudflare interstitial, a PerimeterX “Press & hold” overlay, a Radware bot manager sheet, a final status of 400 or higher — all of these throw, and the CLI reports them as an operational failure with exit code 1 rather than as findings. The reasoning is the right one: a detector that scans “Just a moment…” and reports a missing h1 has told you nothing about the site and everything about the scanner.

Exit codes are worth stating plainly, because this is a CI tool: 0 for a clean scan, 2 when there are primary findings, 1 when a target could not be scanned at all. Operational failure takes precedence over findings on a partial multi-target scan.

It also supports --github, which writes GitHub Actions workflow commands instead of human text:

::warning file=slop.html,title=Gradient text::[gradient-text] background-clip: text + gradient%0AGradient text is decorative rather than meaningful — a common AI tell, especially on headings and metrics. Use solid colors for text.

That is a ::warning annotation on a PR diff. The npm package is already there — 217,398 downloads in the week of October 20-26, 665,451 month to date — and the rule catalog is stable enough that a CI gate on it would not be a moving target.

What it cannot do

The rules are a fingerprint of one era of model output, and they will age badly. gpt-thin-border-wide-shadow and codex-grid-background name two specific generators. When those generators change their defaults, the rules become folklore. The rule descriptions hedge in exactly the right places — italic-serif-display says “judge by context” — but a linter cannot actually take that advice in CI. In a pipeline, context does not exist; the exit code does.

The scope of the tool is also narrower than the marketing implies. It has 62 rules about visual design and prose cadence. It has nothing to say about whether your product is good, whether your information architecture is right, or whether the copy is worth reading. critique and audit as LLM commands live in the skill layer, not the engine, and the skill layer is prose in a markdown file. The deterministic part is genuinely deterministic; the judgment part is exactly as unreliable as it would be anywhere else.

One more limit, and it is the one that bit me: the detector operates on what it can see. Running it against .astro source files falls back to regex matching only, and the CLI says so explicitly — “Rules that need a parsed page (tiny-text, low-contrast and other element rules) did not run on them; findings are an undercount, not a clean bill of health.” It tells you to scan the running dev server instead, or opt into the HTML engine via .impeccable/config.json. An undercount that announces itself is much better than an undercount that does not.

The repo carries the same discipline in its own documentation. PRODUCT.md says outright: “The existing product record names no customer testimonials or quantified outcome studies. Future surfaces must not fabricate them.” The rule that detects fabricated claims in marketing copy runs next to a product record that refuses to make them.

There is a docs/CLI-CONTRACT.md in the repo that is 609,662 bytes, and every verb’s observable behavior is “pinned byte-for-byte by tests/oracle/” — 296 antipattern fixture files, 1,323 golden files, 84 oracle vector files, and a corpus whose aggregate finding count is checked against a number in a release-readiness note (419 to 420 in one merge). For a tool whose entire value proposition is “the same input produces the same verdict,” that is the part I would want reviewed before trusting it in a pipeline.

The parts I could not check

The skill layer is where most of the product actually lives, and I could not exercise it. /impeccable init, /impeccable craft, the 24 commands the skill source lists, the live browser variant mode, the comp-diff pixel-scoring pipeline that compares a build against a design comp with SSIM and quantized histogram intersection — none of that runs without a coding agent in a chat session and a project with a design system to steer. The npm package is a one-line shim: cli/bin/cli.js plus five platform binaries at 0.1.18 (@impeccable/cli-linux-x64 and its four siblings). The heavy lifting on the agent side is the SKILL.md and its reference/ tree, which are generated from skill/SKILL.src.md into 22 provider-specific directories.

What I verified is the engine: 62 rules, five real scans, two controls, and the parts of the CLI contract I could read. What I am reporting on the skill side is the repo’s own documentation, which I have not independently confirmed.

There is also the honesty problem the author has not solved. theater-slop-phrase fires on the word “theater” used dismissively. aphoristic-cadence fires on three or more sections landing on a short rebuttal sentence. marketing-buzzword fires on “empower” and “streamline”. These rules are describing a specific style of writing, and the author of these rules writes in that style constantly — look at the rule descriptions themselves: “the most recognizable tell”, “the universal AI feature-card template”, “every generator outputs this exact shape.” Twenty rules are written in the cadence they are built to catch, and there is no rule for that.

I will leave the unresolved thing where it belongs. A rule set that describes generated output can only be as current as the output it describes, and the two rules named after specific models are the clearest sign that this is a moving target being tracked by hand. Whether a 62-rule catalog of one era’s tells will age into a useful CI gate or into a museum of 2026’s house style is the question I do not have an answer to. The next model generation will tell, and I will not be around for the diff.

References

  • pbakaus/impeccable — the repo. Apache-2.0, 91,956 stars, 5,437 forks, created 2025-11-16, last push 2026-10-28.
  • npm impeccable v4.8.0 — the shim and the platform binaries. 44 versions since 2026-03-30; five platform packages ship at 0.1.18.
  • docs/ENGINE.md — the Rust workspace map: crates/{cli,common,context,hook,live,skills,comp,comp-verbs,detect,html,browser,foundation,core,wasm,bundle,xtask}.
  • docs/CLI-CONTRACT.md — 610 KB of byte-for-byte observable behavior for every verb.
  • docs/HARNESSES.md — the 15-harness frontmatter compatibility matrix, including a note on how Hermes Agent silently ignores harness-specific skill fields.
  • docs/COMP-FIDELITY.md — the comp-diff calibration: comp against itself scores 100%, a 12px shift still scores 87%, a recolor to navy drops to 34%, and sibling comps of the same visual world score 55-59% against each other.
  • crates/foundation/src/registry.rs — the 62-row rule registry, in source order.
Aniket Karne
DevOps & AI Engineer · Amsterdam
Back to all posts
Reader correspondence

Comments

Powered by GitHub Discussions via Giscus. Sign in with GitHub to leave a comment.