Repository navigation
This release adds site mode, for building a whole site or a page that has to convert, and a larger set of motion references. Existing briefs and sites work as before.
Added
- Site mode. For a brief that asks for several pages, or for one page whose job is to get a visitor to act, the skill now works in stages: discovery, content, routes, wireframes, tokens, design, motion, build, checks. Each stage writes one short file (
DISCOVERY.md,CONTENT.md,routes.json, wireframes,tokens.json,DESIGN.md,MOTION.md), with filled-in copies intemplates/site-mode/. A one-page brief gets one short file per stage.SKILL.mdhas a "Site mode" section. - New checks for site mode. Each writes PASS, FAIL, REVIEW or PENDING records to
check/qa.json.check_plan.mjscovers routes, visitor tasks, claims and asset rights.check_layout.mjscovers overflow, clipped text, overlaps, tap targets, line length and focus hidden by sticky bars, at 320, 390, 768 and 1440 px.check_a11y.mjsruns axe-core 4.14.1 (fetched at check time with an integrity hash, never part of a site) and walks the Tab key to the main action.check_journeys.mjsruns the main task fromjourneys.json.check_meta.mjscovers title, description, canonical link, share image, robots and sitemap. Each has a passing and a failing fixture intests/fixtures/design-checks/. build_tokens.mjsturnstokens.jsonintosite/tokens.css. It rejects missing references and alias cycles, and fails any text pair declared intokens.jsonthat is below WCAG AA in light or dark (only declared pairs are measured).build_sitemap.mjswritesSITEMAP.mdandsitemap.xmlfromroutes.json.examples/larkspur: a three-page launch site for a made-up product, built through every stage, with its stage files,qa.jsonandsite-report.json.references/page-blueprints.md(what each kind of page contains and in what order),references/design-review.md(a rubric for a second reader, with the muted, phone and 480 px tests), and sections 10 to 15 ofdesign-fundamentals.md(type, line length, colour roles, images, responsive sweep, forms and states, in numbers).- 27 motion pattern recipes in
references/patterns/, among them hero sequence, pinned scene, horizontal scroll, marquee, magnetic button, mask reveal, number counter, page transition and shader background. Each gives when to use it, when not, a performance and accessibility budget, a reduced-motion form and a sketch to start from (its script parses and its kit imports exist; it is not a tested page, the examples are).route.mjsnow lists the patterns that match the words in a brief. references/motion-doctrine.md: timing, easing, blur, transition and pacing rules, with web examples.references/web-references.md: a library of sites, component libraries and technique demos to study, each with what to learn from it and its stated terms.check_links.mjstests every link in it (B2M_CHECK_LINKS=1 bash tests/run_checks.sh).- A tuning panel for development. Add
?tuneto a page that includeskit/tune.jsand Tweakpane shows sliders for its values.strip_tune.mjsremoves it from a build, andcheck_site.mjsfails a site that ships it.
Changed
- GSAP is pinned to 3.15.1 and three.js to 0.187.0 everywhere, including
doctor.shand the example credits. A test fails if any other version is written next to those names. - SVG lines are drawn with their measured length (
getTotalLength()) instead ofpathLength="1", which drew the wrong amount with a non-scaling stroke and failed in frame-by-frame renders. The kit, the stack references,relayandsproutfollow this one rule. - The GSAP reference and
tidewaterusepower3.outfor dots and cards that appear, not an overshootingback.out(2.5). - The layout and tap-target probes moved from
check_site.mjsintoscripts/_probes.mjs. A radio button or checkbox with a label is now measured by its label, which takes the click. A link is exempt from the 24 px minimum only inside a sentence: a menu link or a link alone on its line is a target like any other (keelingandlarkspurwere adjusted). - A checker run with PENDING checks now ends
RESULT: INCOMPLETE, never PASS;--strictexits 1 on PENDING as well as REVIEW, andqa.jsoncarriesverdict,completeand stale records from an older build ofsite/. - The router weighs a pinned or scrubbed scene above a passing mention of a marquee, so such a brief gets GSAP; a marquee alone is a CSS loop.
- The SKILL.md description is under the 1,024-character Agent Skills limit.
- The credits name only the software the skill loads or downloads and the data, images and fonts it ships.
RESOURCES.mdis a reading list. - The credits in the README and
references/licences.mdlist every tool the skill calls, with its licence.
Fixed
- The examples now pass the site-mode checks. Every example page has a canonical link,
og:urland a 1200 x 630og:image(halvorsenalso a sitemap and robots.txt).relay's step logs wrap instead of scrolling sideways, and its headline settles beforeready.sprout's pots wrap to three and two at 320 px so the names no longer overlap. Keyboard focus inhalden-oneis no longer smooth-scrolled, so it lands on screen at once.tidewaterandkeelingkeep text contrast at 3:1 or 4.5:1 while dimmed, andtidewater's sideways gallery is a labelled region you can reach with the keyboard. - The site checkers no longer report five false failures: screen-reader text hidden with inline styles, an intended ellipsis (now REVIEW), text in a scroller inside an overflow-hidden parent, axe measuring colours in the middle of a fade, and the focus walk during a long smooth scroll.
- The checkers now run when started through a symlinked path. Before, they exited without doing anything.
- On the first run, the Playwright download wrote npm output into
--jsonoutput, which broke anything reading it. It now goes to stderr. - The style atlas generator writes the canonical,
og:urlandog:imagetags that its example carries. check_layout,check_a11yandcheck_journeysFAIL a route that answers 404 or is not HTML, instead of measuring the error page as a pass.check_layout --wireframesfindswireframes/index.htmlfor a one-template site, ascheck_plandoes.check_a11yruns axe-core on a page with a strict Content-Security-Policy (it used to crash); the hash check is unchanged.- The overlap check catches text painted on top of other text at the same spot (two slides left visible) and ignores text made invisible by an ancestor's opacity.
check_metajudges robots.txt by the group for every crawler, so blocking one named bot is not a failure; it reads anog:imagewith a query string from its file, and fails a sitemap with relative addresses.build_sitemaprefuses to write one withoutsite.origin.check_plandecodes encoded and non-ASCII link paths, and fails a built site that still carries the dev-only tuning panel. Wrong field types inroutes.jsonare refused with a message instead of a crash.check_journeysfails a journey with no expectation and an unknown viewport name (one journey, not the whole run), sends an expectation already true before the steps to REVIEW, and can expect an anchor ("url": "/#when"). The template journey now expects the anchor its link leads to.--out=dirworks, a value option with nothing after it is an error, and an unusable--widthsor--themesstops the run instead of printing PASS over nothing.check_linkstells a bot check from a page that really answers 403, which now counts like a dead link.- The checkers' static server refuses symlinks that point out of its folder and answers a malformed address with 400. The one-time playwright-core install repairs a broken copy, removes old copies, and starts npm without a shell.
- Naming Tweakpane in a credits page no longer counts as shipping the tuning panel.
- The tests run from a folder whose path has a space, a browser test fails (not skips) when a checker crashes, and CI prints failing and skipped tests instead of discarding them.