boxel: Skill for Claude Code

.claude/skills/realm-server-test-setup/SKILL.md

realm-server-test-setup is a skill for Claude Code from cardstack/boxel. It costs 167 tokens per session (1,774 once invoked), scanned A, original, MIT.

A guide to setting up Realm Server tests with a reusable template database instead of rebuilding and indexing realms before every test. A test database contains the data and indexes that the test starts with.

In plain words
What is it for?
Use it when writing or speeding up Realm Server tests that create permissioned realms or need a fresh copy of indexed test data.
Why use it?
It removes repeated indexing work from test setup, making test suites and continuous integration runs shorter without changing the test's starting data.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is cardstack/boxel's own configuration. It tells Claude Code how to work on boxel itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything boxel configures →

Reuse

Borrowing it

Nothing to install: this file belongs to cardstack/boxel. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/cardstack/boxel/main/.claude/skills/realm-server-test-setup/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/cardstack/boxel

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for realm-server-test-setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/cardstack/boxel/realm-server-test-setup/github.svg)](https://agentmods.dev/skills/cardstack/boxel/realm-server-test-setup)
Your own site
<a href="https://agentmods.dev/skills/cardstack/boxel/realm-server-test-setup"><img src="https://agentmods.dev/badge/skills/cardstack/boxel/realm-server-test-setup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for realm-server-test-setup

Your own site · 80×15
<a href="https://agentmods.dev/skills/cardstack/boxel/realm-server-test-setup"><img src="https://agentmods.dev/badge/skills/cardstack/boxel/realm-server-test-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 167 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,774 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00167 $0.01774
Opus 5.5 $0.00067 $0.00710
Sonnet 5.5 $0.00033 $0.00355
Haiku 4.5 $0.00017 $0.00177

Measured 5d ago against content hash 031e8a1c3c50, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

realm-server-test-setup scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/realm-server-test-setup/SKILL.md · 87 lines

How it starts

The opening of the file, as written. The whole thing — 87 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Realm-server test setup

Bringing up a realm on an empty database indexes it from scratch, and that index — not the test body — is usually most of a realm-server test's time. A module that brings up its realms in beforeEach pays it once per test. Index once per module instead: every helper below builds a template database the first time a module needs it, and each test then starts from a copy of that template. The two cached realm helpers also give each test a fresh realm directory holding the same files. setupTestDatabaseTemplate copies only the database, so there the fresh directory is your start's job (see below).

The cost is real. A 40-test suite that brought up two realms before every test took 524s; indexed once into a template it took 85s. Nineteen such suites together went from 46 minutes to 13 minutes of CI time, about five minutes off every Realm Server shard.

The @cardstack/boxel/realm-server-test-template-database lint rule enforces this. It reports a setupDB whose beforeEach brings up realms (runTestRealmServer, runTestRealmServerWithRealms, startSimpleRealmServer, or start() on a createRealm realm, directly or through a function in the same file) and passes no templateDatabase, and a setupPermissionedRealm or setupPermissionedRealms call without mode: 'before'. CI Lint fails on both. The rule checks only that a template is there, not what it holds, so a template that leaves out some of the module's realms passes it: keep build and beforeEach bringing up the same realms.

Pick the helper

Your module brings up Use
One realm setupPermissionedRealmCached(hooks, { realmURL, permissions, fileSystem | fixture, onRealmSetup })
Several realms, each on its own realm server setupPermissionedRealmsCached(hooks, { realms: [...], onRealmSetup })
Several realms on one realm server, or any other setup of your own setupTestDatabaseTemplate beside setupDB (below)

Read the full file on GitHub · 87 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 87 lines · 167 tokens per session scan A 031e8a1c3c50

Subscribe to this mod's changes

realm-server-test-setup is a skill published in the GitHub repository cardstack/boxel (27 stars, last pushed today), licensed MIT. It adds 167 tokens to every session and 1,774 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-21.

Related

Other skills, from other repositories

review-prs

Review a GitHub pull request in the googleapis/mcp-toolbox repo against the team's reviewer checklist: PR title/description conventions, linked issue, logic errors and unhandled edge cases, breaking changes, test coverage, docs updates, security (input handling), and new dependencies. Use whenever a maintainer asks…

googleapis/mcp-toolbox · 162 tokens

fix-failing-tests

Diagnose a failing test in the googleapis/mcp-toolbox repo and land a fix by reasoning from the actual error: read the failure, reproduce it, shrink it until the cause is forced into the open, then fix the cause. Use this whenever a test or CI job is red, a build breaks after a change, many packages fail at once, or a…

googleapis/mcp-toolbox · 87 tokens

reproduce-bug

Reproduce a reported bug in googleapis/mcp-toolbox and decide whether it is real, delivering an evidence-backed verdict: confirmed, already fixed, misconfiguration, client-side, works as intended, not reproducible, or blocked. Use whenever a maintainer asks you to reproduce, verify, confirm, or investigate a bug…

googleapis/mcp-toolbox · 130 tokens

azure-cosmos-db-py

Build Azure Cosmos DB NoSQL services with Python/FastAPI following production-grade patterns. Use when implementing database client setup with dual auth (DefaultAzureCredential + emulator), service layer classes with CRUD operations, partition key strategies, parameterized queries, or TDD patterns for Cosmos. Triggers…

microsoft/skills · 96 tokens

Drizzle ORM Testing

Testing patterns for Drizzle ORM covering migration testing, query builder testing, transaction testing, and database integration testing with PostgreSQL, SQLite, and MySQL.

PramodDutta/qaskills · 36 tokens

finance-weekly-outlook

Generate a source-backed weekly financial trading outlook from daily-finance, finance-core-analysis, and finance-explosive-article outputs plus fresh authoritative market data. Use when the user asks for future-one-week market outlook, weekly bullish/bearish sectors, stock picks, China A-share and US stock coverage…

digoal/blog · 122 tokens