Roast My Design System

v5.2.1
io.github.pencilrebel/roast-my-design-system Checked 9 hours ago Published 3 months ago

Audit your Design System and serve your Agent the rules that keep AI-written UI on-system.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

roast_get_context

Design-system context before writing UI in this repo: tokens, canonical components, duplicates, spacing and type rules, from a real scan. Optional path ("packages/ui") narrows the slice.

ParameterTypeDescription
pathstringRepo-relative folder (optional)

roast_find_component

Find the canonical component for a name or intent ("icon button"). Returns import path, usage count and a real usage example, or an honest zero. Ties are reported, never guessed.

ParameterTypeDescription
query *stringComponent name or intent

roast_find_token

Snap a raw value (#111111, 13px) to this repo's nearest token or scale step. Says so when no scale exists.

ParameterTypeDescription
value *stringColour or length value

roast_validate

Check code before saving: hardcoded colours, near-token twins, off-scale spacing, arbitrary brackets, inline styles, !important, duplicate components. Findings name the fix.

ParameterTypeDescription
code *stringThe code to check
filestringIntended file path (optional)

roast_review

Review the working tree's changed files (git diff + untracked) against the design system. Reads the diff itself; send no code. Call before finishing UI work.