/saarius-skills:emdash-stitch-designfrom saarius-skills
Design and upgrade EmDash Astro sites with the official Google Stitch CLI (`@google/stitch`), `ai-shed` Stitch MCP (`stitch-mcp`), and GrillTrack. Use for `stitch capture` route snapshots, `DESIGN.md` systems (`stitch upload design --apply`), 5-candidate GrillTrack visual variants, tiebreaker hybrids, upstream EmDash `tokens.css`/`theme.css` theming (plus optional playground preset switchers), and Astro/EmDash translation preserving `FEATURE_MAP.md` hooks.
Ships in saarius-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Pair GrillTrack's product/visual decision loop with the official Google Stitch CLI (@google/stitch) and ai-shed's stitch-mcp server (https://stitch.googleapis.com/mcp, backed by macOS Keychain google-stitch) to design and upgrade EmDash Astro websites without losing server-rendered CMS contracts or FEATURE_MAP.md verification hooks.
Grill & Lock Visual Intent (grilltrack + design.md):
design.md, FEATURE_MAP.md, and .grilltrack/ledger.json..stitch/DESIGN.md following references/taste-and-prompts.md.design.md, .stitch/DESIGN.md, and tokens.css. When distilling lessons from a run back into this skill, keep the method and leave that run's locked values in its own repo. Write each defect a run exposed as one named rule, in the step it belongs to, and give the closeout checks only its mechanical check. Keep each rule in one place and point to it elsewhere. A generic "re-read and confirm" step does not catch defects it does not name.Snapshot the Verified Real Page into Stitch (stitch capture + stitch upload):
stitch_status, or stitch status --json with STITCH_API_KEY read from Keychain google-stitch). List routes with stitch capture routes, start the real EmDash Astro server, and capture the target route's self-contained HTML with stitch capture (a live URL with --wait-for a ready selector, or --tab for an interactive state). Create or select the Stitch project, upload and apply .stitch/DESIGN.md as its Design System, and upload the capture as the route's screen. Commands: references/grilltrack-visual-cycle.md §1.deviceType: "DESKTOP" on screens:batchCreate) whenever your upload route can set it. Uploads without a device type make Stitch give their variants phone-width canvas placeholders that overlap their neighbours (stitch-sdk#383). The CLI's upload screen has no device option yet (stitch-sdk#384).Walk the Complete Surface Checklist (One Variable / Surface at a Time):
stitch capture routes, plus src/pages/ enumeration and live-server crawl on pure SSR output: "server" sites where stitch capture routes reports only plugin endpoints; see references/grilltrack-visual-cycle.md §1) and its shared chrome. Never compound multiple visual variables in one round. When implementation starts depends on how the grill runs; see Choose When to Build below. Adapt item 2 to the site's actual route taxonomy (for editorial indexes, documentation hubs, or directories, replace storefront routes with the index/archive, entry detail, submission/contact, and methodology/about pages). For a storefront the checklist is typically:
design.md + tokens.css): Homepage Layout Architecture (/) → Color Palette (holding chosen layout constant) → Typography Role System (holding chosen layout + palette constant). Explore layout with generated variants. Run the palette and type rounds as deterministic HTML uploads with explicit CSS values, never as generations: uploads hold every other lock exactly and leave the generation budget for layout exploration and surface rounds. Before the first round, read the values the repo pins (references/grilltrack-visual-cycle.md §5) and build them into every candidate, varying only what is free. A round whose candidates differ on a pinned value is decided by the pin, not compared. In rounds 1 to 3 (layout, palette, type), show every candidate as a light and dark pair on desktop and phone — four frames per candidate: desktop light, desktop dark, phone light, phone dark. For a palette candidate, define both halves together as one light-dark(<light>, <dark>) token set in tokens.css so the lock records both modes as a single unit. The dark render costs no extra Stitch generation: re-render the same candidate HTML with prefers-color-scheme: dark emulated (Playwright colorScheme: 'dark').<LiveSearch />, plus a results page if the site needs one). A search that appears in a chosen design ships as a working, labelled text input wired to real results. An icon or link that only opens a search page is not a search control. The results page covers an empty query, no results (with a next step) and results that link to real routes. Where search sits is a grill decision.tokens.css and design.md, and wire every route to them, naming any route that needs a special write path. (2) Implement each later surface's selection in source before opening the next surface's round. (3) Record any surface that is decided but not built as "selected, not implemented". (4) Before the first generation, write a budget plan (for example .stitch/plan.md) that assigns the run's whole generation budget (the cap or credit share set for it, or what its time limit allows) to named rounds in checklist order: generations for layout exploration and for each surface round, none for palette and type (deterministic uploads, item 1). Size each round's candidate count so every planned round fits, and keep a running tally. Do not frame the budget as something to conserve, and do not replace surface generations with hand-authored HTML: that leaves budget unspent and surfaces unjudged. (5) Before opening each round, check that the remaining time covers the round with its records, then the final verification and report; if not, stop opening rounds and style the remaining surfaces from the foundations. At closeout, report generations spent against the plan and rounds judged against rounds planned, from the tally. In such runs, locking everything first tends to leave chosen surfaces unbuilt when the budget runs out.design.md and in every report that lists surfaces: selected, implemented · selected, partly implemented: <what is missing> · selected, not implemented · no round judged; styled from foundations only. A surface whose candidates nobody inspected is never selected.stitch upload screen or stitch_upload_file): Stitch renders pixel-accurate screenshots in about 2 s without changing locked DOM. Download each candidate's HTML and image with stitch download screen; commands, canvas links and local preview are in references/grilltrack-visual-cycle.md §2..stitch/DESIGN.md — the hybrid is one token set whose light half comes from one candidate and dark half from another.prefers-color-scheme: dark emulated (Playwright colorScheme: 'dark') and costs no extra Stitch generation. Storefront choices usually break on mobile first: the nav, hero type scale, grid density, cart controls and tap targets.Handle Unbuilt Code / Plugin Gaps Without Losing UI Momentum:
gh issue create --label smoky-agent) on the relevant repository documenting the gap and desired contract (creating the smoky-agent label first if missing). File issues only for capabilities the code or plugin lacks. An optional feature you chose not to ship is a design decision: record it in design.md, not as an issue. Stitch and other tooling limits are not site gaps; note them in the closeout report. Cite an issue or PR number only when a tool output, file or page read in this session names it.disabled control that looks unlike every enabled action on the site (fill, outline, weight). Never ship a control that looks like it works and does nothing.Align with Upstream EmDash Theming & the Composition Primitives:
@layer base in src/styles/tokens.css with light-dark(<light>, <dark>), and a blank unlayered src/styles/theme.css follows it. A live store ships one palette (an appearance toggle is fine); only starter, playground or prospect-staging sites keep 2–3 presets behind one switcher, whose look and place the grill decides. Reuse the site's blocks, sections and widget areas, and add one only where owners must edit that content in the CMS.Prove on Desktop and Mobile & Archive the Locked References:
design.md beside the GrillTrack ledger (round · variable · every candidate's full screen ID · selected full ID · why, plus content stripped · status · implemented in) and archive its selected screen (references/grilltrack-visual-cycle.md §6). Record contrast ratios when the palette locks, and fill the status and implemented-in paths when the surface is built. Never shorten an ID. When the record replaces an older section that still promises a later decision, mark that section superseded, with the date, in its own text and in the record.bin/verify-web quick and bin/verify-web full, i.e. pnpm verify) after the last source edit. A build plus unit tests is not enough: the full run includes text, format and lint audits, and a failing audit can stop the browser tests before they run. In a capped or unattended run, also run it once the foundations and every route are wired, while there is time to fix failures. Keep each edited file in the repo's existing format (indentation, final newline). In seed or config JSON, change only the keys you need with a targeted text edit, never by parsing and re-serializing the file, then check that it parses and that its diff shows only those keys. List any edit made after the last full run as unverified.display rule on a hidden-toggled element has its own [hidden] { display: none } rule (search scripts and markup for hidden); closed or unsupported actions read as unavailable; no shopper copy from CSS content: or unsupplied markup, no decorative telemetry strips or faux-CAD blueprint labels (references/taste-and-prompts.md §1), and no developer notes; header and footer labels work (with every external Discord, GitHub, and social link verified against its canonical destination rather than # or a placeholder root) or read as plain text; mobile 390×844 proof captures verify window.innerWidth === 390 via Playwright or CDP emulation (references/grilltrack-visual-cycle.md §2a); every locked round has its record row and manifest rows, no ID contains …, each surface has one status that matches across reports, and superseded sections say so in their own text. Report each check with its real output. A check that could not run is reported as not run, with its error, never as a pass.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub saariuslystoned/saariusskills --plugin saarius-skills48 skills in this plugin
/acp-delegationRoute generic requests to use the SaariusSkills ACP plugin or delegate through ACP. The MCP servers come from the separate ai-shed plugin. Discover Grok CLI, Cursor, Antigravity, and Muse native tools, select a suitable harness, verify effective permissions, and submit a bounded task. Use a lane skill directly for an already selected harness./agy-sidebar-sessionStart, message, hand off, inspect, fork, wait on, stop, and export top-level Antigravity 2.0 sidebar sessions across local or SSH-reachable machines using agentapi and LanguageServerService ConnectRPC endpoints. Use when asked to open or manage a sidebar session, hand off work to another Antigravity host, compare quota across subscriptions, message another conversation, or call LanguageServerService RPCs./