rust

Installation
SKILL.md

Non-negotiable rules:

  1. Identify the subsystem before coding. Load only the relevant references.
  2. Safe Rust by default. unsafe only when justified — every unsafe block gets a // SAFETY: comment.
  3. Zero-copy where possible. mmap'd segments, &str/&[u8] references into pages. Never copy data without reason.
  4. Error types per crate. thiserror enums in library crates. Never anyhow in libraries — only in binaries/tests.
  5. Async with tokio. All I/O is async. CPU-bound work on spawn_blocking. Never block the tokio runtime.
  6. Workspace crate structure. One crate per subsystem. Depend downward — never circular.
  7. Property tests for invariants. proptest for round-trips, type coercion, binary parsing.

rust

Inputs

  • $request: The crate, subsystem, bug, feature, or review target
Related skills
Installs
36
Repository
ulpi-io/skills
First Seen
Mar 26, 2026