swiftui-code-review

Review SwiftUI code for view composition, state management, performance, and accessibility issues.

Updated Feb 17, 2026
One-click install
npx skills add https://github.com/javierhbr/random-poc --skill swiftui-code-review
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: swiftui-code-review
Source: https://github.com/javierhbr/random-poc/tree/main/custom-skills/beagle-main/plugins/beagle-ios/skills/swiftui-code-review
Command: npx skills add https://github.com/javierhbr/random-poc --skill swiftui-code-review

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers identify and fix common issues in SwiftUI code related to view composition, state management, performance, and accessibility, leading to more robust and maintainable applications.

Core Features & Use Cases

  • View Composition Analysis: Checks for overly complex views and suggests extraction.
  • State Management Review: Validates the correct usage of property wrappers like @State, @Binding, and @Observable.
  • Performance Optimization: Identifies potential performance bottlenecks such as unnecessary view re-renders or inefficient list handling.
  • Accessibility Audit: Ensures views are accessible to users with disabilities by checking labels, traits, and dynamic type support.
  • Use Case: A developer can use this skill to review a new SwiftUI feature before merging, ensuring it adheres to best practices for performance and accessibility.

Quick Start

Use the swiftui-code-review skill to analyze the provided SwiftUI code snippet for potential issues.

Frequently Asked Questions about swiftui-code-review

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I review SwiftUI code for state management and performance issues?

To review SwiftUI code for state management and performance, validate the correct usage of property wrappers like @State, @Binding, and @Observable to identify bottlenecks such as unnecessary view re-renders and inefficient list handling.

What is the best way to check SwiftUI views for accessibility compliance?

Checking SwiftUI views for accessibility compliance requires auditing views to ensure they are accessible to users with disabilities by verifying labels, traits, and dynamic type support.

Can I use automated code review to fix overly complex SwiftUI view composition?

Yes, automated code review can detect overly complex SwiftUI views and suggest extraction, ensuring adherence to best practices for maintainable iOS application development.

Does this code review approach apply to Swift files without property wrappers or UI code?

No, this code review approach applies specifically to Swift files containing SwiftUI views, property wrappers, or UI code to ensure maintainable and performant iOS application development.

Why does my SwiftUI code review flag unnecessary view re-renders?

Your SwiftUI code review flags unnecessary view re-renders as part of performance optimization to identify potential performance bottlenecks and improve application responsiveness.

When do I need to validate @Binding and @Observable usage in iOS development?

You need to validate @Binding and @Observable usage in iOS development when reviewing SwiftUI code for state management to ensure maintainable and performant applications.