spacetimedb-client-unreal
Use when writing SpacetimeDB Unreal Engine clients, generated Unreal bindings, Unreal plugin setup, `DbConnection`, ticking the connection, cache access, subscriptions, reducer invocation, or identity handling. Triggers on: Unreal, Unreal Engine, UE, Unreal SDK, URemoteTable, USubscriptionBuilder.
How do I install this agent skill?
npx skills add https://github.com/danmossa/spacetimedb-skills --skill spacetimedb-client-unrealIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill provides instructions and a technical reference for developing SpacetimeDB clients within Unreal Engine. It involves generating source code using a local CLI and handling database connections. The skill presents an attack surface for indirect prompt injection through data ingested from the remote database.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
What does this agent skill do?
Use this skill for Unreal Engine client implementation.
Core Unreal patterns
Generate Unreal bindings with the project module details:
spacetime generate --lang unrealcpp --uproject-dir path/to/Game.uproject --module-path spacetimedb --unreal-module-name Game
Connection shape:
UDbConnection* Conn = UDbConnection::Builder()
->WithUri(TEXT("ws://localhost:3000"))
->WithDatabaseName(TEXT("my-database"))
->OnConnect(OnConnectDelegate)
->OnConnectError(OnConnectErrorDelegate)
->OnDisconnect(OnDisconnectDelegate)
->Build();
Runtime rules
- The Unreal SDK processes messages automatically through WebSocket callbacks and
UDbConnectionticking; do not add a manual polling loop unless the project already has one. - Use generated
Conn->Dbtable objects for subscribed cache reads andConn->Reducersfor reducer calls. - Bind
OnInsert,OnDelete,OnUpdate, and reducer delegates before subscribing when startup events matter. SubscribeToAllTables()is useful for examples; production code should subscribe to specific SQL/query sets.- Use generated Unreal class and delegate names from the project. Do not copy sample
UUserTableorFUserTypeidentifiers unless they exist locally. - Keep plugin setup, generated code, and gameplay classes separate unless the existing project layout combines them.
Reference map
| Need | Open |
|---|---|
| Unreal SDK API | references/clients-unreal.md |
Guidance
- Keep Unreal connection ticking and callback binding patterns consistent with the reference.
- Use generated Unreal class names from the local project rather than copying sample identifiers blindly.
- Route complete Unreal tutorial work to spacetimedb-tutorials.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/danmossa/spacetimedb-skills/spacetimedb-client-unreal">View spacetimedb-client-unreal on skillZs</a>