/product-engineer:design-system-adoptionfrom product-engineer
Measures design system adoption by analyzing token coverage vs hardcoded values and component usage vs local re-implementations. Identifies migration hotspots and generates a ratcheted migration plan with lint rules and codemods.
Ships in product-engineer. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A design system only helps where the code uses it. Teams know their design system exists; few know that a third of their colors are still hardcoded or that the product has six button implementations. This skill measures adoption the way you measure test coverage — reproducibly and per area — and turns the result into a migration plan that can't regress.
Find the tokens (CSS custom properties, Tailwind theme, theme object, DTCG files) and the component library: an internal package or folder, or an external one (MUI, Chakra, Mantine, Radix, shadcn/ui, Ant Design, Polaris…). Note which components it provides and how they're imported. If there are no tokens yet, run design-system-extract first.
Scope the measurement to application source. Exclude the design system's own code, generated files, vendored code, tests, stories and fixtures.
For each category, count token usages against hardcoded values in the scoped files, using commands someone else can re-run. Example patterns to adapt to the stack (use ripgrep when available):
| Category | Hardcoded | Token usage |
|---|---|---|
| Color | #[0-9a-fA-F]{3,8}\b, rgba?\(, hsla?\(, oklch\( in styles; Tailwind arbitrary values like bg-[#…] | var(--color-…), theme references, Tailwind classes from the theme palette |
| Spacing | margin, padding, gap with px values off the scale; Tailwind p-[13px] | scale classes, var(--space-…) |
| Font size | font-size: literals, Tailwind text-[15px] | type-scale classes or tokens |
| Radius, shadow, z-index | literals in those properties | tokens |
Report adoption = token usages ÷ (token usages + hardcoded values) per category and per top-level area (feature folder, package or route). Count separately the literals that exactly equal a token value: they're the easy wins.
Expect noise. SVG fills, third-party overrides and one-off illustrations are legitimate. Review a sample of matches for each pattern and state the estimated false-positive rate instead of presenting the number as exact.
For each design-system component, count:
<button>, <input>, <select>, <dialog> and similar elements styled locally where a DS component exists.PrimaryButton, MyModal, CardV2).Report component adoption = DS usages ÷ (DS usages + re-implementations + look-alikes) per component.
Look for UI patterns that appear at least three times without a DS component: cards, list rows, empty states, page headers, stat tiles, form sections. For each candidate, list the variants and states actually used (default, hover, focus, disabled, loading, error), the tokens it should use, and its accessibility requirements — enough for someone to build it once.
Prioritize by frequency × visibility ÷ effort: a hardcoded color on every screen of the main flow beats 30 occurrences in an admin page.
color-no-hex, declaration-property-value-disallowed-list), an ESLint rule on Tailwind arbitrary values, or restricted imports for deprecated components — with a baseline of existing violations or warnings-only on old code, so the rule can land today. Ratchet: the count can go down, never up.Write docs/product/design-system-adoption.md (or the project's docs location) with: the commands used, adoption per category and per area, the component adoption table, hotspots (top files and areas), candidate components with their inventory, and the migration plan. Summarize the headline numbers and the three changes with the best impact-to-effort ratio. Re-running the same commands later shows the trend.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub trystan-sa/product-engineer-skills --plugin product-engineer15 skills in this plugin
/ab-test-designDesign an A/B test that can answer its question — hypothesis, one primary metric, guardrails, randomization unit, minimum detectable effect, sample size and duration with a bundled calculator — decide whether a test is worth running at all, and implement the variant behind the project's feature-flag tool (GrowthBook, LaunchDarkly, Statsig, PostHog, Optimizely, Unleash or in-house flags). Use when asked to A/B test, experiment, split test, or validate a change with data before rolling it out./accessibility-auditAudit and fix accessibility in the product's real UI code against WCAG 2.2 AA — contrast, semantics, keyboard and focus, screen-reader names and announcements, forms and errors, motion, target size — combining the automated checks the project supports (axe, lint rules) with a manual review of what tools can't catch. Use when accessibility is questioned, before shipping user-facing UI, for a compliance review, or when ux-review flags accessibility issues./adoption-planPlan how users will discover, try, activate and keep using a feature — map entry points against the moments users need it, define the adoption funnel and the value moment, design empty states and onboarding, plan launch communication, and diagnose low adoption after launch. Use when launching or relaunching a feature, when a shipped feature is under-used, or when asked about discoverability, onboarding, activation or feature adoption./design-system-extractExtract design tokens — color, typography, spacing, radii, shadows, motion, breakpoints — from a codebase, brand guide or screenshots into a tokens file in the project's own format (CSS variables, Tailwind theme, TypeScript or DTCG JSON), and report where the product disagrees with itself. Use when a project has no tokens yet, when asked to "extract tokens" or "build a design system from the code", or before measuring design-system adoption./experiment-readoutAnalyze a finished A/B test and recommend a decision — validity checks first (sample ratio mismatch, duration, exposure), then lift, confidence intervals and p-values from a bundled script, guardrails and pre-registered segments, and a ship / iterate / roll back call with a stakeholder summary and flag cleanup. Use when an experiment has ended, or when someone asks "did the test win?", "is this significant?", or to read A/B results./feature-briefFrame a feature before it is built — the user problem, a job story, one success metric with baseline and target, the adoption hypothesis, a click budget for the happy path, scope cuts, and kill criteria. Use when starting a new feature, epic or ticket, when someone says "we should build X", or when a spec has no measurable goal.Other plugins' skills for the same job