[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7B35EC0SNWFZJ80BKT5HC7E":3,"skill-same:01M7B35EC0SNWFZJ80BKT5HC7E":374},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7B35EC0SNWFZJ80BKT5HC7E","rivetkit",null,"RivetKit backend and Rivet Actor runtime guidance. Use for building, modifying, debugging, or testing Rivet Actors, registries, serverless\u002Frunner modes, deployment, or actor-based workflows.","gethamster\u002Fskills","gethamster","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F215697643?v=4","01M7B2R6PGB3SDZZ71E0WE2S74","Hamster","01M7B2R6Q21HWJRXZZWB78BNDG",4,"MIT","https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: rivetkit\ndescription: \"RivetKit backend and Rivet Actor runtime guidance. Use for building, modifying, debugging, or testing Rivet Actors, registries, serverless\u002Frunner modes, deployment, or actor-based workflows.\"\nversion: \"1.0.0\"\n---\n\n# Rivet Actors\n\nBuild high-performance, long-lived, in-memory processes on Rivet's actor runtime. Use this skill whenever HTTP endpoints, databases, or queues no longer meet the requirements for AI agents, realtime collaboration, workflow orchestration, or geo-distributed data.\n\n## What To Do If You Get Stuck\n\nIf something is not working as intended or you are stuck, prompt the user to join the [Rivet Discord](https:\u002F\u002Frivet.dev\u002Fdiscord) or file an issue on the [Rivet GitHub](https:\u002F\u002Fgithub.com\u002Frivet-dev\u002Frivet) to report an issue and get help.\n\nProvide the user with a pre-generated report with:\n\n- Symptoms\n- If this is happening in local dev, deployed, or both\n- The error you're seeing\n- Relevant source code related to this\n- What you've tried to solve it\n- Environment\n- RivetKit version\n- Runtime (Node, Bun, etc) including version\n- If applicable, provider in use (e.g. Vercel, Railway, etc)\n- If applicable, HTTP router in use (e.g. Hono, Express, Elysia)\n\n## Debugging Actors\n\nUse the inspector HTTP API to examine running actors. These endpoints are accessible through the gateway at `\u002Fgateway\u002F{actor_id}\u002Finspector\u002F*`. Key endpoints:\n\n- `GET \u002Finspector\u002Fsummary` - full actor snapshot (state, connections, RPCs, queue)\n- `GET \u002Finspector\u002Fstate` \u002F `PATCH \u002Finspector\u002Fstate` - read\u002Fwrite actor state\n- `GET \u002Finspector\u002Fconnections` - active connections\n- `GET \u002Finspector\u002Frpcs` - available actions\n- `POST \u002Finspector\u002Faction\u002F{name}` - execute an action with `{\"args\": [...]}`\n- `GET \u002Finspector\u002Fqueue?limit=50` - queue status\n- `GET \u002Finspector\u002Ftraces?startMs=0&endMs=...&limit=1000` - trace spans (OTLP JSON)\n- `GET \u002Finspector\u002Fworkflow-history` - workflow history and status\n\nIn local dev, no auth token is needed. In production, pass `Authorization: Bearer \u003CRIVET_INSPECTOR_TOKEN>`. See the [debugging docs](https:\u002F\u002Frivet.dev\u002Fdocs\u002Factors\u002Fdebugging) for details.\n\n## Citing Sources\n\nWhen providing information from Rivet documentation, cite the canonical URL so users can learn more. Each reference file includes its canonical URL in the header metadata.\n\n**How to cite:**\n\n- Use inline links for key concepts: \"Use [actor keys](https:\u002F\u002Frivet.dev\u002Fdocs\u002Factors\u002Fkeys) to uniquely identify instances.\"\n- Add a \"Learn more\" link after explanations for complex topics\n\n**Finding canonical URLs:**\n\nThe Reference Map below links to reference files. Each file's header contains:\n\n```\n> Canonical URL: https:\u002F\u002Frivet.dev\u002Fdocs\u002Factors\u002Factions\n```\n\nUse that canonical URL when citing, not the reference file path.\n\n**Examples:**\n\n- Actions → `https:\u002F\u002Frivet.dev\u002Fdocs\u002Factors\u002Factions`\n- React client → `https:\u002F\u002Frivet.dev\u002Fdocs\u002Fclients\u002Freact`\n- Self-hosting on Kubernetes → `https:\u002F\u002Frivet.dev\u002Fdocs\u002Fself-hosting\u002Fkubernetes`\n\n## First Steps\n\n1. Install RivetKit (latest: 2.1.6)\n\n```bash\nnpm install rivetkit@2.1.6\n```\n\n1. Define a registry with `setup({ use: { \u002F* actors *\u002F } })`.\n2. Expose `registry.serve()` or `registry.handler()` (serverless) or `registry.startRunner()` (runner mode). Prefer serverless mode unless the user has a specific reason to use runner mode.\n3. Verify `\u002Fapi\u002Frivet\u002Fmetadata` returns 200 before deploying.\n4. Configure Rivet Cloud or self-hosted engine\n\n- You must configure versioning for production builds. This is not needed for local development. See [Versions & Upgrades](https:\u002F\u002Frivet.dev\u002Fdocs\u002Factors\u002Fversions).\n\n1. Integrate clients (see client guides below for JavaScript, React, or Swift)\n2. Prompt the user if they want to deploy. If so, go to Deploying Rivet Backends.\n\nFor more information, read the quickstart guide relevant to the user's project.\n\n## Error Handling Policy\n\n- Prefer fail-fast behavior by default.\n- Avoid `try\u002Fcatch` unless it is required for a real recovery path, cleanup boundary, or to add actionable context.\n- Never swallow errors. If you add a `catch`, you must handle the error explicitly, at minimum by logging it.\n- When you cannot recover, log context and rethrow.\n\n## State vs Vars: Persistence Rules\n\n**`c.vars` is ephemeral.** Data in `c.vars` is lost on every restart, crash, upgrade, or sleep\u002Fwake cycle. Only use `c.vars` for non-serializable objects (e.g., physics engines, WebSocket references, event emitters, caches) or truly transient runtime data (e.g., current input direction that doesn't matter after disconnect).\n\n**Persistent storage options.** Any data that must survive restarts belongs in one of these, NOT in `c.vars`:\n\n- **`c.state`** — CBOR-serializable data for small, bounded datasets. Ideal for configuration, counters, small player lists, phase flags, etc. Keep under 128 KB. Do not store unbounded or growing data here (e.g., chat logs, event histories, spawned entity lists that grow without limit). State is read\u002Fwritten as a single blob on every persistence cycle.\n- **`c.kv`** — Key-value store for unbounded data. This is what `c.state` uses under the hood. Supports binary values. Use for larger or variable-size data like user inventories, world chunks, file blobs, or any collection that may grow over time. Keys are scoped to the actor instance.\n- **`c.db`** — SQLite database for structured or complex data. Use when you need queries, indexes, joins, aggregations, or relational modeling. Ideal for leaderboards, match histories, player pools, or any data that benefits from SQL.\n\n**Common mistake:** Storing meaningful game\u002Fapplication data in `c.vars` instead of persisting it. For example, if users can spawn objects in a physics simulation, the spawn definitions (position, size, type) must be persisted in `c.state` (or `c.kv` if unbounded), even though the physics engine handles (non-serializable) live in `c.vars`. On restart, `run()` should recreate the runtime objects from the persisted data.\n\n## Deploying Rivet Backends\n\nAssume the user is deploying to Rivet Cloud, unless otherwise specified. If user is self-hosting, read the self-hosting guides below.\n\n1. Verify that Rivet Actors are working in local dev\n2. Prompt the user to choose a provider to deploy to (see [Connect](#connect) for a list of providers, such as Vercel, Railway, etc)\n3. Follow the deploy guide for that given provider. You will need to instruct the user when you need manual intervention.\n\n## API Reference\n\nThe RivetKit OpenAPI specification is available in the skill directory at `openapi.json`. This file documents all HTTP endpoints for managing actors.\n\n## Misc Notes\n\n- The Rivet domain is rivet.dev, not rivet.gg\n\n## TypeScript Caveat: Actor Client Inference\n\n- In multi-file TypeScript projects, bidirectional actor calls can create a circular type dependency when both actors use `c.client\u003Ctypeof registry>()`.\n- Symptoms usually include `c.state` becoming `unknown`, actor methods becoming possibly `undefined`, or `TS2322` \u002F `TS2722` errors after the first cross-actor call.\n- If an action returns the result of another actor call, prefer an explicit return type annotation on that action instead of relying on inference through `c.client\u003Ctypeof registry>()`.\n- If explicit return types are not enough, use a narrower client or registry type for only the actors that action needs.\n- As a last resort, pass `unknown` for the registry type and be explicit that this gives up type safety at that call site.\n\n## Features\n\n- **Long-Lived, Stateful Compute**: Each unit of compute is like a tiny server that remembers things between requests – no need to re-fetch data from a database or worry about timeouts. Like AWS Lambda, but with memory and no timeouts.\n- **Blazing-Fast Reads & Writes**: State is stored on the same machine as your compute, so reads and writes are ultra-fast. No database round trips, no latency spikes. State is persisted to Rivet for long term storage, so it survives server restarts.\n- **Realtime**: Update state and broadcast changes in realtime with WebSockets. No external pub\u002Fsub systems, no polling – just built-in low-latency events.\n- **Infinitely Scalable**: Automatically scale from zero to millions of concurrent actors. Pay only for what you use with instant scaling and no cold starts.\n- **Fault Tolerant**: Built-in error handling and recovery. Actors automatically restart on failure while preserving state integrity and continuing operations.\n\n## When to Use Rivet Actors\n\n- **AI agents & sandboxes**: multi-step toolchains, conversation memory, sandbox orchestration.\n- **Multiplayer or collaborative apps**: CRDT docs, shared cursors, realtime dashboards, chat.\n- **Workflow automation**: background jobs, cron, rate limiters, durable queues, backpressure control.\n- **Data-intensive backends**: geo-distributed or per-tenant databases, in-memory caches, sharded SQL.\n- **Networking workloads**: WebSocket servers, custom protocols, local-first sync, edge fanout.\n\n## Minimal Project\n\n### Backend\n\n**actors.ts**\n\n```ts\nimport { actor, event, setup } from \"rivetkit\";\n\nconst counter = actor({\n  state: { count: 0 },\n  events: {\n    count: event\u003Cnumber>(),\n  },\n  actions: {\n    increment: (c, amount: number) => {\n      c.state.count += amount;\n      c.broadcast(\"count\", c.state.count);\n      return c.state.count;\n    },\n  },\n});\n\nexport const registry = setup({\n  use: { counter },\n});\n```\n\n**server.ts**\n\nIntegrate with the user's existing server if applicable. Otherwise, default to Hono.\n\n### No Framework\n\n```typescript @nocheck\nimport { registry } from \".\u002Factors\";\n\nexport default registry.serve();\n\n```\n### Hono\n\n```typescript @nocheck\nimport { Hono } from \"hono\";\nimport { registry } from \".\u002Factors\";\n\nconst app = new Hono();\napp.all(\"\u002Fapi\u002Frivet\u002F*\", (c) => registry.handler(c.req.raw));\n\nexport default app;\n```\n\n### Elysia\n\n```typescript @nocheck\nimport { Elysia } from \"elysia\";\nimport { registry } from \".\u002Factors\";\n\nconst app = new Elysia()\n\t.all(\"\u002Fapi\u002Frivet\u002F*\", (c) => registry.handler(c.request));\n\nexport default app;\n\n```\n### Client Docs\n\nUse the client SDK that matches your app:\n\n- [JavaScript Client](\u002Fdocs\u002Fclients\u002Fjavascript)\n- [React Client](\u002Fdocs\u002Fclients\u002Freact)\n- [Swift Client](\u002Fdocs\u002Fclients\u002Fswift)\n\n## Actor Quick Reference\n\n### In-Memory State\n\nPersistent data that survives restarts, crashes, and deployments. State is persisted on Rivet Cloud or Rivet self-hosted, so it survives restarts if the current process crashes or exits.\n\n### Static Initial State\n\n```ts\nimport { actor } from \"rivetkit\";\n\nconst counter = actor({\n  state: { count: 0 },\n  actions: {\n    increment: (c) => c.state.count += 1,\n  },\n});\n```\n\n### Dynamic Initial State\n\n```ts\nimport { actor } from \"rivetkit\";\n\ninterface CounterState {\n  count: number;\n}\n\nconst counter = actor({\n  state: { count: 0 } as CounterState,\n  createState: (c, input: { start?: number }): CounterState => ({\n    count: input.start ?? 0,\n  }),\n  actions: {\n    increment: (c) => c.state.count += 1,\n  },\n});\n```\n\n[Documentation](\u002Fdocs\u002Factors\u002Fstate)\n\n### Keys\n\nKeys uniquely identify actor instances. Use compound keys (arrays) for hierarchical addressing:\n\n```ts\nimport { actor, setup } from \"rivetkit\";\nimport { createClient } from \"rivetkit\u002Fclient\";\n\nconst chatRoom = actor({\n  state: { messages: [] as string[] },\n  actions: {\n    getRoomInfo: (c) => ({ org: c.key[0], room: c.key[1] }),\n  },\n});\n\nconst registry = setup({ use: { chatRoom } });\nconst client = createClient\u003Ctypeof registry>();\n\n\u002F\u002F Compound key: [org, room]\nclient.chatRoom.getOrCreate([\"org-acme\", \"general\"]);\n\n\u002F\u002F Access key inside actor via c.key\n```\n\nDon't build keys with string interpolation like `\"org:${userId}\"` when `userId` contains user data. Use arrays instead to prevent key injection attacks.\n\n[Documentation](\u002Fdocs\u002Factors\u002Fkeys)\n\n### Input\n\nPass initialization data when creating actors.\n\n```ts\nimport { actor, setup } from \"rivetkit\";\nimport { createClient } from \"rivetkit\u002Fclient\";\n\nconst game = actor({\n  createState: (c, input: { mode: string }) => ({ mode: input.mode }),\n  actions: {},\n});\n\nconst registry = setup({ use: { game } });\nconst client = createClient\u003Ctypeof registry>();\n\n\u002F\u002F Client usage\nconst gameHandle = client.game.getOrCreate([\"game-1\"], {\n  createWithInput: { mode: \"ranked\" }\n});\n```\n\n[Documentation](\u002Fdocs\u002Factors\u002Finput)\n\n### Temporary Variables\n\nTemporary data that doesn't survive restarts. Use for non-serializable objects (event emitters, connections, etc).\n\n### Static Initial Vars\n\n```ts\nimport { actor } from \"rivetkit\";\n\nconst counter = actor({\n  state: { count: 0 },\n  vars: { lastAccess: 0 },\n  actions: {\n    increment: (c) => {\n      c.vars.lastAccess = Date.now();\n      return c.state.count += 1;\n    },\n  },\n});\n```\n\n### Dynamic Initial Vars\n\n```ts\nimport { actor } from \"rivetkit\";\n\nconst counter = actor({\n  state: { count: 0 },\n  createVars: () => ({\n    emitter: new EventTarget(),\n  }),\n  actions: {\n    increment: (c) => {\n      c.vars.emitter.dispatchEvent(new Event(\"change\"));\n      return c.state.count += 1;\n    },\n  },\n});\n```\n\n[Documentation](\u002Fdocs\u002Factors\u002Fephemeral-variables)\n\n### Actions\n\nActions are the primary way clients and other actors communicate with an actor.\n\n```ts\nimport { actor } from \"rivetkit\";\n\nconst counter = actor({\n  state: { count: 0 },\n  actions: {\n    increment: (c, amount: number) => (c.state.count += amount),\n    getCount: (c) => c.state.count,\n  },\n});\n```\n\n[Documentation](\u002Fdocs\u002Factors\u002Factions)\n\n### Events & Broadcasts\n\nEvents enable real-time communication from actors to connected clients.\n\n```ts\nimport { actor, event } from \"rivetkit\";\n\nconst chatRoom = actor({\n  state: { messages: [] as string[] },\n  events: {\n    newMessage: event\u003C{ text: string }>(),\n  },\n  actions: {\n    sendMessage: (c, text: string) => {\n      \u002F\u002F Broadcast to ALL connected clients\n      c.broadcast(\"newMessage\", { text });\n    },\n  },\n});\n```\n\n[Documentation](\u002Fdocs\u002Factors\u002Fevents)\n\n### Connections\n\nAccess the current connection via `c.conn` or all connected clients via `c.conns`. Use `c.conn.id` or `c.conn.state` to securely identify who is calling an action. Connection state is initialized via `connState` or `createConnState`, which receives parameters passed by the client on connect.\n\n### Static Connection Initial State\n\n```ts\nimport { actor } from \"rivetkit\";\n\nconst chatRoom = actor({\n  state: {},\n  connState: { visitorId: 0 },\n  onConnect: (c, conn) => {\n    conn.state.visitorId = Math.random();\n  },\n  actions: {\n    whoAmI: (c) => c.conn.state.visitorId,\n  },\n});\n```\n\n### Dynamic Connection Initial State\n\n```ts\nimport { actor } from \"rivetkit\";\n\nconst chatRoom = actor({\n  state: {},\n  \u002F\u002F params passed from client\n  createConnState: (c, params: { userId: string }) => ({\n    userId: params.userId,\n  }),\n  actions: {\n    \u002F\u002F Access current connection's state and params\n    whoAmI: (c) => ({\n      state: c.conn.state,\n      params: c.conn.params,\n    }),\n    \u002F\u002F Iterate all connections with c.conns\n    notifyOthers: (c, text: string) => {\n      for (const conn of c.conns.values()) {\n        if (conn !== c.conn) conn.send(\"notification\", { text });\n      }\n    },\n  },\n});\n```\n\n[Documentation](\u002Fdocs\u002Factors\u002Fconnections)\n\n### Queues\n\nUse queues to process durable messages in order inside a `run` loop.\n\n```ts\nimport { actor, queue } from \"rivetkit\";\n\nconst counter = actor({\n  state: { value: 0 },\n  queues: {\n    increment: queue\u003C{ amount: number }>(),\n  },\n  run: async (c) => {\n    for await (const message of c.queue.iter()) {\n      c.state.value += message.body.amount;\n    }\n  },\n});\n```\n\n[Documentation](\u002Fdocs\u002Factors\u002Fqueues)\n\n### Workflows\n\nUse workflows when your `run` logic needs durable, replayable multi-step execution.\n\n```ts\nimport { actor, queue } from \"rivetkit\";\nimport { workflow } from \"rivetkit\u002Fworkflow\";\n\nconst worker = actor({\n  state: { processed: 0 },\n  queues: {\n    tasks: queue\u003C{ url: string }>(),\n  },\n  run: workflow(async (ctx) => {\n    await ctx.loop(\"task-loop\", async (loopCtx) => {\n        const message = await loopCtx.queue.next(\"wait-task\");\n\n        await loopCtx.step(\"process-task\", async () => {\n          await processTask(message.body.url);\n          loopCtx.state.processed += 1;\n        });\n\n      });\n  }),\n});\n\nasync function processTask(url: string): Promise\u003Cvoid> {\n  const res = await fetch(url, { method: \"POST\" });\n  if (!res.ok) throw new Error(`Task failed: ${res.status}`);\n}\n```\n\n[Documentation](\u002Fdocs\u002Factors\u002Fworkflows)\n\n### Actor-to-Actor Communication\n\nActors can call other actors using `c.client()`.\n\n```ts\nimport { actor, setup } from \"rivetkit\";\n\nconst inventory = actor({\n  state: { stock: 100 },\n  actions: {\n    reserve: (c, amount: number) => { c.state.stock -= amount; }\n  }\n});\n\nconst order = actor({\n  state: {},\n  actions: {\n    process: async (c) => {\n      const client = c.client\u003Ctypeof registry>();\n      await client.inventory.getOrCreate([\"main\"]).reserve(1);\n    },\n  },\n});\n\nconst registry = setup({ use: { inventory, order } });\n```\n\n[Documentation](\u002Fdocs\u002Factors\u002Fcommunicating-between-actors)\n\n### Scheduling\n\nSchedule actions to run after a delay or at a specific time. Schedules persist across restarts, upgrades, and crashes.\n\n```ts\nimport { actor, event } from \"rivetkit\";\n\nconst reminder = actor({\n  state: { message: \"\" },\n  events: {\n    reminder: event\u003C{ message: string }>(),\n  },\n  actions: {\n    \u002F\u002F Schedule action to run after delay (ms)\n    setReminder: (c, message: string, delayMs: number) => {\n      c.state.message = message;\n      c.schedule.after(delayMs, \"sendReminder\");\n    },\n    \u002F\u002F Schedule action to run at specific timestamp\n    setReminderAt: (c, message: string, timestamp: number) => {\n      c.state.message = message;\n      c.schedule.at(timestamp, \"sendReminder\");\n    },\n    sendReminder: (c) => {\n      c.broadcast(\"reminder\", { message: c.state.message });\n    },\n  },\n});\n```\n\n[Documentation](\u002Fdocs\u002Factors\u002Fschedule)\n\n### Destroying Actors\n\nPermanently delete an actor and its state using `c.destroy()`.\n\n```ts\nimport { actor } from \"rivetkit\";\n\nconst userAccount = actor({\n  state: { email: \"\", name: \"\" },\n  onDestroy: (c) => {\n    console.log(`Account ${c.state.email} deleted`);\n  },\n  actions: {\n    deleteAccount: (c) => {\n      c.destroy();\n    },\n  },\n});\n```\n\n[Documentation](\u002Fdocs\u002Factors\u002Fdestroy)\n\n### Lifecycle Hooks\n\nActors support hooks for initialization, background processing, connections, networking, and state changes. Use `run` for long-lived background loops, and exit cleanly on shutdown with `c.aborted` or `c.abortSignal`.\n\n```ts\nimport { actor, event, queue } from \"rivetkit\";\n\ninterface RoomState {\n  users: Record\u003Cstring, boolean>;\n  name?: string;\n}\n\ninterface RoomInput {\n  roomName: string;\n}\n\ninterface ConnState {\n  userId: string;\n  joinedAt: number;\n}\n\nconst chatRoom = actor({\n  state: { users: {} } as RoomState,\n  vars: { startTime: 0 },\n  connState: { userId: \"\", joinedAt: 0 } as ConnState,\n  events: {\n    stateChanged: event\u003CRoomState>(),\n  },\n  queues: {\n    work: queue\u003C{ task: string }>(),\n  },\n\n  \u002F\u002F State & vars initialization\n  createState: (c, input: RoomInput): RoomState => ({ users: {}, name: input.roomName }),\n  createVars: () => ({ startTime: Date.now() }),\n\n  \u002F\u002F Actor lifecycle\n  onCreate: (c) => console.log(\"created\", c.key),\n  onDestroy: (c) => console.log(\"destroyed\"),\n  onWake: (c) => console.log(\"actor started\"),\n  onSleep: (c) => console.log(\"actor sleeping\"),\n  run: async (c) => {\n    for await (const message of c.queue.iter()) {\n      console.log(\"processing\", message.body.task);\n    }\n  },\n  onStateChange: (c, newState) => c.broadcast(\"stateChanged\", newState),\n\n  \u002F\u002F Connection lifecycle\n  createConnState: (c, params): ConnState => ({ userId: (params as { userId: string }).userId, joinedAt: Date.now() }),\n  onBeforeConnect: (c, params) => { \u002F* validate auth *\u002F },\n  onConnect: (c, conn) => console.log(\"connected:\", conn.state.userId),\n  onDisconnect: (c, conn) => console.log(\"disconnected:\", conn.state.userId),\n\n  \u002F\u002F Networking\n  onRequest: (c, req) => new Response(JSON.stringify(c.state)),\n  onWebSocket: (c, socket) => socket.addEventListener(\"message\", console.log),\n\n  \u002F\u002F Response transformation\n  onBeforeActionResponse: \u003COut>(c: unknown, name: string, args: unknown[], output: Out): Out => output,\n\n  actions: {},\n});\n```\n\n[Documentation](\u002Fdocs\u002Factors\u002Flifecycle)\n\n### Context Types\n\nWhen writing helper functions outside the actor definition, use `*ContextOf\u003Ctypeof myActor>` to extract the correct context type. Do not manually define your own context interface — always derive it from the actor definition.\n\n```ts\nimport { actor, ActionContextOf } from \"rivetkit\";\n\nconst gameRoom = actor({\n  state: { players: [] as string[], score: 0 },\n  actions: {\n    addPlayer: (c, playerId: string) => {\n      validatePlayer(c, playerId);\n      c.state.players.push(playerId);\n    },\n  },\n});\n\n\u002F\u002F Good: derive context type from actor definition\nfunction validatePlayer(c: ActionContextOf\u003Ctypeof gameRoom>, playerId: string) {\n  if (c.state.players.includes(playerId)) {\n    throw new Error(\"Player already in room\");\n  }\n}\n\n\u002F\u002F Bad: don't manually define context types like this\n\u002F\u002F type MyContext = { state: { players: string[] }; ... };\n```\n\n[Documentation](\u002Fdocs\u002Factors\u002Ftypes)\n\n### Errors\n\nUse `UserError` to throw errors that are safely returned to clients. Pass `metadata` to include structured data. Other errors are converted to generic \"internal error\" for security.\n\n### Actor\n\n```ts\nimport { actor, UserError } from \"rivetkit\";\n\nconst user = actor({\n  state: { username: \"\" },\n  actions: {\n    updateUsername: (c, username: string) => {\n      if (username.length \u003C 3) {\n        throw new UserError(\"Username too short\", {\n          code: \"username_too_short\",\n          metadata: { minLength: 3, actual: username.length },\n        });\n      }\n      c.state.username = username;\n    },\n  },\n});\n```\n\n### Client\n\n```ts\nimport { actor, setup } from \"rivetkit\";\nimport { createClient, ActorError } from \"rivetkit\u002Fclient\";\n\nconst user = actor({\n  state: { username: \"\" },\n  actions: { updateUsername: (c, username: string) => { c.state.username = username; } }\n});\n\nconst registry = setup({ use: { user } });\nconst client = createClient\u003Ctypeof registry>();\n\ntry {\n  await client.user.getOrCreate([]).updateUsername(\"ab\");\n} catch (error) {\n  if (error instanceof ActorError) {\n    console.log(error.code);     \u002F\u002F \"username_too_short\"\n    console.log(error.metadata); \u002F\u002F { minLength: 3, actual: 2 }\n  }\n}\n```\n\n[Documentation](\u002Fdocs\u002Factors\u002Ferrors)\n\n### Low-Level HTTP & WebSocket Handlers\n\nFor custom protocols or integrating libraries that need direct access to HTTP `Request`\u002F`Response` or WebSocket connections, use `onRequest` and `onWebSocket`.\n\n[HTTP Handler Documentation](\u002Fdocs\u002Factors\u002Frequest-handler) · [WebSocket Handler Documentation](\u002Fdocs\u002Factors\u002Fwebsocket-handler)\n\n### Icons & Names\n\nCustomize how actors appear in the UI with display names and icons. It's recommended to always provide a name and icon to actors in order to make them easier to distinguish in the dashboard.\n\n```typescript\nimport { actor } from \"rivetkit\";\n\nconst chatRoom = actor({\n  options: {\n    name: \"Chat Room\",\n    icon: \"💬\",  \u002F\u002F or FontAwesome: \"comments\", \"chart-line\", etc.\n  },\n  \u002F\u002F ...\n});\n```\n\n[Documentation](\u002Fdocs\u002Factors\u002Fappearance)\n\n## Client Documentation\n\nFind the full client guides here:\n\n- [JavaScript Client](\u002Fdocs\u002Fclients\u002Fjavascript)\n- [React Client](\u002Fdocs\u002Fclients\u002Freact)\n- [Swift Client](\u002Fdocs\u002Fclients\u002Fswift)\n\n## Common Patterns\n\nActors scale naturally through isolated state and message-passing. Structure your applications with these patterns:\n\n[Documentation](\u002Fdocs\u002Factors\u002Fdesign-patterns)\n\n### Actor Per Entity\n\nCreate one actor per user, document, or room. Use compound keys to scope entities:\n\n```ts client.ts\nimport { createClient } from \"rivetkit\u002Fclient\";\nimport type { registry } from \".\u002Factors\";\n\nconst client = createClient\u003Ctypeof registry>();\n\n\u002F\u002F Single key: one actor per user\nclient.user.getOrCreate([\"user-123\"]);\n\n\u002F\u002F Compound key: document scoped to an organization\nclient.document.getOrCreate([\"org-acme\", \"doc-456\"]);\n\n```\n```ts actors.ts\nimport { actor, setup } from \"rivetkit\";\n\nexport const user = actor({\n  state: { name: \"\" },\n  actions: {},\n});\n\nexport const document = actor({\n  state: { content: \"\" },\n  actions: {},\n});\n\nexport const registry = setup({ use: { user, document } });\n```\n\n### Coordinator & Data Actors\n\n**Data actors** handle core logic (chat rooms, game sessions, user data). **Coordinator actors** track and manage collections of data actors—think of them as an index.\n\n```ts actors.ts\nimport { actor, setup } from \"rivetkit\";\n\n\u002F\u002F Coordinator: tracks chat rooms within an organization\nexport const chatRoomList = actor({\n  state: { rooms: [] as string[] },\n  actions: {\n    addRoom: async (c, name: string) => {\n      \u002F\u002F Create the chat room actor\n      const client = c.client\u003Ctypeof registry>();\n      await client.chatRoom.create([c.key[0], name]);\n      c.state.rooms.push(name);\n    },\n    listRooms: (c) => c.state.rooms,\n  },\n});\n\n\u002F\u002F Data actor: handles a single chat room\nexport const chatRoom = actor({\n  state: { messages: [] as string[] },\n  actions: {\n    send: (c, msg: string) => { c.state.messages.push(msg); },\n  },\n});\n\nexport const registry = setup({ use: { chatRoomList, chatRoom } });\n\n```\n```ts client.ts\nimport { createClient } from \"rivetkit\u002Fclient\";\nimport type { registry } from \".\u002Factors\";\n\nconst client = createClient\u003Ctypeof registry>();\n\n\u002F\u002F Coordinator per org\nconst coordinator = client.chatRoomList.getOrCreate([\"org-acme\"]);\nawait coordinator.addRoom(\"general\");\nawait coordinator.addRoom(\"random\");\n\n\u002F\u002F Access chat rooms created by coordinator\nclient.chatRoom.get([\"org-acme\", \"general\"]);\n```\n\n### Run Loop\n\nUse a `run` loop for continuous background work inside an actor. Process queue messages in order, run logic on intervals, stream AI responses, or coordinate long-running tasks.\n\n```ts\nimport { actor, queue, setup } from \"rivetkit\";\n\nconst counterWorker = actor({\n  state: { value: 0 },\n  queues: {\n    mutate: queue\u003C{ delta: number }>(),\n  },\n  run: async (c) => {\n    for await (const message of c.queue.iter()) {\n      c.state.value += message.body.delta;\n    }\n  },\n  actions: {\n    getValue: (c) => c.state.value,\n  },\n});\n\nconst registry = setup({ use: { counterWorker } });\n```\n\n### Workflow Loop\n\nUse this pattern for long-lived, durable workflows that initialize resources, process commands in a loop, then clean up.\n\n```ts\nimport { actor, queue, setup } from \"rivetkit\";\nimport { Loop, workflow } from \"rivetkit\u002Fworkflow\";\n\ntype WorkMessage = { amount: number };\ntype ControlMessage = { type: \"stop\"; reason: string };\n\nconst worker = actor({\n  state: {\n    phase: \"idle\" as \"idle\" | \"running\" | \"stopped\",\n    processed: 0,\n    total: 0,\n    stopReason: null as string | null,\n  },\n  queues: {\n    work: queue\u003CWorkMessage>(),\n    control: queue\u003CControlMessage>(),\n  },\n  run: workflow(async (ctx) => {\n    await ctx.step(\"setup\", async () => {\n      await fetch(\"https:\u002F\u002Fapi.example.com\u002Fworkers\u002Finit\", { method: \"POST\" });\n      ctx.state.phase = \"running\";\n      ctx.state.stopReason = null;\n    });\n\n    const stopReason = await ctx.loop(\"worker-loop\", async (loopCtx) => {\n        const message = await loopCtx.queue.next(\"wait-command\", {\n          names: [\"work\", \"control\"],\n        });\n\n        if (message.name === \"work\") {\n          await loopCtx.step(\"apply-work\", async () => {\n            await fetch(\"https:\u002F\u002Fapi.example.com\u002Fworkers\u002Fprocess\", {\n              method: \"POST\",\n              body: JSON.stringify({ amount: message.body.amount }),\n            });\n            loopCtx.state.processed += 1;\n            loopCtx.state.total += message.body.amount;\n          });\n          return;\n        }\n\n        return Loop.break((message.body as ControlMessage).reason);\n      });\n\n    await ctx.step(\"teardown\", async () => {\n      await fetch(\"https:\u002F\u002Fapi.example.com\u002Fworkers\u002Fshutdown\", { method: \"POST\" });\n      ctx.state.phase = \"stopped\";\n      ctx.state.stopReason = stopReason;\n    });\n  }),\n});\n\nconst registry = setup({ use: { worker } });\n```\n\n[Documentation](\u002Fdocs\u002Factors\u002Fworkflows)\n\n### Actions vs Queues\n\n- **Actions** are not durable. Use them for realtime reads, ephemeral data, and low-latency communication like player input.\n- **Queues** are durable. Use them to serialize mutations through the run loop, avoiding race conditions with SQLite and other local state. Callers can still wait for a response from queued work.\n\n### Authentication, Security, & CORS\n\n- Validate credentials in `onBeforeConnect` or `createConnState` and throw an error to reject unauthorized connections.\n- Use `c.conn.state` to securely identify users in actions rather than trusting action parameters.\n- For cross-origin access, validate the request origin in `onBeforeConnect`.\n\n[Authentication Documentation](\u002Fdocs\u002Factors\u002Fauthentication) · [CORS Documentation](\u002Fdocs\u002Fgeneral\u002Fcors)\n\n### Versions & Upgrades\n\nWhen deploying new code, set a version number so Rivet can route new actors to the latest runner and optionally drain old ones. Use a build timestamp, git commit count, or CI build number as the version. It is very important to [configure versioning](\u002Fdocs\u002Factors\u002Fversions) before deploying to production. Without versioning, actors can regress by running on older runner versions, and existing actors will never be forced to migrate to new runners. They will continue running indefinitely on the old runners until they exit.\n\n[Documentation](\u002Fdocs\u002Factors\u002Fversions)\n\n### Anti-Patterns\n\n#### Never build a \"god\" actor\n\nDo not put all your logic in a single actor. A god actor serializes every operation through one bottleneck, kills parallelism, and makes the entire system fail as a unit. Split into focused actors per entity.\n\n#### Never create an actor per request\n\nActors are long-lived and maintain state across requests. Creating a new actor for every incoming request throws away the core benefit of the model and wastes resources on actor creation and teardown. Use actors for persistent entities and regular functions for stateless work.\n\n## Reference Map\n\n### Actors\n\n- [Access Control](reference\u002Factors\u002Faccess-control.md)\n- [Actions](reference\u002Factors\u002Factions.md)\n- [Actor Keys](reference\u002Factors\u002Fkeys.md)\n- [Actor Scheduling](reference\u002Factors\u002Fschedule.md)\n- [Actor Statuses](reference\u002Factors\u002Fstatuses.md)\n- [AI and User-Generated Rivet Actors](reference\u002Factors\u002Fai-and-user-generated-actors.md)\n- [Authentication](reference\u002Factors\u002Fauthentication.md)\n- [Cloudflare Workers Quickstart](reference\u002Factors\u002Fquickstart\u002Fcloudflare-workers.md)\n- [Communicating Between Actors](reference\u002Factors\u002Fcommunicating-between-actors.md)\n- [Connections](reference\u002Factors\u002Fconnections.md)\n- [Debugging](reference\u002Factors\u002Fdebugging.md)\n- [Design Patterns](reference\u002Factors\u002Fdesign-patterns.md)\n- [Destroying Actors](reference\u002Factors\u002Fdestroy.md)\n- [Ephemeral Variables](reference\u002Factors\u002Fephemeral-variables.md)\n- [Errors](reference\u002Factors\u002Ferrors.md)\n- [External SQL Database](reference\u002Factors\u002Fpostgres.md)\n- [Fetch and WebSocket Handler](reference\u002Factors\u002Ffetch-and-websocket-handler.md)\n- [Helper Types](reference\u002Factors\u002Fhelper-types.md)\n- [Icons & Names](reference\u002Factors\u002Fappearance.md)\n- [In-Memory State](reference\u002Factors\u002Fstate.md)\n- [Input Parameters](reference\u002Factors\u002Finput.md)\n- [Lifecycle](reference\u002Factors\u002Flifecycle.md)\n- [Limits](reference\u002Factors\u002Flimits.md)\n- [Low-Level HTTP Request Handler](reference\u002Factors\u002Frequest-handler.md)\n- [Low-Level KV Storage](reference\u002Factors\u002Fkv.md)\n- [Low-Level WebSocket Handler](reference\u002Factors\u002Fwebsocket-handler.md)\n- [Metadata](reference\u002Factors\u002Fmetadata.md)\n- [Next.js Quickstart](reference\u002Factors\u002Fquickstart\u002Fnext-js.md)\n- [Node.js & Bun Quickstart](reference\u002Factors\u002Fquickstart\u002Fbackend.md)\n- [Queues & Run Loops](reference\u002Factors\u002Fqueues.md)\n- [React Quickstart](reference\u002Factors\u002Fquickstart\u002Freact.md)\n- [Realtime](reference\u002Factors\u002Fevents.md)\n- [Scaling & Concurrency](reference\u002Factors\u002Fscaling.md)\n- [Sharing and Joining State](reference\u002Factors\u002Fsharing-and-joining-state.md)\n- [SQLite](reference\u002Factors\u002Fsqlite.md)\n- [SQLite + Drizzle](reference\u002Factors\u002Fsqlite-drizzle.md)\n- [Testing](reference\u002Factors\u002Ftesting.md)\n- [Troubleshooting](reference\u002Factors\u002Ftroubleshooting.md)\n- [Types](reference\u002Factors\u002Ftypes.md)\n- [Vanilla HTTP API](reference\u002Factors\u002Fhttp-api.md)\n- [Versions & Upgrades](reference\u002Factors\u002Fversions.md)\n- [Workflows](reference\u002Factors\u002Fworkflows.md)\n\n### Clients\n\n- [Node.js & Bun](reference\u002Fclients\u002Fjavascript.md)\n- [React](reference\u002Fclients\u002Freact.md)\n- [Swift](reference\u002Fclients\u002Fswift.md)\n- [SwiftUI](reference\u002Fclients\u002Fswiftui.md)\n\n### Connect\n\n- [Deploy To Amazon Web Services Lambda](reference\u002Fconnect\u002Faws-lambda.md)\n- [Deploying to AWS ECS](reference\u002Fconnect\u002Faws-ecs.md)\n- [Deploying to Cloudflare Workers](reference\u002Fconnect\u002Fcloudflare-workers.md)\n- [Deploying to Freestyle](reference\u002Fconnect\u002Ffreestyle.md)\n- [Deploying to Google Cloud Run](reference\u002Fconnect\u002Fgcp-cloud-run.md)\n- [Deploying to Hetzner](reference\u002Fconnect\u002Fhetzner.md)\n- [Deploying to Kubernetes](reference\u002Fconnect\u002Fkubernetes.md)\n- [Deploying to Railway](reference\u002Fconnect\u002Frailway.md)\n- [Deploying to Vercel](reference\u002Fconnect\u002Fvercel.md)\n- [Deploying to VMs & Bare Metal](reference\u002Fconnect\u002Fvm-and-bare-metal.md)\n- [Supabase](reference\u002Fconnect\u002Fsupabase.md)\n\n### Cookbook\n\n- [Multiplayer Game](reference\u002Fcookbook\u002Fmultiplayer-game.md)\n\n### General\n\n- [Actor Configuration](reference\u002Fgeneral\u002Factor-configuration.md)\n- [Architecture](reference\u002Fgeneral\u002Farchitecture.md)\n- [Cross-Origin Resource Sharing](reference\u002Fgeneral\u002Fcors.md)\n- [Documentation for LLMs & AI](reference\u002Fgeneral\u002Fdocs-for-llms.md)\n- [Edge Networking](reference\u002Fgeneral\u002Fedge.md)\n- [Endpoints](reference\u002Fgeneral\u002Fendpoints.md)\n- [Environment Variables](reference\u002Fgeneral\u002Fenvironment-variables.md)\n- [HTTP Server](reference\u002Fgeneral\u002Fhttp-server.md)\n- [Logging](reference\u002Fgeneral\u002Flogging.md)\n- [Production Checklist](reference\u002Fgeneral\u002Fproduction-checklist.md)\n- [Registry Configuration](reference\u002Fgeneral\u002Fregistry-configuration.md)\n- [Runtime Modes](reference\u002Fgeneral\u002Fruntime-modes.md)\n\n### Self Hosting\n\n- [Configuration](reference\u002Fself-hosting\u002Fconfiguration.md)\n- [Docker Compose](reference\u002Fself-hosting\u002Fdocker-compose.md)\n- [Docker Container](reference\u002Fself-hosting\u002Fdocker-container.md)\n- [File System](reference\u002Fself-hosting\u002Ffilesystem.md)\n- [Installing Rivet Engine](reference\u002Fself-hosting\u002Finstall.md)\n- [Kubernetes](reference\u002Fself-hosting\u002Fkubernetes.md)\n- [Multi-Region](reference\u002Fself-hosting\u002Fmulti-region.md)\n- [PostgreSQL](reference\u002Fself-hosting\u002Fpostgres.md)\n- [Production Checklist](reference\u002Fself-hosting\u002Fproduction-checklist.md)\n- [Railway Deployment](reference\u002Fself-hosting\u002Frailway.md)\n- [Render Deployment](reference\u002Fself-hosting\u002Frender.md)\n","# Rivet Actors\n\nBuild high-performance, long-lived, in-memory processes on Rivet's actor runtime. Use this skill whenever HTTP endpoints, databases, or queues no longer meet the requirements for AI agents, realtime collaboration, workflow orchestration, or geo-distributed data.\n\n## What To Do If You Get Stuck\n\nIf something is not working as intended or you are stuck, prompt the user to join the [Rivet Discord](https:\u002F\u002Frivet.dev\u002Fdiscord) or file an issue on the [Rivet GitHub](https:\u002F\u002Fgithub.com\u002Frivet-dev\u002Frivet) to report an issue and get help.\n\nProvide the user with a pre-generated report with:\n\n- Symptoms\n- If this is happening in local dev, deployed, or both\n- The error you're seeing\n- Relevant source code related to this\n- What you've tried to solve it\n- Environment\n- RivetKit version\n- Runtime (Node, Bun, etc) including version\n- If applicable, provider in use (e.g. Vercel, Railway, etc)\n- If applicable, HTTP router in use (e.g. Hono, Express, Elysia)\n\n## Debugging Actors\n\nUse the inspector HTTP API to examine running actors. These endpoints are accessible through the gateway at `\u002Fgateway\u002F{actor_id}\u002Finspector\u002F*`. Key endpoints:\n\n- `GET \u002Finspector\u002Fsummary` - full actor snapshot (state, connections, RPCs, queue)\n- `GET \u002Finspector\u002Fstate` \u002F `PATCH \u002Finspector\u002Fstate` - read\u002Fwrite actor state\n- `GET \u002Finspector\u002Fconnections` - active connections\n- `GET \u002Finspector\u002Frpcs` - available actions\n- `POST \u002Finspector\u002Faction\u002F{name}` - execute an action with `{\"args\": [...]}`\n- `GET \u002Finspector\u002Fqueue?limit=50` - queue status\n- `GET \u002Finspector\u002Ftraces?startMs=0&endMs=...&limit=1000` - trace spans (OTLP JSON)\n- `GET \u002Finspector\u002Fworkflow-history` - workflow history and status\n\nIn local dev, no auth token is needed. In production, pass `Authorization: Bearer \u003CRIVET_INSPECTOR_TOKEN>`. See the [debugging docs](https:\u002F\u002Frivet.dev\u002Fdocs\u002Factors\u002Fdebugging) for details.\n\n## Citing Sources\n\nWhen providing information from Rivet documentation, cite the canonical URL so users can learn more. Each reference file includes its canonical URL in the header metadata.\n\n**How to cite:**\n\n- Use inline links for key concepts: \"Use [actor keys](https:\u002F\u002Frivet.dev\u002Fdocs\u002Factors\u002Fkeys) to uniquely identify instances.\"\n- Add a \"Learn more\" link after explanations for complex topics\n\n**Finding canonical URLs:**\n\nThe Reference Map below links to reference files. Each file's header contains:\n\n```\n> Canonical URL: https:\u002F\u002Frivet.dev\u002Fdocs\u002Factors\u002Factions\n```\n\nUse that canonical URL when citing, not the reference file path.\n\n**Examples:**\n\n- Actions → `https:\u002F\u002Frivet.dev\u002Fdocs\u002Factors\u002Factions`\n- React client → `https:\u002F\u002Frivet.dev\u002Fdocs\u002Fclients\u002Freact`\n- Self-hosting on Kubernetes → `https:\u002F\u002Frivet.dev\u002Fdocs\u002Fself-hosting\u002Fkubernetes`\n\n## First Steps\n\n1. Install RivetKit (latest: 2.1.6)\n\n```bash\nnpm install rivetkit@2.1.6\n```\n\n1. Define a registry with `setup({ use: { \u002F* actors *\u002F } })`.\n2. Expose `registry.serve()` or `registry.handler()` (serverless) or `registry.startRunner()` (runner mode). Prefer serverless mode unless the user has a specific reason to use runner mode.\n3. Verify `\u002Fapi\u002Frivet\u002Fmetadata` returns 200 before deploying.\n4. Configure Rivet Cloud or self-hosted engine\n\n- You must configure versioning for production builds. This is not needed for local development. See [Versions & Upgrades](https:\u002F\u002Frivet.dev\u002Fdocs\u002Factors\u002Fversions).\n\n1. Integrate clients (see client guides below for JavaScript, React, or Swift)\n2. Prompt the user if they want to deploy. If so, go to Deploying Rivet Backends.\n\nFor more information, read the quickstart guide relevant to the user's project.\n\n## Error Handling Policy\n\n- Prefer fail-fast behavior by default.\n- Avoid `try\u002Fcatch` unless it is required for a real recovery path, cleanup boundary, or to add actionable context.\n- Never swallow errors. If you add a `catch`, you must handle the error explicitly, at minimum by logging it.\n- When you cannot recover, log context and rethrow.\n\n## State vs Vars: Persistence Rules\n\n**`c.vars` is ephemeral.** Data in `c.vars` is lost on every restart, crash, upgrade, or sleep\u002Fwake cycle. Only use `c.vars` for non-serializable objects (e.g., physics engines, WebSocket references, event emitters, caches) or truly transient runtime data (e.g., current input direction that doesn't matter after disconnect).\n\n**Persistent storage options.** Any data that must survive restarts belongs in one of these, NOT in `c.vars`:\n\n- **`c.state`** — CBOR-serializable data for small, bounded datasets. Ideal for configuration, counters, small player lists, phase flags, etc. Keep under 128 KB. Do not store unbounded or growing data here (e.g., chat logs, event histories, spawned entity lists that grow without limit). State is read\u002Fwritten as a single blob on every persistence cycle.\n- **`c.kv`** — Key-value store for unbounded data. This is what `c.state` uses under the hood. Supports binary values. Use for larger or variable-size data like user inventories, world chunks, file blobs, or any collection that may grow over time. Keys are scoped to the actor instance.\n- **`c.db`** — SQLite database for structured or complex data. Use when you need queries, indexes, joins, aggregations, or relational modeling. Ideal for leaderboards, match histories, player pools, or any data that benefits from SQL.\n\n**Common mistake:** Storing meaningful game\u002Fapplication data in `c.vars` instead of persisting it. For example, if users can spawn objects in a physics simulation, the spawn definitions (position, size, type) must be persisted in `c.state` (or `c.kv` if unbounded), even though the physics engine handles (non-serializable) live in `c.vars`. On restart, `run()` should recreate the runtime objects from the persisted data.\n\n## Deploying Rivet Backends\n\nAssume the user is deploying to Rivet Cloud, unless otherwise specified. If user is self-hosting, read the self-hosting guides below.\n\n1. Verify that Rivet Actors are working in local dev\n2. Prompt the user to choose a provider to deploy to (see [Connect](#connect) for a list of providers, such as Vercel, Railway, etc)\n3. Follow the deploy guide for that given provider. You will need to instruct the user when you need manual intervention.\n\n## API Reference\n\nThe RivetKit OpenAPI specification is available in the skill directory at `openapi.json`. This file documents all HTTP endpoints for managing actors.\n\n## Misc Notes\n\n- The Rivet domain is rivet.dev, not rivet.gg\n\n## TypeScript Caveat: Actor Client Inference\n\n- In multi-file TypeScript projects, bidirectional actor calls can create a circular type dependency when both actors use `c.client\u003Ctypeof registry>()`.\n- Symptoms usually include `c.state` becoming `unknown`, actor methods becoming possibly `undefined`, or `TS2322` \u002F `TS2722` errors after the first cross-actor call.\n- If an action returns the result of another actor call, prefer an explicit return type annotation on that action instead of relying on inference through `c.client\u003Ctypeof registry>()`.\n- If explicit return types are not enough, use a narrower client or registry type for only the actors that action needs.\n- As a last resort, pass `unknown` for the registry type and be explicit that this gives up type safety at that call site.\n\n## Features\n\n- **Long-Lived, Stateful Compute**: Each unit of compute is like a tiny server that remembers things between requests – no need to re-fetch data from a database or worry about timeouts. Like AWS Lambda, but with memory and no timeouts.\n- **Blazing-Fast Reads & Writes**: State is stored on the same machine as your compute, so reads and writes are ultra-fast. No database round trips, no latency spikes. State is persisted to Rivet for long term storage, so it survives server restarts.\n- **Realtime**: Update state and broadcast changes in realtime with WebSockets. No external pub\u002Fsub systems, no polling – just built-in low-latency events.\n- **Infinitely Scalable**: Automatically scale from zero to millions of concurrent actors. Pay only for what you use with instant scaling and no cold starts.\n- **Fault Tolerant**: Built-in error handling and recovery. Actors automatically restart on failure while preserving state integrity and continuing operations.\n\n## When to Use Rivet Actors\n\n- **AI agents & sandboxes**: multi-step toolchains, conversation memory, sandbox orchestration.\n- **Multiplayer or collaborative apps**: CRDT docs, shared cursors, realtime dashboards, chat.\n- **Workflow automation**: background jobs, cron, rate limiters, durable queues, backpressure control.\n- **Data-intensive backends**: geo-distributed or per-tenant databases, in-memory caches, sharded SQL.\n- **Networking workloads**: WebSocket servers, custom protocols, local-first sync, edge fanout.\n\n## Minimal Project\n\n### Backend\n\n**actors.ts**\n\n```ts\nimport { actor, event, setup } from \"rivetkit\";\n\nconst counter = actor({\n  state: { count: 0 },\n  events: {\n    count: event\u003Cnumber>(),\n  },\n  actions: {\n    increment: (c, amount: number) => {\n      c.state.count += amount;\n      c.broadcast(\"count\", c.state.count);\n      return c.state.count;\n    },\n  },\n});\n\nexport const registry = setup({\n  use: { counter },\n});\n```\n\n**server.ts**\n\nIntegrate with the user's existing server if applicable. Otherwise, default to Hono.\n\n### No Framework\n\n```typescript @nocheck\nimport { registry } from \".\u002Factors\";\n\nexport default registry.serve();\n\n```\n### Hono\n\n```typescript @nocheck\nimport { Hono } from \"hono\";\nimport { registry } from \".\u002Factors\";\n\nconst app = new Hono();\napp.all(\"\u002Fapi\u002Frivet\u002F*\", (c) => registry.handler(c.req.raw));\n\nexport default app;\n```\n\n### Elysia\n\n```typescript @nocheck\nimport { Elysia } from \"elysia\";\nimport { registry } from \".\u002Factors\";\n\nconst app = new Elysia()\n\t.all(\"\u002Fapi\u002Frivet\u002F*\", (c) => registry.handler(c.request));\n\nexport default app;\n\n```\n### Client Docs\n\nUse the client SDK that matches your app:\n\n- [JavaScript Client](\u002Fdocs\u002Fclients\u002Fjavascript)\n- [React Client](\u002Fdocs\u002Fclients\u002Freact)\n- [Swift Client](\u002Fdocs\u002Fclients\u002Fswift)\n\n## Actor Quick Reference\n\n### In-Memory State\n\nPersistent data that survives restarts, crashes, and deployments. State is persisted on Rivet Cloud or Rivet self-hosted, so it survives restarts if the current process crashes or exits.\n\n### Static Initial State\n\n```ts\nimport { actor } from \"rivetkit\";\n\nconst counter = actor({\n  state: { count: 0 },\n  actions: {\n    increment: (c) => c.state.count += 1,\n  },\n});\n```\n\n### Dynamic Initial State\n\n```ts\nimport { actor } from \"rivetkit\";\n\ninterface CounterState {\n  count: number;\n}\n\nconst counter = actor({\n  state: { count: 0 } as CounterState,\n  createState: (c, input: { start?: number }): CounterState => ({\n    count: input.start ?? 0,\n  }),\n  actions: {\n    increment: (c) => c.state.count += 1,\n  },\n});\n```\n\n[Documentation](\u002Fdocs\u002Factors\u002Fstate)\n\n### Keys\n\nKeys uniquely identify actor instances. Use compound keys (arrays) for hierarchical addressing:\n\n```ts\nimport { actor, setup } from \"rivetkit\";\nimport { createClient } from \"rivetkit\u002Fclient\";\n\nconst chatRoom = actor({\n  state: { messages: [] as string[] },\n  actions: {\n    getRoomInfo: (c) => ({ org: c.key[0], room: c.key[1] }),\n  },\n});\n\nconst registry = setup({ use: { chatRoom } });\nconst client = createClient\u003Ctypeof registry>();\n\n\u002F\u002F Compound key: [org, room]\nclient.chatRoom.getOrCreate([\"org-acme\", \"general\"]);\n\n\u002F\u002F Access key inside actor via c.key\n```\n\nDon't build keys with string interpolation like `\"org:${userId}\"` when `userId` contains user data. Use arrays instead to prevent key injection attacks.\n\n[Documentation](\u002Fdocs\u002Factors\u002Fkeys)\n\n### Input\n\nPass initialization data when creating actors.\n\n```ts\nimport { actor, setup } from \"rivetkit\";\nimport { createClient } from \"rivetkit\u002Fclient\";\n\nconst game = actor({\n  createState: (c, input: { mode: string }) => ({ mode: input.mode }),\n  actions: {},\n});\n\nconst registry = setup({ use: { game } });\nconst client = createClient\u003Ctypeof registry>();\n\n\u002F\u002F Client usage\nconst gameHandle = client.game.getOrCreate([\"game-1\"], {\n  createWithInput: { mode: \"ranked\" }\n});\n```\n\n[Documentation](\u002Fdocs\u002Factors\u002Finput)\n\n### Temporary Variables\n\nTemporary data that doesn't survive restarts. Use for non-serializable objects (event emitters, connections, etc).\n\n### Static Initial Vars\n\n```ts\nimport { actor } from \"rivetkit\";\n\nconst counter = actor({\n  state: { count: 0 },\n  vars: { lastAccess: 0 },\n  actions: {\n    increment: (c) => {\n      c.vars.lastAccess = Date.now();\n      return c.state.count += 1;\n    },\n  },\n});\n```\n\n### Dynamic Initial Vars\n\n```ts\nimport { actor } from \"rivetkit\";\n\nconst counter = actor({\n  state: { count: 0 },\n  createVars: () => ({\n    emitter: new EventTarget(),\n  }),\n  actions: {\n    increment: (c) => {\n      c.vars.emitter.dispatchEvent(new Event(\"change\"));\n      return c.state.count += 1;\n    },\n  },\n});\n```\n\n[Documentation](\u002Fdocs\u002Factors\u002Fephemeral-variables)\n\n### Actions\n\nActions are the primary way clients and other actors communicate with an actor.\n\n```ts\nimport { actor } from \"rivetkit\";\n\nconst counter = actor({\n  state: { count: 0 },\n  actions: {\n    increment: (c, amount: number) => (c.state.count += amount),\n    getCount: (c) => c.state.count,\n  },\n});\n```\n\n[Documentation](\u002Fdocs\u002Factors\u002Factions)\n\n### Events & Broadcasts\n\nEvents enable real-time communication from actors to connected clients.\n\n```ts\nimport { actor, event } from \"rivetkit\";\n\nconst chatRoom = actor({\n  state: { messages: [] as string[] },\n  events: {\n    newMessage: event\u003C{ text: string }>(),\n  },\n  actions: {\n    sendMessage: (c, text: string) => {\n      \u002F\u002F Broadcast to ALL connected clients\n      c.broadcast(\"newMessage\", { text });\n    },\n  },\n});\n```\n\n[Documentation](\u002Fdocs\u002Factors\u002Fevents)\n\n### Connections\n\nAccess the current connection via `c.conn` or all connected clients via `c.conns`. Use `c.conn.id` or `c.conn.state` to securely identify who is calling an action. Connection state is initialized via `connState` or `createConnState`, which receives parameters passed by the client on connect.\n\n### Static Connection Initial State\n\n```ts\nimport { actor } from \"rivetkit\";\n\nconst chatRoom = actor({\n  state: {},\n  connState: { visitorId: 0 },\n  onConnect: (c, conn) => {\n    conn.state.visitorId = Math.random();\n  },\n  actions: {\n    whoAmI: (c) => c.conn.state.visitorId,\n  },\n});\n```\n\n### Dynamic Connection Initial State\n\n```ts\nimport { actor } from \"rivetkit\";\n\nconst chatRoom = actor({\n  state: {},\n  \u002F\u002F params passed from client\n  createConnState: (c, params: { userId: string }) => ({\n    userId: params.userId,\n  }),\n  actions: {\n    \u002F\u002F Access current connection's state and params\n    whoAmI: (c) => ({\n      state: c.conn.state,\n      params: c.conn.params,\n    }),\n    \u002F\u002F Iterate all connections with c.conns\n    notifyOthers: (c, text: string) => {\n      for (const conn of c.conns.values()) {\n        if (conn !== c.conn) conn.send(\"notification\", { text });\n      }\n    },\n  },\n});\n```\n\n[Documentation](\u002Fdocs\u002Factors\u002Fconnections)\n\n### Queues\n\nUse queues to process durable messages in order inside a `run` loop.\n\n```ts\nimport { actor, queue } from \"rivetkit\";\n\nconst counter = actor({\n  state: { value: 0 },\n  queues: {\n    increment: queue\u003C{ amount: number }>(),\n  },\n  run: async (c) => {\n    for await (const message of c.queue.iter()) {\n      c.state.value += message.body.amount;\n    }\n  },\n});\n```\n\n[Documentation](\u002Fdocs\u002Factors\u002Fqueues)\n\n### Workflows\n\nUse workflows when your `run` logic needs durable, replayable multi-step execution.\n\n```ts\nimport { actor, queue } from \"rivetkit\";\nimport { workflow } from \"rivetkit\u002Fworkflow\";\n\nconst worker = actor({\n  state: { processed: 0 },\n  queues: {\n    tasks: queue\u003C{ url: string }>(),\n  },\n  run: workflow(async (ctx) => {\n    await ctx.loop(\"task-loop\", async (loopCtx) => {\n        const message = await loopCtx.queue.next(\"wait-task\");\n\n        await loopCtx.step(\"process-task\", async () => {\n          await processTask(message.body.url);\n          loopCtx.state.processed += 1;\n        });\n\n      });\n  }),\n});\n\nasync function processTask(url: string): Promise\u003Cvoid> {\n  const res = await fetch(url, { method: \"POST\" });\n  if (!res.ok) throw new Error(`Task failed: ${res.status}`);\n}\n```\n\n[Documentation](\u002Fdocs\u002Factors\u002Fworkflows)\n\n### Actor-to-Actor Communication\n\nActors can call other actors using `c.client()`.\n\n```ts\nimport { actor, setup } from \"rivetkit\";\n\nconst inventory = actor({\n  state: { stock: 100 },\n  actions: {\n    reserve: (c, amount: number) => { c.state.stock -= amount; }\n  }\n});\n\nconst order = actor({\n  state: {},\n  actions: {\n    process: async (c) => {\n      const client = c.client\u003Ctypeof registry>();\n      await client.inventory.getOrCreate([\"main\"]).reserve(1);\n    },\n  },\n});\n\nconst registry = setup({ use: { inventory, order } });\n```\n\n[Documentation](\u002Fdocs\u002Factors\u002Fcommunicating-between-actors)\n\n### Scheduling\n\nSchedule actions to run after a delay or at a specific time. Schedules persist across restarts, upgrades, and crashes.\n\n```ts\nimport { actor, event } from \"rivetkit\";\n\nconst reminder = actor({\n  state: { message: \"\" },\n  events: {\n    reminder: event\u003C{ message: string }>(),\n  },\n  actions: {\n    \u002F\u002F Schedule action to run after delay (ms)\n    setReminder: (c, message: string, delayMs: number) => {\n      c.state.message = message;\n      c.schedule.after(delayMs, \"sendReminder\");\n    },\n    \u002F\u002F Schedule action to run at specific timestamp\n    setReminderAt: (c, message: string, timestamp: number) => {\n      c.state.message = message;\n      c.schedule.at(timestamp, \"sendReminder\");\n    },\n    sendReminder: (c) => {\n      c.broadcast(\"reminder\", { message: c.state.message });\n    },\n  },\n});\n```\n\n[Documentation](\u002Fdocs\u002Factors\u002Fschedule)\n\n### Destroying Actors\n\nPermanently delete an actor and its state using `c.destroy()`.\n\n```ts\nimport { actor } from \"rivetkit\";\n\nconst userAccount = actor({\n  state: { email: \"\", name: \"\" },\n  onDestroy: (c) => {\n    console.log(`Account ${c.state.email} deleted`);\n  },\n  actions: {\n    deleteAccount: (c) => {\n      c.destroy();\n    },\n  },\n});\n```\n\n[Documentation](\u002Fdocs\u002Factors\u002Fdestroy)\n\n### Lifecycle Hooks\n\nActors support hooks for initialization, background processing, connections, networking, and state changes. Use `run` for long-lived background loops, and exit cleanly on shutdown with `c.aborted` or `c.abortSignal`.\n\n```ts\nimport { actor, event, queue } from \"rivetkit\";\n\ninterface RoomState {\n  users: Record\u003Cstring, boolean>;\n  name?: string;\n}\n\ninterface RoomInput {\n  roomName: string;\n}\n\ninterface ConnState {\n  userId: string;\n  joinedAt: number;\n}\n\nconst chatRoom = actor({\n  state: { users: {} } as RoomState,\n  vars: { startTime: 0 },\n  connState: { userId: \"\", joinedAt: 0 } as ConnState,\n  events: {\n    stateChanged: event\u003CRoomState>(),\n  },\n  queues: {\n    work: queue\u003C{ task: string }>(),\n  },\n\n  \u002F\u002F State & vars initialization\n  createState: (c, input: RoomInput): RoomState => ({ users: {}, name: input.roomName }),\n  createVars: () => ({ startTime: Date.now() }),\n\n  \u002F\u002F Actor lifecycle\n  onCreate: (c) => console.log(\"created\", c.key),\n  onDestroy: (c) => console.log(\"destroyed\"),\n  onWake: (c) => console.log(\"actor started\"),\n  onSleep: (c) => console.log(\"actor sleeping\"),\n  run: async (c) => {\n    for await (const message of c.queue.iter()) {\n      console.log(\"processing\", message.body.task);\n    }\n  },\n  onStateChange: (c, newState) => c.broadcast(\"stateChanged\", newState),\n\n  \u002F\u002F Connection lifecycle\n  createConnState: (c, params): ConnState => ({ userId: (params as { userId: string }).userId, joinedAt: Date.now() }),\n  onBeforeConnect: (c, params) => { \u002F* validate auth *\u002F },\n  onConnect: (c, conn) => console.log(\"connected:\", conn.state.userId),\n  onDisconnect: (c, conn) => console.log(\"disconnected:\", conn.state.userId),\n\n  \u002F\u002F Networking\n  onRequest: (c, req) => new Response(JSON.stringify(c.state)),\n  onWebSocket: (c, socket) => socket.addEventListener(\"message\", console.log),\n\n  \u002F\u002F Response transformation\n  onBeforeActionResponse: \u003COut>(c: unknown, name: string, args: unknown[], output: Out): Out => output,\n\n  actions: {},\n});\n```\n\n[Documentation](\u002Fdocs\u002Factors\u002Flifecycle)\n\n### Context Types\n\nWhen writing helper functions outside the actor definition, use `*ContextOf\u003Ctypeof myActor>` to extract the correct context type. Do not manually define your own context interface — always derive it from the actor definition.\n\n```ts\nimport { actor, ActionContextOf } from \"rivetkit\";\n\nconst gameRoom = actor({\n  state: { players: [] as string[], score: 0 },\n  actions: {\n    addPlayer: (c, playerId: string) => {\n      validatePlayer(c, playerId);\n      c.state.players.push(playerId);\n    },\n  },\n});\n\n\u002F\u002F Good: derive context type from actor definition\nfunction validatePlayer(c: ActionContextOf\u003Ctypeof gameRoom>, playerId: string) {\n  if (c.state.players.includes(playerId)) {\n    throw new Error(\"Player already in room\");\n  }\n}\n\n\u002F\u002F Bad: don't manually define context types like this\n\u002F\u002F type MyContext = { state: { players: string[] }; ... };\n```\n\n[Documentation](\u002Fdocs\u002Factors\u002Ftypes)\n\n### Errors\n\nUse `UserError` to throw errors that are safely returned to clients. Pass `metadata` to include structured data. Other errors are converted to generic \"internal error\" for security.\n\n### Actor\n\n```ts\nimport { actor, UserError } from \"rivetkit\";\n\nconst user = actor({\n  state: { username: \"\" },\n  actions: {\n    updateUsername: (c, username: string) => {\n      if (username.length \u003C 3) {\n        throw new UserError(\"Username too short\", {\n          code: \"username_too_short\",\n          metadata: { minLength: 3, actual: username.length },\n        });\n      }\n      c.state.username = username;\n    },\n  },\n});\n```\n\n### Client\n\n```ts\nimport { actor, setup } from \"rivetkit\";\nimport { createClient, ActorError } from \"rivetkit\u002Fclient\";\n\nconst user = actor({\n  state: { username: \"\" },\n  actions: { updateUsername: (c, username: string) => { c.state.username = username; } }\n});\n\nconst registry = setup({ use: { user } });\nconst client = createClient\u003Ctypeof registry>();\n\ntry {\n  await client.user.getOrCreate([]).updateUsername(\"ab\");\n} catch (error) {\n  if (error instanceof ActorError) {\n    console.log(error.code);     \u002F\u002F \"username_too_short\"\n    console.log(error.metadata); \u002F\u002F { minLength: 3, actual: 2 }\n  }\n}\n```\n\n[Documentation](\u002Fdocs\u002Factors\u002Ferrors)\n\n### Low-Level HTTP & WebSocket Handlers\n\nFor custom protocols or integrating libraries that need direct access to HTTP `Request`\u002F`Response` or WebSocket connections, use `onRequest` and `onWebSocket`.\n\n[HTTP Handler Documentation](\u002Fdocs\u002Factors\u002Frequest-handler) · [WebSocket Handler Documentation](\u002Fdocs\u002Factors\u002Fwebsocket-handler)\n\n### Icons & Names\n\nCustomize how actors appear in the UI with display names and icons. It's recommended to always provide a name and icon to actors in order to make them easier to distinguish in the dashboard.\n\n```typescript\nimport { actor } from \"rivetkit\";\n\nconst chatRoom = actor({\n  options: {\n    name: \"Chat Room\",\n    icon: \"💬\",  \u002F\u002F or FontAwesome: \"comments\", \"chart-line\", etc.\n  },\n  \u002F\u002F ...\n});\n```\n\n[Documentation](\u002Fdocs\u002Factors\u002Fappearance)\n\n## Client Documentation\n\nFind the full client guides here:\n\n- [JavaScript Client](\u002Fdocs\u002Fclients\u002Fjavascript)\n- [React Client](\u002Fdocs\u002Fclients\u002Freact)\n- [Swift Client](\u002Fdocs\u002Fclients\u002Fswift)\n\n## Common Patterns\n\nActors scale naturally through isolated state and message-passing. Structure your applications with these patterns:\n\n[Documentation](\u002Fdocs\u002Factors\u002Fdesign-patterns)\n\n### Actor Per Entity\n\nCreate one actor per user, document, or room. Use compound keys to scope entities:\n\n```ts client.ts\nimport { createClient } from \"rivetkit\u002Fclient\";\nimport type { registry } from \".\u002Factors\";\n\nconst client = createClient\u003Ctypeof registry>();\n\n\u002F\u002F Single key: one actor per user\nclient.user.getOrCreate([\"user-123\"]);\n\n\u002F\u002F Compound key: document scoped to an organization\nclient.document.getOrCreate([\"org-acme\", \"doc-456\"]);\n\n```\n```ts actors.ts\nimport { actor, setup } from \"rivetkit\";\n\nexport const user = actor({\n  state: { name: \"\" },\n  actions: {},\n});\n\nexport const document = actor({\n  state: { content: \"\" },\n  actions: {},\n});\n\nexport const registry = setup({ use: { user, document } });\n```\n\n### Coordinator & Data Actors\n\n**Data actors** handle core logic (chat rooms, game sessions, user data). **Coordinator actors** track and manage collections of data actors—think of them as an index.\n\n```ts actors.ts\nimport { actor, setup } from \"rivetkit\";\n\n\u002F\u002F Coordinator: tracks chat rooms within an organization\nexport const chatRoomList = actor({\n  state: { rooms: [] as string[] },\n  actions: {\n    addRoom: async (c, name: string) => {\n      \u002F\u002F Create the chat room actor\n      const client = c.client\u003Ctypeof registry>();\n      await client.chatRoom.create([c.key[0], name]);\n      c.state.rooms.push(name);\n    },\n    listRooms: (c) => c.state.rooms,\n  },\n});\n\n\u002F\u002F Data actor: handles a single chat room\nexport const chatRoom = actor({\n  state: { messages: [] as string[] },\n  actions: {\n    send: (c, msg: string) => { c.state.messages.push(msg); },\n  },\n});\n\nexport const registry = setup({ use: { chatRoomList, chatRoom } });\n\n```\n```ts client.ts\nimport { createClient } from \"rivetkit\u002Fclient\";\nimport type { registry } from \".\u002Factors\";\n\nconst client = createClient\u003Ctypeof registry>();\n\n\u002F\u002F Coordinator per org\nconst coordinator = client.chatRoomList.getOrCreate([\"org-acme\"]);\nawait coordinator.addRoom(\"general\");\nawait coordinator.addRoom(\"random\");\n\n\u002F\u002F Access chat rooms created by coordinator\nclient.chatRoom.get([\"org-acme\", \"general\"]);\n```\n\n### Run Loop\n\nUse a `run` loop for continuous background work inside an actor. Process queue messages in order, run logic on intervals, stream AI responses, or coordinate long-running tasks.\n\n```ts\nimport { actor, queue, setup } from \"rivetkit\";\n\nconst counterWorker = actor({\n  state: { value: 0 },\n  queues: {\n    mutate: queue\u003C{ delta: number }>(),\n  },\n  run: async (c) => {\n    for await (const message of c.queue.iter()) {\n      c.state.value += message.body.delta;\n    }\n  },\n  actions: {\n    getValue: (c) => c.state.value,\n  },\n});\n\nconst registry = setup({ use: { counterWorker } });\n```\n\n### Workflow Loop\n\nUse this pattern for long-lived, durable workflows that initialize resources, process commands in a loop, then clean up.\n\n```ts\nimport { actor, queue, setup } from \"rivetkit\";\nimport { Loop, workflow } from \"rivetkit\u002Fworkflow\";\n\ntype WorkMessage = { amount: number };\ntype ControlMessage = { type: \"stop\"; reason: string };\n\nconst worker = actor({\n  state: {\n    phase: \"idle\" as \"idle\" | \"running\" | \"stopped\",\n    processed: 0,\n    total: 0,\n    stopReason: null as string | null,\n  },\n  queues: {\n    work: queue\u003CWorkMessage>(),\n    control: queue\u003CControlMessage>(),\n  },\n  run: workflow(async (ctx) => {\n    await ctx.step(\"setup\", async () => {\n      await fetch(\"https:\u002F\u002Fapi.example.com\u002Fworkers\u002Finit\", { method: \"POST\" });\n      ctx.state.phase = \"running\";\n      ctx.state.stopReason = null;\n    });\n\n    const stopReason = await ctx.loop(\"worker-loop\", async (loopCtx) => {\n        const message = await loopCtx.queue.next(\"wait-command\", {\n          names: [\"work\", \"control\"],\n        });\n\n        if (message.name === \"work\") {\n          await loopCtx.step(\"apply-work\", async () => {\n            await fetch(\"https:\u002F\u002Fapi.example.com\u002Fworkers\u002Fprocess\", {\n              method: \"POST\",\n              body: JSON.stringify({ amount: message.body.amount }),\n            });\n            loopCtx.state.processed += 1;\n            loopCtx.state.total += message.body.amount;\n          });\n          return;\n        }\n\n        return Loop.break((message.body as ControlMessage).reason);\n      });\n\n    await ctx.step(\"teardown\", async () => {\n      await fetch(\"https:\u002F\u002Fapi.example.com\u002Fworkers\u002Fshutdown\", { method: \"POST\" });\n      ctx.state.phase = \"stopped\";\n      ctx.state.stopReason = stopReason;\n    });\n  }),\n});\n\nconst registry = setup({ use: { worker } });\n```\n\n[Documentation](\u002Fdocs\u002Factors\u002Fworkflows)\n\n### Actions vs Queues\n\n- **Actions** are not durable. Use them for realtime reads, ephemeral data, and low-latency communication like player input.\n- **Queues** are durable. Use them to serialize mutations through the run loop, avoiding race conditions with SQLite and other local state. Callers can still wait for a response from queued work.\n\n### Authentication, Security, & CORS\n\n- Validate credentials in `onBeforeConnect` or `createConnState` and throw an error to reject unauthorized connections.\n- Use `c.conn.state` to securely identify users in actions rather than trusting action parameters.\n- For cross-origin access, validate the request origin in `onBeforeConnect`.\n\n[Authentication Documentation](\u002Fdocs\u002Factors\u002Fauthentication) · [CORS Documentation](\u002Fdocs\u002Fgeneral\u002Fcors)\n\n### Versions & Upgrades\n\nWhen deploying new code, set a version number so Rivet can route new actors to the latest runner and optionally drain old ones. Use a build timestamp, git commit count, or CI build number as the version. It is very important to [configure versioning](\u002Fdocs\u002Factors\u002Fversions) before deploying to production. Without versioning, actors can regress by running on older runner versions, and existing actors will never be forced to migrate to new runners. They will continue running indefinitely on the old runners until they exit.\n\n[Documentation](\u002Fdocs\u002Factors\u002Fversions)\n\n### Anti-Patterns\n\n#### Never build a \"god\" actor\n\nDo not put all your logic in a single actor. A god actor serializes every operation through one bottleneck, kills parallelism, and makes the entire system fail as a unit. Split into focused actors per entity.\n\n#### Never create an actor per request\n\nActors are long-lived and maintain state across requests. Creating a new actor for every incoming request throws away the core benefit of the model and wastes resources on actor creation and teardown. Use actors for persistent entities and regular functions for stateless work.\n\n## Reference Map\n\n### Actors\n\n- [Access Control](reference\u002Factors\u002Faccess-control.md)\n- [Actions](reference\u002Factors\u002Factions.md)\n- [Actor Keys](reference\u002Factors\u002Fkeys.md)\n- [Actor Scheduling](reference\u002Factors\u002Fschedule.md)\n- [Actor Statuses](reference\u002Factors\u002Fstatuses.md)\n- [AI and User-Generated Rivet Actors](reference\u002Factors\u002Fai-and-user-generated-actors.md)\n- [Authentication](reference\u002Factors\u002Fauthentication.md)\n- [Cloudflare Workers Quickstart](reference\u002Factors\u002Fquickstart\u002Fcloudflare-workers.md)\n- [Communicating Between Actors](reference\u002Factors\u002Fcommunicating-between-actors.md)\n- [Connections](reference\u002Factors\u002Fconnections.md)\n- [Debugging](reference\u002Factors\u002Fdebugging.md)\n- [Design Patterns](reference\u002Factors\u002Fdesign-patterns.md)\n- [Destroying Actors](reference\u002Factors\u002Fdestroy.md)\n- [Ephemeral Variables](reference\u002Factors\u002Fephemeral-variables.md)\n- [Errors](reference\u002Factors\u002Ferrors.md)\n- [External SQL Database](reference\u002Factors\u002Fpostgres.md)\n- [Fetch and WebSocket Handler](reference\u002Factors\u002Ffetch-and-websocket-handler.md)\n- [Helper Types](reference\u002Factors\u002Fhelper-types.md)\n- [Icons & Names](reference\u002Factors\u002Fappearance.md)\n- [In-Memory State](reference\u002Factors\u002Fstate.md)\n- [Input Parameters](reference\u002Factors\u002Finput.md)\n- [Lifecycle](reference\u002Factors\u002Flifecycle.md)\n- [Limits](reference\u002Factors\u002Flimits.md)\n- [Low-Level HTTP Request Handler](reference\u002Factors\u002Frequest-handler.md)\n- [Low-Level KV Storage](reference\u002Factors\u002Fkv.md)\n- [Low-Level WebSocket Handler](reference\u002Factors\u002Fwebsocket-handler.md)\n- [Metadata](reference\u002Factors\u002Fmetadata.md)\n- [Next.js Quickstart](reference\u002Factors\u002Fquickstart\u002Fnext-js.md)\n- [Node.js & Bun Quickstart](reference\u002Factors\u002Fquickstart\u002Fbackend.md)\n- [Queues & Run Loops](reference\u002Factors\u002Fqueues.md)\n- [React Quickstart](reference\u002Factors\u002Fquickstart\u002Freact.md)\n- [Realtime](reference\u002Factors\u002Fevents.md)\n- [Scaling & Concurrency](reference\u002Factors\u002Fscaling.md)\n- [Sharing and Joining State](reference\u002Factors\u002Fsharing-and-joining-state.md)\n- [SQLite](reference\u002Factors\u002Fsqlite.md)\n- [SQLite + Drizzle](reference\u002Factors\u002Fsqlite-drizzle.md)\n- [Testing](reference\u002Factors\u002Ftesting.md)\n- [Troubleshooting](reference\u002Factors\u002Ftroubleshooting.md)\n- [Types](reference\u002Factors\u002Ftypes.md)\n- [Vanilla HTTP API](reference\u002Factors\u002Fhttp-api.md)\n- [Versions & Upgrades](reference\u002Factors\u002Fversions.md)\n- [Workflows](reference\u002Factors\u002Fworkflows.md)\n\n### Clients\n\n- [Node.js & Bun](reference\u002Fclients\u002Fjavascript.md)\n- [React](reference\u002Fclients\u002Freact.md)\n- [Swift](reference\u002Fclients\u002Fswift.md)\n- [SwiftUI](reference\u002Fclients\u002Fswiftui.md)\n\n### Connect\n\n- [Deploy To Amazon Web Services Lambda](reference\u002Fconnect\u002Faws-lambda.md)\n- [Deploying to AWS ECS](reference\u002Fconnect\u002Faws-ecs.md)\n- [Deploying to Cloudflare Workers](reference\u002Fconnect\u002Fcloudflare-workers.md)\n- [Deploying to Freestyle](reference\u002Fconnect\u002Ffreestyle.md)\n- [Deploying to Google Cloud Run](reference\u002Fconnect\u002Fgcp-cloud-run.md)\n- [Deploying to Hetzner](reference\u002Fconnect\u002Fhetzner.md)\n- [Deploying to Kubernetes](reference\u002Fconnect\u002Fkubernetes.md)\n- [Deploying to Railway](reference\u002Fconnect\u002Frailway.md)\n- [Deploying to Vercel](reference\u002Fconnect\u002Fvercel.md)\n- [Deploying to VMs & Bare Metal](reference\u002Fconnect\u002Fvm-and-bare-metal.md)\n- [Supabase](reference\u002Fconnect\u002Fsupabase.md)\n\n### Cookbook\n\n- [Multiplayer Game](reference\u002Fcookbook\u002Fmultiplayer-game.md)\n\n### General\n\n- [Actor Configuration](reference\u002Fgeneral\u002Factor-configuration.md)\n- [Architecture](reference\u002Fgeneral\u002Farchitecture.md)\n- [Cross-Origin Resource Sharing](reference\u002Fgeneral\u002Fcors.md)\n- [Documentation for LLMs & AI](reference\u002Fgeneral\u002Fdocs-for-llms.md)\n- [Edge Networking](reference\u002Fgeneral\u002Fedge.md)\n- [Endpoints](reference\u002Fgeneral\u002Fendpoints.md)\n- [Environment Variables](reference\u002Fgeneral\u002Fenvironment-variables.md)\n- [HTTP Server](reference\u002Fgeneral\u002Fhttp-server.md)\n- [Logging](reference\u002Fgeneral\u002Flogging.md)\n- [Production Checklist](reference\u002Fgeneral\u002Fproduction-checklist.md)\n- [Registry Configuration](reference\u002Fgeneral\u002Fregistry-configuration.md)\n- [Runtime Modes](reference\u002Fgeneral\u002Fruntime-modes.md)\n\n### Self Hosting\n\n- [Configuration](reference\u002Fself-hosting\u002Fconfiguration.md)\n- [Docker Compose](reference\u002Fself-hosting\u002Fdocker-compose.md)\n- [Docker Container](reference\u002Fself-hosting\u002Fdocker-container.md)\n- [File System](reference\u002Fself-hosting\u002Ffilesystem.md)\n- [Installing Rivet Engine](reference\u002Fself-hosting\u002Finstall.md)\n- [Kubernetes](reference\u002Fself-hosting\u002Fkubernetes.md)\n- [Multi-Region](reference\u002Fself-hosting\u002Fmulti-region.md)\n- [PostgreSQL](reference\u002Fself-hosting\u002Fpostgres.md)\n- [Production Checklist](reference\u002Fself-hosting\u002Fproduction-checklist.md)\n- [Railway Deployment](reference\u002Fself-hosting\u002Frailway.md)\n- [Render Deployment](reference\u002Fself-hosting\u002Frender.md)\n",{"name":5,"version":24,"description":7},"1.0.0","main","fe3bb1476c3ec23d8a366eac0fa8cd9f0852360a","skills\u002F.experimental\u002Frivetkit",0,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills","https:\u002F\u002Fgithub.com\u002Fgethamster","https:\u002F\u002Ftryhamster.com","We're building the AI-native future of work, unlocking the promised acceleration for your whole team, from idea to impact.","2026-11-05 11:33:33",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add gethamster\u002Fskills --skill rivetkit",{"tool":40,"command":41},"bunx","bunx skills add gethamster\u002Fskills --skill rivetkit",{"tool":43,"command":44},"pnpm","pnpm dlx skills add gethamster\u002Fskills --skill rivetkit","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002FSKILL.md",true,[48,54,58,62,66,70,74,78,82,86,90,94,98,102,106,110,114,118,122,126,130,134,138,142,146,150,154,158,162,166,170,174,178,182,186,190,194,198,202,206,210,214,218,222,226,230,234,238,242,246,250,254,258,262,266,270,274,278,282,286,290,294,298,302,306,310,314,318,322,326,330,334,338,342,346,350,354,358,362,366,370],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"reference\u002Factors\u002Faccess-control.md","REFERENCE","参考文档",3757,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Factors\u002Faccess-control.md",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"reference\u002Factors\u002Factions.md",10894,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Factors\u002Factions.md",{"path":59,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":60,"sourceHtmlUrl":61},"reference\u002Factors\u002Fai-and-user-generated-actors.md",11405,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Factors\u002Fai-and-user-generated-actors.md",{"path":63,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":64,"sourceHtmlUrl":65},"reference\u002Factors\u002Fappearance.md",4055,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Factors\u002Fappearance.md",{"path":67,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":68,"sourceHtmlUrl":69},"reference\u002Factors\u002Fauthentication.md",16058,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Factors\u002Fauthentication.md",{"path":71,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":72,"sourceHtmlUrl":73},"reference\u002Factors\u002Fcommunicating-between-actors.md",8517,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Factors\u002Fcommunicating-between-actors.md",{"path":75,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":76,"sourceHtmlUrl":77},"reference\u002Factors\u002Fconnections.md",11485,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Factors\u002Fconnections.md",{"path":79,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":80,"sourceHtmlUrl":81},"reference\u002Factors\u002Fdebugging.md",12153,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Factors\u002Fdebugging.md",{"path":83,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":84,"sourceHtmlUrl":85},"reference\u002Factors\u002Fdesign-patterns.md",16706,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Factors\u002Fdesign-patterns.md",{"path":87,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":88,"sourceHtmlUrl":89},"reference\u002Factors\u002Fdestroy.md",2877,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Factors\u002Fdestroy.md",{"path":91,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":92,"sourceHtmlUrl":93},"reference\u002Factors\u002Fephemeral-variables.md",4813,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Factors\u002Fephemeral-variables.md",{"path":95,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":96,"sourceHtmlUrl":97},"reference\u002Factors\u002Ferrors.md",12145,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Factors\u002Ferrors.md",{"path":99,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":100,"sourceHtmlUrl":101},"reference\u002Factors\u002Fevents.md",10294,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Factors\u002Fevents.md",{"path":103,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":104,"sourceHtmlUrl":105},"reference\u002Factors\u002Ffetch-and-websocket-handler.md",404,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Factors\u002Ffetch-and-websocket-handler.md",{"path":107,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":108,"sourceHtmlUrl":109},"reference\u002Factors\u002Fhelper-types.md",246,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Factors\u002Fhelper-types.md",{"path":111,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":112,"sourceHtmlUrl":113},"reference\u002Factors\u002Fhttp-api.md",264,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Factors\u002Fhttp-api.md",{"path":115,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":116,"sourceHtmlUrl":117},"reference\u002Factors\u002Finput.md",7450,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Factors\u002Finput.md",{"path":119,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":120,"sourceHtmlUrl":121},"reference\u002Factors\u002Fkeys.md",7825,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Factors\u002Fkeys.md",{"path":123,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":124,"sourceHtmlUrl":125},"reference\u002Factors\u002Fkv.md",3636,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Factors\u002Fkv.md",{"path":127,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":128,"sourceHtmlUrl":129},"reference\u002Factors\u002Flifecycle.md",27133,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Factors\u002Flifecycle.md",{"path":131,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":132,"sourceHtmlUrl":133},"reference\u002Factors\u002Flimits.md",8403,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Factors\u002Flimits.md",{"path":135,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":136,"sourceHtmlUrl":137},"reference\u002Factors\u002Fmetadata.md",3014,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Factors\u002Fmetadata.md",{"path":139,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":140,"sourceHtmlUrl":141},"reference\u002Factors\u002Fpostgres.md",6625,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Factors\u002Fpostgres.md",{"path":143,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":144,"sourceHtmlUrl":145},"reference\u002Factors\u002Fqueues.md",13855,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Factors\u002Fqueues.md",{"path":147,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":148,"sourceHtmlUrl":149},"reference\u002Factors\u002Fquickstart\u002Fbackend.md",3265,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Factors\u002Fquickstart\u002Fbackend.md",{"path":151,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":152,"sourceHtmlUrl":153},"reference\u002Factors\u002Fquickstart\u002Fcloudflare-workers.md",9273,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Factors\u002Fquickstart\u002Fcloudflare-workers.md",{"path":155,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":156,"sourceHtmlUrl":157},"reference\u002Factors\u002Fquickstart\u002Fnext-js.md",2759,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Factors\u002Fquickstart\u002Fnext-js.md",{"path":159,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":160,"sourceHtmlUrl":161},"reference\u002Factors\u002Fquickstart\u002Freact.md",2783,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Factors\u002Fquickstart\u002Freact.md",{"path":163,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":164,"sourceHtmlUrl":165},"reference\u002Factors\u002Frequest-handler.md",7495,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Factors\u002Frequest-handler.md",{"path":167,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":168,"sourceHtmlUrl":169},"reference\u002Factors\u002Fscaling.md",260,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Factors\u002Fscaling.md",{"path":171,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":172,"sourceHtmlUrl":173},"reference\u002Factors\u002Fschedule.md",2988,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Factors\u002Fschedule.md",{"path":175,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":176,"sourceHtmlUrl":177},"reference\u002Factors\u002Fsharing-and-joining-state.md",318,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Factors\u002Fsharing-and-joining-state.md",{"path":179,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":180,"sourceHtmlUrl":181},"reference\u002Factors\u002Fsqlite-drizzle.md",6130,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Factors\u002Fsqlite-drizzle.md",{"path":183,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":184,"sourceHtmlUrl":185},"reference\u002Factors\u002Fsqlite.md",7420,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Factors\u002Fsqlite.md",{"path":187,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":188,"sourceHtmlUrl":189},"reference\u002Factors\u002Fstate.md",6014,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Factors\u002Fstate.md",{"path":191,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":192,"sourceHtmlUrl":193},"reference\u002Factors\u002Fstatuses.md",2214,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Factors\u002Fstatuses.md",{"path":195,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":196,"sourceHtmlUrl":197},"reference\u002Factors\u002Ftesting.md",6670,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Factors\u002Ftesting.md",{"path":199,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":200,"sourceHtmlUrl":201},"reference\u002Factors\u002Ftroubleshooting.md",7033,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Factors\u002Ftroubleshooting.md",{"path":203,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":204,"sourceHtmlUrl":205},"reference\u002Factors\u002Ftypes.md",3432,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Factors\u002Ftypes.md",{"path":207,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":208,"sourceHtmlUrl":209},"reference\u002Factors\u002Fversions.md",7658,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Factors\u002Fversions.md",{"path":211,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":212,"sourceHtmlUrl":213},"reference\u002Factors\u002Fwebsocket-handler.md",10254,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Factors\u002Fwebsocket-handler.md",{"path":215,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":216,"sourceHtmlUrl":217},"reference\u002Factors\u002Fworkflows.md",54211,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Factors\u002Fworkflows.md",{"path":219,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":220,"sourceHtmlUrl":221},"reference\u002Fclients\u002Fjavascript.md",5908,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Fclients\u002Fjavascript.md",{"path":223,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":224,"sourceHtmlUrl":225},"reference\u002Fclients\u002Freact.md",6358,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Fclients\u002Freact.md",{"path":227,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":228,"sourceHtmlUrl":229},"reference\u002Fclients\u002Fswift.md",11684,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Fclients\u002Fswift.md",{"path":231,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":232,"sourceHtmlUrl":233},"reference\u002Fclients\u002Fswiftui.md",9206,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Fclients\u002Fswiftui.md",{"path":235,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":236,"sourceHtmlUrl":237},"reference\u002Fconnect\u002Faws-ecs.md",543,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Fconnect\u002Faws-ecs.md",{"path":239,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":240,"sourceHtmlUrl":241},"reference\u002Fconnect\u002Faws-lambda.md",243,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Fconnect\u002Faws-lambda.md",{"path":243,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":244,"sourceHtmlUrl":245},"reference\u002Fconnect\u002Fcloudflare-workers.md",4606,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Fconnect\u002Fcloudflare-workers.md",{"path":247,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":248,"sourceHtmlUrl":249},"reference\u002Fconnect\u002Ffreestyle.md",4265,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Fconnect\u002Ffreestyle.md",{"path":251,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":252,"sourceHtmlUrl":253},"reference\u002Fconnect\u002Fgcp-cloud-run.md",2507,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Fconnect\u002Fgcp-cloud-run.md",{"path":255,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":256,"sourceHtmlUrl":257},"reference\u002Fconnect\u002Fhetzner.md",228,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Fconnect\u002Fhetzner.md",{"path":259,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":260,"sourceHtmlUrl":261},"reference\u002Fconnect\u002Fkubernetes.md",2947,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Fconnect\u002Fkubernetes.md",{"path":263,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":264,"sourceHtmlUrl":265},"reference\u002Fconnect\u002Frailway.md",1828,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Fconnect\u002Frailway.md",{"path":267,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":268,"sourceHtmlUrl":269},"reference\u002Fconnect\u002Fsupabase.md",207,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Fconnect\u002Fsupabase.md",{"path":271,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":272,"sourceHtmlUrl":273},"reference\u002Fconnect\u002Fvercel.md",5128,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Fconnect\u002Fvercel.md",{"path":275,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":276,"sourceHtmlUrl":277},"reference\u002Fconnect\u002Fvm-and-bare-metal.md",2349,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Fconnect\u002Fvm-and-bare-metal.md",{"path":279,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":280,"sourceHtmlUrl":281},"reference\u002Fcookbook\u002Fmultiplayer-game.md",24852,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Fcookbook\u002Fmultiplayer-game.md",{"path":283,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":284,"sourceHtmlUrl":285},"reference\u002Fgeneral\u002Factor-configuration.md",1009,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Fgeneral\u002Factor-configuration.md",{"path":287,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":288,"sourceHtmlUrl":289},"reference\u002Fgeneral\u002Farchitecture.md",22026,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Fgeneral\u002Farchitecture.md",{"path":291,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":292,"sourceHtmlUrl":293},"reference\u002Fgeneral\u002Fcors.md",2425,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Fgeneral\u002Fcors.md",{"path":295,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":296,"sourceHtmlUrl":297},"reference\u002Fgeneral\u002Fdocs-for-llms.md",1702,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Fgeneral\u002Fdocs-for-llms.md",{"path":299,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":300,"sourceHtmlUrl":301},"reference\u002Fgeneral\u002Fedge.md",1350,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Fgeneral\u002Fedge.md",{"path":303,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":304,"sourceHtmlUrl":305},"reference\u002Fgeneral\u002Fendpoints.md",4050,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Fgeneral\u002Fendpoints.md",{"path":307,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":308,"sourceHtmlUrl":309},"reference\u002Fgeneral\u002Fenvironment-variables.md",2567,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Fgeneral\u002Fenvironment-variables.md",{"path":311,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":312,"sourceHtmlUrl":313},"reference\u002Fgeneral\u002Fhttp-server.md",3563,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Fgeneral\u002Fhttp-server.md",{"path":315,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":316,"sourceHtmlUrl":317},"reference\u002Fgeneral\u002Flogging.md",4875,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Fgeneral\u002Flogging.md",{"path":319,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":320,"sourceHtmlUrl":321},"reference\u002Fgeneral\u002Fproduction-checklist.md",5555,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Fgeneral\u002Fproduction-checklist.md",{"path":323,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":324,"sourceHtmlUrl":325},"reference\u002Fgeneral\u002Fregistry-configuration.md",2515,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Fgeneral\u002Fregistry-configuration.md",{"path":327,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":328,"sourceHtmlUrl":329},"reference\u002Fgeneral\u002Fruntime-modes.md",4915,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Fgeneral\u002Fruntime-modes.md",{"path":331,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":332,"sourceHtmlUrl":333},"reference\u002Fself-hosting\u002Fconfiguration.md",1802,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Fself-hosting\u002Fconfiguration.md",{"path":335,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":336,"sourceHtmlUrl":337},"reference\u002Fself-hosting\u002Fdocker-compose.md",2970,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Fself-hosting\u002Fdocker-compose.md",{"path":339,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":340,"sourceHtmlUrl":341},"reference\u002Fself-hosting\u002Fdocker-container.md",2275,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Fself-hosting\u002Fdocker-container.md",{"path":343,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":344,"sourceHtmlUrl":345},"reference\u002Fself-hosting\u002Ffilesystem.md",1816,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Fself-hosting\u002Ffilesystem.md",{"path":347,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":348,"sourceHtmlUrl":349},"reference\u002Fself-hosting\u002Finstall.md",792,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Fself-hosting\u002Finstall.md",{"path":351,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":352,"sourceHtmlUrl":353},"reference\u002Fself-hosting\u002Fkubernetes.md",5433,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Fself-hosting\u002Fkubernetes.md",{"path":355,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":356,"sourceHtmlUrl":357},"reference\u002Fself-hosting\u002Fmulti-region.md",307,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Fself-hosting\u002Fmulti-region.md",{"path":359,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":360,"sourceHtmlUrl":361},"reference\u002Fself-hosting\u002Fpostgres.md",6171,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Fself-hosting\u002Fpostgres.md",{"path":363,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":364,"sourceHtmlUrl":365},"reference\u002Fself-hosting\u002Fproduction-checklist.md",4089,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Fself-hosting\u002Fproduction-checklist.md",{"path":367,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":368,"sourceHtmlUrl":369},"reference\u002Fself-hosting\u002Frailway.md",3125,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Fself-hosting\u002Frailway.md",{"path":371,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":372,"sourceHtmlUrl":373},"reference\u002Fself-hosting\u002Frender.md",3425,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Frivetkit\u002Freference\u002Fself-hosting\u002Frender.md",[375,382,389,396,403,410],{"skillNo":376,"name":377,"nameZh":6,"description":378,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":379,"categories":380,"keywords":381,"publishedAt":19},"01M7B5MWYW0KE251276S56KQDZ","writing-waterfall-requirements-documents","Write a waterfall requirements document: elicit, structure and review testable, traceable requirements, then baseline the specification before design.","https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-waterfall-requirements-documents\u002FSKILL.md",[],[],{"skillNo":383,"name":384,"nameZh":6,"description":385,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":386,"categories":387,"keywords":388,"publishedAt":19},"01M7B5MRCXWWPKREPB1CHQ7H90","writing-vision-and-values-statements","Write a V2MOM vision a reader can test and a ranked list of values that settles real tradeoffs, so the rest of the document has a clear anchor.","https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-vision-and-values-statements\u002FSKILL.md",[],[],{"skillNo":390,"name":391,"nameZh":6,"description":392,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":393,"categories":394,"keywords":395,"publishedAt":19},"01M7B5MKH2CH22YZAHQW3080VQ","writing-system-prompts-for-claude","Write Claude prompts and CLAUDE.md files that supply exact inputs, scope the task, and define done so the first attempt can be checked.","https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-system-prompts-for-claude\u002FSKILL.md",[],[],{"skillNo":397,"name":398,"nameZh":6,"description":399,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":400,"categories":401,"keywords":402,"publishedAt":19},"01M7B5ME1Y3X9RNRKP5HKHKACZ","writing-page-specific-website-copy","Website copywriting by page type: write homepage, landing page, pricing page and feature page copy that fits each page's visitor and single job.","https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-page-specific-website-copy\u002FSKILL.md",[],[],{"skillNo":404,"name":405,"nameZh":6,"description":406,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":407,"categories":408,"keywords":409,"publishedAt":19},"01M7B5M8MQNM8MN8PYH6BVWJ2B","writing-internal-press-releases","How to write an internal press release: the one-page working backwards press release that opens a PR\u002FFAQ document before anything is built.","https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-internal-press-releases\u002FSKILL.md",[],[],{"skillNo":411,"name":412,"nameZh":6,"description":413,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":414,"categories":415,"keywords":416,"publishedAt":19},"01M7B5M3P3YH1XF37R8PWXXSBK","writing-email-sequences-that-sell","Email sequence copywriting for nurture and sales: give each email one job, write clear subject lines, and close with one specific call to action.","https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-email-sequences-that-sell\u002FSKILL.md",[],[]]