spacetimedb-csharp
Installation
SKILL.md
SpacetimeDB C# SDK
This skill provides comprehensive guidance for building C# server-side modules and Unity/C# clients that connect to SpacetimeDB.
HALLUCINATED APIs — DO NOT USE
These APIs DO NOT EXIST. LLMs frequently hallucinate them.
// WRONG — these do not exist
[SpacetimeDB.Procedure] // C# does NOT support procedures yet!
ctx.db.tableName // Wrong casing, should be PascalCase
ctx.Db.tableName.Get(id) // Use Find, not Get
ctx.Db.TableName.FindById(id) // Use index accessor: ctx.Db.TableName.Id.Find(id)
ctx.Db.table.field_name.Find(x) // Wrong! Use PascalCase: ctx.Db.Table.FieldName.Find(x)
Optional<string> field; // Use C# nullable: string? field
Related skills
More from douglance/spacetimedb
spacetimedb-typescript
Build TypeScript clients for SpacetimeDB. Use when connecting to SpacetimeDB from web apps, Node.js, Deno, Bun, or other JavaScript runtimes.
35spacetimedb-cli
SpacetimeDB CLI reference for initializing projects, building modules, publishing databases, querying data, and managing servers
15spacetimedb-concepts
Understand SpacetimeDB architecture and core concepts. Use when learning SpacetimeDB or making architectural decisions.
15spacetimedb-rust
Develop SpacetimeDB server modules in Rust. Use when writing reducers, tables, or module logic.
12