A Design-System Plugin So Product Managers Can Build UI with AI
Overview
I built josef-design, a Claude Code plugin that gives AI the design context it needs to build and review UI in Josef's products. Product managers, legal engineers and customer success staff can prototype real UI with AI without inventing new styles or breaking the design system.
My contribution
Product Design Lead Plugin author and owner Design-system documentation Enablement lead
The team
1x Product Design Lead (me) Early users from Product, Engineering and QA
Year
2026
The tools
Claude Code Claude Code plugins and skills GitHub Figma Notion
The activities
Design-system audit Surface registry and status model Rule writing for AI Skill design (context, review, drift check, extraction) Testing on real branches Enablement guide and set-up prompt
Challenge
At Josef, product managers and others had started building prototypes and changes with AI coding agents. One prototype reached near-production quality with no design input at all. That was exciting, but it exposed a problem:
- Josef's products had grown many separate design systems across its repos.
- An audit showed AI agents couldn't tell which design system to use, so they borrowed components from other products, hard-coded colours and invented new tokens.
- Every AI-built change made the UI drift further, and design review happened too late to catch it cheaply.
I couldn't review everything by hand, and I didn't want to slow people down. I needed the design system to travel with the AI.
Approach
Map every product surface and give it a status
I catalogued Josef's product surfaces (the bot UI, dashboard, approval app, Q web app, editors, legacy UI libraries, Slack and Teams apps, admin and email) and gave each one a status that tells the AI how much it may change:
- active: build with what's already there. Don't add new tokens or components.
- frozen: match what's there exactly. New screens go elsewhere.
- host-constrained: another platform's rules win (Slack, Teams, email). Only Josef's brand carries over.
No product was "canonical" yet, so a simple, strict rule applied everywhere: new tokens are banned. Reuse an existing one, or say none fits.
Write design rules an AI can follow
I turned design principles into short, checkable rules:
- don't borrow components or styles from another Josef product,
- end-user text at least 16px, one accent colour, and red/orange/green only for status, always with an icon or word,
- plain, sentence-case copy that says what happens next and never sounds like legal advice,
- when the docs and the code disagree, the code wins, and the AI should say so.
Package it as skills
The plugin has four skills:
- context: names the product, its design system and its status before any UI work,
- design review: reviews a branch and sorts problems into Blocking, Findings and Notes, each with the rule and the fix,
- drift check: tells maintainers when a product's design doc has fallen behind the code,
- extraction: regenerates a product's design doc from its code.
Test it on real work
I tested the plugin on live branches, including a spreadsheet-support feature and an earlier AI-built request demo, and compared its findings with what our front-end engineer had found by hand. On one run, the review caught a site-wide accessibility bug: a stray character in the shared checkbox component meant labels didn't toggle their checkbox, and screen readers didn't read them. It was a one-character fix that affected every form in the dashboard.
Make set-up possible for non-engineers
The plugin is for people outside engineering, so I wrote a getting-started guide with a single prompt to paste into Claude. It checks prerequisites, installs the plugin, runs a test question and reports back in plain language. The guide includes a glossary (repo, branch, PR, token, component), example prompts, "poor uses" and guardrails: generated UI must still be reviewed by a person and an engineer, and checked against WCAG 2.2 AA.
Outcome
- AI-built UI at Josef now starts from the right design system instead of inventing its own.
- A branch review anyone can run, which has already caught a real accessibility bug.
- Product managers and others can prototype UI with less design hand-holding, and design time goes to decisions instead of corrections.
- A foundation for consolidating Josef's many design systems into one.
What I learnt: validating AI-generated UI is the hard part. A plugin can enforce rules, but a human still has to judge whether the result is right, so the guardrails are as important as the skills.