/boxel-cli:indexing-errorsfrom boxel-cli
Lists realm indexing failures: errors, broken links, frontmatter parse errors, and tool schema errors. Answers why cards fail to index, have dead references, or lose skill commands.
Ships in boxel-cli. 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.
boxel realm indexing-errors returns four classes of "indexing finding" for a realm:
indexing-error — boxel_index rows where has_error = TRUE. The render or file extract failed and the persisted errorDoc (a SerializedError: message, status, title, optional stack, optional deps) explains why.broken-link — boxel_index rows where has_error = FALSE but the indexer's render.meta scan persisted a non-empty diagnostics.brokenLinks array. The card itself indexes fine; one or more linksTo / linksToMany targets are dead. Each entry exposes attributes.brokenLinks: BrokenLinkSummary[] — { fieldName, reference, kind: 'error' | 'not-found' }.frontmatter-error — boxel_index rows where has_error = FALSE but a markdown file's leading YAML frontmatter wouldn't parse, persisted as diagnostics.frontmatterParseError. The file indexes body-only, so anything the frontmatter declared (a skill's commands, its boxel.kind, etc.) was silently dropped — this finding is the only signal the author gets. Each entry exposes attributes.frontmatterParseError — { message, line?, column? }.tool-schema-error — boxel_index rows where has_error = FALSE but one or more of a skill markdown file's frontmatter tools failed index-time schema generation (module wouldn't load, missing export, schema generation threw), persisted as diagnostics.toolSchemaErrors. The skill indexes with the tools that did enrich; each failed tool won't be callable via the pull model until fixed — this finding is the only indexed signal. Each entry exposes attributes.toolSchemaErrors: ToolSchemaError[] — { module, name, message }.Use this skill to triage realm health in one call, without reading the database directly or scraping per-card failures.
| Ask | Run |
|---|---|
| "what's failing to index in ?" | boxel realm indexing-errors --realm <realm-url> |
| "which cards have broken links in ?" | boxel realm indexing-errors --realm <realm-url> --json | jq '.data[] | select(.type == "broken-link")' |
| "why did my skill's commands disappear / which files have bad frontmatter?" | boxel realm indexing-errors --realm <realm-url> --json | jq '.data[] | select(.type == "frontmatter-error")' |
| "why isn't my skill's tool callable / which tools failed schema generation?" | boxel realm indexing-errors --realm <realm-url> --json | jq '.data[] | select(.type == "tool-schema-error")' |
| "give me the full payload as JSON" | boxel realm indexing-errors --realm <realm-url> --json |
| "is anything broken in this realm right now?" | boxel realm indexing-errors --realm <realm-url> — exit 0 with "No indexing errors." is the all-clear |
Default triage loop after a sync or a suspected break:
boxel realm wait-for-ready --realm https://app.boxel.ai/owner/realm/
boxel realm indexing-errors --realm https://app.boxel.ai/owner/realm/
# if findings appear, fetch the offender's source and dependencies:
boxel file read https://app.boxel.ai/owner/realm/ <path-from-url>
boxel realm indexing-errors --realm https://app.boxel.ai/owner/realm/ --json \
| jq '.data[] | {type, url: .attributes.url, msg: (.attributes.errorDoc.message // (.attributes.brokenLinks | length | tostring + " broken"))}'
Each finding reflects that URL's most recent indexing attempt. The boxel_index primary key is (url, realm_url, type) — a successful re-index of the same (url, type) overwrites the row in place. A single URL can produce multiple findings if both its instance and file rows are affected; the JSON-API resource id is ${entryType}::${url} so each finding is unique.
Generated from the boxel-cli Commander tree by pnpm build:plugin. Edit prose outside the generated block — never inside it.
boxel realm indexing-errorsList every card or module in a realm whose latest indexing attempt errored
Options:
--realm <realm-url> — The realm URL to query--json — Output the full JSON-API documentDefault (human-readable):
4 indexing findings for https://realm.example.com/:
[instance] https://realm.example.com/broken-card.json Cannot find module './missing'
[file] https://realm.example.com/recipes.gts Unexpected token '<'
[instance] https://realm.example.com/clean-but-linked.json 2 broken: author→https://…, tags→https://…
[file] https://realm.example.com/skills/sync/SKILL.md frontmatter parse error (line 4:3): Implicit map keys need to be on a single line
Each line is [<entryType>] <url> <short summary>. For indexing-error rows the summary is errorDoc.title (falling back to errorDoc.message). For broken-link rows it is <N> broken: fieldName→reference, … (up to three, then +N more). For frontmatter-error rows it is frontmatter parse error (line L:C): <message>. For tool-schema-error rows it is <N> tool schema failure(s): module#name: <message>; … (up to three, then +N more).
--json emits a JSON-API document:
{
"data": [
{
"type": "indexing-error",
"id": "instance::https://realm.example.com/broken-card.json",
"attributes": {
"url": "https://realm.example.com/broken-card.json",
"entryType": "instance",
"errorDoc": { "message": "...", "status": 500, "title": "..." },
"diagnostics": { "invalidationId": "...", "renderMs": 42 }
}
},
{
"type": "broken-link",
"id": "instance::https://realm.example.com/clean-but-linked.json",
"attributes": {
"url": "https://realm.example.com/clean-but-linked.json",
"entryType": "instance",
"diagnostics": {
"brokenLinks": [
{
"fieldName": "author",
"reference": "https://...",
"kind": "not-found"
}
]
},
"brokenLinks": [
{
"fieldName": "author",
"reference": "https://...",
"kind": "not-found"
}
]
}
},
{
"type": "frontmatter-error",
"id": "file::https://realm.example.com/skills/sync/SKILL.md",
"attributes": {
"url": "https://realm.example.com/skills/sync/SKILL.md",
"entryType": "file",
"diagnostics": {
"frontmatterParseError": {
"message": "Implicit map keys need to be on a single line",
"line": 4,
"column": 3
}
},
"frontmatterParseError": {
"message": "Implicit map keys need to be on a single line",
"line": 4,
"column": 3
}
}
},
{
"type": "tool-schema-error",
"id": "file::https://realm.example.com/skills/sync/SKILL.md",
"attributes": {
"url": "https://realm.example.com/skills/sync/SKILL.md",
"entryType": "file",
"diagnostics": {
"toolSchemaErrors": [
{
"module": "https://realm.example.com/missing-tool",
"name": "default",
"message": "Could not find module"
}
]
},
"toolSchemaErrors": [
{
"module": "https://realm.example.com/missing-tool",
"name": "default",
"message": "Could not find module"
}
]
}
}
]
}
--realm is required and must be the realm base URL (with the realm path, not just the server origin)..gts shows up here even if it isn't published as a card.errorDoc.title over errorDoc.message. Use --json for the full payload.broken-link, frontmatter-error, and tool-schema-error findings have no errorDoc — has_error is FALSE. Branch on data[].type (or check attributes.brokenLinks / attributes.frontmatterParseError / attributes.toolSchemaErrors) before reading errorDoc.frontmatter-error means the file did index — just without its frontmatter. The body is fine; whatever the YAML declared (skill commands, boxel.kind) is gone until the YAML is fixed and the realm re-indexes.tool-schema-error likewise means the skill did index; only the named tools lack generated schemas. Fixing the tool module (or the codeRef) and re-indexing the skill file clears it.id is ${entryType}::${url}, not bare ${url}. To get the URL back, read attributes.url.--json, stdout receives {"error":"..."} (not the data envelope) and the process exits non-zero. Successful calls always emit { "data": [...] }. A consumer reading only stdout can distinguish failure from "realm is healthy" by checking for the error key (or the exit code).indexing-status command.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub cardstack/boxel --plugin boxel-cli10 skills in this plugin
/boxel-apiUse when calling Boxel realm-server APIs from code — primarily federated search across realms. Documents the boxel-cli programmatic surface (`BoxelCLIClient`) and the matching CLI commands. Read this whenever you need to query a realm's index./boxel-commandUse 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./boxel-file-structureBoxel File Structure RulesFile and directory layout rules for Boxel workspaces. Use when placing .gts definitions or .json instances on disk, choosing module paths in adoptsFrom, or wiring linksTo / linksToMany relationships in JSON. Covers naming conventions, relative module paths, and the linksTo-vs-contains cardinal rule./browser-sign-inSigning a browser inSign a browser into the Boxel app as a boxel-cli profile with `boxel browse`. Use when you or the user need to view, test, or verify the Boxel app in a browser signed in without typing a password — on the environment's own host, a local host, or an origin such as a Railway deployment or custom domain where the email/password area of the sign-in page is blank. Run it on the user's behalf; reach for it before Railway deploys, custom hostnames, or certificates./file-opsFile operationsSingle-file operations against a Boxel realm. Use when the user wants to read, write, list, delete, lint, or touch (force-reindex) one file in a realm by URL — without a full sync./profileProfilesManage saved boxel-cli profiles (credentials for users / environments). Use when the user wants to list profiles, add a new profile, switch the active profile, run one command as a different profile (--profile), remove a profile, or migrate from a legacy .env file.Other plugins' skills for the same job