Паттерны проектирования на Rust с типобезопасностью

engineering

design-patterns is a Claude Code skill that covers Rust design patterns — Newtype, Builder, RAII, Trait Objects, State Machine, Typestate, and NonZero — applied to achieve static type safety within the RTK codebase. RTK is a high-performance CLI proxy that compresses shell command output before it reaches an LLM context, supporting 100+ commands with under 10 ms overhead. The skill is used when designing new modules or refactoring existing CLI filters, helping engineers leverage Rust's type system to eliminate runtime checks in favor of compile-time guarantees. It targets Rust developers who want expressive, correct-by-construction code in a real-world systems project.