coding-best-practices

Review macOS Swift 6+ code for modern idioms and concurrency best practices.

4|Updated Jan 27, 2026
One-click install
npx skills add https://github.com/k97/dock-tile --skill coding-best-practices-k97
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: coding-best-practices
Source: https://github.com/k97/dock-tile/tree/main/.agents/skills/macos-development/coding-best-practices
Command: npx skills add https://github.com/k97/dock-tile --skill coding-best-practices-k97

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the challenge of maintaining high-quality, scalable, and idiomatic code in macOS applications by providing a centralized repository of best practices for Swift 6+ and modern Apple frameworks.

Core Features & Use Cases

  • Architecture Guidance: Provides clear examples of SOLID principles, Clean Architecture, and modular project organization.
  • Modern Concurrency: Offers patterns for safe, efficient asynchronous programming using async/await, actors, and structured concurrency.
  • Data Persistence: Guides the implementation of SwiftData models and relationships, ensuring robust data management.
  • Use Case: Use this Skill when you need to refactor a legacy view controller to follow the MVVM pattern or when you need to ensure your new SwiftData models are correctly configured for CloudKit sync.

Quick Start

Ask the coding-best-practices skill to review your current implementation of a repository pattern for adherence to SOLID principles.

Frequently Asked Questions about coding-best-practices

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

FAQPage Schema
How do I refactor a legacy view controller to follow MVVM and SOLID principles in Swift?

Refactoring a legacy view controller to MVVM and SOLID principles involves separating business logic from UI bindings. This Skill reviews your Swift codebase to enforce modular project organization and testable architectural patterns.

What are the best practices for structured concurrency and actors in macOS Swift development?

Structured concurrency best practices utilize async/await and actors to ensure thread-safe execution. This Skill provides patterns for safe, efficient asynchronous programming in modern macOS Swift 6+ applications.

How do I configure SwiftData models for CloudKit sync in macOS apps?

Configuring SwiftData models for CloudKit sync requires correctly defining data relationships and persistence patterns. This Skill guides the implementation of SwiftData models to ensure robust data management.

Does this coding best practices skill support Swift 6 and the latest Apple frameworks?

Yes, this skill supports Swift 6 and modern Apple frameworks. It reviews macOS code for modern idioms, SwiftData patterns, and concurrency practices to ensure modular and thread-safe codebases.

What is the best way to implement the repository pattern for data persistence in macOS?

Implementing the repository pattern for data persistence requires adherence to SOLID architectural principles. This Skill reviews your current implementation to ensure clean architecture and robust SwiftData management.