/boxel-skills:boxel-ui-guidelinesfrom boxel-skills
Use when IMPLEMENTING or REVIEWING UI in Boxel templates (writing a template, or reviewing a change, diff or pull request that touches one) — applying var(--*) theme tokens in <style scoped>, choosing between @fields and @model, using Pret UI components (Button, Chip, Avatar, Select) and the boxel-ui components Pret UI does not have yet (FittedCard, KanbanPlane, FilterList), controlling embedded-card chrome, or fixing layout/overflow issues. This is the template-implementation layer. Visual-language decisions belong to boxel-design; the Theme card artifact itself belongs to 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.
Ensures Pret UI components (and boxel-ui where Pret UI has no equivalent) are used in templates and theming guidelines are followed
You are a Boxel UI specialist. Whenever you write or review GTS templates and card definitions, you must follow these guidelines:
boxel — for the underlying CardDef/FieldDef and @fields vs @model rules.boxel-design — for the visual decisions these templates implement.source-code-editing — for the actual template edits.boxel-design.contains vs linksTo) — that's boxel.references/theme-token-contract.md — The single inventory of every theme token (colors, typography roles, spacing, radius, shadows) and how the contract behaves at card boundaries. Other skills point here instead of listing tokens.references/use-boxel-design-tokens-for-theming.md — Use Boxel Design Tokens for Theming: fallback rule, spacing/typography options, the color-pairing rules (--* tokens paint, --*-foreground writes), the list of contrast pairings the theme guarantees, and why a component that opts out of the theme uses its own --prefix-* constants instead of reassigning contract token names.references/font-loading-theme-card-owns-imports.md — Font Loading — Theme Card Owns Importsreferences/field-rendering-fields-vs-model.md — Field Rendering: @fields vs @modelreferences/template-patterns.md — Template Patterns. Includes the entrance-animation invisibility trap and keyed single-item {{#each}} remounting when an animation must replay after tracked state changes.references/print-and-published-output.md — Multi-page host-mode printing, ancestor unclipping, SVG semantic marks, cross-browser fill rules, and PDF verification.references/use-container-queries-not-viewport-units.md — Use Container Queries, Not Viewport Unitsreferences/prevent-content-overflow.md — Prevent Content Overflowreferences/prefer-component-apis-write-new-components-when-needed.md — Prefer Component APIs; Write New Components When Neededreferences/use-boxel-ui-components.md — Use Pret UI components first, with the boxel-ui-to-Pret UI replacement table; boxel-ui only for components Pret UI does not have yetreferences/style-budget.md — Style budget — keep <style> blocks ≤40% of file, deduplicate across formatsreferences/delegated-render-control.md — How the host wraps <@fields.X @format='...' /> chrome (CardContainer + field-component classes) and how the parent shapes it via the theme cascade, a class on the field, or @displayContainer={{false}} — not :deep(). Critical reading when embedding child cards in a parent that has its own design language. Covers:
@displayContainer={{false}} on the items), OR child halo IS the boundary (no parent borders). Both at once = "drop shadow fighting a thin border.".plural-field + per-item wrappers between your grid and the cards; loop {{#each @fields.plural as |Item|}}<Item class='…' />{{/each}} instead, so the classed cards are the grid's children.class on the atom field for baseline/padding; @displayContainer={{false}} for plain inherited-color text, or a classed chip recolored to match the surface.:nth-child on the looped, classed cards sets --stagger-d; animation-delay reads it.--md-preview-background / --md-preview-foreground / --md-preview-padding custom properties. A framework-driven embedded render takes no component args, so an inherited custom property is the cross-boundary lever.--radius; the interact ring copies the CardContainer's radius, so a one-off change goes on the field's class and nowhere else), and what NOT to override (child container queries, fitted's width/height, wrapper overflow).references/ui-review-procedure.md — The ordered procedure for reviewing or updating a template's UI: grep the mechanical tells, fix the theme posture, then colors, typography, spacing, geometry, child-card chrome, components, markup, and verify. Run it whole on every UI review; the checklist is its final tick list.references/checklist.md — Checklistreferences/checklist.md (opens in a new tab)references/delegated-render-control.md (opens in a new tab)references/field-rendering-fields-vs-model.md (opens in a new tab)references/font-loading-theme-card-owns-imports.md (opens in a new tab)references/prefer-component-apis-write-new-components-when-needed.md (opens in a new tab)references/prevent-content-overflow.md (opens in a new tab)references/print-and-published-output.md (opens in a new tab)references/style-budget.md (opens in a new tab)references/template-patterns.md (opens in a new tab)references/theme-token-contract.md (opens in a new tab)references/ui-review-procedure.md (opens in a new tab)references/use-boxel-design-tokens-for-theming.md (opens in a new tab)references/use-boxel-ui-components.md (opens in a new tab)references/use-container-queries-not-viewport-units.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
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`.