Dev & Engineering

SwiftUI Expert Guide

Actionable expert guidance for building, reviewing, and profiling SwiftUI apps.

57/ 100
Use with care

Useful, but reliability, evidence or controls still have material gaps.

See how it was scored ↓
Works as-is in
Codex · Claude Code
Stars
★ 3.7k
Last updated
19d ago
License
MIT
swiftuiios-developmentmacos-developmentstate-management
+3ui-performanceinstrumentsliquid-glass

What does this skill do, and when should you use it?

This Agent Skill supports SwiftUI development for iOS and macOS, covering state management, view composition, list identity, environment usage, localization, animation, accessibility, and performance. It instructs the agent to consult the relevant reference files for each task and to check current APIs before making recommendations. It also includes xctrace-based Instruments workflows for recording and analyzing hangs, hitches, CPU hotspots, and excessive SwiftUI updates. It is a good fit for teams that want an AI coding tool to apply modern SwiftUI practices consistently.

The agent reads references/latest-apis.md first, then loads topic-specific references for state management, view structure, performance, lists, animation, accessibility, macOS, Liquid Glass, or other applicable areas. For SwiftUI code, it checks property-wrapper choices, stable ForEach identity, availability gating, animation usage, preview data, and other correctness rules, then suggests or performs changes according to the request. When a .trace file is provided, it can run scripts/analyze_trace.py to inspect Time Profiler, Hangs, Animation Hitches, SwiftUI updates, and SwiftUI cause graphs. For recording requests, it can run scripts/record_trace.py around xctrace, including device discovery, process attachment, stop-file control, and .trace output.

Good fit
  • An iOS or macOS developer is implementing a SwiftUI feature and wants help defining state ownership and data flow.
  • A team is reviewing or refactoring SwiftUI code and needs checks for deprecated APIs, property wrappers, and invalidation scope.
  • A developer is building lists, ForEach views, scrolling, navigation, sheets, or animations and wants to avoid identity and update problems.
  • A team is adopting iOS 26+ APIs or Liquid Glass and needs #available checks with sensible fallbacks.
  • A developer has an Instruments .trace file and wants a prioritized plan based on main-thread coverage, hot symbols, and SwiftUI cause graphs.
  • A product team needs guidance on localization, VoiceOver, Dynamic Type, or chart accessibility in SwiftUI.

How do you install this skill?

Before you use it
  • The referenced latest-apis document, trace scripts, and other resources are not fully included in the supplied material; verify their presence, versions, and permissions before installation or execution.
  • Instruments traces may contain application-performance and user-behavior information; confirm the target, output location, and sensitivity before recording, and do not upload traces without consent.
  • Some APIs, WWDC materials, and installation paths depend on Apple, GitHub, or other overseas services; verify mainland-China reachability and prepare offline or local alternatives.
  • Compile and SDK-test examples before relying on them, especially iOS 26+ APIs, Charts APIs, and image-processing code.
Before you start
Your agent needs
  • Shell / CLI
  • Local filesystem
Install first
  • Python 3
  • Xcode with xctrace for Instruments trace workflows

Install the specific skill from the repository with:

npx skills add https://github.com/avdlee/swiftui-agent-skill --skill swiftui-expert-skill

Alternatively, clone the repository and install or symlink the swiftui-expert-skill/ folder according to the target tool's official skill-directory instructions. For Codex/OpenAI-compatible tools, the README provides:

cp -R swiftui-expert-skill/ "$CODEX_HOME/skills/swiftui-expert-skill"

The repository also documents installation paths for Claude Code, Cursor, and pi; their exact locations are determined by each tool's documentation.

Generic route: install into Claude Code manually (macOS / Linux)
tmp="$(mktemp -d)"
git clone --depth 1 https://github.com/AvdLee/SwiftUI-Agent-Skill.git "$tmp"
mkdir -p ~/.claude/skills
cp -R "$tmp/swiftui-expert-skill" ~/.claude/skills/
rm -rf "$tmp"

Generated from the source repository and skill path; it copies only this skill's folder. If the author's install steps above differ, follow those first. To scope it to one project, replace ~/.claude/skills with that project's .claude/skills.

How do you use this skill?

After installation, explicitly invoke the skill in your coding tool. For example:

Use the swiftui expert skill and review the current SwiftUI code for state-management and performance improvements

For trace analysis, provide a .trace path. For recording, specify whether to attach to a running app, launch an app, or record all processes, and provide a device name or UDID when appropriate. The workflow selects the SwiftUI template for real devices and the Time Profiler template for iOS Simulator.

What are this skill's strengths and limitations?

