swiftui-expert-skill
Skill by omarshahine
Guides an AI assistant through writing, reviewing and refactoring SwiftUI code for iOS and macOS. It also records and analyses Instruments .trace files for performance problems.
Install swiftui-expert-skill
Built from the published package, never by AI.
git clone --depth 1 https://github.com/omarshahine/HomeClaw /tmp/HomeClaw && mkdir -p ~/.claude/skills && cp -r /tmp/HomeClaw/.claude/skills/swiftui-expert-skill ~/.claude/skills/swiftui-expert-skillRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/omarshahine/HomeClaw /tmp/HomeClaw && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/HomeClaw/.claude/skills/swiftui-expert-skill ~/.gemini/antigravity-cli/skills/swiftui-expert-skillAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install swiftui-expert-skill in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
SwiftUI Expert Skill gives an AI assistant guidance for writing, reviewing and refactoring SwiftUI code for iOS and macOS. It covers state management, view composition, performance, Liquid Glass adoption, animations, accessibility and more. The skill routes each task to a matching reference file and asks the assistant to check a deprecated API list at the start of every task.
It also includes Python scripts for Instruments .trace work. The recording script attaches to a running app, launches one, or captures a session that the user stops manually. The analysis script reports main-thread coverage, SwiftUI update causes and hitches, and the assistant maps findings back to source files. It is aimed at iOS and macOS developers.
Written from the project's SKILL.md and checked against it.
What it can do
- SwiftUI code reviewFlags deprecated APIs and checks state, composition and performance patterns in existing code.
- SwiftUI refactoringReplaces deprecated APIs and extracts complex view bodies into subviews.
- New feature implementationDesigns data flow first and applies animation and accessibility patterns to new views.
- Liquid Glass guidanceAdds iOS 26+ Liquid Glass effects with #available gating and fallbacks, only when requested.
- Trace recordingRecords an Instruments trace by attaching to a running app, launching one, or capturing a manual session.
- Trace analysisParses .trace files for main-thread coverage, SwiftUI update causes and hitch narratives.
- Deprecated API lookupCompares code against a reference list of modern replacements from iOS 15 through iOS 26.
What you need
- Python 3
- Instruments .trace files for trace analysis
- Xcode target device or Mac for trace recording
Try asking
- Review this SwiftUI view for deprecated APIs and state management issues.
- Record a trace of my running iOS app and tell me when to stop.
- Analyse this .trace file and find the views causing excessive updates.
Good to know
- The SwiftUI template gives empty results on the iOS Simulator; use Time Profiler there.
- Liquid Glass is only adopted when the user explicitly asks for it.
- Performance changes are presented as suggestions, not requirements.
- Code is only edited when the user asks for edits.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/swiftui-expert-skill/SKILL.md, .claude/skills/swiftui-expert-skill/scripts/analyze_trace.py, .claude/skills/swiftui-expert-skill/scripts/instruments_parser/__init__.py, .claude/skills/swiftui-expert-skill/scripts/instruments_parser/causes.py, .claude/skills/swiftui-expert-skill/scripts/instruments_parser/correlate.py, .claude/skills/swiftui-expert-skill/scripts/instruments_parser/events.py, .claude/skills/swiftui-expert-skill/scripts/instruments_parser/hangs.py, .claude/skills/swiftui-expert-skill/scripts/instruments_parser/hitches.py, .claude/skills/swiftui-expert-skill/scripts/instruments_parser/summary.py. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md11 KB -
references/accessibility-patterns.md6 KB -
references/animation-advanced.md10 KB -
references/animation-basics.md7 KB -
references/animation-transitions.md7 KB
Show all 37 files
-
references/charts-accessibility.md6 KB -
references/charts.md17 KB -
references/focus-patterns.md9 KB -
references/image-optimization.md7 KB -
references/latest-apis.md16 KB -
references/layout-best-practices.md7 KB -
references/liquid-glass.md11 KB -
references/list-patterns.md12 KB -
references/macos-scenes.md9 KB -
references/macos-views.md11 KB -
references/macos-window-styling.md9 KB -
references/performance-patterns.md12 KB -
references/scroll-patterns.md8 KB -
references/sheet-navigation-patterns.md11 KB -
references/state-management.md13 KB -
references/text-patterns.md1 KB -
references/trace-analysis.md14 KB -
references/trace-recording.md5 KB -
references/view-structure.md24 KB -
scripts/analyze_trace.py10 KB -
scripts/instruments_parser/__init__.py69 B -
scripts/instruments_parser/causes.py6 KB -
scripts/instruments_parser/correlate.py6 KB -
scripts/instruments_parser/events.py11 KB -
scripts/instruments_parser/hangs.py3 KB
And 7 more files on GitHub.
Alternatives to swiftui-expert-skill
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
swiftui-expert-skill: common questions
Does this skill enforce a specific architecture like MVVM?
No. The skill says it does not enforce specific architectures and only encourages separating business logic from views for testability.
Can it profile an iOS Simulator app?
Yes, but the SwiftUI template is empty on the Simulator, so the source says to use the Time Profiler template instead.
Does it work with Liquid Glass?
Yes, for iOS 26+ features. The skill adds Liquid Glass only when requested and expects #available gating with fallbacks.
How do I install swiftui-expert-skill?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is swiftui-expert-skill free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is swiftui-expert-skill safe to use?
It scores 84 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to swiftui-expert-skill?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
