The Design System Skills: How Each Rule Gets Made and Kept
AI builds screens fast. Without written rules, every new screen makes its own choices, and the app slowly turns into five apps stitched together.
You notice it as a founder when two pages that do the same job look different, and nobody can say which one is right.
I stop that with four AI skills and one small script. A skill is a set of written steps that Claude Code follows the same way every time. I wrote all four myself. This post shows what each one does. For the process from your side, read How I Set Up the Design System for Your Project.
What one check found
On a job-alert app I built, I ran the drift check over the admin pages on 2026-10-15. The app already had written rules. The admin pages had grown on their own.
The check found 9 places where the pages had drifted from the rules:
- A boxed table sitting inside another boxed panel, in 12 spots. The rules say no box inside a box.
- Error messages in red text inside tables, where a status label should carry the state.
- A date that said “None” where it should say “Never”.
- A search with no results that showed the “you have nothing yet” screen instead of “no match, clear the filter”.
All 9 were fixed the same day. The check also listed 4 judgment calls, like whether a label may hold a count. A person decided each one, and they were fixed that day too.
Before, each admin page looked a little different. After, they follow the same rules as the rest of the app.
The five tools, in plain words
| Tool | What it answers | Uses AI? |
|---|---|---|
| The design review | Does the design fit what the app is for? | Yes |
| The starter | What are all the rules, from zero? | Yes |
| The one-rule tool | What should this one new or changed rule be? | Yes |
| The design guard | Does the code break a basic rule? | No, a plain text search |
| The drift check | Has the app drifted from the rules? | Yes |
The design review checks the whole design, top down. Each part can be right on its own and still not add up. It starts with questions, one at a time: who uses the app, what is the one job it must do best, all day or once a week, desktop or phone, calm or bold. Then it takes screenshots of the main screens and writes a step-by-step upgrade plan. Each step is shown to you as a screenshot and only shipped after you say yes.
The starter is for an app with no written rules. It sets up a small rules website, then works through 13 sections in a fixed order, from colours to wording. Colours come first because almost everything uses them. Wording comes last because it sits on top of everything. If the app belongs to a group of apps that already has a system, it does not start a second one. It brings the app in line with the rules already decided.
The one-rule tool is for when a rule is missing or needs a second look. It finds published guidance, counts what the app does today, builds two to four options on a real page with your own content, gives a recommendation, and stops. Nothing changes until you pick.
The design guard is a small script, not AI. It searches the code for patterns that break the basic rules: a colour typed by hand instead of taken from the palette, a font weight the rules don’t allow, a plain table instead of the app’s own. On the job-alert app it holds 19 checks. If it finds one, the check fails and it says what to use instead. It only catches what it was told to look for.
The drift check catches what a text search can’t see: a success message for something already on screen, an empty list with no next step, two “most important” buttons side by side. It reads the written rules fresh each time, so it never checks against an old version. The admin check above came from this tool.
Where a person still decides
The AI does the research, builds the options and makes a recommendation. It never picks. Every rule in the system is chosen by you, by looking at real options on your own screens.
The same goes for fixes. The script blocks the obvious breaks. The drift check fixes only the clear-cut ones. Everything that needs judgment goes to a person.
Check your own app
You can do this without me, in ten minutes:
- Open five screens side by side. Do the main buttons look the same? Does red mean the same thing everywhere?
- Ask where the rules are written. “In the designer’s head” or “in an old file” means each new screen guesses.
- Ask what stops a new screen from breaking them. A shared button that already has the right style is a good answer. “We review it by eye” is not.
- Ask when the app was last checked against the rules. If never, drift has already started.
You don’t need to write the rules or run any of these tools. I run them, show you the options on your own screens, and you pick. The checks keep running after that, so the system stays true as the app grows.
I use the same approach for code review: default tools where the job is the same for every app, custom checks where it depends on your rules. More in The PR Review Skill. You can see two finished systems on the design systems page.
The short version
Written rules stop an AI-built app from turning into five apps. Four skills help decide the rules with you and check the app against them. A plain script blocks the obvious breaks. You pick every rule. On a job-alert SaaS I built end to end, one check over the admin pages found 9 drifts, and all were fixed the same day.
How many different button styles does your app have today?
The skills and what sits under them.
| Tool | Command | Source |
|---|---|---|
| Design review | /design-review | Custom Claude Code skill |
| Starter | /design-system-bootstrap | Custom Claude Code skill |
| One-rule tool | /design-system-section | Custom Claude Code skill |
| Design guard | npm run design:guard | Custom Node script |
| Drift check | /design-drift | Custom Claude Code skill |
- The 13 sections, in order: colours, buttons, forms, status labels, surfaces, typography, feedback, tables, spacing, icons, charts, motion, wording. The rules of record are one
*-system.mdfile per section in the design-system repo. The app keeps copies, and a sync check fails when the app’s shared components differ from the repo. - The one-rule loop: two to four web searches for published guidance (Nielsen Norman Group, Baymard, IBM Carbon, Google Material, WCAG), every link kept. Then an audit with file and line for each case. If one pattern already wins most of the time, it usually becomes the leading option. Two to four options render side by side. The skill stops and waits for a pick. The pick becomes a written rule with its reasons and sources, and the shared components change in both the rules site and the app. If the rule can be checked by a script, the skill adds it to the design guard.
- The design guard is a regex pass over
app/**/*.tsx,components/**/*.tsxandlib/**/*.ts, with the shared primitives and email templates excluded. Each finding printsfile:line rule - message, and any finding exits non-zero. It runs inside the full local test run. Strict and predictable, and blind to anything it was not told to look for. - The drift check works in two passes: a fast grep across the whole app, then an AI read of the flagged files and a sample of each kind of screen. The report is sorted by section, each finding with file, rule, problem and fix. With
--fixit applies only the mechanical fixes, on a separate branch for review. It first checks the local checkout is not behindorigin/main, because auditing stale code reports drift that is already fixed. - What is not custom: web search, file reading and editing come with Claude Code. Screenshots use Playwright. The research comes from teams who tested it at scale. I find it and link it, I don’t invent it.
- Why custom at all: no general tool knows that colours are decided before buttons, or that it should stop and wait for a pick. A linter can flag a hand-typed colour. It can’t tell that a success message repeats what is already on screen.
More Posts
All posts
November 25, 2026
Why Your App Went Offline on Vercel's Free Plan (and How to Stay Under the Limits)
Vercel's free plan pauses every site on the account when one monthly limit runs out. What the limits mean in plain words, what uses them up, and the fixes, from a real case.
November 24, 2026
Why Your Project Starts With a Small Paid Step: Requirements and an Estimate Before the Build
A price given before the work is measured is a guess, and someone pays for it later. What a small paid first step gets you: written decisions, a cost range and a time range, and the choice to stop there.