-
Notifications
You must be signed in to change notification settings - Fork 669
Add Rust/C# AI rules and update quickstarts #4053
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
cloutiertyler
wants to merge
10
commits into
tyler/claude-docs-3
Choose a base branch
from
tyler/claude-docs-4
base: tyler/claude-docs-3
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
379f557 to
2ae96fd
Compare
- 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
2ae96fd to
2931d6b
Compare
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.
Contributor
Author
|
/update-llm-benchmark |
Collaborator
LLM Benchmark Results (ci-quickfix)
Generated at: 2026-01-16T03:26:00.148Z |
- 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of Changes
API and ABI breaking changes
Updates the CLI to output more AI files on init
Expected complexity level and risk
1
Testing