Write, review, or improve SwiftUI code following best practices for state management, view composition, performance, modern APIs, Swift concurrency, and iOS 26+ Liquid Glass adoption. Use when building new SwiftUI features, refactoring existing views, reviewing code quality, or adopting modern SwiftUI patterns.
Expert guidance for any AI coding tool that supports the Agent Skills open format — modern SwiftUI APIs, state management, performance, and iOS 26+ Liquid Glass adoption.
This repository distills practical SwiftUI best practices into actionable, concise references for agents and code review workflows.
Install this skill with a single command:
npx skills add https://github.com/avdlee/swiftui-agent-skill --skill swiftui-expert-skill
For more information, visit the skills.sh platform page.
Then use the skill in your AI agent, for example:
Use the swiftui expert skill and review the current SwiftUI code for state-management and modern API improvements
To install this Skill for your personal use in Claude Code:
/plugin marketplace add AvdLee/SwiftUI-Agent-Skill
/plugin install swiftui-expert@swiftui-expert-skill
To automatically provide this Skill to everyone working in a repository, configure the repository's .claude/settings.json:
{
"enabledPlugins": {
"swiftui-expert@swiftui-expert-skill": true
},
"extraKnownMarketplaces": {
"swiftui-expert-skill": {
"source": {
"source": "github",
"repo": "AvdLee/SwiftUI-Agent-Skill"
}
}
}
}
When team members open the project, Claude Code will prompt them to install the Skill.
swiftui-expert-skill/ folder following your tool’s official skills installation docs (see links below).Follow your tool’s official documentation, here are a few popular ones:
How to verify:
Your agent should reference the workflow/checklists in swiftui-expert-skill/SKILL.md and jump into the relevant reference file for your task.
This skill gives your AI coding tool practical SwiftUI guidance. It can:
@State, @Binding, @Observable, @Bindable)ForEach pitfalls)UIImage(data:) is encountered (as an optional optimization)Non-Opinionated: Focuses on SwiftUI correctness and modern APIs, not forcing an architecture, project structure, or code style.
Modern-first: Calls out deprecated APIs and offers up-to-date replacements.
Practical & concise: Treats the agent as capable; provides the checklists and pitfalls that actually matter in day-to-day SwiftUI work.
swiftui-expert-skill/
SKILL.md
references/
image-optimization.md - AsyncImage usage, downsampling, caching
layout-best-practices.md - Layout patterns and GeometryReader alternatives
liquid-glass.md - iOS 26+ glass effects and fallback patterns
list-patterns.md - ForEach identity and list performance
modern-apis.md - Deprecated API replacements
performance-patterns.md - Hot-path optimizations and update control
scroll-patterns.md - ScrollViewReader and programmatic scrolling
sheet-navigation-patterns.md - Sheets and type-safe navigation
state-management.md - Property wrapper selection and data flow
text-formatting.md - Modern Text formatting and string utilities
view-structure.md - View extraction and composition patterns
<!-- END REFERENCE STRUCTURE -->
Contributions are welcome! This repository follows the Agent Skills open format, which has specific structural requirements.
Please read CONTRIBUTING.md for:
SKILL.md and the reference filesCreated by Antoine van der Lee and Omar Elsayed. With years of experience in Swift & SwiftUI, this skill distills practical knowledge into actionable guidance for AI assistants. Antoine published tens of articles on SwiftUI on his blog called SwiftLee.
This skill is open-source and available under the MIT License. See LICENSE for details.
npx skills add jwiegley/swiftui-expert-skill下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer