Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/SeloSlav/2d-multiplayer-survival-mmorpgnpx agentmods add rules/seloslav/2d-multiplayer-survival-mmorpg/spacetimedb-workflowWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/rules/seloslav/2d-multiplayer-survival-mmorpg/spacetimedb-workflow)<a href="https://agentmods.dev/rules/seloslav/2d-multiplayer-survival-mmorpg/spacetimedb-workflow"><img src="https://agentmods.dev/badge/rules/seloslav/2d-multiplayer-survival-mmorpg/spacetimedb-workflow.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00015 | $0.01124 |
| Opus 5 | $0.00008 | $0.00562 |
| Sonnet 5 | $0.00003 | $0.00225 |
| Haiku 4.5 | $0.00002 | $0.00112 |
Grade A, and why
spacetimedb-workflow scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 143 lines — stays where its author put it; the contents beside it link to each section on GitHub.
SpacetimeDB Development Workflow
Essential commands and patterns for developing with SpacetimeDB in this 2D multiplayer survival game.
Core Development Commands
Server Development
# Build server (run from project root)
spacetime build -p ./server
# Publish to local database
spacetime publish -p ./server broth-bullets-local
# View server logs
spacetime logs broth-bullets-local
# SQL query the database
spacetime sql broth-bullets-local "SELECT * FROM player LIMIT 5"
# Clear database and republish (destructive!)
spacetime publish -c -p ./server broth-bullets-local
Client Development
# Generate TypeScript bindings (CRITICAL after server changes)
spacetime generate --lang typescript --out-dir ./client/src/generated -p ./server
# Start client development server
npm run dev
Essential Workflow Pattern
1. Making Server Changes
- Edit server Rust files in
server/src/ - Test build:
spacetime build -p ./server - Publish:
spacetime publish -p ./server broth-bullets-local - Generate client bindings:
spacetime generate --lang typescript --out-dir ./client/src/generated -p ./server
2. Making Client Changes
- Update client TypeScript files in
client/src/ - Restart dev server if needed:
npm run dev
3. Testing Full Stack
- Server logs:
spacetime logs broth-bullets-local - Browser console for client errors
- Database inspection:
spacetime sql broth-bullets-local "SELECT * FROM {table}"
Key Files & Patterns
Server-side Key Files
- server/src/lib.rs - Module declarations and table trait imports
- server/src/environment.rs - World generation and resource seeding
- server/src/items_database.rs - Item definitions
Client-side Key Files
- client/src/generated/ - Auto-generated SpacetimeDB bindings
- client/src/hooks/useSpacetimeTables.ts - Data subscriptions and state
- client/src/App.tsx - Main data flow coordination
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 8d ago First seen · 143 lines · 15 tokens per session scan A 4a8e06f79e86
spacetimedb-workflow is a cursor rule published in the GitHub repository SeloSlav/2d-multiplayer-survival-mmorpg (177 stars, last pushed 20d ago), licensed Apache-2.0. It adds 15 tokens to every session and 1,124 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other cursor rules, from other repositories
trigger
Guidelines for writing PostgreSQL triggers, which are database actions that run automatically when data changes. They explain when a trigger is appropriate and how to keep its function safe and predictable.
rulesforconvex
description: Convex guidelines globs: alwaysApply: true.
ehs-ims-conventions
EHS IMS app — RBAC, data layer, tRPC, migrations, AI boundaries.
startup-migration-bounded-work
Production djangostartup migrate must be bounded; never run makemigrations in production.
schema
Scalable and secure schema design patterns for relational databases, NoSQL, and APIs. / TR: İlişkisel veri tabanları, NoSQL ve API'ler için ölçeklenebilir ve güvenli şema tasarım kalıpları.
redis_rate_limiting
Complete guide for implementing Redis-based rate limiting with authentication troubleshooting and FastAPI integration.