SkillsReviewed · steipete

SwiftUI Performance Audit

SwiftUI Performance Audit is an assistant skill for developers investigating slow SwiftUI interfaces, but its suggested fixes need confirmation with measurements from the app. It combines code review with Instruments guidance for excessive updates, unstable list identities, expensive view bodies, image processing and layout.

Researched 17 Nov 2026

In short.

SwiftUI Performance Audit is an assistant skill for developers diagnosing slow SwiftUI screens, but its recommendations depend on app-specific code and profiling evidence. Its five Markdown files describe how to inspect state dependencies, list identity, view computation, images and layout, then use Instruments when code review is inconclusive. The material provides a practical diagnostic checklist and abbreviated remediation examples. Runtime compatibility, diagnostic accuracy and performance improvements are not assessed, and its Apple reference material consists of summaries rather than original publications.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage includes all five files in skills/swiftui-performance-audit at revision 2f82700ba9f3e7e93d3583e1990992584561eadc: SKILL.md and the four reference summaries, plus the repository-level LICENSE outside that folder. It excludes the rest of agent-scripts, the upstream Dimillian/Skills repository and original Apple publications. No assistant execution, app build, Instruments recording or remediation verification was performed. Host compatibility, diagnostic accuracy, performance gains and operating costs remain unassessed or unknown.

The overview

What it is