Pros
  • Covers a broad SwiftUI surface, from state and view structure to performance, accessibility, charts, and macOS scenes.
  • Provides task-specific reference files and a concrete correctness checklist.
  • Includes trace recording, scoped analysis, cause-graph inspection, and source-mapping workflows for Instruments traces.
  • Does not mandate MVVM, VIPER, or another architecture, making it usable with existing project structures.
  • Released under the MIT License and follows the Agent Skills open format.
Limitations
  • The strongest guidance depends on loading the repository's reference files in addition to SKILL.md.
  • Trace recording and analysis require the macOS/Xcode toolchain and xctrace, so that workflow is not fully portable.
  • SwiftUI Instruments data is empty for iOS Simulator, requiring the Time Profiler template instead.
  • The supplied material does not document an independent test suite or cross-tool validation results.

How does this skill compare with similar options?

Side by side with related skills; every score comes from the same FSRS standard.

Skill FS score Stars Last updated License
SwiftUI Expert Guide this page 57 · Use with care ★ 3.7k 19d ago MIT
SwiftUI Expert Skill Not yet reviewed ★ 3.7k 19d ago MIT
OpenChamber Performance Engineering Skill 62 · Recommended ★ 12k 11d ago MIT
Expo Native UI Builder 59 · Recommended ★ 2.9k 20d ago MIT
SwiftUI WCAG Accessibility Auditor Skill 58 · Recommended ★ 13 7mo ago —

How did FollowSkills review this skill?

FollowSkills review · FSRS-2.0
Use with care
57/ 100 5-point scale 2.9 / 5
The upstream repository has new commits since this review. The score still applies to the reviewed revision shown and may not cover the latest changes.
1Trust17 / 25 · 3.4/5

No malware, credential theft, or covert exfiltration red flags are visible. The skill asks the agent to confirm the Instruments target and scopes trace output to a specified path. However, recording with xctrace, writing files, and external installation commands create side effects without consistent permission disclosure, sensitive-data handling, data-flow transparency, rollback guidance, or explicit confirmation at each consequential step, so points are deducted.

2Reliability8 / 20 · 2.0/5

The operating rules, workflows, topic router, fallback guidance, and trace stop mechanism are broadly coherent. Static material does not establish that all referenced files and scripts exist or run, and provides no committed tests, CI coverage, or consistently diagnosable feedback for abnormal inputs. The score is reduced under the static calibration cap and uncertainty.

3Adaptability10 / 15 · 3.3/5

The name, audience, and SwiftUI/iOS/macOS, review, refactoring, implementation, and Instruments scenarios are clear, with recognizable trace triggers and some non-fit guidance. Complete non-fit boundaries, Chinese-language behavior, tool-environment compatibility, and mainland-China reachability are not specified; installation and external documentation partly depend on overseas services, so points are deducted.

4Convention10 / 15 · 3.3/5

SKILL.md has useful progressive structure through operating rules, workflows, topic routing, checklists, and references. The README supplies several installation paths, MIT metadata, and version-related notes. Clear maintenance ownership, update path, changelog, and complete dependency/troubleshooting notes for referenced scripts and files are missing, so points are deducted.

5Effectiveness7 / 15 · 2.3/5

The material covers state management, performance, accessibility, animation, charts, and trace analysis, and its examples can usually be converted into actionable review guidance. The core value is plausible, but representative outputs, execution results, and comparative benefit over alternatives are not verified; referenced scripts and files are also not fully evidenced. The static ceiling therefore limits the score.

6Verifiability5 / 10 · 2.5/5

Some Apple WWDC links, API availability annotations, and concrete code examples provide audit trails. There is no committed test suite, real CI execution evidence, or broad corroboration across independent sources, and many claims lack item-level attribution, so static verifiability remains limited.

1 2 3 4 5 6

Open a dimension to read why it scored that way

Reviewed Jul 20, 2026 Reviewed revision f06d1437a3fb Review evidence[1][2][3][4][5][6][7][8][9][10]

Evidence confidence:Low — Mostly static review, author material or a limited demo; useful for discovery, not high-risk decisions.

See the full review method →

FAQ

Does this skill cost anything?
The repository is MIT-licensed, but the source does not state whether any hosting platform or target tool has separate costs.
Does it require MVVM?
No. The skill explicitly focuses on correctness and performance without enforcing a specific architecture.
Do I need Instruments to use it?
No. Instruments is relevant when recording a trace or analyzing a supplied .trace file; ordinary SwiftUI tasks use the references and checklist.
Will it apply Liquid Glass automatically?
No. The skill says to adopt Liquid Glass only when the user explicitly requests it, with availability checks and fallbacks.

More skills from this repository

All from AvdLee/SwiftUI-Agent-Skill

Related skills