/polymath-design:design-system-conformancefrom polymath-design
Check a UI surface against the project's design system — tokens, components, patterns; flag bespoke values that should be tokens.
Ships in polymath-design. 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.
Walk a UI surface against the project's design system. Output is per-deviation findings: what bespoke value should become a token, or which off-system component should be replaced.
Mode: analytical — judgment inside a fixed frame. Keep the output shape; every verdict cites its evidence; unknowns are marked [TBD] or [VERIFY], never filled in.
color, font-size, font-family, font-weight, line-height, border-radius, box-shadow, spacing (margin/padding). Each hardcoded value is a finding unless it's documented as an exception.<button>, <input>, <select>, <a> styled bespoke. If the design system ships a <Button> component, the page should use it.padding: 13px is a finding — pick 12 or 16.Design-system conformance: <surface>
Tokens (out-of-system):
- .price color: #2D5BFF → use `color.brand.500` (#2563EB).
Note: bespoke value is darker than
the token; if intentional, ask the
DS team to add `color.brand.600`.
- .card padding: 13px 14px → use `space.3 space.4` (12px 16px).
- .header font-size: 22px → use `text.lg` (20px) or `text.xl` (24px).
Picking 22 splits the scale.
Components (bespoke instead of system):
- .my-button is a styled <a>. Replace with <Button variant="primary">
from @example/ds.
- .my-modal: bespoke modal pattern. Use <Modal> from the system; if
a needed feature is missing, file an issue against the DS, don't
inline a new one.
Patterns:
- Form labels are placeholders, not labels. DS rule + WCAG. Move to
real labels above the field.
Iconography:
- .icon-trash is a stroke-weight-1 icon imported from Heroicons. DS
set is stroke-weight-1.5 from Lucide. Replace.
Spacing scale violations: 4 elements use values off the scale (13, 14,
22, 33). All should snap to the nearest scale value.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
3 skills in this plugin
/a11y-auditAudit a UI against WCAG 2.2 AA — perceivable, operable, understandable, robust; cite SC numbers + element selectors per finding./ui-critiqueCritique a UI surface — hierarchy, density, error/empty/loading states, microcopy; findings keyed to specific elements with concrete corrections.npx claudepluginhub mohammadbafkar/polymath --plugin polymath-design