Performance Expert
Installation
SKILL.md
Performance Expert
Performance optimization for Leavn iOS app.
Main Thread Violations
Find heavy work in View body:
// BAD: In View body
let image = processImage(data) // Blocks UI
// GOOD: In ViewModel, async
Task { processedImage = await processImage(data) }
SwiftUI Rendering
- Use
@Observable(not @Published) for granular updates EquatableViewfor expensive viewsLazyVStack/LazyHStackfor listsdrawingGroup()for complex graphics
Memory Issues
- Capture
[weak self]in closures - Break retain cycles in delegates
- Use
Instruments > Leaksto find issues
Battery/Thermal
- Batch network requests
- Reduce location update frequency
- Use
beginBackgroundTasksparingly - Profile with Instruments > Energy Log
Profiling Commands
# Time Profile
xcrun xctrace record --template "Time Profiler" --launch -- /path/to/app
# Memory
xcrun xctrace record --template "Leaks" --launch -- /path/to/app
Use when: Slow UI, battery drain, memory issues, thermal throttling
Related skills
More from willsigmon/sigstack
fastlane expert
Fastlane automation - build, test, deploy iOS apps, TestFlight, App Store Connect
39swiftlint-autofix
Run SwiftFormat and fix all auto-correctable SwiftLint issues
30manus ai agent integration
Use this skill when delegating complex autonomous tasks to Manus AI - an AI agent that can browse the web, execute code, generate files, and comple...
24find-bug-root-cause
Deep investigation to find actual root cause (not just symptoms)
23dead code eliminator
Find and delete unused files, disabled code blocks, Enhanced variants, deprecated features, test files in production for Leavn app
22bitrise expert
Bitrise CI/CD - iOS builds, automated testing, deployment, managed macOS runners
21