What a design!

v1.0.0
io.github.zeshutmax/whata-design Checked 1 day ago Published 1 day ago

Real homepages measured section by section: sections, rules and recipes for coding agents.

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

get_process Process map

The design process: stages, their steps (inputs, outputs), loops and tracks (quick: one sitting from library sections, the default for a short request; sections: client work; full, lean, sprint). Call first on client work; pass track to see only the steps it runs, or stage for one stage. Follow with get_step.

ParameterTypeDescription
stagestringone stage only
trackstringonly the steps this track runs, with its days and replaces map

get_step Step instructions

How to do one process step: procedure, output template, tools, gates, done-when and pitfalls, plus which tracks run it. Pass track to drop the parts other tracks use.

ParameterTypeDescription
slug *stringstep slug from get_process, e.g. explore-directions
trackstringonly the parts that apply to this track

get_guidelines Quality rules

Testable design rules with severity, why, how to check and what to do while designing. No arguments lists the topics; topic returns its rules (blockers, build, accessibility, usability, craft, copy, components, distinct, conversion, brand, coga, or a rule group); ids returns those rules. Call before designing and when a review fails a rule.

ParameterTypeDescription
idsarray
limitintegerdefault 30, most severe first
severitystring
topicstringa topic or group from the list (no arguments), or a rule topic or id fragment

get_recipe Style recipes

How to do a style (glassmorphism, dark-cyber, minimal, hero-video, parallax, ...) and still pass the quality rules: steps, what to keep, what to avoid. Pass the tag slugs of the styles you plan to use, or a recipe slug; no arguments lists the recipes. Call before you design in a style.

ParameterTypeDescription
compactbooleansteps without the long how and code; default true when more than 3 tags are passed
maxCharsintegersize cap, default 60000; steps are cut to fit
slugstring
tagsarray

get_principles Design principles

