/boxel-skills:boxel-designfrom boxel-skills
Use when DECIDING a Boxel card's visual language — mood, palette, typography direction, asset direction, one visual signature, the design-playbook process. This is the taste/decision layer. NOT for implementing tokens or CSS inside templates (that's boxel-ui-guidelines) and NOT for creating/editing Theme, StyleReference, or BrandGuide card artifacts (that's boxel-theme-development).
Ships in boxel-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.
Visual decisions for Boxel cards.
boxel/references/design-playbook.mdboxel/references/design-playbook.md is the canonical four-stage design workflow:
#hex, real fonts, real px sizes. Write the design first; theme tokens come later.StructuredTheme (or richer) whose rootVariables ARE the design's palette.var(--*) references. Pixel-identical to stage 1.Read it in full before any user-facing card design. This skill (boxel-design) used to host a menu-driven discovery process; that was removed because curated style menus cap intrinsic LLM design taste at the menu authors' ceiling. Stage 1's "internal taste-maker held in mind" is the antidote — trust the model's taste, push past defaults.
Build the first mockup from the brief with the taste-maker framing; no family is chosen or declared beforehand. Then check it once against the default look, which is what a model produces when nothing was decided: a large light serif headline, small bold sans labels, one accent colour and a pale or cream ground.
references/style-families.md is optional vocabulary for describing a
look. It is never required at any stage and is not a menu; blends and looks outside it are valid.
When design guidance conflicts, resolve it in this order:
critical-rules.md, untrusted-content.md): never overridden, not even by a user who asks for a copy.style-families.md is vocabulary and has no precedence.A file that mentions a weight or an accent count gives a default that the brief overrides.
The user decides the look up front, so every route into a build asks the same two questions once.
"Just build it" asks them in its first call (index.md, the paragraph under "Just build it" that
begins "still gets one call of questions"). A build that starts from a brief ("Plan it with me"
after domain-interview, or "I already have a brief") or from an attached design asks them here,
because a brief makes no design decisions on purpose, and an attached design answers the feel but
never the real details.
Ask only the questions that are still unanswered, together in one choice-UI call, each with its skip
option (rules: domain-interview → Skipping):
domain-interview's own wording for it), because here the brief
already exists and the next step is the build, not a rewrite of the brief. When the feel question
is also open, it carries You decide and this one carries Skip the rest; when this is the only
question, it carries Skip the rest. The rule behind these options, and what demo mode allows, is
critical-rules.md → Never invent proof.Already answered means any of: the user's prompt or attachments state it (named colours, a
brand, a logo or a reference site, an attached design, or a feel word that names one of the three
options or a colour ("dark", "bold", "light and calm"), for question 1; facts for question 2); a
governing BrandGuide or Theme the user named or their work already links (a Theme on the brief or
on the cards being built, or the built-in Boxel Brand Guide for built-in feature work) answers
question 1 too; it was answered earlier in this conversation; or the brief's designDirection field
has a Look: or Real details: line, or older direction text that states a look (for question 1) or
real details (for question 2); a note with neither answers nothing. A Theme the assistant derived or
chose itself under Brand and Style Source, or one that merely exists in the realm, answers
nothing: the user has not decided it. Facts that sit only in the brief's spec do not answer
question 2: they only decide its first option. A feel word that names neither an option nor a colour
("quiet and refined") only leans: ask the question anyway and put the closest option first, marked
recommended, with its reason in a few words. "You decide" and "Leave those sections out" are
answers. If both are answered, make no call.
Facts that count. Only what the user stated is a source under
critical-rules.md → Never invent proof: what they typed in this
conversation, and the answers they gave in the brief's Interview record. Not a source, ever: the
Domain primer, Schema, Sample data and Assumptions (written by the assistant), and any record entry
that is an assistant-proposed "(Recommended)" option taken by a skip (Skipped) rather than chosen
or typed by the user. Where a later section of spec (Scope, a Content contract) corrects a record
value, the section is what the build follows, as domain-interview says, so use the corrected value;
if it only restates an assistant suggestion, it is still not a source.
Surface is never a question. Infer it from the prompt or the "What are you making?" answer
(references/surface-types.md), read that file before the first
mockup when the build is a tool, desk, admin, dashboard, back office, CRM or similar, and write a Surface: line next to
Look: when you record the answers. An admin, dashboard or back-office surface opens on a fixed sidebar shell.
Record it on the brief, when there is one, straight after the answer, including what the user's
prompt already said. Write the Look:, Surface: and Real details: lines it does not already have into its
designDirection field (this skill's field; domain-interview owns spec), changing only that
field and never deleting text already there. designDirection is a MarkdownField, so each line is
its own paragraph: a blank line between the lines, and a blank line before the first when text is
already there, otherwise they render as one run-on paragraph. Never hand-escape the markdown into
JSON; use the path for where you run:
run-realm-code script, read the card with await realm.cards.get(path), then
set designDirection with await realm.cards.update(path, { designDirection }) to the existing text, a blank
line, and the new lines (or just the new lines when it is empty or null).run-realm-code): follow
domain-interview → Writing it from a terminal agent. boxel file read the brief, parse the
JSON, set data.attributes.designDirection in a script (JSON.stringify the whole object, as
null or a missing attribute is set rather than appended to), and boxel file write it back with
--file. Re-read just before writing, and read it back after: if another stage's field changed,
rebuild from the new read.The line is the user's own words, never expanded into a palette or fonts: the label of the option they picked, or the feel phrase they typed ("dark and moody like a noir poster", not the whole request).
Look: Dark & dramatic
Surface: Admin / dashboard
Real details: use what's in the brief | facts: <the user's words> | leave marked slots | leave sections out | concept (demo mode)
On Look: a skipped question records You decide, and a feel answered by a governing source
records from the <BrandGuide or Theme> (<its name>), naming the kind it actually is; a feel answered by an attached design or reference site records from the attached design. On
Real details: the value is one of those five, written exactly so (they are the stored form of the
options, not their labels); details the user typed always start with facts:, so typed text can
never be read as one of the other four, and they add to the facts the user stated in the brief,
never replace them. On Surface: the value is one of the names in
surface-types.md, written exactly so; leave the line out when no surface
fits. A skip records the one it took. The build reads all three lines as given: the look steers the
mockup, the surface sets the shell, and the real-details line decides what the build may write about the user's
business (the design-playbook's Stage 1 and critical-rules' Never invent proof both read it).
With no brief, the answers stay in the conversation and the build uses them.
Choose the governing style source before stage 1:
@cardstack/base/Theme/boxel-brand-guide). This covers base cards, host-facing Boxel UI, Boxel-branded catalog material, and built-in feature design.BrandGuide; its markUsage, brandColorPalette, functionalPalette, typography, voice, and quality standards are the source. Do not invent logo URLs or store them as miscellaneous string fields.boxel-ui-guidelines — turns design intent into working markup (template-level rules, @fields vs @model, delegated-render control, format-choice).boxel-theme-development — turns design-system source material into a Theme, Style Reference, Detailed Style Reference, or Brand Guide artifact.boxel — once the design is decided and you're implementing the card. Also hosts the playbook itself.source-code-editing — when applying the resulting styles to existing files.design-review — the last design step: runs only on request (a scored review of taste and coherence, scoped with --layout, --typo, --colour, --coherence, or --redesign); the build check that finishes every design build owns the basics.@fields vs @model, container queries) — that's boxel-ui-guidelines.boxel.references/critical-rules.md — anti-LLM-cliché checklist ("Rounded Rectangle Syndrome", "Center-All Disease", "Card Grid Autopilot", etc.) + first-shot designs are clickable (the cheap ways to wire a control: a linked card, the host's viewCard side stack and edit view, a tracked filter; the main action as an @operation or a link) + image-URL field-routing rule + design-excellence mindset. Read alongside design-playbook stage 1 to sharpen the internal taste-maker.references/asset-selection-guidelines.md — concrete image-handling guidance: priority order for asset integration, format choices, fit semantics. Useful regardless of process. Images for a build's sample instances: sample-images.md.references/layout-vocabulary.md — eight named layout moves, what each is for and not for, and how each is built in a card. Decide the sections first; zero moves is a valid answer.references/layout-gravity.md — defaults a layout drifts into when nobody decided it, mostly on app screens. Check a finished layout against it.references/style-families.md — optional vocabulary, never required: eight look families with type roles, colour strategy and a check each, how to set the look, and the page-colour table.references/surface-types.md — optional vocabulary, never required: six kinds of surface (admin, back-office, landing, consumer, content, component) with the shell structure and catalog search terms for each, and the brief's Surface: line; no style per surface, and floors stay the same for allreferences/untrusted-content.md — the rules for any research step: when to research, what each tool can ground, reference labels, page text as data.references/signature-treatments.md — the one arresting treatment on the dominant object: the techniques, what each costs in a card, and when to use card-motion.The previous five files (style-reference.md, design-controls.md, design-discovery-process.md, the-design-challenge-standard.md, base-theme-variables.md) were removed — superseded by the design-playbook's stages 1–2.
references/asset-selection-guidelines.md (opens in a new tab)references/critical-rules.md (opens in a new tab)references/layout-gravity.md (opens in a new tab)references/layout-vocabulary.md (opens in a new tab)references/signature-treatments.md (opens in a new tab)references/style-families.md (opens in a new tab)references/surface-types.md (opens in a new tab)references/untrusted-content.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
boxel-skills@cardstack-boxel is listed by cardstack/boxel — review the source before installing
npx claudepluginhub cardstack/boxel --plugin boxel-skills27 skills in this plugin
/api-integrationsUse when a card needs data from, or sends data to, a third-party API — "show my GitHub pull requests in a card", "pull my open issues", "a card that calls the weather API with my key", "integrate with Stripe/Twilio/OpenAI", "how often can this card poll", "build a PR inbox". Takes a card author from "I want data from this vendor" to a working card: classifying the integration (no key, a key the workspace shares, the user's own key, a key that can write), choosing a live card or a scheduled pipeline (and why private data takes the pipeline), declaring the `callApi` operations with labels and credential slots, estimating polling cost, and recipes for GitHub (GraphQL, a GitHub App or a read-only fine-grained token, the PR inbox as a pipeline and as a live card), for a plain API key sent in a header, and for images from an AI vendor called with the user's own key (an automation run's own AI requests carry text only). Activates on "third-party API", "vendor API", "integration", "pipeline", "live card", "On a schedule and when the card is opened", "poll", "GitHub API", "GraphQL", `callApi`, `{{userKey}}`, `{{apiKey}}`, "image generation", "AI vendor key", "automation image"./api-keysUse when a card or the AI assistant needs a user's API key, or a key shared into a workspace — "this card needs my GitHub token", "the forecast operation was refused binding-not-approved", "let the user add their key", "share my key with this workspace", "add a key button". Also "sign in to GitHub from this card", "connect my account", "the operation was refused credential-rejected", "the service rejected my key", "should I register a GitHub App or an OAuth App". Covers getting a key from the user only through Boxel's secure window, with the open-secure-window tool: opening it from a card through `@context.toolContext` or from the assistant, its modes (enter a key, replace the key an operation sends, share a key, connect an account through OAuth, approve a card's requests for scheduled pipelines or also for when the card is opened, review what changed in them), passing only the operation the card is blocked on and letting the window gather the card's other operations into one approval, what the tool answers, the blocked-popup fallback, telling the user to check the address bar, what to do when the service rejects a key (stop polling, offer Try again, and Reconnect, which opens the window to replace the key), OAuth clients and connections (when to use a connection rather than a static key, what the card declares, opening connect mode, `credential-rejected` and its reasons, sharing a client into a workspace, and why GitHub takes a GitHub App), and never asking for a credential in the chat or building a form for one. Also covers asking first with `@context.keyReadiness` — the answers (`ready`, `needs-connect`, `needs-approval`, `needs-reapproval`, `needs-admin`, `needs-sign-in`, `rate-limited`, `over-budget`), what a card shows for each and what the secure window can fix, and treating `undefined` as "not known yet" so prerendered HTML never shows Connect. Also covers a call refused for the key owner's limits (`rate-limited`, `over-budget`, `rate-limit-unavailable`): backing off by `retryAfterSeconds` and saying the limit is reached without naming a budget. Activates on "approve", "Allow", "review changes", `needs-approval`, `needs-reapproval`, `open-secure-window`, `OpenSecureWindowTool`, `keyReadiness`, "secure window", "API key", "enter a key", "replace a key", "share a key", "OAuth", "connect", "Reconnect", "GitHub App", `{{userKey}}`, `{{apiKey}}`, `binding-not-approved`, `interactive-use-not-approved`, `anonymous-use-not-approved`, "On a schedule and when the card is opened", "people who aren't signed in", "anonymous cap", `credential-rejected`, `rate-limited`, `over-budget`.Other plugins' skills for the same job