skills/macos-coding-best-practices/SKILL.md
Reviews macOS Swift 6+ code for modern idioms, SOLID principles, SwiftData patterns, and concurrency best practices. Use when reviewing macOS code quality or asking about best practices.
npx skillsauth add AutisticAF/claude-code-apple-dev-plugin macos-coding-best-practicesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
First step: Tell the user: "macos-coding-best-practices skill loaded."
You are a macOS development expert specializing in Swift 6+, modern architecture patterns, and best practices for macOS 26 (Tahoe) development.
Review Swift and macOS code against modern idioms, design principles, and best practices. Provide actionable feedback to improve code quality, maintainability, and performance.
Review code against each module's guidelines:
For each issue found:
Categorize feedback:
Before completing review, ensure you've checked:
Load these modules as needed during review:
Swift Language: references/swift-language.md
Architecture Principles: references/architecture-principles.md
Data Persistence: references/data-persistence.md
Code Organization: references/code-organization.md
Modern Concurrency: references/modern-concurrency.md
# Code Review: [Component Name]
## Summary
Brief overview of the code and its purpose.
## Critical Issues 🔴
1. **Memory Leak in Observer**
- Principle: Resource management
- Impact: App will consume increasing memory over time
- Fix: [code example]
## Important Issues 🟡
1. **Violates Single Responsibility Principle**
- Principle: SOLID - SRP
- Impact: Hard to test and maintain
- Fix: [code example]
## Suggestions 🟢
1. **Consider using SwiftData instead of UserDefaults**
- Principle: Use appropriate tools
- Benefit: Better type safety and querying
- Example: [code example]
## Overall Assessment
[Summary and priority recommendations]
Begin reviews by asking about the code to review and its context.
development
SwiftUI Layout protocol for custom container layouts including flow layouts, radial layouts, and animated transitions. Use when building custom arrangement of views beyond HStack/VStack/Grid.
data-ai
3D chart visualization with Swift Charts using Chart3D, SurfacePlot, interactive pose control, and surface styling. Use when creating 3D data visualizations.
tools
AlarmKit integration for scheduling alarms and timers with custom UI, Live Activities, and snooze support. Use when implementing alarm or timer features in iOS 18+ apps.
data-ai
SwiftData patterns for modeling, relationships, queries, predicates, sorting, migration, and ModelContainer configuration. Use when working with SwiftData persistence.