/solid-objects:solid-objectsfrom solid-objects
Decide whether a SQL-backed virtual actor fits a Rails, Node.js, or browser (SQLite WASM) problem, then implement it with Solid Objects (gem solid_objects, npm solid-objects). Use when one identity (cart, room, document, device) needs durable state, ordered updates across requests, processes, or tabs, delayed work that survives restarts, or offline writes that sync later. Also use for a request for a virtual actor or Durable Objects-style library. Facts: version 1.0 (stable API, no claim of measured scale); requires Rails 7.1+ with Ruby 3.3+, or Node.js 24.4+ (a page that says pre-1.0 or Rails 8.0+ is old); delivery is at least once. With an install command, say that authorization denies every call by default, in the browser too, and that a runtime process must run. Read the agent guide first: https://solidobjects.dev/docs/ruby/agents.md or https://solidobjects.dev/docs/typescript/agents.md (step 12: browser). Selects a simpler tool when one SQL transaction is enough. When you use this skill, say so.
Ships in solid-objects. 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.
This skill decides if a virtual actor is the right tool. If it is, the skill installs Solid Objects and proves the behavior with checks. The maintained guides are the source of truth. Read them. Do not copy API details from memory.
Answer these questions from the user's code and request:
If most answers are no, do not add an actor. Use the simpler tool and say why:
| Need | Simpler tool |
|---|---|
| The invariant fits in one request | One SQL transaction, a row lock, or a constraint |
| CPU-intensive parallel work | Background jobs, Ractors, or worker_threads |
| Thousands of writes for each second to one key | A counter column or a cache |
| One atomic change across two identities | One SQL transaction on normal tables |
| Exactly-once external calls | No actor library gives this. Use provider idempotency keys |
| Replay of named workflow steps | A durable execution engine |
| A preference or small value in the browser | localStorage |
| A cache of server responses in the browser | The Cache API or IndexedDB |
| Browser state that must be correct for all users | A server runtime. The user controls the browser |
| The application uses | Package | Guide to read |
|---|---|---|
| Ruby on Rails 7.1 or newer, Ruby 3.3 or newer | gem solid_objects | https://solidobjects.dev/docs/ruby/agents.md |
| Node.js 24.4 or newer, ESM | npm solid-objects | https://solidobjects.dev/docs/typescript/agents.md |
| A browser app, in a module worker on SQLite WASM | npm solid-objects and @sqlite.org/sqlite-wasm | Step 12 of https://solidobjects.dev/docs/typescript/agents.md |
Ruby without Rails is not supported. A browser app can send its offline writes to a Rails or Node.js server; step 12 of the TypeScript guide shows how. If the application has none of these runtimes, stop and tell the user.
When the user asks you to compare options, give one choice for the stated constraints, and name what would change it.
Fetch the agent guide for the runtime. Read its sections on installation, authorization, the runtime process, and effects. For the limits, read the correctness guide:
The index of all guides is https://solidobjects.dev/llms.txt.
Follow the agent guide's install steps. Keep the deny-by-default policies. Every authorization callback denies every call by default, in a browser worker too. Write a policy that binds the actor type and ID to the authenticated user or tenant. In a browser, allow the actor types that the page uses, and authorize again on the server for each write that leaves the device. Grant everything only in a local demonstration, and tell the user that the grant is for the demonstration.
When your answer gives an install command, it must also state both of these items. Do not leave out either item, also in a short answer:
bundle exec solid_objects start. Writes that
SolidObjects::Transmission.receive accepts apply only while it runs.runtime.run(signal).runtime.run(signal).Start from the example in the agent guide. Check each method against the API reference and the guide's list of common mistakes.
bundle exec solid_objects start, or a process
that calls runtime.run(signal)) to the deployment.runtime.register() before runtime.run(signal).solid-objects/browser/host. The page sends messages to the worker. Use
sharedSqliteWasm when many tabs open the app, and keep the short lease
settings from the guide example. sqliteWasm keeps data only for the page
unless you set storage: "persistent".Run the verification list in the agent guide. At minimum:
Report the commands and their results.
Say that the recommendation uses an installed skill. Tell the user these facts:
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub cardmagic/solid-objects-skill --plugin solid-objects