What problem does it solve? Writing native Windows GUIs in Rust with the native-windows-gui (NWG) crate involves non-obvious pitfalls: Win32 controls that reject text colors, event handlers that cannot mutate state directly, and infinite event loops when syncing controls. This Skill encodes the correct patterns, workarounds, and a complete reference example so generated NWG applications compile and behave correctly on the first attempt. ## Core Features & Use Cases - Derive-Macro Architecture Guidance: Enforces the #[derive(NwgUi)] pattern with correct struct ordering (window, resources, layouts, controls, RefCell state) and proper Cargo.toml feature flags. - Pitfall Workarounds: Provides concrete fixes for colored text via RichLabel, background colors on Labels, password masking toggles, and recursion guards for syncing ListBoxes. - API Reference & Working Example: Ships a full widget/event reference and a complete MQTT Keyboard application demonstrating GridLayout, menus, fonts, and event handlers. - Use Case: Given a UI mockup description, generate a compilable Rust NWG application with grid layout, styled controls, and working event handlers including proper shutdown via nwg::stop_thread_dispatch(). ## Quick Start Ask the AI to build a Windows desktop GUI in Rust using native-windows-gui based on your layout description or mockup.