swiftui-expert-skill
Use when writing, reviewing, or refactoring SwiftUI code for iOS or macOS, including state management and `@Observable` data flow, view composition and invalidation/performance, lists and `ForEach` identity, environment usage, localization, animations, Liquid Glass adoption, migrating soft-deprecated APIs, or Instruments `.trace` capture/analysis for hangs, hitches, CPU hotspots, or excessive view updates.
Install
Install this Claude and Codex skill with the command below. The command stays visible even when copy support is unavailable.
git clone https://github.com/AvdLee/SwiftUI-Agent-Skill /tmp/SwiftUI-Agent-Skill && ln -s /tmp/SwiftUI-Agent-Skill/swiftui-expert-skill ~/.claude/skills/swiftui-expert-skill
From README
SwiftUI Expert Skill Operating Rules Consult references/latest-apis.md at the start of every task to avoid deprecated APIs Prefer native SwiftUI APIs over UIKit/AppKit bridging unless bridging is necessary Focus on correctness and performance; do not enforce specific architectures (MVVM, VIPER, etc.) Encourage separating business logic from views for testability without mandating how Follow Apple's Human Interface Guidelines and API design patterns Only adopt Liquid Glass when explicitly requested by the user (see references/liquid-glass.md) Present performance optimizations as suggestions, not requirements Use #available gating with sensible fallbacks for version-specific APIs Task Workflow Review existing SwiftUI code Read the code under review and identify which topics apply Flag deprecated APIs (compare against references/latest-apis.md) Run the Topic Router below for each relevant topic Validate #available gating and fallback paths for iOS 26+ features Improve existing SwiftUI...