swiftui-performance-audit
Skill4k starsChanged 9 months agoMITView on GitHub
Audit and improve SwiftUI runtime performance from code review and architecture. Use for requests to diagnose slow rendering, janky scrolling, high CPU/memory usage, excessive view updates, or layout thrash in SwiftUI apps, and to provide guidance for user-run Instruments profiling when code review alone is insufficient.
7 other projects use a version of this, 5 of them edited.
Trending
Quiet since September.thin dataabout the whole repository
Most recently taken up by
- steipete/agent-scriptsedited, first seen Sep 30, 2026
- omarshahine/HomeClawedited, first seen Sep 29, 2026
- K95M65/AI_ONBOARDword for word, first seen Jul 18, 2026
- robinebers/skillsedited, first seen Jun 25, 2026
- openai/pluginsedited, first seen May 13, 2026
- henryhudson/swift-claude-skillsword for word, first seen Mar 24, 2026
Who's talking about Dimillian/Skills
- sudosubin/agents.nix“agent-skills.github.dimillian.skills: init at 0-unstable-2026-03-29”GitHub · Sep 26, 2026
- TerminalSkills/skills“feat: port 13 skills from Dimillian/Skills (Thomas Ricouard) — swarm debugging, SwiftUI, macOS, batch …”GitHub · Mar 31, 2026
- dills122/wap-labs“Update Codex Skills”GitHub · Mar 6, 2026
- MartinP7r/tome“Support importing standalone SKILL.md from arbitrary GitHub repos (without plugin.json)”GitHub · Feb 24, 2026
- aiskillstore/marketplace“New plugins: 131 skills from Skills (medium risk)”GitHub · Jan 10, 2026
The biggest 5 of 7 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 7
Talked about on GitHub (7 times).
On GitHub · 7
- Sep 26, 2026agent-skills.github.dimillian.skills: init at 0-unstable-2026-03-29 — sudosubin/agents.nix0 reactions
- Mar 31, 2026feat: port 13 skills from Dimillian/Skills (Thomas Ricouard) — swarm debugging, SwiftUI, macOS, batch refactoring — TerminalSkills/skills0 reactions
- Mar 6, 2026Update Codex Skills — dills122/wap-labs0 reactions
- Feb 24, 2026Support importing standalone SKILL.md from arbitrary GitHub repos (without plugin.json) — MartinP7r/tome0 reactions
- Jan 10, 2026New plugins: 131 skills from Skills (medium risk) — aiskillstore/marketplace0 reactions
2 more on GitHub
- Jan 9, 2026Skills Public — SwiftOldDriver/iOS-Weekly0 reactions
- Jan 7, 2026[REQ] create agentic skill for writing dalec specs — project-dalec/dalec0 reactions
Other versions7 projects use a version of this.
Word for word · 2
- henryhudson/swift-claude-skills★ 1100% same
- K95M65/AI_ONBOARD★ 0100% same
Edited · 5
- openai/plugins★ 7.3k93% same
- steipete/agent-scripts★ 7.2k22% same
- omarshahine/HomeClaw★ 17697% same
- robinebers/skills★ 4893% same
- ParkerRex/Skills★ 228% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository15 other files it gives its agents.
- app-store-changelogSkill
- bug-hunt-swarmSkill
- githubSkill
- ios-debugger-agentSkill
- macos-menubar-tuist-appSkill
- macos-spm-app-packagingSkill
- orchestrate-batch-refactorSkill
- project-skill-auditSkill
- react-component-performanceSkill
- review-and-simplify-changesSkill
- review-swarmSkill
- swift-concurrency-expertSkill
- swiftui-liquid-glassSkill
- swiftui-ui-patternsSkill
- swiftui-view-refactorSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. 8 are common, 0 are distinctive, and 8 are very specific to this project.
8
Common
Most of the 5 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Common: line 10
Use this skill to diagnose SwiftUI performance issues from code first, then request profiling evidence when code review alone cannot …
- Very specific: line 15
If code is available, start with a code-first review using references/code-smells.md.
- Common: line 16
If code is not available, ask for the smallest useful slice: target view, data flow, reproduction steps, and deployment target.
- Very specific: line 17
If code review is inconclusive or runtime evidence is required, guide the user through profiling with references/profiling-intake.md.
- Common: line 28
Ask the user to classify the issue if possible:
- Very specific: line 47
Use references/code-smells.md for the detailed smell catalog and fix guidance.
- Common: line 52
If needed, a minimal repro or instrumentation suggestion.
- Common: line 56
If code review does not explain the issue, ask for runtime evidence:
- Common: line 60
Before/after metrics if the user is comparing a change.
- Very specific: line 62
Use references/profiling-intake.md for the exact checklist and collection steps.
- Common: line 69
Call out when profiling is still insufficient and what additional evidence would reduce uncertainty.
- Very specific: line 77
Use equatable() only when equality is cheaper than recomputing the subtree and the inputs are truly value-semantic.
- Very specific: line 81
Use references/code-smells.md for examples, Observation-specific fan-out guidance, and remediation patterns.
- Common: line 85
Ask the user to re-run the same capture and compare with baseline metrics.
- Very specific: line 95
Use references/report-template.md when formatting the final audit.
- Very specific: line 102
Add Apple documentation and WWDC resources under references/ as they are supplied by the user.
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
SwiftUI Performance Audit
Quick start
Use this skill to diagnose SwiftUI performance issues from code first, then request profiling evidence when code review alone cannot explain the symptoms.
Workflow
- Classify the symptom: slow rendering, janky scrolling, high CPU, memory growth, hangs, or excessive view updates.
- If code is available, start with a code-first review using
references/code-smells.md. - If code is not available, ask for the smallest useful slice: target view, data flow, reproduction steps, and deployment target.
- If code review is inconclusive or runtime evidence is required, guide the user through profiling with
references/profiling-intake.md. - Summarize likely causes, evidence, remediation, and validation steps using
references/report-template.md.
1. Intake
Collect:
- Target view or feature code.
- Symptoms and exact reproduction steps.
- Data flow:
@State,@Binding, environment dependencies, and observable models. - Whether the issue shows up on device or simulator, and whether it was observed in Debug or Release.
Ask the user to classify the issue if possible:
- CPU spike or battery drain
- Janky scrolling or dropped frames
- High memory or image pressure
- Hangs or unresponsive interactions
- Excessive or unexpectedly broad view updates
For the full profiling intake checklist, read references/profiling-intake.md.
2. Code-First Review
Focus on:
- Invalidation storms from broad observation or environment reads.
- Unstable identity in lists and
ForEach. - Heavy derived work in
bodyor view builders. - Layout thrash from complex hierarchies,
GeometryReader, or preference chains. - Large image decode or resize work on the main thread.
- Animation or transition work applied too broadly.
Use references/code-smells.md for the detailed smell catalog and fix guidance.
Provide:
- Likely root causes with code references.
- Suggested fixes and refactors.
- If needed, a minimal repro or instrumentation suggestion.
3. Guide the User to Profile
If code review does not explain the issue, ask for runtime evidence:
- A trace export or screenshots of the SwiftUI timeline and Time Profiler call tree.
- Device/OS/build configuration.
- The exact interaction being profiled.
- Before/after metrics if the user is comparing a change.
Use references/profiling-intake.md for the exact checklist and collection steps.
4. Analyze and Diagnose
- Map the evidence to the most likely category: invalidation, identity churn, layout thrash, main-thread work, image cost, or animation cost.
- Prioritize problems by impact, not by how easy they are to explain.
- Distinguish code-level suspicion from trace-backed evidence.
- Call out when profiling is still insufficient and what additional evidence would reduce uncertainty.
5. Remediate
Apply targeted fixes:
- Narrow state scope and reduce broad observation fan-out.
- Stabilize identities for
ForEachand lists. - Move heavy work out of
bodyinto derived state updated from inputs, model-layer precomputation, memoized helpers, or background preprocessing. Use@Stateonly for view-owned state, not as an ad hoc cache for arbitrary computation. - Use
equatable()only when equality is cheaper than recomputing the subtree and the inputs are truly value-semantic. - Downsample images before rendering.
- Reduce layout complexity or use fixed sizing where possible.
Use references/code-smells.md for examples, Observation-specific fan-out guidance, and remediation patterns.
6. Verify
Ask the user to re-run the same capture and compare with baseline metrics. Summarize the delta (CPU, frame drops, memory peak) if provided.
Outputs
Provide:
- A short metrics table (before/after if available).
- Top issues (ordered by impact).
- Proposed fixes with estimated effort.
Use references/report-template.md when formatting the final audit.
References
- Profiling intake and collection checklist:
references/profiling-intake.md - Common code smells and remediation patterns:
references/code-smells.md - Audit output template:
references/report-template.md - Add Apple documentation and WWDC resources under
references/as they are supplied by the user. - Optimizing SwiftUI performance with Instruments:
references/optimizing-swiftui-performance-instruments.md - Understanding and improving SwiftUI performance:
references/understanding-improving-swiftui-performance.md - Understanding hangs in your app:
references/understanding-hangs-in-your-app.md - Demystify SwiftUI performance (WWDC23):
references/demystify-swiftui-performance-wwdc23.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

