boxel: Skill for Claude Code

.claude/skills/secrets-at-rest/SKILL.md

secrets-at-rest is a skill for Claude Code from cardstack/boxel. It costs 403 tokens per session (9,256 once invoked), scanned A, original, MIT.

A guide for sealing sensitive values before storing them in the database and opening them when the server needs them. It covers application keys, OAuth credentials, service-account files, webhook keys, and the cloud key service used to protect the main data key.

In plain words
What is it for?
Use it to operate or diagnose secret storage, encryption-key configuration, startup failures, worker key sharing, or protected database values.
Why use it?
It reduces the risk of exposing stored secrets and explains how key access behaves during startup, worker restarts, and cloud key-service outages.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: positional $N argument.

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/secrets-at-rest/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 secrets-at-rest

README.md
[![agentmods](https://agentmods.dev/badge/skills/cardstack/boxel/secrets-at-rest/github.svg)](https://agentmods.dev/skills/cardstack/boxel/secrets-at-rest)
Your own site
<a href="https://agentmods.dev/skills/cardstack/boxel/secrets-at-rest"><img src="https://agentmods.dev/badge/skills/cardstack/boxel/secrets-at-rest/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 secrets-at-rest

Your own site · 80×15
<a href="https://agentmods.dev/skills/cardstack/boxel/secrets-at-rest"><img src="https://agentmods.dev/badge/skills/cardstack/boxel/secrets-at-rest.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 403 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 9,256 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.00403 $0.09256
Opus 5.5 $0.00161 $0.03702
Sonnet 5.5 $0.00081 $0.01851
Haiku 4.5 $0.00040 $0.00926

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

Security

Grade A, and why

secrets-at-rest 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/secrets-at-rest/SKILL.md · 666 lines

How it starts

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

Secrets at rest (operators)

Stored secrets are sealed by the application before they reach the database, with AES-256-GCM from Node's crypto, by SecretsKeyring in packages/realm-server/lib/secrets-at-rest/envelope.ts. Each sealed value is four things a table stores: keyId (which data key sealed it), nonce (12 bytes), ciphertext and tag (16 bytes).

Envelope

  • A 32-byte data key seals every secret. KMS wraps it; the wrapped blob lives in SSM as /<env>/boxel/SECRETS_WRAPPED_DATA_KEY and reaches the task as SECRETS_WRAPPED_DATA_KEY, with the key's ARN as SECRETS_KMS_KEY_ARN.
  • The realm server and the worker manager each call kms:Decrypt once, at startup, then seal and open locally. Each worker the manager starts or respawns asks the manager for the keys over their IPC channel instead of calling KMS. A KMS outage stops new tasks from starting but never a running one, a worker respawn included, and no request makes a KMS call.
  • The KMS client takes its region from the key ARN and gives up on a call after 5 s to connect or 10 s to answer, with 3 attempts.
  • The unwrap uses the encryption context {"purpose": "boxel-secrets-data-key"}. The key policy lets only the realm-server and worker task roles decrypt, and only under that context. CloudTrail records each unwrap.

Binding

Each value is bound, as GCM additional authenticated data, to the field it is stored in (<table>.<column>, required), the owner, the row id and the destination the secret is sent to. A value moved to another column, row, owner or destination by a database writer doesn't open: the caller gets SecretDecryptionError, whose message names none of the inputs. Naming the field is what keeps two secrets on one row, such as an OAuth client secret and its refresh token sent to the same token endpoint, from being swapped.

  • A secret with no destination yet (a key added before its first approval) is sealed under field, owner and id only. keyring.reseal(sealed, from, to) binds it to its destination; after that it opens only with that destination.
  • secretEncryptionContext(binding) is the context a value is bound to: field, owner, id and destination_sha256. The destination appears only as its SHA-256, so the context is safe to log or to hand to a service that records it.
  • Destinations are compared exactly as given. A caller passes the same normalized form when sealing and opening.

Read the full file on GitHub · 666 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 · 666 lines · 403 tokens per session scan A e81792e7c678

Subscribe to this mod's changes

secrets-at-rest is a skill published in the GitHub repository cardstack/boxel (27 stars, last pushed today), licensed MIT. It adds 403 tokens to every session and 9,256 once invoked, about $0.0016 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

gke-compute-classes

Configures, optimizes, and troubleshoots GKE ComputeClasses. Use when configuring Spot VMs with on-demand fallback, targeting specific accelerators (GPUs/TPUs) or machine families, restricting ComputeClass access, or debugging pending pods related to node pool auto-creation. Do not use for cluster-level Node Auto…

google/skills · 83 tokens

gke-reliability

Improves GKE workload reliability, using PDBs, health probes, and topology spread constraints. Use when configuring GKE workload reliability, setting up PDBs, or configuring GKE health probes (liveness, readiness, startup). Don't use for generating K8s YAML manifests (use gke-manifest-generation) or disaster recovery…

google/skills · 85 tokens

gke-workload-security

Audits, configures, and hardens workload-level security controls for Google Kubernetes Engine (GKE) applications and namespaces. Covers running security audits (auditcluster.sh), enforcing Network Policies (default-deny and Dataplane V2 logging), isolating high-risk pods inside GKE Sandbox (gVisor), enforcing Pod…

google/skills · 171 tokens

cloud-architect

Designs cloud architectures, creates migration plans, generates cost optimization recommendations, and produces disaster recovery strategies across AWS, Azure, and GCP. Use when designing cloud architectures, planning migrations, or optimizing multi-cloud deployments. Invoke for Well-Architected Framework, cost…

Jeffallan/claude-skills · 71 tokens

nemo-automodel-launcher-config

Configure NeMo AutoModel job launches for interactive runs, Slurm clusters, and SkyPilot cloud execution.

NVIDIA/skills · 30 tokens

azure-mgmt-botservice-dotnet

Azure Resource Manager SDK for Bot Service in .NET. Management plane operations for creating and managing Azure Bot resources, channels (Teams, DirectLine, Slack), and connection settings. Triggers: "Bot Service", "BotResource", "Azure Bot", "DirectLine channel", "Teams channel", "bot management .NET", "create bot".

microsoft/skills · 78 tokens