본문으로 건너뛰기
TakoAPI
스킬로 돌아가기

swiftui-performance-audit

steipete 제작

iOS & macOS Development
2.5kclawskills.sh가 보고한 다운로드 수
3스타
0조회수
좋아요 0개로그인하면 이 스킬에 좋아요를 누를 수 있습니다
—아직 평가 없음
내 평가

요약

Audit and improve SwiftUI runtime.

설명

이 스킬이 하는 일

Audits SwiftUI view performance through code review and guided Instruments profiling. Covers view invalidation storms, unstable list identities, heavy body computations, layout thrash, and image decoding issues. Produces a prioritized issue list with concrete code fixes and before/after metrics when traces are available.

Combines static code review with step-by-step Instruments guidance so performance issues are caught even when the root cause isn't obvious from symptoms alone.

사용 시점

  • Diagnosing janky scrolling in a SwiftUI list
  • Finding CPU spikes during complex SwiftUI animations
  • Reducing excessive view body re-evaluations in a feed
  • Catching expensive formatter allocations inside body
  • Profiling memory peaks in an image-heavy SwiftUI screen

예시 워크플로

입력

User asks: 'My SwiftUI list scrolls at 30fps and CPU spikes during scrolling. Here is my view code.'

에이전트
  1. 1

    Reviews the provided view code for known SwiftUI anti-patterns

  2. 2

    Identifies sorted collections computed inside body on every render

  3. 3

    Detects unstable ForEach identity using id: \.self on mutable values

  4. 4

    Recommends precomputing sorted data and using stable IDs

  5. 5

    Guides the user to capture a SwiftUI Instruments trace if code fixes are insufficient

출력

A prioritized list of root causes with specific code changes and an optional Instruments profiling walkthrough

설치

clawhub install steipete/swiftui-performance-audit

CLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크