AI YOU
Let’s talk
Case 01Design System · DesignOps · Figma plugin

DS Maturity Audit

A Figma plugin that measures how much of a prototype follows the design system — and tells screens from documentation without spending a single AI token.

CompanyGetnet · Santander Group
RoleDesign Engineer — from heuristic to code
Year2026
StatusIn use by the design teams
DS Maturity AuditCheckout
Frames analyzed0/16
Screens0
Documentation · ignored0
Page adherence—
Problem

DS adherence was measured by eye — and the documentation inside the files sabotaged any attempt at automation.

Solution

A plugin with a custom algorithm that separates screens from documentation and calculates adherence per frame, page and file.

My role

From problem to code: classification heuristic, metric, plugin interface and development.

Result

An objective DS maturity yardstick, running locally — with zero AI tokens.

01Context

A good design system doesn’t guarantee a consistent product.

At Getnet, several design teams work in parallel, in large files, on journeys that span app, web and internal systems. The design system existed and was solid. The question nobody could answer was a different one: how much of what we design actually uses the DS?

Without that answer, adoption conversations turned into opinions. Reviews depended on who was looking, and leadership had no way to track the system’s maturity over time — or to know where to invest in components, documentation or training.

"It’s pretty compliant" is not a metric.— every design review, before the plugin
02Problem

Three obstacles between the DS and a reliable metric.

01

Adherence was subjective

Every review measured it differently. With no common yardstick, there was no way to compare squads, files or progress over time.

02

A prototype isn’t just screens

Real files mix screens with specs, redlines, flows and notes. A naive audit counts all of that as "off the DS" — and the number stops meaning anything.

03

AI for everything gets expensive

Classifying thousands of frames with Figma’s AI would burn tokens, be slow and could give different answers for the same file.

03Goals

What the plugin had to guarantee.

  • ✓Three levels of reading — adherence per frame, per page and per file.
  • ✓Screen × documentation — automatically separate what goes into the metric.
  • ✓Zero AI tokens — run locally, fast and with deterministic results.
  • ✓Explainable — every percentage points to the nodes behind it.
04The algorithm

Reading the file the way a designer would.

Before measuring, the plugin decides what is a screen. Each top-level frame gets a score from structural signals — dimensions, components, auto layout, names, text density, connectors and annotations. All computed locally, in milliseconds.

Below is a simplified version of the heuristic. Toggle the signals and watch the classification change.

Examples
Checkout / 02
Payment
Confirm payment
Confirm
review the button copy!

Screen signals

Documentation signals

+3 +3 +1 +1 = +8
DocumentationScreen
Screen · counts toward the metric

Simplified version for teaching purposes — the real heuristic uses more signals and weights calibrated on real files.

01

Scan

Walks each page’s node tree without leaving Figma.

02

Classification

Screen × documentation via structural signals — zero tokens.

03

Audit

Compares each visual node with the DS libraries, styles and variables.

04

Aggregation

Score per frame, page and file — always traceable to the node.

05The metric

What comes from the DS, divided by what could come from it.

adherence(frame)=DS nodes÷eligible visual nodes
Counts for

Instances from the official libraries, plus published styles and variables: color, typography, spacing and effects.

Counts against

Detached instances, hardcoded values, local styles and fonts off the type scale.

46 DS nodes5 hardcoded2 detached= 87% adherence in the frame

Pages and files use a weighted average by node count: a complex screen weighs more than a simple modal, and the final number reflects the real effort of keeping the product within the system.

06The plugin

An interface that points — not just scores.

Three tabs, three levels of reading: from the file overview down to the exact node that’s off the system, with the suggested fix. This is a navigable prototype — click the tabs and the frames.

DS Maturity Audit✕
07Decisions

What we decided — and what we left out.

✓We decided

  • A deterministic heuristic instead of AI for classification: same file, same result — and zero cost.
  • Measure per visual node, not per whole frame: one off-DS button doesn’t zero out the screen.
  • Documentation struck through, never hidden: transparency builds trust in the number.

✕We dropped

  • Manually tagging documentation frames: doesn’t scale, and nobody remembers to tag.
  • Counting only component instances: it ignored colors and typography outside the tokens.
  • LLM frame by frame: expensive, slow and non-deterministic.
The best AI decision in this project was not using AI where it wasn’t needed.
08Results

A common yardstick for the design system.

0

AI tokens spent separating screens from documentation

3

levels of reading: frame, page and file

~4s

to audit a large file, locally

+18pp

average adherence gain across audited files in 3 months

More than a number, the plugin changed the conversation: design reviews started with the report, leadership gained a way to track DS maturity by squad, and the gaps it flagged became a backlog of components and documentation.

09AI in the process

Where AI came in — and where it didn’t.

With AI

  • Prototyping the plugin code with Claude and Copilot
  • Generating test files full of edge cases
  • Reviewing the interface copy with the Content Agent

No AI, on purpose

  • Screen × documentation classification
  • Adherence and aggregation calculations
  • Defining what counts as DS — a team decision
10Next steps

From yardstick to flow.

  1. A gate in the design SDLC — automatic audit before every handoff.
  2. History per squad in Agent Analytics, to see maturity evolve.
  3. Assisted fixes — the handoff agent suggests and applies the right token.
Fact sheetInspect
Company
Getnet · Santander Group
Year
2026
Role
Design Engineer — heuristic, metric, UI and code
Team
Me + Design System team
Stack
Figma Plugin API · TypeScript · HTML/CSS
Status
In use by the design teams
Next case · 02 Handoff Agent

Paste the Figma link. Get the flow in code.

See all cases