swiftui-review

SwiftUIのベストプラクティスに基づくコードレビュー。パフォーマンス、アクセシビリティ、アーキテクチャをチェック。Use when: SwiftUI、View、レビュー、リファクタリング を依頼された時。

⭐5stars🔀1forks📁View on GitHub🕐Updated Jan 11, 2026⬇️1downloads

When & Why to Use This Skill

This Claude skill provides automated SwiftUI code reviews based on industry best practices. It systematically evaluates performance bottlenecks, accessibility compliance, and architectural integrity to help developers build high-quality, maintainable iOS applications.

Use Cases

  • Performance Optimization: Identifying unnecessary re-renders caused by improper @State or @ObservedObject usage and optimizing heavy calculations within the view body to ensure smooth UI performance.
  • Accessibility Auditing: Ensuring mobile applications meet inclusive design standards by checking for proper accessibility labels, hints, and Dynamic Type support.
  • Architectural Refactoring: Maintaining clean code by enforcing the separation of business logic into ViewModels and suggesting modularization for views that exceed 200 lines of code.
  • Pre-merge Quality Checks: Using the skill as a checklist during the pull request process to catch common SwiftUI anti-patterns before they reach production.
nameswiftui-review
description"SwiftUIのベストプラクティスに基づくコードレビュー。パフォーマンス、アクセシビリティ、アーキテクチャをチェック。Use when: SwiftUI、View、レビュー、リファクタリング を依頼された時。"

SwiftUI コードレビュー

パフォーマンス

  • 不要な@Stateの使用がないか
  • @ObservedObjectの過剰な再描画がないか
  • List/ForEachにidが適切に設定されているか
  • 重い計算がbody内で行われていないか

アクセシビリティ

  • 画像に.accessibilityLabel()があるか
  • タップ可能な要素に.accessibilityHint()があるか
  • Dynamic Typeに対応しているか

アーキテクチャ

  • Viewが肥大化していないか(200行以上は分割検討)
  • ビジネスロジックがViewModelに分離されているか
  • PreviewProviderが適切に実装されているか