For teams building databases or anything where corruption is worse than a crash. Sets strict expectations: assert liberally, make illegal states unrepresentable, crash on invalid conditions rather than continuing. The Rust patterns section is solid (exhaustive matching, enums over sentinels) and the if-statement guidance is the kind of thing you wish someone had told you earlier. Heavy emphasis on not adding features beyond what's requested, which is refreshing. The comment rules are opinionated but right: explain why, not what. Best for codebases where correctness actually matters and you can't afford subtle bugs three months down the line.

skills.sh installs
1.8K
GitHub stars
25.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add tursodatabase/turso --skill code-quality --agent claude-code

Installs into .claude/skills of the current project.

Files

Code Quality Guide

Core Principle

Production database. Correctness paramount. Crash > corrupt.

Correctness Rules

  1. No workarounds or quick hacks. Handle all errors, check invariants
  2. Assert often. Never silently fail or swallow edge cases
  3. Crash on invalid state if it risks data integrity. Don't continue in undefined state
  4. Consider edge cases. On long enough timeline, all possible bugs will happen

Rust Patterns

  • Make illegal states unrepresentable
  • Exhaustive pattern matching
  • Prefer enums over strings/sentinels
  • Minimize heap allocations
  • Write CPU-friendly code (microsecond = long time)

If-Statements

Wrong:

if condition {
    // happy path
} else {
    // "shouldn't happen" - silently ignored
}

Right:

// If only one branch should ever be hit:
assert!(condition, "invariant violated: ...");
// OR
return Err(LimboError::InternalError("unexpected state".into()));
// OR
unreachable!("impossible state: ...");

Use if-statements only when both branches are expected paths.

Comments

  • Don't add code comments, except for rust SAFETY comments.

Avoid Over-Engineering

Sponsors

Details

Repository
github.com/tursodatabase/turso
Categories
Documentation, Code Review & Quality, Rust, Databases

More from tursodatabase/turso

All 14
1anthropics avatarskill-creatoranthropics/financial-servicesGuide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabil1.7Kskills.sh installs
2screenci avatarscreenciscreenci/screenciCreate, show, and guide with ScreenCI videos in an already-initialized project by editing `.screenci.ts` files and running the Screenci workflow.1.7Kskills.sh installs
3buildgreatproducts avatarproduct-plannerbuildgreatproducts/builder-osVision intake conversation followed by generation of three product documents — `docs/product-vision.md` (strategy and brand), `docs/prd.md` (technical spec for 1.7Kskills.sh installs
4trailofbits avataropen-sourcingtrailofbits/skillsThis skill should be used when the user asks to "open source this project", "prepare this repository for public release", "make this repo public", "check open-s1.7Kskills.sh installs
5jezweb avatarwordpress-contentjezweb/claude-skillsCreate and manage WordPress posts, pages, media, categories, tags, and menus via WP-CLI or the REST API. Use whenever the user wants to publish a blog post on W1.7Kskills.sh installs
6nvidia avatarhsb-setupnvidia/skillsClone the latest NVIDIA Holoscan Sensor Bridge repo, ask which supported devkit is being used, configure the host per platform, build the correct demo container1.7Kskills.sh installs