Named design principles (Rams, Nielsen's heuristics, Norman, POUR, Gestalt, inclusive design, GOV.UK) with how to apply and check each. Pass group for one set.

ParameterTypeDescription
groupstringone group; nielsen, rams, norman, pour and gestalt name theirs

check_contrast WCAG contrast

WCAG 2 contrast ratios for colour pairs (#rgb or #rrggbb). role: text (4.5:1, default), large-text (3:1, 24 px or 18.66 px bold and up) or ui (3:1: controls, borders, icons, focus rings). Returns allPass, a summary, the failing pairs and every result. Call on every text and control colour before you ship.

ParameterTypeDescription
pairs *array

list_tags Taxonomy

The tag vocabulary the library and recommend use. No arguments lists the facets (industry, product-kind, art-style, mood, ...) with what each answers and how many tags it has; facet returns that facet's tag slugs, names, aliases and definitions.

ParameterTypeDescription
facetstringone facet's tags

search_sites Search the library

Finds library sites by tags (a group tag includes the tags under it), words and audit state. Each item: slug, title, url, summary, niche, blockerFails and a thumbnail; include adds tags, palette and more. Returns total, totalInLibrary and a note when the result is empty or the library is small. An unknown tag is an error with the nearest real ones.

ParameterTypeDescription
allOfarray
anyOfarray
cursorstring
includearrayadd these to each item: tags, palette, theme, status, collection
limitinteger
noneOfarray
passesBlockersbooleanonly sites with no failed blocker rule
statusstring
textstringwords in what a site is (title, first sentence of its summary, meta description, domain)
textInstringall: also search the design descriptions (how the page looks)

get_site One library site

One site's facts: tags, palette, fonts, style record and the quality rules it fails (read them before copying anything). format returns only its design system instead: tokens (W3C design tokens JSON), css (custom properties) or design-md (DESIGN.md).

ParameterTypeDescription
slug *string
formatstringthe site's design system as tokens, css or design-md
includearray

find_by_color Sites by colour

Library sites with a colour close to hex in their palette (OKLab distance), closest first; role narrows to background, text or accent. Items as in search_sites, plus the matching colour.

ParameterTypeDescription
hex *string#rgb or #rrggbb
includearrayadd these to each item: tags, palette, theme, status, collection
limitintegerdefault 12
maxDeltaEnumberlargest colour distance to count, default 12
rolestring
statusstring

find_similar Similar sites

Library sites that share the most tags with one site (weighted by facet), with the tags they share. Call to widen a reference set from one site you like.

ParameterTypeDescription
slug *string
includearrayadd these to each item: tags, palette, theme, status, collection
limitintegerdefault 10
statusstring

compare Compare 2 to 4 sites

Two to four library sites side by side: shared and different tags, theme, palette, fonts and audit state.

ParameterTypeDescription
slugs *array

recommend Brief to references

Reads a brief (industry, product, audience, goal, style) and returns up to 5 library sites as items, closest to its niche first, each with a reason and its niche; the tags it matched, recipes, rules to watch and trends; and a coverage note with sections by role when the library has few sites in that niche. Call at the start of a project. Results are options to show the client, not a decision. Pass tag slugs as tags to steer it, and library slugs the client liked as taste.

ParameterTypeDescription
brief *string
tagsarray
tastearraylibrary slugs the client picked (from the screenshots you showed)

plan_graphics Graphics plan per section

Proposes a graphic for each section: a chart or diagram drawn in code from real content, type as image, an SVG motif, a live object, a real photograph, or (only with allowGenerated) a paid generated image, which needs the client's yes per batch.

ParameterTypeDescription
sections *array
allowGeneratedbooleaninclude paid generated images as an option (still needs the client's yes)
tokensstringtokens.css or DESIGN.md text

get_base Base kit parts

The fallback for roles no library section covers: audited page parts (skip link, header with a mobile menu, three hero skeletons, features, steps, facts, FAQ, a form with its states, a closing band, a footer) driven by tokens and passing the audit at every width. No arguments lists the parts; kind returns one part's HTML; kind "page" a whole page. backdrop returns a code-drawn SVG hero backdrop instead (aurora, field, contours, bigword; "" lists them). Use library sections first (list_library_sections).

ParameterTypeDescription
backdropstringaurora | field | contours | bigword; empty lists them with their options
demobooleanfill the [slots] with neutral demo text
kindstring
kindsarray
optionsobjectbackdrop options: colors, bg, values, highlight, label, text, seed ...

get_craft How the library is built

The library's craft numbers as 25th, 50th and 75th percentiles: scale contrast (headline over body), type scale step, headline leading and tracking, section whitespace in body units, lead-object share of the first screen, motion timing, scroll effects. Pass slugs for those sites' own numbers. Call when setting the type scale and spacing.

ParameterTypeDescription
slugsarray

get_moves Recurring moves

Moves that strong sites repeat (oversized type with one object, pinned scene, chaptered story, floating dock, type-only hero, data as image, product showcase, gallery index, 3D hero, moving proof strip): what, why, how, pitfalls, recipes and library examples. Pass an industry or product-kind tag (restaurant, saas) for the moves sites in that niche use, a style tag to filter, or id for one.

ParameterTypeDescription
idstringone move
tagsarray

list_library_sections Library sections

Finished sections rebuilt from library sites, the default way to build a page: each item has id, role (hero, nav, features, proof, form, ...), title and source industry. role filters; detail adds what each is, its adaptation slots, the shared CSS/JS files and how to use them. Pick 2 to 4, then call get_library_section for each. For a role no section covers, use get_base.

ParameterTypeDescription
detailbooleanwhat, slots, files, the worked example and how to use them
rolestringonly sections with this role

get_library_section One library section

One library section, ready to copy: its spec (layout numbers, motion beats, bans, adaptation slots, accessibility changes), its markup with neutral placeholder copy and images, screenshots of it on its source site, and the URLs of the shared sections.css and sections.js. Copy it and change only the adaptation slots.

ParameterTypeDescription
id *stringsection id from list_library_sections
markupbooleaninclude the markup; by default it comes unless the reply would be too large

get_studio Studio method (award-grade craft)

Craft references by topic: concepts, art-direction, typography, layout, motion, engine (motion engine code), nextjs and astro adapters, webgl, patterns, content, quality (developer checklist), quality-bar, critic (a brief and 1 to 10 rubric for a fresh critic subagent and how to run the scoring pass), anatomy, ship. No topic lists them with the step each serves; section narrows to one ## heading.

ParameterTypeDescription
maxCharsinteger
sectionstring
topicstringone topic