rust-discipline

Installation
SKILL.md

Rust Discipline -- RIPDPI

Purpose

Encode API-design discipline and catch high-signal Rust mistakes before they land in the 23-crate native workspace. Apply these rules when authoring or reviewing public (pub) and crate-public (pub(crate)) function signatures, struct definitions, and trait bounds anywhere in the workspace, and during code review, pre-merge self-check, and when tightening existing code.

Apply every rule to every changed signature in a diff, not only the first one.


API Design

Borrowed args over owned references

Severity: WARNING

Accept &str / &[T] / &Path instead of &String / &Vec<T> / &PathBuf. The owned-reference shapes force callers to hold an allocation even when they have a slice. The borrowed shapes accept both.

Installs
1
GitHub Stars
1
First Seen
Jul 9, 2026
rust-discipline — tomevault-io/skills-registry