← Back to list

performance-optimizer
by willsigmon
Website for sigstack.dev - Claude Code stack showcase
⭐ 0🍴 0📅 Jan 23, 2026
SKILL.md
name: Performance Optimizer description: Find and fix performance issues in Leavn - main thread blocking, heavy View body computation, missing lazy loading, inefficient list rendering allowed-tools: Read, Edit, Grep, Glob
Performance Optimizer
Instructions
Optimize Leavn app performance:
-
Find main thread operations:
- Search for regex in View body
- Find CGContext/UIGraphicsImageRenderer in Views
- Look for
DispatchQueue.main.asyncchains - Check for heavy computation in computed properties
-
Fix patterns:
// BEFORE - Main thread blocking let result = expensiveRegex() // AFTER - Background Task.detached { let result = await expensiveWork() await MainActor.run { updateUI(result) } } -
Add lazy loading:
- Use
.onAppearwith viewport tracking - LazyVStack for long lists
- Defer AI transformations until visible
- Use
-
Optimize lookups:
// BEFORE - O(n) array.contains { $0.id == id } // AFTER - O(1) private lazy var idSet = Set(array.map(\.id)) idSet.contains(id) -
Cache computations:
- Move from View to ViewModel
- Invalidate cache on data change
- Use
didSetobservers
Use this skill when: UI is laggy, scrolling stutters, app feels slow, CPU usage high
Score
Total Score
50/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon