swiftui-code-review-checklist
Code review checklist for SwiftUI and Swift PRs. Use when reviewing pull requests, checking code quality, verifying Swift/SwiftUI implementations, or conducting PR reviews. Provides prioritized checklist covering state management, performance, component design, data flow, async handling, UI/UX, accessibility, security, and testing.
Installation
Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.
View source ↗GuidesSkill instructions
SwiftUI Code Review Checklist
SwiftUI PRレビュー用の包括的チェックリスト。
ディレクトリ構成
swiftui-code-review-checklist/
├── SKILL.md (このファイル)
└── references/
└── code-review-checklist.md
リファレンスファイル
references/code-review-checklist.md
コードレビュー用チェックリスト(優先度別):
🔴 Critical(必須)
- 状態管理: SSOT違反、不適切なProperty Wrapper
- パフォーマンス: 不要な再描画、メモリリーク
- セキュリティ: 機密情報の露出
🟡 Important(重要)
- コンポーネント設計: 責務分離、再利用性
- データフロー: Binding、環境値の使用
- 非同期処理: Task管理、エラーハンドリング
🟢 Nice to Have(推奨)
- UI/UX: アニメーション、レイアウト
- アクセシビリティ: VoiceOver、Dynamic Type
- テスト: プレビュー、ユニットテスト
使用方法
PRレビュー時
-
references/code-review-checklist.mdを開く - 優先度順(🔴→🟡→🟢)でチェック
- 問題があれば具体的な改善案を提示
セルフレビュー時
- PR作成前にチェックリストを確認
- 自分のコードを検証
クイックチェック項目
状態管理
- @Stateは適切に使われているか
- 状態の重複はないか
- Bindingの向きは正しいか
パフォーマンス
- 不要な再描画が発生していないか
- LazyStack/Gridを適切に使っているか
- 重い処理はバックグラウンドで実行されているか
コンポーネント設計
- Viewの責務は単一か
- 再利用可能な設計か
- モディファイアの順序は正しいか
関連スキル
- swiftui-coding-guidelines: ベストプラクティス・アンチパターン
- swiftui-ssot: 状態管理の詳細
- swiftui-accessibility: アクセシビリティチェック
Examples
Read the usage examples in the source repository.
View source ↗Source history
- Indexed on
- 2026-01-20
- Index updated
- 2026-01-26
- Branch
- main
Index and sync dates describe this directory. View the source repository for code history.
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!