/boxel-skills:boxel-skill-authoringfrom boxel-skills
Use when creating or editing a user-authored Boxel skill — a markdown file whose `boxel.kind: skill` frontmatter makes it loadable by AI assistant rooms. Covers the SKILL.md format contract, the frontmatter schema, tool declarations (codeRef forms, requiresApproval), placement conventions, and how to verify the skill indexed correctly. Activates for "write me a skill", "add a tool to my skill", or a skill that isn't showing up in the skill chooser.
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.
None: SKILL.md is the whole skill.
The SKILL.md format contract, its one silent trap, tool declarations, and the verify loop.
A skill is a markdown file. The YAML frontmatter declares what it is; the body is the instructions the assistant loads. Nothing else is required — no card definition, no registration step. The realm indexes the file on save and it becomes choosable in AI assistant rooms.
---
name: trip-planner
description: Plans multi-stop trips. Use when the user asks for an itinerary.
boxel:
kind: skill
---
# Trip Planner
When the user asks for an itinerary, first ask for their dates and budget...
name — short slug-like identifier, shown in the skill chooser.description — one or two sentences; this is what the assistant reads to decide the skill is relevant, so write it as "Use when…".boxel.kind: skill — what makes the file a skill. Everything under the boxel: key is Boxel-specific; top-level keys are shared conventions (same as Claude Code skills).kind: skill must be nested under boxel:. A top-level kind: skill is not an error — the file indexes happily as plain markdown, never appears in the skill chooser, and nothing tells you why. If a skill "isn't showing up", check this first.
Convention: skills/<slug>/SKILL.md in the workspace, one directory per skill (reference files can sit alongside). This is only a convention — discovery is by the indexed kind field, not the path — but following it keeps workspaces legible and matches how synced harness skills are laid out.
A skill may give the assistant tools via boxel.tools:
boxel:
kind: skill
tools:
- codeRef:
module: '@cardstack/boxel-host/tools/run-realm-code'
name: default
- codeRef:
module: ../../my-tools/plan-trip
name: default
requiresApproval: false
codeRef.module takes a host package specifier (@cardstack/boxel-host/tools/...), an absolute URL to a realm-hosted tool module, or a path relative to the skill file.codeRef.name is the module export (usually default).requiresApproval — omit it and the user must approve each invocation; only an explicit false lets the tool auto-execute. Prefer omitting it unless the tool is unquestionably safe to run unattended.Saving the file triggers incremental indexing; within a moment the skill should appear in the room's skill chooser (and its tools become usable per the room's discovery model). If it doesn't:
boxel: nesting (the silent trap above)._indexing-errors endpoint on the realm (or boxel realm indexing-errors from a boxel-cli session) reports frontmatter-error (YAML didn't parse; the body indexed without it) and tool-schema-error (a declared tool's module wouldn't load or its schema generation failed; the skill works, that tool doesn't).Editing an existing skill needs no extra step: the file reindexes on save and consumers read the fresh content.
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`.