The resource is the skills/swiftui-performance-audit folder in steipete/agent-scripts. It contains SKILL.md and four Markdown reference summaries. It supplies instructions for an assistant to follow, rather than an executable profiling tool. The public source location is [https://github.com/steipete/agent-scripts/tree/main/skills/swiftui-performance-audit].

SKILL.md attributes the material to @Dimillian’s Dimillian/Skills repository, with a copying date of 2025-12-31. That attribution distinguishes its stated origin from the repository distributing this copy.

Practical assessment

The skill offers a useful structure for investigating slow scrolling, navigation or animation: inspect the relevant code, identify plausible causes, obtain profiling evidence when needed, make targeted changes and repeat the measurement. Its concrete review targets make it more actionable than a general request to improve performance.

Its usefulness as a checklist is supported by the supplied text. The accuracy of an assistant’s diagnosis and the effectiveness of any resulting changes remain unassessed. The files contain no demonstrated audit, application trace or measured improvement.

Who it helps

SwiftUI developers with a reproducible performance problem are the clearest audience. Beginners receive named patterns to inspect, such as repeated formatting and changing row IDs. Experienced developers receive prompts to investigate dependency fan-out, update frequency, layout work and profiler call trees.

It is most useful when someone can supply the affected view, its state and model relationships, and steps that reproduce the symptom. The material assumes familiarity with SwiftUI code and requires someone able to collect Instruments recordings when static review is insufficient.

What it covers

The review checklist covers data changes that trigger too many view updates, unstable identities in lists, formatting or sorting inside view computation, image decoding, complex layout dependencies and large animated view trees. Suggested remedies include narrower state ownership, stable IDs, cached calculations, downsampled images and simpler layouts.

The profiling guidance covers SwiftUI timelines, Time Profiler, long view updates, update causes and hangs or hitches. Expected outputs include issues ranked by impact, code references, proposed fixes, effort estimates and a metrics table when measurements are available. No automatic trace collection, trace parser or profiler integration is supplied.

Using it

What you need

Code review needs the target view or feature, its state and observable models, and a description of the symptom and reproduction steps. Profiling additionally needs a buildable app, Instruments, a Release build and the device, operating-system and build configuration associated with the recording.

Using it as an assistant skill requires a host that can consume these instructions and the supplied context. Supported hosts, models and installation formats are unspecified. One reference discusses Instruments 26, but the folder does not establish minimum Xcode, SDK or operating-system versions for the complete workflow.

How it works

The instructions begin with code review. If only symptoms are available, the assistant requests minimal code and context. If that review cannot establish a cause, the workflow asks the developer to record the exact interaction in Instruments and provide a trace or screenshots.

Diagnosis then connects slow or frequent SwiftUI updates with their causes. Time Profiler helps locate expensive computation, while cause graphs help explain why updates occur. The workflow ends by repeating the capture after a targeted change and comparing available CPU, frame-drop, memory or update measurements.

Getting started

Keep SKILL.md together with its references folder so the relative reference paths remain meaningful. The folder provides no host-specific installation command or configuration, so the exact loading procedure depends on the assistant being used.

Prepare one affected interaction, the relevant SwiftUI code and its data flow. When profiling is necessary, the material directs the developer to Product > Profile, the SwiftUI template and a Release build. Capture the interaction and retain the relevant timeline lanes, Time Profiler call tree and configuration details.

Example use

For a list that stutters while scrolling, provide the list and row code, the model supplying its items and the steps that reproduce the stutter. Following the skill, an assistant would inspect whether rows have stable IDs, whether filtering or sorting repeats during updates, whether rows decode images and whether shared state causes unnecessary updates.

A possible recommendation is to maintain a prefiltered collection with stable item identities and refresh it when inputs change. If code review is inconclusive, the next step is a Release-build recording of the same scroll interaction. This is an illustrative application of the instructions, not an observed diagnosis or measured result.

Assessment & evidence

Limits and caveats

The suggested problem patterns are hypotheses to investigate, not proof of a bottleneck. The skill depends on relevant code and, when necessary, developer-supplied recordings. Supported assistant hosts and the ability of a particular host to interpret trace exports are not established.

The remediation snippets are abbreviated. Moving a sort into a local constant only avoids repeated work if that calculation actually leaves the repeatedly evaluated path. Cached or prefiltered data must remain synchronized with its inputs. These are implications of the examples, rather than demonstrated fixes.

The reference files summarize Apple guidance without supplying original publication links. Technical accuracy against those publications and applicability to a particular toolchain are not independently established. No execution or performance testing was performed.

Why the approach may help

The workflow connects visible symptoms to two distinct questions: how much work each update performs, and how often updates happen. That distinction matters because a screen can spend too much time in one expensive view body or in many individually short updates.

The inferred value of the skill is more disciplined investigation: code inspection generates hypotheses, recordings help distinguish causes, and repeated measurements check the result. That structure supports its use as a diagnostic aid; it does not establish that any particular caching, identity or state refactor will improve an app.

Other approaches

A developer can follow the bundled Instruments workflow manually without loading the assistant skill. The summaries also describe narrower diagnostic options: Self._printChanges() for debugging view dependencies, Time Profiler for expensive computation and the Hangs instrument for prolonged main-thread work.

The folder names Apple documentation and WWDC material that could provide fuller explanations than these summaries, but original links are absent. No competing skill, commercial profiler or comparative performance result is assessed in the supplied evidence.

Evidence available

The supplied material comprises the complete selected five-file folder and the repository-level LICENSE. The main instructions are available at the fixed source revision [https://raw.githubusercontent.com/steipete/agent-scripts/2f82700ba9f3e7e93d3583e1990992584561eadc/skills/swiftui-performance-audit/SKILL.md].

The four references cover WWDC23 performance concepts, Instruments 26 profiling, main-thread hangs and SwiftUI update analysis. They establish the content of this skill’s supporting notes, rather than independently verifying the original Apple guidance. No application code, real profiling trace, benchmark, compatibility result or before-and-after measurement accompanies them.

Access & freshness

Costs

The supplied files state no purchase price, subscription charge or usage fee for this skill. The MIT notice grants use and redistribution rights, but does not establish the total cost of using an assistant and profiling environment.

Assistant subscriptions, model or API charges, equipment requirements and developer time are not priced in the evidence. Total operating cost is unknown, and no token-usage or time-saving measurements are supplied.

Licence and attribution

The supplied repository LICENSE is MIT, with copyright attributed to Peter Steinberger in 2026. It permits use, copying, modification, distribution, sublicensing and sale, subject to retaining the copyright and permission notice in copies or substantial portions. It provides the software without warranty.

SKILL.md separately credits @Dimillian and Dimillian/Skills. Preserve that attribution alongside the repository notice. The supplied evidence does not include the upstream repository’s licence or a separate rights notice for the Apple-related summaries, so those independent terms are unknown.

Version and currency

The source snapshot was captured on 2026-11-17 at revision 2f82700ba9f3e7e93d3583e1990992584561eadc. This identifies the analyzed content; it does not establish whether the moving main branch now contains the same files.

The notes span WWDC23 concepts and Instruments 26 guidance. The 2025-12-31 attribution date identifies when the skill says it was copied, rather than proving its latest revision date. Compatibility with newer toolchains and current profiler labels is unknown.

How to evaluate it for your work

Start with one reproducible SwiftUI symptom and supply the smallest relevant view, its data dependencies and reproduction steps. Ask for likely causes tied to code locations, the evidence needed to distinguish them and the proposed change for each.

When measurements are needed, record a Release-build baseline and repeat the same interaction after a targeted change. Keep the device, operating system and build configuration comparable. Use the available update counts, hitches, CPU or memory measurements to decide whether the change helped, and leave improvements unconfirmed when those measurements are missing.

Evidence for this report

LICENSEnotice · checked 2026-11-17
skills/swiftui-performance-audit/SKILL.mdselected · checked 2026-11-17