buoy

v0.8.26
io.github.ahoybuoy/buoy Checked 9 hours ago Published 13 days ago

The design system your coding agents check before they ship: tokens plus exact UI fixes.

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

list_design_tokens List design tokens

Get this repository's design system: the colors, spacing, typography, radius, shadow and motion values it defines (CSS custom properties, Tailwind theme, tokens.json, Sass variables, DESIGN.md). Without arguments it returns a short summary (counts plus a few tokens per category) to keep context small; pass a category or name substring for the full list. When you are about to edit a specific file, prefer context_for_file, which returns only what that file needs. Repos with no tokens get the values their code already uses most. Categories: color, spacing, typography, shadow, border, sizing, moti…

ParameterTypeDescription
categorystringOnly tokens in this category
limitintegerMax tokens to return (default 200)
querystringCase-insensitive substring of the token name

find_token_for_value Find the token for a literal value

Before you write a literal CSS value (for example '#1a73e8', '16px', '0.5rem'), find the design token in this repository that already holds it, and write the token instead. An empty result means no token has that value; pick the nearest one from list_design_tokens rather than inventing a new value.

ParameterTypeDescription
value *stringThe literal value, e.g. '#ffffff' or '8px'
categorystringRestrict to a category such as color or spacing

context_for_file Design context for the file you are editing

Before you edit a UI file, get only the design context it needs: tokens the file already uses, tokens its neighbours use, the scale steps for the kinds of values it contains (spacing, type, radius), components in the same folder or already imported that you should reuse, the drift already in it, and the team's decisions (values they chose to keep, which you must not replace, and values they always want flagged). Much smaller than the full token list. Then write values from it and run check_ui_against_design_system on the file.

ParameterTypeDescription
file *stringRepository-relative or absolute path of the file you are about to edit (it may not exist yet)

check_ui_against_design_system Check UI code against the design system

After you edit UI code, check it against this repository's design system before you finish. Returns every hardcoded color, spacing, font, radius or shadow that should be a token, with the token to use. When an issue has an `edit`, replace line `edit.line` (currently `edit.before`) with `edit.after` exactly; it is a verified one-line swap. Pass the files you edited to check only those (fast); omit files to check the whole repository. Re-run until it reports no issues.

ParameterTypeDescription
filesarrayRepository-relative or absolute paths to limit the check to

design_system_context Design system overview

Read this once at the start of any task that builds or changes UI. A Markdown summary of this repository's design system: token categories with example names, the existing components to reuse before creating new ones, and the patterns to avoid.

ParameterTypeDescription
detailstringHow much to include (default standard)