Skip to content

find-ui-inconsistencies

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

Role
Agent workflow design and automation engineering
Scope
Agent workflow, validation automation, and packaging
Status
Published npm package v0.1.0
Two pages with mismatched button styles traced back to shared design tokens

Problem

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.

Constraints

  1. C1

    A screenshot only counts as evidence when it is tied to a route, viewport, time or build, and state.

  2. C2

    Responsive and accessibility behavior can only be judged across multiple widths and interaction states.

  3. C3

    A request for an audit does not authorize implementing fixes.

Architecture

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.

01

Skill workflow

The agent workflow reviews typography, spacing, color, layout, shared UI, responsive behavior, skeletons, motion, and visible accessibility states, and repairs only on request.

02

Automation

A consistency reference defines evidence, severity, dependency order, and verification expectations, and packaging supplies portable installation for each host.

Decisions

D1

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.

D2

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.

D3

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.

Contribution

  • 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.

Outcomes

  • 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.

Verified stack

  • Agent Skills
  • JavaScript
  • Node.js
  • npm
  • GitHub Actions
  • CI/CD
  • Git

Working through something similar?

Share your challenge, scope, and timeline to start a focused conversation.