What problem does it solve? SwiftUI previews in macOS projects often contain stale or broken patterns: legacy PreviewProvider structs, bare @State declarations inside #Preview bodies that fail to compile, visionOS-only windowStyle overloads, and missing SwiftData containers or environment injections that crash the Xcode canvas. This Skill systematically detects these defects in existing macOS SwiftUI code. ## Core Features & Use Cases - Nine-rule defect index (prev-01 to prev-09): Detects legacy PreviewProvider structs, missing @Previewable tags, hand-rolled EnvironmentKey boilerplate instead of @Entry, manual .frame sizing instead of preview traits, the visionOS-only windowStyle overload, missing in-memory ModelContainer, missing @Environment injection, wrong .environmentObject injector for @Observable models, and repeated inline containers that should be a shared PreviewModifier. - Hybrid lint engine: Runs tier-1 ripgrep tells plus a tier-2 ast-grep structural rule for bare @State inside #Preview bodies, emitting unified JSON and SARIF output with per-file parse probes. - Grounded verification: Confirms every finding against a corpus of 1,857 real macOS apps via the swiftui-ctx CLI and Apple documentation fetched through Sosumi, with findings written to disk in a unified schema. - Use Case: Point it at a macOS SwiftUI project and receive a structured audit report under swiftui-audits/previews/ with severity, confidence, and suggested fixes for every preview defect. ## Quick Start Audit the SwiftUI previews in my macOS project and report any legacy PreviewProvider structs, missing @Previewable tags, or canvas-crash risks.