Skip to content

Conversation

@cloutiertyler
Copy link
Contributor

@cloutiertyler cloutiertyler commented Jan 16, 2026

Description of Changes

  • Add spacetimedb-rust.mdc with Rust-specific patterns and common mistakes
  • Add spacetimedb-csharp.mdc with C#-specific patterns and common mistakes
  • Update spacetimedb-typescript.mdc with views and procedures sections
  • Update CLI build.rs to embed all language-specific AI rules
  • Update CLI init.rs to install language-appropriate rules to projects
  • Update quickstarts to use interactive project naming (no hardcoded name)
  • Use placeholder for CLI command examples

API and ABI breaking changes

Updates the CLI to output more AI files on init

Expected complexity level and risk

1

Testing

@cloutiertyler cloutiertyler changed the base branch from master to tyler/claude-docs-3 January 16, 2026 02:18
- Add spacetimedb-rust.mdc with Rust-specific patterns and common mistakes
- Add spacetimedb-csharp.mdc with C#-specific patterns and common mistakes
- Update spacetimedb-typescript.mdc with views and procedures sections
- Update CLI build.rs to embed all language-specific AI rules
- Update CLI init.rs to install language-appropriate rules to projects
- Update quickstarts to use interactive project naming (no hardcoded name)
- Use <database-name> placeholder for CLI command examples
- Add comprehensive sum type (TaggedEnum) documentation to C# AI rules
- Add hallucinated sum type APIs and common mistakes to avoid
- Add Index attribute ambiguity warning (SpacetimeDB.Index vs System.Index)
- Add collection expression warning for attributes (use new[] {})
- Strip ANSI color codes from benchmark stderr/stdout output
Update all C# examples in core docs and quickstarts to use PascalCase
table names (e.g., Name = "User" instead of Name = "user") and ensure
ctx.Db accessors match the table names exactly.
@cloutiertyler
Copy link
Contributor Author

/update-llm-benchmark

@clockwork-labs-bot
Copy link
Collaborator

LLM Benchmark Results (ci-quickfix)

Language Mode Category Tests Passed Pass % Task Pass %
Rust rustdoc_json basics 20/27 74.1% 75.0%
Rust rustdoc_json schema 24/34 70.6% 63.3%
Rust rustdoc_json total 44/61 72.1% 69.7%
C# docs basics 24/27 88.9% 83.3%
C# docs schema 20/34 58.8% 60.0%
C# docs total 44/61 72.1% 72.7%

Generated at: 2026-01-16T03:26:00.148Z

clockwork-labs-bot and others added 3 commits January 16, 2026 03:26
- Add "Table Naming and Accessors" section to tables.md explaining how
  accessor names are derived in each language and recommended conventions
- Update all 22 C# benchmark golden answers to use PascalCase table names
  (e.g., Name = "User" instead of Name = "users") to match documented
  conventions
Document the pattern of applying multiple table attributes to a single
struct to create multiple tables sharing the same schema. Includes
examples for TypeScript, C#, and Rust, plus a note about column
constraints applying to all tables.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants