swiftui-performance-audit
Skill7.2k starsChanged 2 months agoMITView on GitHub
SwiftUI performance: render, scroll, CPU/memory, updates, layout, Instruments.
7 other projects use a version of this, 7 of them edited.
Trending
Less talk lately.about the whole repository
Most recently taken up by
- omarshahine/HomeClawedited, first seen Sep 29, 2026
- K95M65/AI_ONBOARDedited, first seen Jul 18, 2026
- robinebers/skillsedited, first seen Jun 25, 2026
- openai/pluginsedited, first seen May 13, 2026
- henryhudson/swift-claude-skillsedited, first seen Mar 24, 2026
- Dimillian/Skillsedited, first seen Mar 6, 2026
Who's talking about steipete/agent-scripts
- waddle-social/waddle“fix(server): accept text/html link previews served with unknown-total range”GitHub · Jun 18, 2026 · 2 reactions
- ArchonVII/github-workflows“Review scripts for potential integration”GitHub · Jun 16, 2026 · 1 reactions
- sator-imaging/suggest-skills“[bot] Generate Manifests”GitHub · Oct 3, 2026
- sudosubin/agents.nix“agent-skills.github.steipete.agent-scripts: init at 0.12.0”GitHub · Oct 2, 2026
- sator-imaging/suggest-skills“[bot] Generate Manifests”GitHub · Sep 30, 2026
The biggest 5 of 35 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 35
Talked about on GitHub (35 times).
On GitHub · 35
- Jun 18, 2026fix(server): accept text/html link previews served with unknown-total range — waddle-social/waddle2 reactions · 2 comments
- Jun 16, 2026Review scripts for potential integration — ArchonVII/github-workflows1 reaction
- Oct 3, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions · 1 comment
- Oct 2, 2026agent-skills.github.steipete.agent-scripts: init at 0.12.0 — sudosubin/agents.nix0 reactions
- Sep 30, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions · 1 comment
30 more on GitHub
- Sep 24, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions · 1 comment
- Sep 23, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions · 1 comment
- Sep 23, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions · 1 comment
- Sep 19, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions · 1 comment
- Sep 19, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions · 1 comment
- Aug 31, 2026[upstream] chore: refresh upstream skills to 8649e48; graduate one-password to native — novotnyllc/agent-utilities0 reactions
- Aug 29, 2026docs: replace retired gitcrawl gh workflow examples — openclaw/gitcrawl0 reactions · 2 comments
- Aug 25, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Aug 21, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Aug 18, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Aug 14, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Aug 11, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Aug 7, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Aug 4, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Jul 31, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Jul 31, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Jul 28, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Jul 24, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Jul 20, 2026build(deps): bump plugins/steipete-agent-scripts from `e3b05be` to `b7f7269` — mikeastock/dotfiles0 reactions
- Jul 18, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Jul 15, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Jul 13, 2026build(deps): bump plugins/steipete-agent-scripts from `e3b05be` to `01e4910` — mikeastock/dotfiles0 reactions · 1 comment
- Jul 10, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Jun 30, 2026feat: Use to triage issues — joeldevz/skynex-pi0 reactions
- Jun 11, 2026research(swarm,review-cycle): live end-to-end proof via computer use as a verification tier (extends #1357) — deftai/directive0 reactions
- Jun 11, 2026feat(triage): contributor trust signals in triage:queue (extends #1318) — deftai/directive0 reactions · 1 comment
- Jun 11, 2026feat(swarm,review-cycle): decision-ready boundary + owner decision brief (human-facing handoff contract) — deftai/directive0 reactions
- May 29, 2026Review steipete/agent-scripts skills for adoption candidates — NodeJSmith/Claudefiles0 reactions
- Apr 2, 2026Skill discovery: alternativas ao fluxo nexus_list + nexus_get — dougss/nexus0 reactions
- Dec 30, 2025agent-scripts — nicholaswilde/homelab0 reactions
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 7
- openai/plugins★ 7.3k20% same
- Dimillian/Skills★ 4k20% same
- omarshahine/HomeClaw★ 17619% same
- robinebers/skills★ 4820% same
- ParkerRex/Skills★ 292% same
- henryhudson/swift-claude-skills★ 120% same
- K95M65/AI_ONBOARD★ 020% 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 repository54 other files it gives its agents.
- AGENTS.MDAGENTS.md
- agent-transcriptSkill
- beeperSkill
- browser-useSkill
- clawsweeper-statusSkill
- clickclackSkill
- cloudflare-registrarSkill
- codexbarSkill
- codex-debuggingSkill
- codex-firstSkill
- codex-huge-contextSkill
- create-cliSkill
- discord-clawdSkill
- domain-dns-opsSkill
- fleet-maintenanceSkill
- frontend-designSkill
- github-author-contextSkill
- github-cache-hygieneSkill
- github-deep-reviewSkill
- github-project-triageSkill
- hopper-debuggerSkill
- instruments-profilingSkill
- mac-maintenanceSkill
- maintainer-orchestratorSkill
- markdown-converterSkill
- nano-banana-proSkill
- native-app-performanceSkill
- notcrawlSkill
- npmSkill
- obsidianSkill
- openai-image-genSkill
- openclaw-relaySkill
- oracleSkill
- project-structureSkill
- release-mac-appSkill
- release-tweetsSkill
- remindersSkill
- remote-macSkill
- skill-cleanerSkill
- sonosSkill
- speakingSkill
- ssh-doctorSkill
- swift-concurrency-expertSkill
- swiftui-liquid-glassSkill
- swiftui-view-refactorSkill
- telecrawlSkill
- things-todoSkill
- twilio-smsSkill
- video-transcript-downloaderSkill
- vm-labSkill
- whatsappSkill
- wranglerSkill
- xcode-syncSkill
- xurlSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. 2 are common, 11 are distinctive, and 3 are very specific to this project.
2
Common
Most of the 7 edited versions we read keep these.
11
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
If the user provides code, start with "Code-First Review."
- Distinctive: line 17
If the user only describes symptoms, ask for minimal code/context, then do "Code-First Review."
- Distinctive: line 18
If code review is inconclusive, go to "Guide the User to Profile" and ask for a trace or screenshots.
- Common: line 38
If needed, a minimal repro or instrumentation suggestion.
- Distinctive: line 43
Use the SwiftUI template in Instruments (Release build).
- Very specific: line 70
Use equatable() or value wrappers for expensive subtrees.
- Distinctive: line 76
Look for these patterns during code review.
- Distinctive: line 88
Prefer cached formatters in a model or a dedicated helper:
- Distinctive: line 106
Prefer precompute or cache on change:
- Distinctive: line 123
Prefer sort once before view updates:
- Distinctive: line 137
Prefer a prefiltered collection with stable identity.
- Very specific: line 147
Avoid id: \.self for non-stable values.
- Distinctive: line 155
Prefer decode/downsample off the main thread and store the result.
- Distinctive: line 169
Prefer granular view models or per-item state to reduce update fan-out.
- Common: line 173
Ask the user to re-run the same capture and compare with baseline metrics.
- Very specific: line 185
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 7 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
Attribution: copied from @Dimillian’s Dimillian/Skills (2025-12-31).
Overview
Audit SwiftUI view performance end-to-end, from instrumentation and baselining to root-cause analysis and concrete remediation steps.
Workflow Decision Tree
- If the user provides code, start with "Code-First Review."
- If the user only describes symptoms, ask for minimal code/context, then do "Code-First Review."
- If code review is inconclusive, go to "Guide the User to Profile" and ask for a trace or screenshots.
1. Code-First Review
Collect:
- Target view/feature code.
- Data flow: state, environment, observable models.
- Symptoms and reproduction steps.
Focus on:
- View invalidation storms from broad state changes.
- Unstable identity in lists (
idchurn,UUID()per render). - Heavy work in
body(formatting, sorting, image decoding). - Layout thrash (deep stacks,
GeometryReader, preference chains). - Large images without downsampling or resizing.
- Over-animated hierarchies (implicit animations on large trees).
Provide:
- Likely root causes with code references.
- Suggested fixes and refactors.
- If needed, a minimal repro or instrumentation suggestion.
2. Guide the User to Profile
Explain how to collect data with Instruments:
- Use the SwiftUI template in Instruments (Release build).
- Reproduce the exact interaction (scroll, navigation, animation).
- Capture SwiftUI timeline and Time Profiler.
- Export or screenshot the relevant lanes and the call tree.
Ask for:
- Trace export or screenshots of SwiftUI lanes + Time Profiler call tree.
- Device/OS/build configuration.
3. Analyze and Diagnose
Prioritize likely SwiftUI culprits:
- View invalidation storms from broad state changes.
- Unstable identity in lists (
idchurn,UUID()per render). - Heavy work in
body(formatting, sorting, image decoding). - Layout thrash (deep stacks,
GeometryReader, preference chains). - Large images without downsampling or resizing.
- Over-animated hierarchies (implicit animations on large trees).
Summarize findings with evidence from traces/logs.
4. Remediate
Apply targeted fixes:
- Narrow state scope (
@State/@Observablecloser to leaf views). - Stabilize identities for
ForEachand lists. - Move heavy work out of
body(precompute, cache,@State). - Use
equatable()or value wrappers for expensive subtrees. - Downsample images before rendering.
- Reduce layout complexity or use fixed sizing where possible.
Common Code Smells (and Fixes)
Look for these patterns during code review.
Expensive formatters in body
var body: some View {
let number = NumberFormatter() // slow allocation
let measure = MeasurementFormatter() // slow allocation
Text(measure.string(from: .init(value: meters, unit: .meters)))
}Prefer cached formatters in a model or a dedicated helper:
final class DistanceFormatter {
static let shared = DistanceFormatter()
let number = NumberFormatter()
let measure = MeasurementFormatter()
}Computed properties that do heavy work
var filtered: [Item] {
items.filter { $0.isEnabled } // runs on every body eval
}Prefer precompute or cache on change:
@State private var filtered: [Item] = []
// update filtered when inputs changeSorting/filtering in body or ForEach
List {
ForEach(items.sorted(by: sortRule)) { item in
Row(item)
}
}Prefer sort once before view updates:
let sortedItems = items.sorted(by: sortRule)Inline filtering in ForEach
ForEach(items.filter { $0.isEnabled }) { item in
Row(item)
}Prefer a prefiltered collection with stable identity.
Unstable identity
ForEach(items, id: \.self) { item in
Row(item)
}Avoid id: \.self for non-stable values; use a stable ID.
Image decoding on the main thread
Image(uiImage: UIImage(data: data)!)Prefer decode/downsample off the main thread and store the result.
Broad dependencies in observable models
@Observable class Model {
var items: [Item] = []
}
var body: some View {
Row(isFavorite: model.items.contains(item))
}Prefer granular view models or per-item state to reduce update fan-out.
5. 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.
References
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.

