review-bench/cardstack_boxel/boxel-command
Claude Code and agent skill by review-bench/cardstack_boxel
- community
Checking that the SKILL.md file is still in the repository.
Use when running a Boxel host command via the realm server's prerenderer — invoking commands like `get-card-type-schema`, `evaluate-module`, `instantiate-card`, or any other module exposed at `@cardstack/boxel-host/commands/.../default`. Documents `boxel run-command` and the matching `client.runCommand()` method.
Install
npx vskill@latest install review-bench/cardstack_boxel/boxel-commandSKILL.md
Boxel Host Commands
Some Boxel operations only exist inside the host app's prerendered runtime — there's no realm-server HTTP endpoint for them, and they can't be reimplemented in plain Node. The realm server's /_run-command endpoint forwards a job to the prerenderer (a headless Chrome instance that has the full host runtime loaded), executes the named command there, and returns the serialized result. Schema introspection, module evaluation, card instantiation, transpiled-module fetches — all of these go through run-command.
This skill documents how to invoke that flow.
When to use it
- Card type schema lookup. Get the live
{ attributes, relationships }JSON Schema for aCardDefby introspecting its real class at runtime — not by reading the.gtssource. - Module evaluation. Load a
.gts/.tsmodule in the prerender sandbox to surface broken imports, circular references, or top-level runtime errors before they hit a real consumer. - Card instantiation. Construct a card instance from a JSON document inside the prerender — exercises the
CardDefclass against the document shape. - Anything else exposed at `@cardstack/boxel-host/commands/<name>/default`. Each module is its own host command.
CLI
<command-specifier>— the module path of the command (e.g.@cardstack/boxel-host/commands/get-card-type-schema/default).--realm— the realm URL the command runs against. Required.--input— JSON string passed as the command's input. Optional; some commands take no input.--json— emit the raw response instead of the formatted summary.
Example
Programmatic
Returns { status: 'ready' | 'error' | 'unusable', result?: string | null, error?: string | null }. result is the command's serialized output (a JSON string — parse it yourself). error is set when status !== 'ready'.
How it works under the hood
/_run-command enqueues a job for the realm worker. The worker hands it to the prerenderer (which has the host app, the realm's Loader, the CardAPI, and all field serializers loaded). The command module is imported, called with the input, and its result is serialized back through the queue to the HTTP response.
Three failure modes you'll see:
status: 'unusable'— the prerender pool is broken (e.g. "No standby page available for prerender"). Not retryable from the caller's side; usually a sign the realm-server worker / prerender pool itself is unhealthy.status: 'error'witherror: "module URL not found"— the realm's in-memory module map hasn't indexed the file yet. Common right after a/_atomicwrite; caller can retry briefly or useclient.sync(..., { waitForIndex: true })upstream.status: 'error'with any other message — the command threw inside the prerender. Theerroris the thrown error's message; the original stack is usually in the worker logs.
The realm server itself enforces auth (server JWT via BoxelCLIClient); the prerender executes inside the realm's sandbox with the realm's permissions.
What this skill is not for
- Realm-side HTTP endpoints (search, file read/write, atomic batches) — those are direct
BoxelCLIClientmethods. See theboxel-apiskill. - Programmatic in-memory validators (
runLintInMemory,runEvaluateInMemory,runParseInMemory,runInstantiateInMemory) — those wraprunCommandinternally but expose a flatter result shape; consumers usually want those, not rawrunCommand. They live in the software-factory package. - Defining new host commands. That's host-app development (
packages/host/app/commands/).
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpackages/boxel-cli/plugin/skills/boxel-command/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/review-bench/cardstack_boxel/boxel-command)