code-quality

Installation
Summary

Production-grade code standards emphasizing correctness, crash-safety, and Rust idioms over convenience.

  • Prioritizes data integrity: crash on invalid state rather than corrupt data; assert invariants aggressively; handle all errors explicitly
  • Rust-specific patterns: make illegal states unrepresentable, use exhaustive pattern matching and enums over strings, minimize allocations
  • Comments document why, not what; avoid temporal markers, AI conversation references, and code-repeating explanations
  • Rejects over-engineering: implement only requested changes, skip error handling for impossible scenarios, avoid premature abstractions
  • Index mutations require careful ordering verification against SQLite to prevent inconsistencies
SKILL.md

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)
Related skills
Installs
1.0K
GitHub Stars
18.7K
First Seen
Jan 28, 2026