
Code Quality
- 1.4k installs
- 23.5k repo stars
- Updated July 28, 2026
- tursodatabase/turso
code-quality is an agent skill that general correctness rules, rust patterns, comments, avoiding over-engineering. when writing code always take these into account.
About
code-quality is an agent skill from tursodatabase/turso that general correctness rules, rust patterns, comments, avoiding over-engineering. when writing code always take these into account. # 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 st Developers invoke code-quality during build/integrations work for ai & agent building tasks. The skill documents triggers, prerequisites, and step-by-step workflows grounded in SKILL.md. Compatible with Claude Code, Cursor, and Codex agent runtimes that load marketplace skills. Review the Security Audits panel on this listing before installing in production environments.
- Production database. Correctness paramount. Crash > corrupt.
- 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
Code Quality by the numbers
- 1,443 all-time installs (skills.sh)
- +50 installs in the week ending Jul 28, 2026 (Skillselion tracking)
- Ranked #804 of 16,659 AI & Agent Building skills by installs in the Skillselion catalog
- Security screen: LOW risk (skills.sh audit)
- Data as of Jul 28, 2026 (Skillselion catalog sync)
code-quality capabilities & compatibility
- Capabilities
- production database. correctness paramount. cras · 1. **no workarounds or quick hacks.** handle all · 2. **assert often.** never silently fail or swal · 3. **crash on invalid state** if it risks data i · 4. **consider edge cases.** on long enough timel
- Use cases
- orchestration
What code-quality says it does
Production database. Correctness paramount. Crash > corrupt.
1. **No workarounds or quick hacks.** Handle all errors, check invariants
2. **Assert often.** Never silently fail or swallow edge cases
npx skills add https://github.com/tursodatabase/turso --skill code-qualityAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 1.4k |
|---|---|
| repo stars | ★ 23.5k |
| Security audit | 3 / 3 scanners passed |
| Last updated | July 28, 2026 |
| Repository | tursodatabase/turso ↗ |
What it does
General Correctness rules, Rust patterns, comments, avoiding over-engineering. When writing code always take these into account
Who is it for?
Developers working on ai & agent building during build tasks.
Skip if: Tasks outside AI & Agent Building scope described in SKILL.md.
When should I use this skill?
General Correctness rules, Rust patterns, comments, avoiding over-engineering. When writing code always take these into account
What you get
Completed ai & agent building workflow aligned with SKILL.md steps.
- Correctness-compliant Rust code
- Invariant assertions and error handling
By the numbers
- Defines 4 core correctness rules for production database code
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
Do:
- Document WHY, not what
- Document functions, structs, enums, variants
- Focus on why something is necessary
Don't:
- Comments that repeat code
- References to AI conversations ("This test should trigger the bug")
- Temporal markers ("added", "existing code", "Phase 1")
Avoid Over-Engineering
- Only changes directly requested or clearly necessary
- Don't add features beyond what's asked
- Don't add docstrings/comments to unchanged code
- Don't add error handling for impossible scenarios
- Don't create abstractions for one-time operations
- Three similar lines > premature abstraction
Index Mutations
When code involves index inserts, deletes, or conflict resolution, double-check the ordering against SQLite. Wrong ordering causes index inconsistencies. and easy to miss.
Ensure understanding of IO model
- Async IO model
Cleanup
- Delete unused code completely
- No backwards-compat hacks (renamed
_vars, re-exports,// removedcomments)
Related skills
FAQ
What does code-quality do?
General Correctness rules, Rust patterns, comments, avoiding over-engineering. When writing code always take these into account
When should I use code-quality?
During build integrations work for ai & agent building.
Is code-quality safe to install?
Review the Security Audits panel on this listing before production use.