Skip to content
Frontend architecture

Why I Audit Design Systems Before Fixing Screenshots

An agent skill for Codex and Claude Code that audits visual and interaction consistency across frontend routes, states, themes, and viewports.

Get find-ui-inconsistencies on npm
2 min read0 comments
Website

Two pages with mismatched button styles traced back to shared design tokens

Why it was needed

Visual inconsistencies are often reported from a single screenshot, with no record of the route, build, or state it came from and nothing to compare it against. Without responsive states or a systemic root cause, a fix tends to patch one page while the underlying drift stays in place.

A screenshot only counts as evidence when it is tied to a route, viewport, time or build, and state. Responsive and accessibility behavior can only be judged across multiple widths and interaction states. A request for an audit does not authorize implementing fixes.

How it is built

An agent workflow runs the audit and, when asked, the repair. A consistency reference defines what counts as evidence, how findings are ranked by severity, the order in which dependencies are checked, and what verification is expected, while packaging installs the skill on either host.

Compare equivalent elements side by side. Placing matching elements next to each other confirms that a difference is real before it becomes a general rule, so one odd screenshot cannot drive a sweeping change.

Audit shared tokens and primitives first. Page-level drift usually starts in shared design tokens and primitives, so checking them before individual pages finds the source rather than its symptoms.

Fix shared causes before adding overrides. A root fix in shared code touches more of the interface, but component overrides accumulate into more design drift. The skill accepts the broader change to keep the system consistent.

The key decision: Compare equivalent elements side by side.

What changed

Defined screenshot provenance rules and viewport and state coverage. Codified severity levels and the fields every finding must include. Designed dependency-ordered audit and repair sequencing. Packaged cross-host installation and contract tests.

Agents can produce UI findings that someone else can reproduce. Findings distinguish observed defects from inferred causes. Agents propose the smallest systemic fix rather than page-level patches. When implementation is requested, agents recheck affected viewports, states, motion, focus, tests, and builds.

My role: Agent workflow design and automation engineering. Scope: Agent workflow, validation automation, and packaging.

Working through a similar challenge?

Share your context, constraints, and timeline to start a focused conversation.