Roast My Design System
v5.2.1Audit 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.
| Parameter | Type | Description |
|---|---|---|
path | string | Repo-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.
| Parameter | Type | Description |
|---|---|---|
query * | string | Component 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.
| Parameter | Type | Description |
|---|---|---|
value * | string | Colour 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.
| Parameter | Type | Description |
|---|---|---|
code * | string | The code to check |
file | string | Intended 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.