スキル一覧に戻る
willsigmon

performance-optimizer

by willsigmon

Website for sigstack.dev - Claude Code stack showcase

0🍴 0📅 2026年1月23日
GitHubで見るManusで実行

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:

  1. Find main thread operations:

    • Search for regex in View body
    • Find CGContext/UIGraphicsImageRenderer in Views
    • Look for DispatchQueue.main.async chains
    • Check for heavy computation in computed properties
  2. Fix patterns:

    // BEFORE - Main thread blocking
    let result = expensiveRegex()
    
    // AFTER - Background
    Task.detached {
        let result = await expensiveWork()
        await MainActor.run { updateUI(result) }
    }
    
  3. Add lazy loading:

    • Use .onAppear with viewport tracking
    • LazyVStack for long lists
    • Defer AI transformations until visible
  4. Optimize lookups:

    // BEFORE - O(n)
    array.contains { $0.id == id }
    
    // AFTER - O(1)
    private lazy var idSet = Set(array.map(\.id))
    idSet.contains(id)
    
  5. Cache computations:

    • Move from View to ViewModel
    • Invalidate cache on data change
    • Use didSet observers

Use this skill when: UI is laggy, scrolling stutters, app feels slow, CPU usage high

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

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

レビュー

💬

レビュー機能は近日公開予定です