Discover and explore top open-source AI tools and projects—updated daily.
AvdLeeExpert SwiftUI guidance for AI coding assistants
Top 24.8% on SourcePulse
This repository provides expert SwiftUI best practices as an "Agent Skill" for AI coding tools, enabling them to offer guidance on modern APIs, state management, performance, and advanced features like iOS 26+ Liquid Glass. It targets developers and teams adopting SwiftUI, aiming to provide quick, correct defaults and actionable references for code review and AI-assisted development, ultimately improving code quality and performance.
How It Works
The skill distills practical SwiftUI best practices into concise, actionable references. It focuses on core areas such as selecting appropriate state management property wrappers (@State, @Binding, @Observable, @Bindable), recommending modern replacements for deprecated APIs, and offering guidance on efficient list, scrolling, sheet, and navigation patterns. The approach prioritizes correctness, modern API usage, and practical advice relevant to day-to-day SwiftUI development, making it suitable for AI agents without imposing specific architectural opinions.
Quick Start & Requirements
skills.sh:
npx skills add https://github.com/avdlee/swiftui-agent-skill --skill swiftui-expert-skill
/plugin marketplace add AvdLee/SwiftUI-Agent-Skill) or manual installation by cloning the repository and linking the skill folder.Highlighted Details
@State, @Binding, @Observable, and @Bindable.ForEach pitfalls), and avoiding unnecessary re-renders.AsyncImage usage and UIImage(data:) downsampling.Maintenance & Community
Created by Antoine van der Lee and Omar Elsayed, this skill adheres to the Agent Skills open format. Contributions are welcomed via the CONTRIBUTING.md file, which outlines format requirements and the pull request process.
Licensing & Compatibility
This skill is released under the permissive MIT License, allowing for broad compatibility with commercial and closed-source projects.
Limitations & Caveats
This repository provides guidance for AI coding tools rather than being a standalone library. Its effectiveness is contingent upon the AI agent's ability to correctly interpret and apply the provided SwiftUI best practices. Guidance on iOS 26+ features requires development environments targeting future OS versions.
1 day ago
Inactive
Coframe
NirDiamant