What problem does it solve? AI-generated and hand-written SwiftUI code often contains appearance and color defects: hardcoded RGB literals that break Dark Mode, deprecated modifiers like .foregroundColor and .accentColor (deprecated at macOS 26.5), opaque Color fills where a Material belongs, forced app-wide color schemes, and invented cross-platform APIs like .textColor or UIColor. This Skill systematically detects, verifies, and where safe fixes these defects in a macOS SwiftUI project. ## Core Features & Use Cases - Eight-rule defect index (ac-01 to ac-08): Detects hardcoded Color(red:green:blue:) literals, Color.white/.black misuse, deprecated .foregroundColor/.accentColor, forced .preferredColorScheme, missing Increase Contrast handling, opaque chrome fills, and invented color APIs. - Hybrid lint engine: Runs tier-1 grep tells plus a tier-2 ast-grep structural rule that catches multi-line Color(red:green:blue:) initializers, emitting unified JSON and SARIF reports with a CI-friendly exit code on hard-fail findings. - Corpus-grounded verification: Confirms uncertain findings against a catalog of 1,857 shipping macOS apps via the swiftui-ctx CLI and Apple documentation fetched through Sosumi, then auto-fixes the two mechanical deprecations under a fix-safety protocol. - Use Case: Point the Skill at a SwiftUI macOS project before release; it locates every literal color and deprecated modifier, writes structured findings to swiftui-audits/appearance-color/, and rewrites .foregroundColor(x) to .foregroundStyle(x) with one commit per fix. ## Quick Start Audit the SwiftUI sources in my macOS project for appearance and color problems and fix the deprecated color modifiers.