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 |
يُستخدم عند مراجعة كود Rust لجودة الحرفة، أو عند كتابة كود Rust جديد يجب أن يتبع الأنماط المهنية، أو عندما يطلب المستخدم الحكم على كود Rust أو تدقيقه أو تحسينه وفقًا لأفضل الممارسات. يغطي تصميم النوع، وتوقيعات الوظائف، وهندسة السمات، ومعالجة الأخطاء، والرؤية، ووحدات الماكرو، والاختبار، وأنماط الأداء. المصدر: cygnusfear/agent-skills.