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 |
Da utilizzare durante la revisione del codice Rust per verificarne la qualità artigianale, quando si scrive un nuovo codice Rust che dovrebbe seguire modelli professionali o quando l'utente chiede di giudicare, verificare o migliorare il codice Rust rispetto alle migliori pratiche. Copre la progettazione del tipo, le firme delle funzioni, l'architettura dei tratti, la gestione degli errori, la visibilità, le macro, i test e i modelli di prestazioni. Fonte: cygnusfear/agent-skills.