Deep code surgery using a field guide extracted from ripgrep (46K LOC), clap (41K LOC), parsel (6K LOC), and ringapi (2.3K LOC). Not design patterns. The actual craft — line-by-line decisions that separate code that rots from code that lives.
| references/professional-rust.md | 47 principles on types, signatures, traits, errors, modules, macros, config, testing, performance, discipline | Dispatching a code surgery worker — the worker reads it as rubric |
| references/codebase-organization.md | Module layout, facade pattern, privacy ladder, dependency direction, stdext mirroring, unsafe auditing, encapsulation progression | Dispatching a structural review worker — the worker reads it as rubric |
Use when reviewing Rust code for craft quality, when writing new Rust code that should follow professional patterns, or when the user asks to judge, audit, or improve Rust code against best practices. Covers type design, function signatures, trait architecture, error handling, visibility, macros, testing, and performance patterns. Source: cygnusfear/agent-skills.