Skip to content
C

code-quality

General Correctness rules, Rust patterns, comments, avoiding over-engineering

by tursodatabaseFree

Launch
#2866in AI Skills
0In stores

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…

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

A

async-io-model

Explanations of common asynchronous patterns used in tursodb

AI Skills
Launch
R

rust-patterns

Idiomatic Rust patterns, ownership, error handling, traits, concurrency

AI Skills
Launch
C

code-simplifier

Review RTK Rust code for idiomatic simplification

AI Skills
Launch
D

debugging

How to debug tursodb using Bytecode comparison, logging, ThreadSanitizer

AI Skills
Launch
D

differential-fuzzer

Information about the differential fuzzer tool

AI Skills
Launch
S

storage-format

SQLite file format, B-trees, pages, cells, overflow, freelist

AI Skills
Launch

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

Developer Stuff

Badges