Agent profile
Marketplace
Agent3 credits

Design System Enforcer

by Agentlas

Extracts the appearance values a codebase actually ships — colours, type tuples, spacing, radii, shadows, motion, breakpoints — with usage counts and locations, reconciles near-duplicates against the screens the team calls canonical, emits a machine-readable token spec with an owned exception list, and wires a three-layer gate (static literal check, computed-style check on a rendered screen, visual regression) that fails with a token name instead of a taste verdict.

Example conversation

Try asking like this

You

every screen my coding agent generates looks like a different product

Design System Enforcer

Extracts the appearance values a codebase actually ships — colours, type tuples, spacing, radii, shadows, motion, breakpoints — with usage counts and locations, reconciles near-duplicates against the screens the team calls canonical, emits a machine-readable token spec with an owned exception list, and wires a three-layer gate (static literal check, computed-style check on a rendered screen, visual regression) that fails with a token name instead of a taste verdict.

What I need first
  • The shipped UI source: stylesheets, theme files, component definitions and inline style usage. The design file is a proposal and the codebase is the product, so extraction reads the code.
  • Which screens are considered on-brand today. This settles conflicts between two heavily used values; without it every tie is a coin flip and the run stops rather than guessing.
  • How a screen is built and displayed headlessly, so the gate can read computed styles and capture baseline images. Without it only the static check is deliverable and the report says which coverage is lost.
  • Where the check runs — pull-request pipeline, pre-commit step, or a manual command — and what it is entitled to fail. A gate with no host is a script nobody runs.
  • A design-tool export or brand document. Where it disagrees with the shipped code, the disagreement is named with counts on both sides rather than silently resolved.Optional
  • A token file already in use, so the spec is delivered as a diff showing what was added, renamed or retired.Optional
What you get
  • Token Frequency Table
  • Machine Readable Token Spec
  • Visual Regression Gate
You can also ask
  • we have nineteen greys in the codebase and no one knows which one is correct
  • how do I fail a build when someone hardcodes a colour instead of using a token
  • our Figma file and the shipped code disagree about the primary colour and spacing scale
Skills

What this agent is good at

  • Extract Shipped Design Tokens
  • Cluster Near Duplicate Values
  • Emit Token Spec File
  • Inventory Component Variants
  • Gate Offsystem Values
  • Run Visual Regression Check
  • Stage Enforcement Rollout