
code-quality
General Correctness rules, Rust patterns, comments, avoiding over-engineering
by tursodatabaseFree
Description
Code quality is an agent skill with the correctness rules and Rust conventions that the Turso database project expects in its code. Its core principle is that Turso is a production database, where correctness comes first and a crash is preferable to corruption. The correctness rules say to avoid workarounds and quick hacks, to handle every error, to check invariants and to assert often. The skill says never to fail silently or swallow edge cases, and to stop on an invalid state when continuing would risk data integrity rather than run in an undefined state. It asks the coder to consider edge cases, on the reasoning that every possible bug will eventually happen on a long enough timeline. The Rust section favors making illegal states unrepresentable, exhaustive pattern matching, and enums over strings or sentinel values. It also asks for minimal heap allocation and CPU-friendly code, since a microsecond is a long time in a database engine. The skill is listed on skills.sh under the Turso repository and is meant to be applied whenever code is written for that project. Its audit results are Gen Agent Trust Hub: Pass, Socket: Pass and Snyk: Pass.…
Highlights
- Correctness first, crash rather than corrupt
- Handle every error and check invariants
- Make illegal states unrepresentable
- Exhaustive matching and enums over sentinels
- Minimal allocations and CPU-friendly code
Ratings & Reviews
No ratings yet
Be the first to rate code-quality.
People also visit

rust-patterns
Idiomatic Rust patterns, ownership, error handling, traits, concurrency
code-quality FAQ
What does the skill cover?
Correctness rules and Rust patterns for code in the Turso database, applied whenever code is written for that project.
Why does it prefer a crash?
Turso is a production database. The skill says to crash on an invalid state when continuing could corrupt data, rather than keep running in an undefined state.
What Rust patterns does it recommend?
Making illegal states unrepresentable, exhaustive pattern matching, enums instead of strings or sentinel values, and few heap allocations.
How do I install it?
Run npx skills add https://github.com/tursodatabase/turso --skill code-quality.
What security audits has it passed?
skills.sh lists three audits: Gen Agent Trust Hub Pass, Socket Pass and Snyk Pass.
What are the best code-quality alternatives?
Popular alternatives to code-quality include async-io-model, rust-patterns and code-simplifier. See all code-quality alternatives

